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).

  • FizzyOrange@programming.dev
    link
    fedilink
    arrow-up
    4
    ·
    7 days 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.orgOP
      link
      fedilink
      Svenska
      arrow-up
      1
      ·
      edit-2
      7 days ago

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