4 ms·
You say the interpreter is slow, maybe consider speeding it up: https://blog.cloudflare.com/building-fast-interpreters-in-rust/ https://blog.cloudflare.com/bui
by mamcx 4y ago
You say the interpreter is slow, maybe consider speeding it up:
https://blog.cloudflare.com/building-fast-interpreters-in-rust/ https://blog.cloudflare.com/building-fast-interpreters-in-ru...
https://ndmitchell.com/downloads/slides-cheaply_writing_a_fast_interpreter-23_feb_2021.pdf https://ndmitchell.com/downloads/slides-cheaply_writing_a_fa...
P.D: A simple trick I apply for mine is to inline the looping for equivalents to folds/maps/filters like `[1, 2, 3] + 1`. You can do that calculation directly inside Rust, and even eliminate all interpretation if allow for specialization on the AST, ie: Ast.Map(Fn()->Ast, Vec<i32>, i32)