Live data from Hacker News

W3C recommends WebAssembly

w3.org

41–50 of 350 posts

Re: W3C recommends WebAssembly

#41
post #2

Write once, run everywhere. I bet in few years we will run wasm natively on processor.

This was also attempted for Java bytecode but didn't really pan out. I think the benefit just wasn't there compared to JIT compiling for a regular processor.

The processes would have to translate the wasm into some form of register-based operations anyway, and a JIT compiler might be able to do this more efficiently since it can see a bigger picture than the processor.

Re: W3C recommends WebAssembly

#42
post #19

Does anyone have any good intro resources for WebAssembly for noobs? 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…

WebAssembly and the Future of the Web (2018) https://www.youtube.com/watch?v=JWCr9vcpl3w

WebAssembly In Action (2017) https://www.youtube.com/watch?v=DKHuEkmsx3M

Re: W3C recommends WebAssembly

#43
post #23

Hopefully this also means that Javascript is going away for good

I think people starting to pump giant binaries to the browser will lead to JavaScript leveraging its strengths and getting even better.

Re: W3C recommends WebAssembly

#45
post #19

Does anyone have any good intro resources for WebAssembly for noobs? 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…

This was my first Hello World type intro to it.

https://codelabs.developers.google.com/codelabs/web-assembly...

So far, most of the good demos of it seem to be for gaming. But I think once b2b type companies figure out what it's capable of, a lot will change.

Re: W3C recommends WebAssembly

#46
post #18

This feels like another step away from the free and open web many people are clamoring for. Distributing opaque binaries with websites instead of Javascript is a step past even the obfuscated minified javascript files meant to be confusing. At least those can still be debugged, stepped through, and explored freely by the end user if they want to learn or reverse engineer. Is there any tool or standard being worked on…

Doesn’t that reasoning also imply that GNU and Linux are awfully opaque and not free nor open, since they are typically distributed as binaries?

I think it's quite different, because it used to enforce (past tense) availability of the source code, which was quite neat from the consumer perspective. Linux distros had a very different dynamic, so that enforcement was effectively unnecessary.

It stopped working as enforcement ages ago, though, so ️.

Re: W3C recommends WebAssembly

#47
post #34

This feels like another step away from the free and open web many people are clamoring for. Distributing opaque binaries with websites instead of Javascript is a step past even the obfuscated minified javascript files meant to be confusing. At least those can still be debugged, stepped through, and explored freely by the end user if they want to learn or reverse engineer. Is there any tool or standard being worked on…

Please, can we stop having this argument every time there is an article about webassembly ? WASM not any more obfuscated than any minified JS. Being a bytecode doesn't make you "unfree". You have access to the same tool to debug JS and WASM. And the WASM specification is open. There is literally no difference between running JS or running WASM.

[deleted]

Re: W3C recommends WebAssembly

#48
post #19

Does anyone have any good intro resources for WebAssembly for noobs? 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…

I am there with you, right now as I understand it it's used in very specific parts where you need performance you cannot get otherwise.

> not sure how this plays out in a practical sense / relative to the state of web applications as they are now.

How I see it it either there will be one big framework (or language) that will have all the things and compiles to WebAssembly or there will be JavaScript libraries that ship compiled WebAssembly which you can interface with.

We are still a long way from having a React like framework which compiles to WebAssembly let alone a thriving community for it.

Re: W3C recommends WebAssembly

#49

This feels like another step away from the free and open web many people are clamoring for. Distributing opaque binaries with websites instead of Javascript is a step past even the obfuscated minified javascript files meant to be confusing. At least those can still be debugged, stepped through, and explored freely by the end user if they want to learn or reverse engineer. Is there any tool or standard being worked on…

WebAssembly should be relatively easy to decompile. The specification guarantees structured control flow. You will lose struct information and names, but that's virtually the only information you're not going to get from decompilation.

Re: W3C recommends WebAssembly

#50
post #8

This is bad for frontend JavaScript being "open" for review, right? 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.

The advertisement industry is huge and it's the driving force behind Google and many other companies.

webassembly is encouraging websites to dump megabytes of binary code in browsers.

Obfuscated, analysis-resistant code to ensure that people cannot disable ads and tracking.

It's appalling that we are accepting this.

Post reply on HN