John-John Tedro

Results 376 comments of John-John Tedro

No, not yet! But it's pretty easy to write a module which does anything you want, including getting environment variables. See one of these for inspiration: https://github.com/rune-rs/rune/tree/main/crates/rune-modules/src

FTR, this is what I'm currently working on.

Hm. It should be possible if we have debug info available in the unit (https://docs.rs/runestick/0.9.1/runestick/struct.Unit.html#method.debug_info) which requires the `debug-info` option to be enabled during compilation (https://docs.rs/rune/0.9.1/rune/struct.Options.html#method.debug_info). [`EmitDiagnostics`](https://docs.rs/rune/0.9.1/rune/trait.EmitDiagnostics.html) could be modified...

Not sure how to triage this yet: `foo(10)` calls `foo` with an integer argument [`Value::Integer`](https://docs.rs/rune/latest/rune/enum.Value.html#variant.Integer), but an `u8` by default is coerced from a [`Value::Byte`](https://docs.rs/rune/latest/rune/enum.Value.html#variant.Byte). There's three options: 1. The...

Yes, suffixes definitely should be supported! This goes in line with supporting byte literals.

> FYI, this is one of the main things I dislike in Rust's syntax because of the typing overhead and the fact that pretty much any tokens are valid in...

> Is there a way to define them to make them recognized? Not at the moment. There's currently no hook to perform custom processing but all of it has to...

Since 216daa3125838204531c9c95c2af8308ab2677df `Unit` now implements `Serialize` and `Deserialize`. And there's a prototype implementation in rune_cli which [uses bincode to cache the compilation unit](https://github.com/rune-rs/rune/blob/master/crates/rune-cli/src/main.rs#L195).

Since this was raised again in #430, I am open to design ideas around how to natively and efficiently support more forms of numerical types. It is a hard problem...

So in principle there appears to be very little that prevents you from doing the same kind of hot reloading as was showcased in [the Pong demo](https://www.youtube.com/watch?v=n1ea4QUepSU): * Rune scripts...