Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. WebAssembly: Compile to JS

WebAssembly: Compile to JS

Scheduled Pinned Locked Moved The Lounge
javascriptc++pythonrubycom
8 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    raddevus
    wrote on last edited by
    #1

    Because of the announcement that Google was leaving PNaCl and incorporating WebAssembly I decided to read up on it a bit: WebAssembly High-Level Goals - WebAssembly[^] That lead me to this nice slide deck explaining asm.js: Big Web App? Compile It![^] That's a really great slide deck on the topic. The really interesting slide in there says,

    Kripken:

    JavaScript is standards-based and the only language that runs in all web browsers

    Yes, it's obvious but also just seeing it like that is almost shocking to the system. But, as I was going through that he mentions the vast number of libraries that are already written to convert code written in a language (Python, C/C++, Ruby, etc) to JS. There are over 100 or more :sigh: I found this list : List of languages that compile to JS · jashkenas/coffeescript Wiki · GitHub[^] The Point Embrace Javascript, it is your future! :rolleyes: Or, maybe not. Forget JavaScript and embrace WebAssembly. :)

    V L 3 Replies Last reply
    0
    • R raddevus

      Because of the announcement that Google was leaving PNaCl and incorporating WebAssembly I decided to read up on it a bit: WebAssembly High-Level Goals - WebAssembly[^] That lead me to this nice slide deck explaining asm.js: Big Web App? Compile It![^] That's a really great slide deck on the topic. The really interesting slide in there says,

      Kripken:

      JavaScript is standards-based and the only language that runs in all web browsers

      Yes, it's obvious but also just seeing it like that is almost shocking to the system. But, as I was going through that he mentions the vast number of libraries that are already written to convert code written in a language (Python, C/C++, Ruby, etc) to JS. There are over 100 or more :sigh: I found this list : List of languages that compile to JS · jashkenas/coffeescript Wiki · GitHub[^] The Point Embrace Javascript, it is your future! :rolleyes: Or, maybe not. Forget JavaScript and embrace WebAssembly. :)

      V Offline
      V Offline
      Vark111
      wrote on last edited by
      #2

      I think it bears repeating every time someone talks about WebAssembly and asm.js in the same post (because many folks are still hazy on it): they are two entirely different beasts. WebAssembly is a binary (well, bytecode) distribution. asm.js is just a very strict subset of javascript (generally limited to the pieces that perform the best), but it is still javascript and runs through the browser's javascript engine.

      R 1 Reply Last reply
      0
      • V Vark111

        I think it bears repeating every time someone talks about WebAssembly and asm.js in the same post (because many folks are still hazy on it): they are two entirely different beasts. WebAssembly is a binary (well, bytecode) distribution. asm.js is just a very strict subset of javascript (generally limited to the pieces that perform the best), but it is still javascript and runs through the browser's javascript engine.

        R Offline
        R Offline
        raddevus
        wrote on last edited by
        #3

        Good point. I noticed that too. The (asm.js-based) slide deck is just kind of nice because it walks through the overview of how the compile to js thing works. :thumbsup:

        1 Reply Last reply
        0
        • R raddevus

          Because of the announcement that Google was leaving PNaCl and incorporating WebAssembly I decided to read up on it a bit: WebAssembly High-Level Goals - WebAssembly[^] That lead me to this nice slide deck explaining asm.js: Big Web App? Compile It![^] That's a really great slide deck on the topic. The really interesting slide in there says,

          Kripken:

          JavaScript is standards-based and the only language that runs in all web browsers

          Yes, it's obvious but also just seeing it like that is almost shocking to the system. But, as I was going through that he mentions the vast number of libraries that are already written to convert code written in a language (Python, C/C++, Ruby, etc) to JS. There are over 100 or more :sigh: I found this list : List of languages that compile to JS · jashkenas/coffeescript Wiki · GitHub[^] The Point Embrace Javascript, it is your future! :rolleyes: Or, maybe not. Forget JavaScript and embrace WebAssembly. :)

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          raddevus wrote:

          The Point Embrace Javascript, it is your future! :rolleyes: Or, maybe not. Forget JavaScript and embrace WebAssembly. :)

          Njet, tovarishch.

          The language is JavaScript. that of Mordor, which I will not utter here
          This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a fucking golf cart.
          "I don't know, extraterrestrial?" "You mean like from space?" "No, from Canada." If software development were a circus, we would all be the clowns.

          R 1 Reply Last reply
          0
          • R raddevus

            Because of the announcement that Google was leaving PNaCl and incorporating WebAssembly I decided to read up on it a bit: WebAssembly High-Level Goals - WebAssembly[^] That lead me to this nice slide deck explaining asm.js: Big Web App? Compile It![^] That's a really great slide deck on the topic. The really interesting slide in there says,

            Kripken:

            JavaScript is standards-based and the only language that runs in all web browsers

            Yes, it's obvious but also just seeing it like that is almost shocking to the system. But, as I was going through that he mentions the vast number of libraries that are already written to convert code written in a language (Python, C/C++, Ruby, etc) to JS. There are over 100 or more :sigh: I found this list : List of languages that compile to JS · jashkenas/coffeescript Wiki · GitHub[^] The Point Embrace Javascript, it is your future! :rolleyes: Or, maybe not. Forget JavaScript and embrace WebAssembly. :)

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            raddevus wrote:

            But, as I was going through that he mentions the vast number of libraries that are already written to convert code written in a language (Python, C/C++, Ruby, etc) to JS. There are over 100 or more :sigh: The Point Embrace Javascript, it is your future!

            Why embrace JS if I can keep using another language and hide the ugliness behind the converter? Today I write in languages of my choice and absolutely don't care at all what assembly, meta or JS it compiles down to, haven't felt the need to embrace nor even glance at compiler output for 40 years now regardless what it is. The Actual Point As long as it works just keep on using whatever floats your boat.

            Sin tack the any key okay

            R L 2 Replies Last reply
            0
            • L Lost User

              raddevus wrote:

              But, as I was going through that he mentions the vast number of libraries that are already written to convert code written in a language (Python, C/C++, Ruby, etc) to JS. There are over 100 or more :sigh: The Point Embrace Javascript, it is your future!

              Why embrace JS if I can keep using another language and hide the ugliness behind the converter? Today I write in languages of my choice and absolutely don't care at all what assembly, meta or JS it compiles down to, haven't felt the need to embrace nor even glance at compiler output for 40 years now regardless what it is. The Actual Point As long as it works just keep on using whatever floats your boat.

              Sin tack the any key okay

              R Offline
              R Offline
              raddevus
              wrote on last edited by
              #6

              Yeah, you're right really. Some people still know assembly though, even though we _all_ use high level languages. :) People who understand JavaScript will be the geniuses of the future. :-D

              1 Reply Last reply
              0
              • L Lost User

                raddevus wrote:

                But, as I was going through that he mentions the vast number of libraries that are already written to convert code written in a language (Python, C/C++, Ruby, etc) to JS. There are over 100 or more :sigh: The Point Embrace Javascript, it is your future!

                Why embrace JS if I can keep using another language and hide the ugliness behind the converter? Today I write in languages of my choice and absolutely don't care at all what assembly, meta or JS it compiles down to, haven't felt the need to embrace nor even glance at compiler output for 40 years now regardless what it is. The Actual Point As long as it works just keep on using whatever floats your boat.

                Sin tack the any key okay

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #7

                Lopatir wrote:

                Why embrace JS if I can keep using another language and hide the ugliness behind the converter?

                Some of the ugliness does not go away this way.

                The language is JavaScript. that of Mordor, which I will not utter here
                This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a fucking golf cart.
                "I don't know, extraterrestrial?" "You mean like from space?" "No, from Canada." If software development were a circus, we would all be the clowns.

                1 Reply Last reply
                0
                • L Lost User

                  raddevus wrote:

                  The Point Embrace Javascript, it is your future! :rolleyes: Or, maybe not. Forget JavaScript and embrace WebAssembly. :)

                  Njet, tovarishch.

                  The language is JavaScript. that of Mordor, which I will not utter here
                  This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a fucking golf cart.
                  "I don't know, extraterrestrial?" "You mean like from space?" "No, from Canada." If software development were a circus, we would all be the clowns.

                  R Offline
                  R Offline
                  raddevus
                  wrote on last edited by
                  #8

                  Agreed. :)

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups