this post was submitted on 16 Jul 2023
13 points (100.0% liked)
Rust
5999 readers
7 users here now
Welcome to the Rust community! This is a place to discuss about the Rust programming language.
Wormhole
Credits
- The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I can recommend Lua. It is easy to learn, and easy to embed in a Rust program. With LuaJIT, it should be pretty fast, too.
Of course you can also embed a JavaScript runtime, but then your executable will probably be 50 MB larger. And I'm not a fan of Python.
Being honest, I don't really like Lua's syntax, while I love his embeddability.
A JS runtime is way too big in my opinion.
PyO3 + Python is also big, but a little big smaller beaucse the interpreter isn't embedded.
I am currenctly experimenting with both Python and WASM.