News for hackers. Stuff that matters.
Re:Koto Programming Language by chaosprint on Sunday March 30, 2025 @01:51AM (#43521695)
You are absolutely right. Thanks for the correction and info!

I gave Lua a shot, but getting the toolchain set up in wasm was a hassle:

https://bytedream.github.io/litbwraw/introduction.html

So at least I can say Rhai has some advantages on syntax and compatibility with wasm

Re:Koto Programming Language by spacechild1 on Sunday March 30, 2025 @07:55AM (#43523407)
That's a valid point. Being native to the host language (Rust) is generally a big advantage.

I just don't really understand why Rhai uses an AST walking interpreter, that's basically the least efficient way of implement a scripting language. Once you have an AST, a byte code compiler/interpreter is not really hard to implement, so I'm wondering why they knowingly leave so much performance on the table...