TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Anyone else worried about WebAssembly?

3 pointsby owenshen24about 5 years ago
Okay, I realize I might be late to the party here. I just read up about WebAssembly recently, and my understanding of the pros are: - can be compiled from many languages - improved performance<p>But the cons seem pretty problematic: - binary format seems harder for content blockers to work effectively - binary format seems easier to hide malware and other bad scripts - binary format seems to make the web less open; novice web developers can&#x27;t just fire up the console anymore to see what makes something work.<p>I know I&#x27;ve seen previous sentiments of this sort expressed on here before (If anyone can link me to other critiques of this kind, that&#x27;d be awesome). It just seems unfortunate that the web is becoming more opaque with this change.

1 comment

Silhouetteabout 5 years ago
The cons are legitimate concerns, but compared to the plausible alternatives I still don&#x27;t think they&#x27;re too bad.<p>Assuming a reasonable implementation in browsers, WA code should still be significantly safer to run than installing native applications locally on almost any major desktop OS, since there is a sandbox model in place for the in-browser code but the desktop OSes all have relatively open and crude security models that are 20+ years past their use-by date.<p>We already have plenty of malware-like scripts written in JS trying to fingerprint you, steal your processing power to mine Bitcoin, trick you into entering sensitive data in the wrong place or otherwise exploit you, so I don&#x27;t see that WA is particularly likely to be worse in that respect. It&#x27;s not great, but we should fix these things by tightening the security models for all downloaded code; it&#x27;s not a problem specific to one language.<p>The barrier to exploration by curious learners is a significant drawback, for sure. Plenty of people have learned basic programming skills by examining interesting websites over the years. But again, even in JS, usually you just get some obfuscated, minified bundle these days unless a site is specifically leaving natural JS for visitors to read as tutorial sites sometimes do, so again I&#x27;m not sure we&#x27;re losing anything that wasn&#x27;t already getting lost anyway.
评论 #23109092 未加载