Earlier quoted context omitted.
Sure it's been done before. The point is that WASM is a good, efficient, sandboxed, modern example of it that's usable now with a large software ecosystem around it.
What does modern mean in this context? I see this word being used a as a positive adjective a lot recently to describe rewrites etc but it is unclear to me what it actually implies
WASM as a Platform for Abstraction
71–80 of 85 posts
Re: WASM as a Platform for Abstraction
#72Strange. Something like node.js for running server side WASM programs, maybe. But hard real time? That's a strange application for this. Why add the additional layer?
Where does it say hard real time?
Re: WASM as a Platform for Abstraction
#73Earlier quoted context omitted.
Open source LLVM IR is machine specific, it doesn't have to be, as proven by watchOS bitcode, or PNaCL.
Both of the examples you gave were very carefully architected to make sure that was the case.
Re: WASM as a Platform for Abstraction
#74Earlier quoted context omitted.
Because Mozilla went political and came up with asm.js as counter technology.
Or as some other (like, eg Google itself) would say: > Because Mozilla went political and came up with asm.js as better technology.
WASM is still catching up to PNaCL in performance, hardly better.
Re: WASM as a Platform for Abstraction
#75WASM advocates keep rediscovering the benefits from bytecodes as portable execution format, while presenting them as something great made possible only by WASM. Reading a bit of mainframe history would do some good it seems.
Yeah but WASM is an open standard that big names in the industry agreed on, including Foss advocates, with a design to accomodate many popular languages and the most popular plateform in the world: the web. So it has actually a chance to not be limited to one ecosystem or one company. In fact, the simple idea that it's going to have a monopoly in the browser pretty much guaranties a broad attempt of adoption. JVM and…
And some of them, also with multiple vendor offerings.
Chrome already has preview features available, that other browsers might adopt, or not.
Re: WASM as a Platform for Abstraction
#76Earlier quoted context omitted.
Sure it's been done before. The point is that WASM is a good, efficient, sandboxed, modern example of it that's usable now with a large software ecosystem around it.
What does modern mean in this context? I see this word being used a as a positive adjective a lot recently to describe rewrites etc but it is unclear to me what it actually implies
Re: WASM as a Platform for Abstraction
#77WASM advocates keep rediscovering the benefits from bytecodes as portable execution format, while presenting them as something great made possible only by WASM. Reading a bit of mainframe history would do some good it seems.
So what? A lot of people are also complaining that it resembles the JVM. Do you think that historical mainframe bytecodes would have been a good match for web applications? I don't know, I know nothing about mainframes. I do not understand if your criticism is that they are making mistakes that have already been solved half a century ago (which is a good criticism, if true) or that they are not giving proper recognit…
Chrome PNaCL SDK came with C, C++ and OCaml support, with an open source version available, which Mozilla refused to use and came up with asm.js instead.
Re: WASM as a Platform for Abstraction
#78Earlier quoted context omitted.
No, LLVM IR is machine specific. Any "native" language is since the ABI of a struct will depend e.g. on the size of pointers for that platform. E.g. Consider in C int foo[sizeof(void*)];
Open source LLVM IR is machine specific, it doesn't have to be, as proven by watchOS bitcode, or PNaCL.
Both of those have fixed 32-bit pointer sizes and are little-endian. When you compile for watchOS bitcode or PNaCL you just target a single virtual machine & "system" ABI. LLVM IR or any related techniques won't ever allow you to produce a 32 / 64 bit or ARM / x86 app that is able to leverage the whole feature set of the platform from the same bitcode.
Re: WASM as a Platform for Abstraction
#79Earlier quoted context omitted.
There's nothing wrong with LLVM itself, my point is we could've picked a lower level model which don't need a complicated setup like LLVM. Or one that you can direct shipped optimized compiled result of LLVM, that will be a much better world
I believe that you are looking at wasm with a different priorities than intended. The two fundamental properties are that it must be fully portable and fully secure by default (as in any insecurity needs to be explicitly and statically declared in the bytecode). Performance comes only after those two. LLVM as far as I know, has a completely different order of priorities.
Re: WASM as a Platform for Abstraction
#80Earlier quoted context omitted.
There's nothing wrong with LLVM itself, my point is we could've picked a lower level model which don't need a complicated setup like LLVM. Or one that you can direct shipped optimized compiled result of LLVM, that will be a much better world
Doesn't ARM code emulated on x86 (and vice versa) perform even worse than WebAssembly? Isn't that essentially what you would get with a lower-level "optimized compiled result of LLVM"?