An unofficial, read-only Hacker News reader. Join the beta →

2035 came early (opens external site)

1035 points by setheron 4 days ago | fzakaria.com | 382 comments on HN

View full thread · View on Hacker News

Comment thread (4)

  1. While it's neat that we have tools to port stuff from one Turing complete runtime to another, the whole "JavaScript" element of the linked page is tenuous. WASM is a virtual machine made to run in web browsers. We had an asm.js that was the precursor to more easily transpile other languages -- transpiling between Turing complete languages has been a thing forever -- but extrapolating that to mean anything running in WASM is "written in JavaScript" is silliness.

    It's a legitimately funny basis for a piece, but it's intellectually misleading.

    And of course none of this is remotely new. We've had emscripten to compile LLVM intermediate code to WASM, or JavaScript for that matter, for about a decade and half.

    Replies (1)
    1. > extrapolating that to mean anything running in WASM is "written in JavaScript" is silliness

      Nobody ever claimed that? The whole Birth & Death of JavaScript talk is explicitly about transpiling code from other languages.

      At the time the transpilation target was (the limited asm.js subset of) Javascript, since WASM didn't exist yet, but the overall "transpile everything to run in the browser" still holds.

      Replies (1)
      1. >Nobody ever claimed that?

        Written in meaning shipped in. JavaScript is irrelevant to WASM. They are not interchangeable. It has literally zero relevance to the projects it uses to demonstrate its point.

        Like, just a few quotes from the article (some of which are quotes to support the argument)-

        "JavaScript will come to dominate all software."

        "inevitability of JavaScript’s dominance"

        "how JavaScript came to be the defacto language for all software"

        With an old video about someone saying that eventually we'll compile everything to JavaScript by 2035, ergo 2035 came early. Then trying to twist that such that...well...a browser hosts something, and it also hosts JavaScript, therefore prediction came early!

        I, uh...guess.

        Replies (1)
        1. > With an old video about someone saying that eventually we'll compile everything to JavaScript

          The "old video" is very specifically talking about asm.js, the direct precursor of WASM.

          WASM was built because asm.js proved that transpiling native software to the browser was a viable model, and by many of the same people behind asm.js