GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Notices by Wilfred Hughes (wilfredh@mastodon.social)

  1. Embed this notice
    Wilfred Hughes (wilfredh@mastodon.social)'s status on Friday, 04-Apr-2025 01:12:33 JST Wilfred Hughes Wilfred Hughes

    There are *so many* ways that reading a text file can fail.

    Maybe it doesn't exist, it's a broken symlink, it's actually a directory, it's not the encoding you expected, or perhaps you just don't have the correct permissions.

    Reporting good errors is surprisingly labour intensive.

    In conversation about 2 months ago from mastodon.social permalink
  2. Embed this notice
    Wilfred Hughes (wilfredh@mastodon.social)'s status on Thursday, 20-Feb-2025 15:59:59 JST Wilfred Hughes Wilfred Hughes

    Overall it seems like the Rust for Linux is making huge strides. Greg KH is super supportive of it[1] and the wider Linux community is pretty positive[2] (see all the quotes at the end of the slides).

    1: https://lore.kernel.org/rust-for-linux/2025021954-flaccid-pucker-f7d9@gregkh/
    2: https://fosdem.org/2025/schedule/event/fosdem-2025-6507-rust-for-linux/

    In conversation about 3 months ago from mastodon.social permalink

    Attachments

    1. No result found on File_thumbnail lookup.
      Re: Rust kernel policy - Greg KH
    2. Domain not in remote thumbnail source whitelist: fosdem.org
      FOSDEM 2025 - Rust for Linux
  3. Embed this notice
    Wilfred Hughes (wilfredh@mastodon.social)'s status on Monday, 20-Jan-2025 02:11:03 JST Wilfred Hughes Wilfred Hughes

    "Example Driven Development" using Glamorous and Pharo Smalltalk: https://medium.com/feenk/an-example-of-example-driven-development-4dea0d995920

    Tests returning values and composing is a really interesting model. It establishes structure and shows which test failure is the most 'fundamental'.

    In conversation about 4 months ago from mastodon.social permalink

    Attachments

    1. Domain not in remote thumbnail source whitelist: miro.medium.com
      Medium
  4. Embed this notice
    Wilfred Hughes (wilfredh@mastodon.social)'s status on Saturday, 18-Jan-2025 13:36:40 JST Wilfred Hughes Wilfred Hughes

    TIL Advent of Code and Project Euler will deliberately look for puzzles where the naive solution is worse than quadratic.

    This ensures that people can solve them with any programming language. You don't want fast languages to be able to use the naive solution.

    In conversation about 4 months ago from mastodon.social permalink
  5. Embed this notice
    Wilfred Hughes (wilfredh@mastodon.social)'s status on Monday, 30-Dec-2024 16:23:55 JST Wilfred Hughes Wilfred Hughes

    I love how the CommonMark Spec has a test suite that's just a JSON array. It's really easy to test a library for compliance, and I've seen developers nerd-sniped into full compliance.

    https://spec.commonmark.org/0.31.2/spec.json

    In conversation about 5 months ago from mastodon.social permalink
  6. Embed this notice
    Wilfred Hughes (wilfredh@mastodon.social)'s status on Friday, 22-Nov-2024 02:37:14 JST Wilfred Hughes Wilfred Hughes
    in reply to
    • Alfred M. Szmidt

    @amszmidt there's at least one user! https://difftastic.wilfred.me.uk/fossil.html

    I'm not a Fossil user myself so I can't say how well it works with difftastic though.

    In conversation about 6 months ago from mastodon.social permalink

    Attachments


  7. Embed this notice
    Wilfred Hughes (wilfredh@mastodon.social)'s status on Tuesday, 29-Oct-2024 05:30:00 JST Wilfred Hughes Wilfred Hughes

    I'd heard the conventional wisdom that UX research states that mice are more efficient than keyboards, but turns out there's virtually no research on this!

    https://danluu.com/keyboard-v-mouse/

    In conversation about 7 months ago from mastodon.social permalink
  8. Embed this notice
    Wilfred Hughes (wilfredh@mastodon.social)'s status on Thursday, 26-Sep-2024 16:17:59 JST Wilfred Hughes Wilfred Hughes

    I'm intrigued to see that Google has quantified that new code is generally buggier and less secure than code that has existed in your codebase for longer: https://security.googleblog.com/2024/09/eliminating-memory-safety-vulnerabilities-Android.html

    In conversation about 8 months ago from mastodon.social permalink

    Attachments

    1. Domain not in remote thumbnail source whitelist: 2.bp.blogspot.com
      Eliminating Memory Safety Vulnerabilities at the Source
      from @google
      Posted by Jeff Vander Stoep - Android team, and Alex Rebert - Security Foundations Memory safety vulnerabilities remain a pervasive threa...
  9. Embed this notice
    Wilfred Hughes (wilfredh@mastodon.social)'s status on Saturday, 14-Sep-2024 23:45:16 JST Wilfred Hughes Wilfred Hughes

    An ad hoc, informally-specified, bug-ridden, slow implementation of half of a text adventure game -- or as I like to call it, a compiler.

    In conversation about 8 months ago from mastodon.social permalink
  10. Embed this notice
    Wilfred Hughes (wilfredh@mastodon.social)'s status on Tuesday, 30-Jan-2024 15:19:50 JST Wilfred Hughes Wilfred Hughes

    Difftastic is written in Rust, so I was surprised to get a user report of a segfault.

    After some investigation, it turns out that it's a segfault in git itself, which has existed since 2014! https://lore.kernel.org/git/CAFXAjY7XcL1APhLRXU8TO96z=f7957f2ieK56dHVsXUay55vpg@mail.gmail.com/T/#u

    (Upstream has already kindly written a patch.)

    In conversation about a year ago from mastodon.social permalink

    Attachments

    1. No result found on File_thumbnail lookup.
      Git segfaults with diff.external and comparing files with different permissions
  11. Embed this notice
    Wilfred Hughes (wilfredh@mastodon.social)'s status on Saturday, 12-Aug-2023 22:10:11 JST Wilfred Hughes Wilfred Hughes

    Running a package manager host for a popular language is really expensive. TIL that Python costs several million dollars per year!

    In conversation Saturday, 12-Aug-2023 22:10:11 JST from mastodon.social permalink

    Attachments


    1. https://files.mastodon.social/media_attachments/files/110/869/203/754/085/962/original/6c2d69d1cc24c1bb.png
  12. Embed this notice
    Wilfred Hughes (wilfredh@mastodon.social)'s status on Thursday, 27-Jul-2023 15:08:35 JST Wilfred Hughes Wilfred Hughes

    I've released difftastic 0.49! In this release:

    * LaTeX support
    * Smarter diffing in languages that prefer the outer delimiter (JSON, Lisps)
    * Improved parsing for C, C++, Java and Haskell

    https://github.com/Wilfred/difftastic/releases/tag/0.49.0

    In conversation Thursday, 27-Jul-2023 15:08:35 JST from mastodon.social permalink

    Attachments


    1. https://files.mastodon.social/media_attachments/files/110/784/542/551/630/409/original/353617d3ea4fb8ac.png

    2. https://files.mastodon.social/media_attachments/files/110/784/542/889/183/105/original/e95a4fba7a113523.png
  13. Embed this notice
    Wilfred Hughes (wilfredh@mastodon.social)'s status on Sunday, 16-Jul-2023 04:09:05 JST Wilfred Hughes Wilfred Hughes

    I've been thinking about making difftastic smarter about context. In principle it understands structure, so I could limit context to the enclosing definition.

    However, sometimes it's nice to see surrounding code. Line 644 isn't useful, but maybe 655 is. Opinions?

    In conversation Sunday, 16-Jul-2023 04:09:05 JST from mastodon.social permalink

    Attachments


    1. https://files.mastodon.social/media_attachments/files/110/719/661/772/827/860/original/03d6e2424e47cd87.png
  14. Embed this notice
    Wilfred Hughes (wilfredh@mastodon.social)'s status on Sunday, 09-Jul-2023 11:26:20 JST Wilfred Hughes Wilfred Hughes

    A great deep dive on building GitHub's code view, optimising React, scaling to thousands whilst supporting both Ctrl-F and syntax highlighting: https://github.blog/2023-06-21-crafting-a-better-faster-code-view/

    In conversation Sunday, 09-Jul-2023 11:26:20 JST from mastodon.social permalink

    Attachments

    1. Domain not in remote thumbnail source whitelist: github.blog
      Crafting a better, faster code view | The GitHub Blog
      from Joshua Brown
      The new GitHub Code View brings users many new features to improve the code reading and exploration experiences, and we overcame a number of unique technical hurdles in order to deliver those features without compromising performance.
  15. Embed this notice
    Wilfred Hughes (wilfredh@mastodon.social)'s status on Tuesday, 04-Jul-2023 15:13:27 JST Wilfred Hughes Wilfred Hughes

    Steve Jobs famously asked for smooth scrolling (i.e. not line-by-line) in a Smalltalk demonstration and they changed the UI live.

    Here's a lovely 2 minute YouTube video demonstrating that modification: https://www.youtube.com/watch?v=eEz08IlcNMg

    In conversation Tuesday, 04-Jul-2023 15:13:27 JST from mastodon.social permalink

    Attachments

    1. The smooth scrolling modification demo by using Smalltalk-78
      from sumim
      "At one point (Steve) Jobs, watching some text scroll up the screen line by line in its normal fashion, remarked, 'It would be nice if it moved smoothly, pix...
  16. Embed this notice
    Wilfred Hughes (wilfredh@mastodon.social)'s status on Tuesday, 20-Jun-2023 13:34:37 JST Wilfred Hughes Wilfred Hughes

    I've just added closure support to my toy programming language: https://github.com/Wilfred/garden/commit/d1fb4566a2187dfe98fb1d2278a7a0d2acd8059e

    Closures are more fiddly than I expected, but I now have a much better understanding of what downward/upward funargs are :)

    (Downward: passing a closure, upward: returning a closure)

    In conversation Tuesday, 20-Jun-2023 13:34:37 JST from mastodon.social permalink

    Attachments


  17. Embed this notice
    Wilfred Hughes (wilfredh@mastodon.social)'s status on Sunday, 04-Jun-2023 23:48:39 JST Wilfred Hughes Wilfred Hughes

    Rust has an elegant solution to testing private functions: you put the test in the file that defines the function. It generally works well.

    I've even seen people argue that it makes mocking much less necessary! I've not felt the need to mock in Rust so far.

    In conversation Sunday, 04-Jun-2023 23:48:39 JST from mastodon.social permalink
  18. Embed this notice
    Wilfred Hughes (wilfredh@mastodon.social)'s status on Tuesday, 15-Nov-2022 17:30:09 JST Wilfred Hughes Wilfred Hughes

    Advice from one of the authors of Common Lisp on PL work: established languages tend to win in their domain. It really helps if you enjoy working in this space.

    (There is a ton of PL skill and insight in the smaller languages IME.)

    https://pldb.com/posts/scottFalhmanInterview.html

    In conversation Tuesday, 15-Nov-2022 17:30:09 JST from mastodon.social permalink

    Attachments


    1. https://files.mastodon.social/media_attachments/files/109/346/873/108/010/872/original/985c10a36363311d.jpeg
    2. Domain not in remote thumbnail source whitelist: pldb.com
      A brief interview with Common Lisp creator Dr. Scott Fahlman
      November 11, 2022 — Dr. Scott Fahlman is a Professor Emeritus in the Carnegie Mellon’s School of Computer Science. He is a computer programming language connoisseur and the original neural network jedi master. He was one of the core developers of the Common Lisp Language and his current work include
  19. Embed this notice
    Wilfred Hughes (wilfredh@mastodon.social)'s status on Monday, 12-Sep-2022 14:13:43 JST Wilfred Hughes Wilfred Hughes

    Tired:
    Unexpected IndexError

    Wired:
    Tried to access index 10 in a 4 item list ["x", "y", "z", ""]

    In conversation Monday, 12-Sep-2022 14:13:43 JST from mastodon.social permalink

User actions

    Wilfred Hughes

    Wilfred Hughes

    Programming geek, natural languages nerd, and occasional writer. he/him

    Tags
    • (None)

    Following 0

      Followers 0

        Groups 0

          Statistics

          User ID
          9777
          Member since
          12 Sep 2022
          Notices
          19
          Daily average
          0

          Feeds

          • Atom
          • Help
          • About
          • FAQ
          • TOS
          • Privacy
          • Source
          • Version
          • Contact

          GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

          Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.