General purpose scripting language with no non-Rust dependencies
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).
Disclaimer that I have no experience with writing compilers myself, but conceptually I don't see any obvious reason that someone couldn't create a JIT compiler for Rust so that it can be treated like a scripting language and do rapid iteration...
Sure you could JIT Rust, the question is if you can write a JIT compiler in rust since it needs to do some quite scary stuff to swap in compiled routines when evaluating code. I’m not even sure if unsafe is enough for that, you may need goto or arbitrary function pointers (which is kind of the same thing)
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.