My favourite page in the difftastic manual is the Tricky Cases discussion.
Syntactic diffs/tree diffs have a completely different set of corner cases to textual diffs. It's a useful resource for anyone exploring this space.
Neat cargo plugin I haven't seen before: https://crates.io/crates/cargo-expand
`cargo expand` will expand macros so you can see the regular Rust code produced. For example, println!(); expands to this (even syntax highlighted!).
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:
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.
https://crates.io/crates/difftastic
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.
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?
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.)
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.