back
user profile
wofo
2,393karma·363submissions·December 17, 2013
about
Contact me at: [my username] [at] adolfo [dot] ochagavia [dot] nl (or check out ochagavia.nl)
recent activity (363 total)
comment
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).
comment
Note that I am using the allocator in Rocket, so I would estimate the size to be something around 40kB
comment
I didn't expect people to comment on the game itself... It is indeed quite simple at the moment. Maybe your opportunity to get your feet wet with Rust by improving the game logic?
comment
Awesome! Happy to see the WASM backend is getting more and more attention
comment
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.
comment
Never heard of DataView before, thanks! This is the first time I do something "low level" in Javascript, so there is probably a lot that could be improved. BTW, here is an example passing ar…
comment
It was surprisingly easy after I figure out some basic WASM stuff!
comment
Since WASM in its current state is meant as a compilation target for C, it is usually possible to do things "the C way". For instance, you can allocate a buffer on the Javascript side and pa…
comment
I haven't measured anything :P Regarding your suggestion, I cannot pass an object to Javascript, because from the perspective of the browser I am writing C. An alternative would be to have each f…
comment
Interestingly, this works on desktop but not on mobile
comment
Considering dereferencing a pointer after doing some arithmetic on it can only be done within unsafe blocks, I would say you are at least warned about it. But it will happily compile.
comment
I learned Dutch using a similar approach ( https://www.amazon.com/Delftse-Methode-Nederlands-voor-buite... )…
comment
That was exactly what I thought as well... I was wondering how it could be performant
comment
Thanks! I was still using RustyCode...
comment
Thanks! I am going to give Firefox another try :)
comment
Maybe they were referring to a distributed monolith?
comment
Awesome! Thanks for your reply!
comment
Thanks for the course! I have a question unrelated to the contents: Why did you choose to release it for free? I guess you spent a lot of time preparing it, so I assume there must be some kind of (non…
comment
It is refreshing to see the scientific community stand against Elsevier. Great news!
comment
Note that the discussion on the golang subreddit [1] has a very different tone. One comment that particularly drew my attention is: > So people that rarely use this subreddit want to get rid of it?…