Hacker News new | ask | show | jobs
by im_down_w_otp 3872 days ago
Yeah, it makes for some very interesting uses cases for code-generation.

I've converted entire databases of mostly static data into nothing but a bunch of exact-match function head signatures and let one of the fastest paths in the VM be my "query planner".

It's insanely fast (at the expense of compile time) and the generated code is really easy to read, trace, and debug.

1 comments

Intersting. Do you have an example somewhere?