News for hackers. Stuff that matters.
Re:Roto: A Compiled Scripting Language for Rust by speed_spread on Wednesday May 21, 2025 @09:42AM (#44051356)
Then also have a look at Mun:

https://github.com/mun-lang/mun

- Ahead of time compilation

- Statically typed

- First class hot-reloading

Not sure how both languages compare though

Re:Roto: A Compiled Scripting Language for Rust by terts on Wednesday May 21, 2025 @10:53AM (#44052121)
Hi! Author here. Mun is super cool, but works slightly differently as far as I know. You compile Mun scripts outside of your application to a dynamic library, which can then be (re)loaded by your application. The advantage of that approach is that you can ship the compiled script with your application.

The downside is that it's not really possible to share types between the host application and the script as far as I know. They have something called called `StructRef` which does this a bit, but it's all runtime checks if I understand correctly.

If somebody here knows more about Mun, I'd be happy to be corrected. This is just my understanding from their documentation.