Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
binji
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
31.
▲
by
binji
10y ago
This is an interesting article, and mirrors my experience of porting. I really loved seeing the advice from various other developers he consulted. It's a nice way to expand it from being just his experience to a more general statement
32.
▲
by
binji
10y ago
As sunfish mentions below, this spec document is being conservative in describing things that are still being discussed. There are experimental implementations in Firefox, Chrome and Edge. See https://webassembly.github.io/d
33.
▲
by
binji
10y ago
I've made some progress on this, but there's still a way to go: https://github.com/WebAssembly/sexpr-wasm-prototype/commit/8...
34.
▲
by
binji
10y ago
Right, but it's worth mentioning that no part of WebAssembly is ready for general usage, as it is not yet released. :) Just like other components of the technology preview, I think it would be useful to have interested developers try i
35.
▲
by
binji
10y ago
We've been calling them modules, but I'm not certain that's what we'll end up with. Also, there's a reason the description is a bit fuzzy on the WebAssembly landing page. It's not just a binary format (in fact,
36.
▲
by
binji
10y ago
See my comment above, ultimately you should be able to generate WebAssembly directly from your C compiler (and other languages too). You can write it by hand as well, but that's not the primary goal of the specification. We should have
37.
▲
by
binji
10y ago
Ultimately you should be able to use your C compiler and generate wasm files directly, rather than go through asm.js. There is an experimental backend of LLVM that you can try, but it will require building LLVM from source currently. Emscri
38.
▲
by
binji
11y ago
There's a response above this one from titzer describing it, or you can read more here: https://github.com/WebAssembly/design/blob/master/DynamicLin...
39.
▲
by
binji
11y ago
ARC ( https://developer.chrome.com/apps/getstarted_arc )
40.
▲
Folding@chrome – folding with just your browser
(folding.stanford.edu)
8 points
by
binji
12y ago
|
0 comments
41.
▲
by
binji
13y ago
I ported this to Lua as a PNaCl demo: https://gonativeclient.appspot.com/demo/lua Click the "Donut" button, and press enter.
42.
▲
by
binji
13y ago
You can run a port of SmoothLife in Chrome (via PNaCl) here: http://gonativeclient.appspot.com/demo/smoothlife
43.
▲
by
binji
13y ago
Ah, thanks for that! I was wondering if repl.it was out of date. Might be worthwhile to get the owner to update... :)
44.
▲
by
binji
13y ago
We were seeing some significant slowdowns when running lua in emscripten (testing on repl.it) vs. PNaCl. Take this naive fibonacci function: function fib(n) return n<2 and n or fib(n-1)+fib(n-2) end print(fib(30)) On my machine, it compl
45.
▲
by
binji
13y ago
They can all be done in JS (modified to remove threading, of course). In fact, many of them already run in emscripten/pepper.js (see http://trypepperjs.appspot.com ).