miniblog.

Suppose I want to convert a string to uppercase in a language. (1) Google it. (2) Read the official docs or a Stack Overflow answer. (3) Copy-paste the function/method name to my program. This is an absurd number of keystrokes! Do any languages aim to minimise this?
Wow, GitHub shows a table of contents on https://readme.md/ files! I did not know this until https://github.com/casey/just added a helpful icon pointing it out.
PhotoPhoto
GitHub now allows you to group your starred projects into lists: https://github.blog/changelog/2021-12-09-lists-are-now-available-as-a-public-beta/
LLVM is moving mailing lists to Discourse! I'm a big fan of Discourse's ability to summarise threads and richer formatting options.
Line alignment is a *massive* problem in syntactic diffs. Line-based diffs don't have this problem -- either lines are equal or they aren't. In this example, it's not clear whether line 11 on the right should align with line 9 or line 10 on the left.
Photo
I'm really pleased with how well difftastic handles removal of `if` statements. Here's an example I hit today. It's definitely harder to see which curly braces are removed in the `git diff` example. `git diff` does combine everything into a single hunk though, which is nice.
PhotoPhotoPhoto
I've been consistently impressed by the Doom Emacs community. I get really high quality bug reports (sometimes patches too!) from both the users and the maintainer :)
I wish that build tools considered *current* CPU and memory utilisation. $ make -j $NUM_CPUS This is problematic if some jobs use a lot of memory (common in linking) or if you're using your machine for anything else.
Difftastic 0.20 is out! * Better handling of nesting changes, based on autochrome. This fixes some nasty corner cases (Python screenshot) and gives nicer results in general (Scala screenshot). * Better handling of large files, even multi-megabyte!
PhotoPhotoPhoto
RISC-V seems like a great example of "commoditise your complements". If you're getting value higher in the hardware or software stack, a royalty-free ISA is valuable. Creating an ISA is a ton of work. Once it's basically viable, it creates interesting opportunities.
I really like languages where private functions are fewer keystrokes than public functions. Unfortunately 'protected' is longer than 'public', or 'pub(crate)' and 'pub'. Have any languages solved this? E.g. 'fn foo', 'pkg fn foo', 'public fn foo' would work.
Robin Hood hashing, and a remarkable bug in Rust where building one hash map from another can have quadratic performance! https://accidentallyquadratic.tumblr.com/post/153545455987/rust-hash-iteration-reinsertion
@janriemer@mastodon.technology @friend Not spam at all! Thanks, I'd not seen that, and it looks really well suited to my needs :)
@friend @janriemer@mastodon.technology Sounds like a good choice! I recently found this interesting benchmark table which shows Blake as a great cryptographic hash: http://cyan4973.github.io/xxHash/ (FWIW difftastic uses rustc-hash for its hashing needs.)
Git repositories have the lovely properties that deletes aren't propagated. Shared/cloud storage sync deletes across devices. Accidentally deleting content in a local git repo, and even pushing it, is a safe operation.
Showing 841-855 of 7,549 posts