home.social

#rhai — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #rhai, aggregated by home.social.

  1. 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. rhai.rs/book/ref/fn-closure.ht). 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:

  2. I've been using for a while and it's pretty good.
    zyedidia.github.io/blog/posts/

    But now I get annoyed with Lua `require()` which doesn't allow arbitrary path. I think replacing Lua with script should solve the problem. Unlike gopher-lua, rhai provide a way to customize the syntax. However, the whole project (:knit) need to be rewritten in Rust 😅

  3. is a scripting language for .

    Rhai is a configurable, embeddable scripting language for use in Rust programs. Rhai scripts can easily be loaded and executed from a Rust program, even for no-std or targets. Rhai supports closures, OOP, dynamic typing, and a simplified Rust-like syntax. Functions and operators can easily be added to Rhai, as well as entirely new syntax.

    Website 🔗️: rhai.rs/

  4. Can we drag-n-drop (Rust-like) #Rhai Scripts ... And run them on #BL602 and BL604? Let's find out!

    lupyuen.github.io/articles/rha

  5. Run #Rhai Scripts on #BL602 (and BL604) ... By auto-converting to uLisp! All shall be explained in this article

    lupyuen.github.io/articles/rha