5 comments
@capital @neauoire It's possible to reduce this even further. I hypothesize rewrite cycles on the order of 100ns on average. Given that the entire rewrite loop has a timing range in the microseconds, that puts the C implementation of #modal on par with Python and other bytecode VMs with optimized dispatch. Rewriting is a powerful paradigm. This language can be pushed even further and further. And we're not even close to the limit. @capital @wryl @neauoire its so interesting @neauoire came up with Modal recently as I was also investigating a rewrite language in Common Lisp, will check the implementation for sure. I wanted to see what a language with a construct even more powerful than CL macros looks like, may play with it today |
I had a hunch that Modal would have 0 cache misses. It's memory is completely static. Modal's file size is so small even CPUs 20 years ago could hold the whole program in L1 or L2 cache.