News for hackers. Stuff that matters.
Re:Why WebAssembly Is Faster Than Asm.js by darpa_escapee on Wednesday March 15, 2017 @10:22PM (#13881870)
My friend, where have you been for the last 5 years?

Web developers have been reinventing the wheel every 3-6 months and calling it innovation.

Re:Why WebAssembly Is Faster Than Asm.js by Rusky on Wednesday March 15, 2017 @10:58PM (#13882096)
A fair criticism of a lot of web tech, but not of WebAssembly, which is doing many things JVM/CLR/Flash/etc. never did.
Re:Why WebAssembly Is Faster Than Asm.js by throwawaysbdi on Thursday March 16, 2017 @12:43AM (#13882565)
And what are those exactly? JVM and CLR bytecode is totally platform agnostic and both support many languages without trouble.

Apparently they aren't cool anymore so we need to spend another few thousand man years building another system in their image

Re:Why WebAssembly Is Faster Than Asm.js by rubber_duck on Thursday March 16, 2017 @05:40AM (#13883705)
You seriously don't see the difference between WASM and CLR/JVM ? JVM/CLR are high level and need to know about things like types/object model - this lets them do GC more efficiently and fancy stuff like reflection, etc. at

WASM is assembly level just sandboxed and portable - direct memory access and basic instructions - it doesn't even have GC right now.

They are only superficially similar.

Re:Why WebAssembly Is Faster Than Asm.js by gcr on Wednesday March 22, 2017 @07:20PM (#13936001)
So here's a thought: how is this different from PNaCL and friends?
Re:Why WebAssembly Is Faster Than Asm.js by rubber_duck on Saturday March 25, 2017 @09:26AM (#13955499)
Conceptually not very different, practically PNaCL has a problem of being an ad-hoc standard based on LLVM - WASM fixes that.
Re:Why WebAssembly Is Faster Than Asm.js by dragonwriter on Wednesday March 22, 2017 @07:34PM (#13936099)
PNaCl, IIRC, doesn't expose web APIs, but requires message-passing to and from associated JS for that.
Re:Why WebAssembly Is Faster Than Asm.js by dragonwriter on Wednesday March 22, 2017 @07:30PM (#13936063)
> And what are those exactly?

Providing a lower-level platform; directly exposing open web APIs. The first may not seem like an advantage, but it means more flexibility in the higher level systems (including runtimes like JVM or CLR, if you wanted to) that can be usefully run on top of it.

Re:Why WebAssembly Is Faster Than Asm.js by Rusky on Thursday March 16, 2017 @12:48AM (#13882595)
But they don't support the primary reason for asm.js and thus wasm- C and C++.

They also, as you note in another comment, do not have the appropriate security model for web apps.

Re:Why WebAssembly Is Faster Than Asm.js by pjmlp on Thursday March 16, 2017 @05:30AM (#13883663)
I guess you never did any .NET development.

.NET 1.x introduced Managed C++.

.NET 2.0 replaced Managed C++ with C++/CLI due to feedback from C++ devs, regarding keywords and how GC types were declared. C++/CLI was submitted to ANSI C++ as standard proposal.

UWP introduced C++/CX, although it does compile to native code and interoperates with .NET Native instead.

Or Flash for that matter, which had a C++ compiler called FlasCC.

Re:Why WebAssembly Is Faster Than Asm.js by Rusky on Thursday March 16, 2017 @10:39AM (#13885353)
I am well aware of managed C++ and C++/CLI. They are not the same language as native C++, in the sense that matters for WebAssembly's target audience.

C++/CX is closer, but a) also still not the same language and b) doesn't run on the CLR, so isn't an argument for replacing wasm with IL.

Re:Why WebAssembly Is Faster Than Asm.js by wruza on Wednesday March 15, 2017 @11:13PM (#13882167)
5 years? All years, actually.
Re:Why WebAssembly Is Faster Than Asm.js by pizza on Wednesday March 15, 2017 @11:05PM (#13882132)
smaller ideas faster, zestierly
Re:Why WebAssembly Is Faster Than Asm.js by username223 on Wednesday March 15, 2017 @11:15PM (#13882183)
Amazingly, "zestier.ly" has not yet been registered.
Re:Why WebAssembly Is Faster Than Asm.js by scrame on Thursday March 16, 2017 @12:24AM (#13882480)
oooh, it's like agile, but lightweight.
Re:Why WebAssembly Is Faster Than Asm.js by throwawaysbdi on Thursday March 16, 2017 @12:50AM (#13882608)
"micro" if you will
Re:Why WebAssembly Is Faster Than Asm.js by paulddraper on Wednesday March 15, 2017 @11:24PM (#13882229)
Seems like a waste of time.

Maybe if we had a JS framework for reinventing the wheel...

Re:Why WebAssembly Is Faster Than Asm.js by Retra on Wednesday March 15, 2017 @11:38PM (#13882288)
You mean Wheel.js? It's crap. RollCircle is 1000x better, and it's got a flexable plugin layer that works with Angular, Ember, or Asm.js.
Re:Why WebAssembly Is Faster Than Asm.js by ethbro on Thursday March 16, 2017 @12:04AM (#13882401)
RollCircle is too complicated. I already learned Wheel.js two years ago, and don't want to relearn the wheel.
Re:Why WebAssembly Is Faster Than Asm.js by throwawaysbdi on Thursday March 16, 2017 @12:49AM (#13882600)
I prefer ReWheel. It's like RollCircle but they've reduced everything to a single wheel so it's easier to reason about. Some people still think you shouldn't have a single global wheel but it's definitely where things are headed.

Anyways you should take a look, it's a lot easier to pick up than RollCircle and nobody really uses Wheel.js anymore

Re:Why WebAssembly Is Faster Than Asm.js by jnordwick on Thursday March 16, 2017 @01:09AM (#13882693)
Modern developers want more variety. I've been working on something new:

npm elipse.js

It's based on circle, but I'm still working out some issues.

Re:Why WebAssembly Is Faster Than Asm.js by throwawaysbdi on Thursday March 16, 2017 @01:17AM (#13882723)
I tried to install but I'm getting an error message: "undefined" is "undefined" on line 27361 in elipse.min.js . I'll send you the stacktrace because it's bigger than the message limit here. I see that you're transpiling typescript into ES2015 then down to ES5 in Babel, cool. Could I get a source map for the original file?