25
submitted 4 months ago* (last edited 4 months ago) by amanda@aggregatet.org to c/rust@programming.dev

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
[-] FizzyOrange@programming.dev 4 points 4 months ago

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.

[-] amanda@aggregatet.org 1 points 4 months ago* (last edited 4 months ago)

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

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

Rust

5999 readers
17 users here now

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

Wormhole

!performance@programming.dev

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