News for hackers. Stuff that matters.
Re:Rocket – A Rust game running on WASM by wofo on Monday December 04, 2017 @08:37AM (#15843646)
Doubles are supported as well through the `f64` type I think. Interestingly, I am passing booleans in my code as well... and it seems to work.
Re:Rocket – A Rust game running on WASM by landonxjames on Monday December 04, 2017 @09:06AM (#15843861)
I wonder if its converting them to 0's and 1's and sending that to the javascript?
Re:Rocket – A Rust game running on WASM by wofo on Wednesday December 06, 2017 @05:12AM (#15859942)
Just checked what is going on and that is indeed the case. Rust booleans compile now to the i32 type (though there is no guarantee that will stay like that in the future).