104 points · by myth_drannon · 8y ago · 6 comments
Unlike MetaOcaml, the low level language used for running the algorithms is different from the high-level language used to meta-program it. The low-level terra has a type system and semantics that is much closer to C (including pointers and many different integer types), while Lua is a straightforward dynamic language with a very simple type system.
I wonder how statically typed Ocaml compares to dynamically typed Lua for the metaprogramming bits of the system.
How does Terra fares in this regard ?
[1]: And just to be clear, when I say competitive, I don't mean with C. I mean with hand-tuned assembly and/or vector intrinsics. I regularly get performance with Regent that you simply can't get in a C compiler without writing vector intrinsics by hand.