An unofficial, read-only Hacker News reader.

2035 came early (opens external site)

1038 points by setheron 5 days ago | fzakaria.com | 382 comments on HN

View full thread · View on Hacker News

Comment thread (6)

  1. I don't think anyone draws a particular distinction between asm.js (the "javascript" of the presentation) and WASM.

    WASM is an optimisation of something that, while technically javascript, was already unreadable compressed bytecode...

    Replies (3)
    1. Same OS thread, same event loop and it shares its memory, but a completely different runtime. I really love JS but OP has a point.

      So philosophically yes, its the same thing, but that talk has so much emphasis on something so quirky being the universal runtime. WASM isn't JS-level quirky.

      Replies (1)
      1. > WASM isn't JS-level quirky

        I mean, WASM-in-JS kind of still is that quirky. Since we constantly have failed to expose a native WASM browser API, all of our WASM is glued together with weird generated javascript hacks...

    2. If they don't, they should. asm.js was a subset of JS that other languages could be compiled to and was optimized so it would run faster. Ok, it was minified and unreadable, but still JS. WASM is real bytecode, no JS involved anymore.
    3. huge difference - you can port existing executable programs to it. and they will work. WASM is Java Applets 2.0 but with near native performance and better security design
      Replies (1)
      1. We ported plenty of existing executable programs to asm.js before WASM was even conceived of - the whole emscripten project was built around this. WASM was designed from the start to be a drop-in replacement for asm.js