Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
wofo
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
22 ms
·
301.
▲
by
wofo
9y ago
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?
302.
▲
by
wofo
9y ago
Awesome! Happy to see the WASM backend is getting more and more attention
303.
▲
by
wofo
9y ago
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.
304.
▲
by
wofo
9y ago
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 arrays between Javascript and Rust: https
305.
▲
by
wofo
9y ago
It was surprisingly easy after I figure out some basic WASM stuff!
306.
▲
by
wofo
9y ago
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 pass a pointer to the Rust side, which the
307.
▲
by
wofo
9y ago
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 function take a pointer to the object, bu
308.
▲
Rocket – A Rust game running on WASM
(aochagavia.github.io)
329 points
by
wofo
9y ago
|
55 comments
309.
▲
Rocket – A Rust game running on WASM
(aochagavia.github.io)
7 points
by
wofo
9y ago
|
1 comments
310.
▲
Show HN: Singularity AI
1 points
by
wofo
9y ago
|
0 comments
311.
▲
Ask HN: Ethical advertising platform?
4 points
by
wofo
9y ago
|
4 comments
312.
▲
by
wofo
9y ago
Interestingly, this works on desktop but not on mobile
313.
▲
by
wofo
9y ago
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.
314.
▲
by
wofo
9y ago
I learned Dutch using a similar approach ( https://www.amazon.com/Delftse-Methode-Nederlands-voor-buite... )
315.
▲
by
wofo
10y ago
That was exactly what I thought as well... I was wondering how it could be performant
316.
▲
by
wofo
10y ago
Thanks! I was still using RustyCode...
317.
▲
by
wofo
10y ago
Thanks! I am going to give Firefox another try :)
318.
▲
by
wofo
10y ago
Maybe they were referring to a distributed monolith?
319.
▲
Servo Architecture: Safety and Performance [video]
(youtube.com)
4 points
by
wofo
10y ago
|
0 comments
320.
▲
by
wofo
10y ago
Awesome! Thanks for your reply!
321.
▲
by
wofo
10y ago
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-monetary?) benefit you expect to get fr
322.
▲
by
wofo
10y ago
It is refreshing to see the scientific community stand against Elsevier. Great news!
323.
▲
by
wofo
10y ago
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? Okay. It seems like the Google Groups p
324.
▲
Unlocking the Power of Parallelism with Rust [video]
(youtube.com)
4 points
by
wofo
10y ago
|
0 comments
325.
▲
by
wofo
10y ago
This is awesome! You automatically get sign in with Google and (in the future) other providers!
326.
▲
by
wofo
10y ago
You should probably check Lenny out: https://www.reddit.com/r/itslenny/
327.
▲
by
wofo
10y ago
Note that it is possible to enable overflow checking in release builds as well.
328.
▲
by
wofo
10y ago
> It's actually quite difficult to parse C++ This is a specific problem of C++ though, given the fact that its grammar is extremely complex.
329.
▲
by
wofo
10y ago
Thanks for the writeup! I had a hard time figuring out how to compile C++ to WebAssembly a couple of weeks ago and finally gave up given the lack of maturity of the implementation. I am sure this will help more people get interested in WebA
330.
▲
Ask HN: How do you cope with routine in your daily programming job?
7 points
by
wofo
10y ago
|
3 comments
More ›