this post was submitted on 23 Jun 2024
26 points (100.0% liked)

Rust

5658 readers
58 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

[email protected]

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
 

Is there a good general-ish purpose scripting language (something like Lua on the smaller end or Python on the bigger) that’s implemented in only Rust, ideally with a relatively low number of dependencies?

Have you used it yourself, if so for what and what was your experience?

Bonus points if it’s reasonably fast (ideally JITed, though I’m not sure if that’s been done at all in Rust).

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 4 points 2 months ago (1 children)

I assume you're talking about embeddable languages. I've used Rhai and it's quite nice but I wish it had type annotations.

Gluon is another option but IMO they've gone way too far into crazy and unergonomic ML-style syntax. Which is weird considering it's implemented in Rust which has much nicer syntax for the same things which they could have copied.

[–] [email protected] 1 points 2 months ago* (last edited 2 months ago)

Thanks, I think Rhai is what I’d try at this point. Pretty much ticks all my boxes!