Mastodon Feed: Post

Mastodon Feed

dysfun@treehouse.systems ("gaytabase") wrote:

i have just had an absolutely amazing[1] idea.

instead of storing nodes of data for your datastructure, store nodes of code! do a quick specialisation of the branch function that reduces overhead - e.g. inline that small iteration loop and JIT-generate a new copy. branching over a node is thus just a call!

[1] hilarious, probably impractical