"Clang can codegen a switch statement with lots of disjoint cases as a binary search" https://zneak.github.io/fcd/2017/02/19/divisions.html (impressive!)
miniblog.
Related Posts
Are there any languages that have both pattern matching and statement oriented syntax?
In principle these are orthogonal, but I'm struggling to think of a language with pattern matching that isn't expression oriented.
Are there any advantages to having a statement/expression separate in a new programming language?
I understand that it makes sense for existing languages, but "everything is an expression" seems to be increasingly popular.
I'm dogfooding difftastic and I'm always pleasantly surprised when it works.
Here's a nice example from optimisation today: I've removed an outer if statement. Note that it's lined up line 47 on the left with line 41 on the right, even though they have different indentation.
