Live data from Hacker News

Compiling to WebAssembly: It’s Happening

hacks.mozilla.org

1–10 of 225 posts

Re: Compiling to WebAssembly: It’s Happening

#3
Web assembly always makes me a little sad. It feels like we are going back to flash only it won't be bad this time, I promise, no really.

I always feel like the most obvious use for it is to start writing truly hateful and abusive code.

I'm sure this is because I'm getting old.

Re: Compiling to WebAssembly: It’s Happening

#5
Does anybody know if there are plans for an API for garbage collection? The WASM spec as it currently exists seems to be only useful for non-GC languages, and it would be a shame if we ended up shipping a new GC implementation for every page that we load. Perhaps something that would allow compilers to tap into the native JS GC?

Re: Compiling to WebAssembly: It’s Happening

#6
post #3

Web assembly always makes me a little sad. It feels like we are going back to flash only it won't be bad this time, I promise, no really. I always feel like the most obvious use for it is to start writing truly hateful and abusive code. I'm sure this is because I'm getting old.

The important use case is to allow people to write web applications with their language of choice, instead of horrible javascript. And get near full performance.

Re: Compiling to WebAssembly: It’s Happening

#7
post #3

Web assembly always makes me a little sad. It feels like we are going back to flash only it won't be bad this time, I promise, no really. I always feel like the most obvious use for it is to start writing truly hateful and abusive code. I'm sure this is because I'm getting old.

Web assembly doesn't add new APIs or capabilities to the web platform. It only makes code run faster and makes porting C++ code easier. What about that is hateful or abusive?

Re: Compiling to WebAssembly: It’s Happening

#8
Is there (or are there any plans to add) a WebAssembly -> asm.js compiler, so that I can write some code by hand in WebAssembly and still get it to run fast in old browsers? Or are there features of WebAssembly that would be impossible to add in asm.js?

The reason I ask is that asm.js is really painful and cumbersome to write by hand and wasm seems substantially nicer, but I only have small bits of numerical hot loops which I want to use wasm/asm.js for, and I have no desire to bring a bunch of code written in C into my little project.

Re: Compiling to WebAssembly: It’s Happening

#9
post #3

Web assembly always makes me a little sad. It feels like we are going back to flash only it won't be bad this time, I promise, no really. I always feel like the most obvious use for it is to start writing truly hateful and abusive code. I'm sure this is because I'm getting old.

Do you like any other visions for the future of the web? Brendan Eich's startup hasn't shared much about their plans, http://www.cnet.com/news/mystery-startup-from-ex-mozilla-ceo...

Re: Compiling to WebAssembly: It’s Happening

#10

Is there (or are there any plans to add) a WebAssembly -> asm.js compiler, so that I can write some code by hand in WebAssembly and still get it to run fast in old browsers? Or are there features of WebAssembly that would be impossible to add in asm.js? The reason I ask is that asm.js is really painful and cumbersome to write by hand and wasm seems substantially nicer, but I only have small bits of numerical hot loop…

Yes there is. That's the wasm2asm project Alon mentioned in the post.
Post reply on HN