miniblog.

The next version of difftastic will support Ada!
PhotoPhoto
Are there any FOSS licensees that explicitly allow people to train AI models on the source code? This seems like a useful addition, and there's already precedent with the "classpath exception" for the GPL.
On building a full-featured REPL, handling errors, and the different REPL APIs in the Clojure ecosystem:
Displaying value information in an IDE is tricky. For union types, it's more helpful to see the inferred type (Option<Player> versus null). For product types it's often nicer to see an example value. For primitive types I almost always want a value (0 versus int).
Software is typically malleable. What software is the hardest to change? For me, the obvious cases are APIs near the bottom of the stack (e.g. imagine changing a Linux syscall) or systems with a large number of users (due to Hyrum's Law).
I like the notion of "pac-man complete", the idea that your programming language needs enough effects/IO to do a 2D game: https://prog21.dadgum.com/23.html We should have more levels of language capability. 'Can do Hello World' and 'can do fizzbuzz' are useful for a new language.
Apparently FizzBuzz is a spelling used by programmers, and it's "Fizz Buzz" in other contexts: https://en.wikipedia.org/wiki/Fizz_buzz Perhaps programmers favour camel case more often?
Solving Fizzbuzz using Euler's totient theorem rather than conditionals:
Copilot was super helpful for changing some locals to lazy_static!: let integer_re = Regex::new(...) // old static ref INTEGER_RE = Regex::new(...) // new Unfortunately, it added a $ to the end of my first regex! It saved me a ton of keystrokes, but needed careful checking.
I really appreciate that GitHub has separate icons for pass and fail in CI. I've worked with Jenkins plugins that rely on red/green colour too much.
Photo
TIL that you can give your threads names!
I've released difftastic 0.44! In this release: * Support for Racket and Newick * Better handling of parse errors * Nicer syntax highlighting
PhotoPhotoPhoto
A surprising amount of important software functions by developers doing each other favours by reviewing pull requests.
Generated Code Generates Overconfident Coders: https://www.deeplearning.ai/the-batch/issue-180/ A study of programmers found that using a LLM for completion produced buggier code but users were more confident in it. I wonder if this generalises to other completion techniques?
TIL that coreutils has a lightweight version of the `finger` command, appropriately named `pinky`!
Showing 556-570 of 7,654 posts