by lottamus on 12/6/19, 3:12 PM with 338 comments
by 6gvONxR4sf7o on 12/6/19, 4:12 PM
That could mean we lose hackability and the ability to write extensions or even scrape the web without a BigCo webcrawler's level of infra investment. Is everything going to turn into an opaque single page app? Technically, webassembly is really cool, but I worry about where the browser is headed.
by nojvek on 12/6/19, 8:31 PM
Fast, safe, and portable semantics:
* Fast: executes with near native code performance, taking advantage of capabilities common to all contemporary hardware.
* Safe: code is validated and executes in a memory-safe [2], sandboxed environment preventing data corruption or security breaches.
* Well-defined: fully and precisely defines valid programs and their behavior in a way that is easy to reason about informally and formally.
* Hardware-independent: can be compiled on all modern architectures, desktop or mobile devices and embedded systems alike.
* Language-independent: does not privilege any particular language, programming model, or object model.
* Platform-independent: can be embedded in browsers, run as a stand-alone VM, or integrated in other environments.
* Open: programs can interoperate with their environment in a simple and universal manner.
Efficient and portable representation:
* Compact: has a binary format that is fast to transmit by being smaller than typical text or native code formats.
* Modular: programs can be split up in smaller parts that can be transmitted, cached, and consumed separately.
* Efficient: can be decoded, validated, and compiled in a fast single pass, equally with either just-in-time (JIT) or ahead-of-time (AOT) compilation.
* Streamable: allows decoding, validation, and compilation to begin as soon as possible, before all data has been seen.
* Parallelizable: allows decoding, validation, and compilation to be split into many independent parallel tasks.
* Portable: makes no architectural assumptions that are not broadly supported across modern hardware.
If webassembly is truly able to meet this goals, together with good debugging and tools, it will become the the universal way to represent computation across devices and platforms.
Really cool.
by duxup on 12/6/19, 3:45 PM
I've read articles here and there seen some in person demos, and honestly struggle to understand what it is / how it would / works relative to the current state of JavaScript frameworks.
Often I'm approaching it from a JavaScript framework (React/Vue/Angular) approach as I'm a bit of a noob to the industry and that's generally my day job working on web applications.... and while I read about WebAssembly I wonder about state management and someone tells me "oh you still need to something to do that" and I'm a bit lost on ... how that would work / why I would or wouldn't use one of those frameworks anyway, etc. So many examples I've seen are one off simplified (and for good reason I like those for demos) widgets but ... I'm not sure I've seen them as an application / understand how that would work.
Obviously I'm missing a lot here and feel like on HN I'm often talking to folks who aren't so much front end web devs who are excited about the efficiencies and such but ... not sure how this plays out in a practical sense / relative to the state of web applications as they are now.
by dmvinson on 12/6/19, 3:40 PM
by Unit-336 on 12/6/19, 3:51 PM
by magsnus on 12/6/19, 3:57 PM
by smattiso on 12/6/19, 5:31 PM
Technical question: 1.) What is the speed of WebAssembly on iOS WebKit and Android WebView? 2.) Is it feasible to write an entire app UI in something like Qt and target WebAssembly? 3.) Android, iOS, Windows versions of the app are Qt apps natively or possibly through the device's WebKit.
Is this possible today? Is there a better UI library than Qt for this?
by arghwhat on 12/6/19, 5:32 PM
by Crontab on 12/6/19, 4:43 PM
by cylon13 on 12/6/19, 4:32 PM
by dmitriid on 12/6/19, 3:51 PM
The "arrival" of WebAsm to w3c only means that w3c had finally woken up from eternal slumber and realized that everyone has already implemented The listed features.
by bogwog on 12/6/19, 3:47 PM
by chx on 12/6/19, 5:16 PM
by postit on 12/6/19, 4:17 PM
by utf985 on 12/6/19, 4:33 PM
by mrandish on 12/6/19, 5:58 PM
For example, if Adobe delivers its new mobile Photoshop directly via iPad Safari will Apple have a way of 'nerfing' WebAssembly to stop them?
by markstos on 12/6/19, 3:37 PM
Companies will ask their developers to deliver WASM resources in the name of performance. As a notable side-effect, it will become harder to review how websites work.
Yes, I'm sure there will be reverse-compilation tools for WASM, but still.
by cryptozeus on 12/6/19, 4:08 PM
by apatheticonion on 12/7/19, 2:30 AM
Please
by tmountain on 12/6/19, 3:30 PM
by shiado on 12/6/19, 4:43 PM
by dm33tri on 12/6/19, 4:42 PM
by dm33tri on 12/6/19, 3:30 PM
I bet in few years we will run wasm natively on processor.
by dang on 12/6/19, 5:47 PM
by batterystd on 12/6/19, 5:10 PM