Earlier quoted context omitted.
How is that not also stringly typed?
match Plugin::instantiate_async(&mut store, &component, &linker).await { Ok(plugin) => { match plugin .plugin_guest_oncallback() .call_ontimedcallback(&mut store, &callback_name) .await { Ok(()) => debug!("Successfully called oncallback for {plugin_path:?}"), Err(e) => warn!("Failed to call oncallback for {plugin_path:?}: {e}"), } } Err(e) => { error!("Failed to call oncallback for {plugin_path:?}!: {e}"); } } See th…
Roto: A Compiled Scripting Language for Rust
71–80 of 116 posts
Re: Roto: A Compiled Scripting Language for Rust
#72Sidenote, but I wish it became the practice to explain abbreviations such as BGP, to make the post intelligible to people outside the field.
Re: Roto: A Compiled Scripting Language for Rust
#73Earlier quoted context omitted.
Just add a "Huevos" prefix and a "S" at the end of the name, and suddenly you're thinking of delicious food instead.
For those who don't speak Spanish, "huevos rotos" are broken eggs (or scrambled eggs). Edit: I had to double check, because it seems that both translations are valid.
Scrambled eggs would be "huevos revueltos"
Edit: in Spain at least. YMMV for other Spanish-speaking countries.
Re: Roto: A Compiled Scripting Language for Rust
#74Earlier quoted context omitted.
Agreed. There are almost certainly more people who know what "BGP" is than know what "Border Gateway Protocol" is. But it still would have been a favor to the original commenter to write "BGP (Border Gateway Protocol)". If you write just "BGP" you annoy the reader who doesn't know what it is; they'll think it's your fault. But if you write "BGP (Border Gateway Protocol)", they still won't know what it is but they won…
Someone linked a document a few weeks ago that address the topic of abbreviations and when the abbreviation is the common form it is acceptable to just use the abbreviation. I don’t think anyone in their right mind would open every article with HTML(Hypertext Markup Language) and CSS( Cascading Style Sheets). For networking it would be the same with BGP/OSPF/RIP.
Re: Roto: A Compiled Scripting Language for Rust
#75> Roto fills this niche for us. In short, it's a statically typed, JIT compiled, hot-reloadable, embedded scripting language. To get good performance, Roto scripts are compiled to machine code at runtime with the cranelift compiler backend. Statically typed, hot reloadable scripting? Sign me up.
I have dreamed of this for Rust. It is literally _the_ killer app to have a fast scripting language that pairs with Rust well. With fast development cycles and a safe scripting language, Rust will find itself in every single programming niche. Server development, game development, desktop application development. If the WASM DOM bridge gets better, maybe even web development. Everything will open up. You can prototyp…
Re: Roto: A Compiled Scripting Language for Rust
#76> Roto fills this niche for us. In short, it's a statically typed, JIT compiled, hot-reloadable, embedded scripting language. To get good performance, Roto scripts are compiled to machine code at runtime with the cranelift compiler backend. Statically typed, hot reloadable scripting? Sign me up.
Then also have a look at Mun: https://github.com/mun-lang/mun - Ahead of time compilation - Statically typed - First class hot-reloading Not sure how both languages compare though
The downside is that it's not really possible to share types between the host application and the script as far as I know. They have something called called `StructRef` which does this a bit, but it's all runtime checks if I understand correctly.
If somebody here knows more about Mun, I'd be happy to be corrected. This is just my understanding from their documentation.
Re: Roto: A Compiled Scripting Language for Rust
#77Earlier quoted context omitted.
Hi! Author here. There's a couple of reasons. First, this language is syntactically a lot like Rust but semantically quite different. It has no references for example. We're trying to keep it simpler than Rust for our users. Second, using Rust would require compiling the script with a Rust compiler, which you'd then have to install alongside the application. Roto can be fully compiled by the host application. I think…
Are you saying Roto has no ambitions to be suitable as a gamedev scripting language?
Re: Roto: A Compiled Scripting Language for Rust
#78Earlier quoted context omitted.
I have dreamed of this for Rust. It is literally _the_ killer app to have a fast scripting language that pairs with Rust well. With fast development cycles and a safe scripting language, Rust will find itself in every single programming niche. Server development, game development, desktop application development. If the WASM DOM bridge gets better, maybe even web development. Everything will open up. You can prototyp…
We keep saying "scripting language," but given that it's statically typed and JIT compiled, we could also call it an "application language." Relative to Rust, most backend applications can afford to trade off a little bit of performance for better development speed and readability.
Re: Roto: A Compiled Scripting Language for Rust
#79Earlier quoted context omitted.
Are you saying Roto has no ambitions to be suitable as a gamedev scripting language?
It depends. I'd love to make a prototype using Bevy with Roto. What I'm trying to say is that if you only want something to make Rust compile faster, then Rust might the better option. If you want something that behaves more like a scripting language and you don't mind that is compiled at startup, then Roto might be good for that purpose (with the caveat that there are missing features of course).
Re: Roto: A Compiled Scripting Language for Rust
#80Earlier quoted context omitted.
I have dreamed of this for Rust. It is literally _the_ killer app to have a fast scripting language that pairs with Rust well. With fast development cycles and a safe scripting language, Rust will find itself in every single programming niche. Server development, game development, desktop application development. If the WASM DOM bridge gets better, maybe even web development. Everything will open up. You can prototyp…
> game development I've been out of the loop for a while, but last I checked, the running gag was that there are more game engines written in rust than games. Have things changed? Any high profile games that were made in rust?