WebAssembly: Compile to JS
-
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. :)
-
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. :)
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.
-
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.
-
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. :)
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. -
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. :)
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
-
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
-
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
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. -
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.