Julia's generated fns are like macros,but they have access to the type of fns! https://docs.julialang.org/en/latest/manual/metaprogramming/#Generated-functions-1 (Other PLs call this staged fns AIUI)
miniblog.
Related Posts
Distributing binaries built against musl is counter-intuitive to me. When I run them on my machine, they're dynamically linked to glibc!
The main advantage AIUI is that you don't depend on new glibc features, so you get a more portable executable.
https://twitodon.com/ is a neat tool for finding Mastodon people that you were already following on Twitter. It generates a CSV that Mastodon can consume.
Of the 3,154 folks I follow, it found 117 Mastodon accounts. AIUI it requires other users to use the service.
A decent part of VMs being faster than AST interpreters is just memory layout AIUI.
VM instructions are largely flat arrays, so there's less pointer chasing.