#dyon — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #dyon, aggregated by home.social.
-
Okay, say I went full yolo and actually decided to ditch all our #TypeScript and rewrite everything in #Rust, as one does.
I still need to provide some scripting layer for normal sane people I would be forcing to use this (of which there might end up being many).
Any suggestions? Boosts appreciated :boost_requested:
- #Rhai seems pretty popular, but some decisions are weird, to say the least (e.g. https://rhai.rs/book/ref/fn-closure.html#admonition-beware-captured-variables-are-truly-shared). Kinda evokes PHP memories.
- #Gluon is proper static, which is probably really good for performance, less certain about experience.
- #Rune and #Dyon both look nice and simple. But also looks like there's no way to declare any useful type information for the dev tools.
- #Boa would let us actually keep TypeScript, which is nice, because its type system is just the best ever. But I'm not sure it's stable or fast enough yet.
- Embedding or building around #Deno is always an option, but having to spin up #V8 whenever any script needs to be run kinda defeats the purpose of moving to something more performant in the first place.Idk. Would love to hear literally any thoughts on this. Please talk to me :ablobcatreachreverse:
-
Here's another one written in #Rust which drops privileges after opening the evdev input device and can be configured via #Dyon scripts:
https://codeberg.org/valpackett/evscript/src/branch/trunk/README.md