Comment by chaosprint
1 year ago
Here are two real-world examples of using Rhai:
I've embedded Rhai in Glicol to support sample-level audio synthesis, and the performance is [acceptable]. Real-time audio is very computationally intensive, after all.
I've tried various embedded scripting languages in Rust, but Rhai probably has the best documentation and playground.
For reference, see this survey:
https://www.boringcactus.com/2020/09/16/survey-of-rust-embed...
Recent Koto Lang also looks promising:
Other embedded scripting language is Steel [1]. It’s being considered to be used in Helix [2].
[1] https://github.com/mattwparas/steel
[2] https://github.com/helix-editor/helix/pull/8675
Another example using Rhai that was posted here a week or two ago: this (in-browser) 3D modeling software using Fidget.
https://www.mattkeeter.com/projects/fidget/demo/
> https://www.boringcactus.com/2020/09/16/survey-of-rust-embed...
For some reason, clicking on that link automatically downloads a file named "Human Fart.wav"...
Small comment, but why does the text editor show an "overwrite" indictor instead of a cursor indicator when I try to change something in the playground? https://i.imgur.com/OAXbXQ2.png
I tried typing different things, and despite showing an overwrite indicator it seems to be in a normal insert mode. I have no idea which side of the highlight my characters will be inserted on though.
This is totally my personal preference :)
I thought it was clearer this way.
But there is a new version of the website under construction:
https://glicol-x.netlify.app/
It will be changed to the normal look.