miniblog.

TIL some operating systems do not provide a stable syscall interface, and expect you to use libc. Go 1.16 is switching to libc on several platforms due to this: https://utcc.utoronto.ca/%7Ecks/space/blog/programming/Go116OpenBSDUsesLibc
It's such a tiny thing, but I really like the Python or Lisp convention of putting the doc string inside the definition. I find I write the signature first anyway, and figure out what I want to call my function, before I know how I want to describe it.
I've released difftastic 0.10! This version adds four new languages: C, C++, C# and Haskell! See screenshots for examples. The manual is also substantially expanded, discussing other tree diffing projects and code samples that are hard for tree diffs.
PhotoPhotoPhoto
TIL that JetBrains has a product Spaces that competes with both GitHub (source hosting, CI) and Teams (chat): https://www.jetbrains.com/space/ It's an incredibly ambitious project.
Program slicing for Rust in VS Code, allowing you to see which parts of your program affect the current expression!
Pursuit is Javadocs equivalent for Purescript, and it's one of the best looking API docs sites I've seen in a long time. It features versioning, links to individual functions and even links to repo and specific source code. This screenshot is from
Photo
Programming languages usually try to minimise undefined behaviour. What if you did the opposite? How much UB could you have whilst still being (theoretically) usable?
Difftastic now supports Haskell and C# files too!
PhotoPhoto
StarScan: https://source.chromium.org/chromium/chromium/src/+/master:base/allocator/partition_allocator/starscan/README.md Really interesting idea for improving manual memory management security: quarantine free()'d value until you can see all references are gone!
Difftastic treats syntax errors as just another token in the tree. It works surprisingly well!
Photo
An esolang that exclusively uses characters and grammar from traditional Chinese! There are very few languages that are purely non-ASCII, it's interesting to see other examples in this space. https://wy-lang.org/ (Great looking landing page too.)
Adding C++ support to difftastic! The change shown here is src/dynamics/b2_distance_joint.cpp in https://github.com/erincatto/box2d/commit/3d92ed4ec487b8e2aff3fc7dc58663870b17c534?branch=3d92ed4ec487b8e2aff3fc7dc58663870b17c534&diff=split and I think it compares pretty favourably with GitHub (second image).
PhotoPhoto
Today I learnt that .cxx is an extension used in some C++ projects because "xx" vaguely resembles "++" rotated! It makes sense, but I'd never spotted the similarity before.
I shared difftastic on /r/rust, and received some great feedback, some feature requests, and two generous people even read the code and suggested optimisations!
It's a shame that programming languages take a while to write. I have so many ideas!
Showing 1,096-1,110 of 7,652 posts