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.

A world to win: WebAssembly for the rest of us

297 pointsby nsmabout 2 years ago

20 comments

tjoffabout 2 years ago
&gt;<i>the initial version of WebAssembly is a terrible target if your language relies on the presence of a garbage collector.</i><p>Lack of GC was one of the appealing parts of WASM to me. Keep it simple. It is good to be careful about utilizing memory on your visitors machines, so you better spend a lot of thought on memory management.
评论 #35241262 未加载
评论 #35240463 未加载
评论 #35239394 未加载
评论 #35240836 未加载
评论 #35239029 未加载
评论 #35244713 未加载
评论 #35245318 未加载
评论 #35239127 未加载
评论 #35242904 未加载
评论 #35245822 未加载
sinistersnareabout 2 years ago
Andy Wingo&#x27;s blog is awesome. A great resource for those interested in PL design and development. I learned a bunch of stuff about delimited control from this blog, among other things.<p>Also, Andy implements delimited control in this post! What a legend
DeathArrowabout 2 years ago
My question is when will web assembly able to access the DOM without the need to call Javascript to jump back and forth.
评论 #35238324 未加载
评论 #35239405 未加载
评论 #35241087 未加载
评论 #35240918 未加载
Animatsabout 2 years ago
Rust targets WebAssembly, which apparently works well because Rust is not garbage-collected.<p>When will WebAssembly get real threads, not just shared memory between processes? I&#x27;ve seen articles from years ago talking about it as a future feature. Current status?
评论 #35243720 未加载
评论 #35238388 未加载
评论 #35238580 未加载
评论 #35237284 未加载
评论 #35240872 未加载
评论 #35237654 未加载
评论 #35243084 未加载
评论 #35237575 未加载
评论 #35240333 未加载
doomleikaabout 2 years ago
I would refer to Kelsey Hightower&#x27;s random twitter space[1]. The last 15 min will do.<p>On paper it&#x27;s nice and all but it&#x27;s just not there yet. I&#x27;ve seen so many hype around WASM since 20 but the promised vision is always &quot;any time soon&quot;, this triggers my hype alarm a lot.<p>Say what you will about Frontend&#x2F;js ecosystem, at least most js project tells you exactly what value it will bring within 3 screen scrolls. I believe it&#x27;s better for rest of the SWE community take a page or two from js.<p>[1]: <a href="https:&#x2F;&#x2F;twitter.com&#x2F;kelseyhightower&#x2F;status&#x2F;1636786572673814528" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;kelseyhightower&#x2F;status&#x2F;16367865726738145...</a>
评论 #35243609 未加载
kumarskiabout 2 years ago
cloudflare did a piece on how WASM supports it. ~18% of all websites on the web run through cloudflare.<p><a href="https:&#x2F;&#x2F;blog.cloudflare.com&#x2F;big-pineapple-intro&#x2F;" rel="nofollow">https:&#x2F;&#x2F;blog.cloudflare.com&#x2F;big-pineapple-intro&#x2F;</a><p>(I&#x27;m not a software developer)
DeathArrowabout 2 years ago
Blazor had to ship the whole .NET runtime to have support for garbage collector and threads.
评论 #35238027 未加载
acqqabout 2 years ago
It seems this is the current doc about the GC:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;WebAssembly&#x2F;gc&#x2F;blob&#x2F;main&#x2F;proposals&#x2F;gc&#x2F;MVP.md">https:&#x2F;&#x2F;github.com&#x2F;WebAssembly&#x2F;gc&#x2F;blob&#x2F;main&#x2F;proposals&#x2F;gc&#x2F;MVP...</a><p>Looking at the &quot;instructions&quot; section... is it going to be slow again, bringing back the speed of interpreted code to the WASM?
评论 #35243056 未加载
syrusakbaryabout 2 years ago
This is awesome, always great to read Andy Wingo blogposts. Eager to see what the future of Scheme in Wasm looks like!<p>Here&#x27;s a bit more or info on the Spritely side on why they want Scheme in Wasm (it&#x27;s both funny and great to see how the money on decentralized&#x2F;web3 projects is leaking back to the real world!) <a href="https:&#x2F;&#x2F;spritely.institute&#x2F;news&#x2F;guile-on-web-assembly-project-underway.html" rel="nofollow">https:&#x2F;&#x2F;spritely.institute&#x2F;news&#x2F;guile-on-web-assembly-projec...</a>
RjQoLCOSwiIKfpmabout 2 years ago
All I hear when someone writes &quot;WebAssembly is coming&quot; is &quot;more RCE exploits are coming - via the thousands of lines of new code I have to hook up to the Internet by using a browser&quot;.<p>The industry has barely finished debugging the monstrosity that was browsers before - XML, JavaScript, CSS, WebGL, WebRTC, ... so now let&#x27;s add another giant source of security issues to them!<p>When will this madness stop? When will browsers actually be capable of doing <i>enough</i> and be moved into maintenance-only mode where only security issues are fixed and no new code is added?<p>Surely some will say &quot;well, WebAssembly will deliver that precisely - browsers now can run <i>all</i> the code&quot;.<p>But wasn&#x27;t this the promise with JavaScript already, a Turing-complete language in the browser to end the need for more features of HTML?<p>Anyway, to deliver some value by this comment:<p>To disable WASM in Firefox, set &quot;javascript.options.wasm = false&quot; in about:config.<p>Some websites say you also need to set &quot;javascript.options.wasm_baselinejit = false&quot; and &quot;javascript.options.wasm_ionjit = false&quot; but I don&#x27;t understand what the point of disabling JIT would be if the whole of WASM is disabled anyway?
评论 #35239074 未加载
评论 #35238720 未加载
评论 #35238724 未加载
评论 #35238144 未加载
评论 #35238668 未加载
评论 #35237906 未加载
评论 #35245595 未加载
FpUserabout 2 years ago
&gt;&quot; Where are the F#, the Elixir, the Haskell compilers? &quot;<p>I think it makes a lot of sense sense to target WebAssembly with high performance &quot;native&quot; languages like C&#x2F;C++&#x2F;Rust&#x2F;Zig&#x2F;etc for certain types of apps looking for high performance computations. As for the rest it is simpler to just use JavaScript as the browser already makes a great platform for it.
评论 #35243221 未加载
评论 #35239302 未加载
评论 #35240597 未加载
oneplaneabout 2 years ago
A place where this is relevant that hasn&#x27;t been mentioned so far is in proxies using the ProxyWASM spec. Instead of loading random libraries into the main code of say, Envoy, you instead load it as a WASM module (so you must target WASI or wasm32-unknown) and all you&#x27;re allowed to do is specify a set of pre-determined entry points for when traffic connects, sends headers, sends body, and on the return path responds with headers, then body and then disconnects. This means that you can do practically all the things you need to do in a pretty portable way, without breaking into the actual program.
phendrenad2about 2 years ago
It&#x27;s been so long since webassembly was announced, I don&#x27;t remember why I was ever excited about it. I don&#x27;t think it serves much of a purpose in 2023, as Javascript JITs are quite fast.
Aleklartabout 2 years ago
TIL assembler for web will have garbage collector and can’t access web.
nsteelabout 2 years ago
How do browser standards work w.r.t ensuring things like wasm are still here and functional in 10 years time? What if our friends at Google, controllers of the most popular browser, decide they can&#x27;t be bothered with WebAssemnly anymore? I&#x27;m extremely wary to invest resources in things they control. I know they don&#x27;t technically have control here, but is there any cause for concern?
评论 #35243706 未加载
评论 #35244754 未加载
mrbonnerabout 2 years ago
One question that really bugs me the the sandbox security model. I&#x27;m sure the model protects us from memory and IO hazards. But, what about CPU-time sharing protection? I have yet to know if WebAss (or any abstract machine out there) could provide protection from a rouge module, running at 100% CPU in an infinite loop. I&#x27;m sure a true virtual machine could limit such thing.<p>Edit: spelling
评论 #35242399 未加载
评论 #35238356 未加载
评论 #35239451 未加载
评论 #35238981 未加载
评论 #35238579 未加载
eachroabout 2 years ago
Sorry for the noob question but what can you do with web assembly that you wouldnt otherwise do with other web frameworks? What are people using web assembly for generally?
评论 #35243134 未加载
评论 #35241811 未加载
评论 #35244519 未加载
评论 #35244137 未加载
rr808about 2 years ago
Can we bring back java applets? It was unsafe back in the day, but if we can do wasm surely we can do applets? Lots of good languages and libraries for jvm.
评论 #35243024 未加载
评论 #35243331 未加载
AtNightWeCodeabout 2 years ago
WASM was cool but then all the trouble came. I am more reluctant to use WASM in production today than a couple of years ago. Seems like the biz agrees...
pipeline_peakabout 2 years ago
&gt; What about Haskell, Ocaml, Scheme, F#, and so on – what about us?<p>I think the industry will get by…