TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

WASI 0.2.0 and Why It Matters

134 点作者 brooksmtownsend超过 1 年前

12 条评论

andoband超过 1 年前
Another good write-up which gives more context to this release, and it touches on POSIX in relation to the component model.<p><a href="https:&#x2F;&#x2F;blog.sunfishcode.online&#x2F;wasi-preview2&#x2F;" rel="nofollow">https:&#x2F;&#x2F;blog.sunfishcode.online&#x2F;wasi-preview2&#x2F;</a>
评论 #39146140 未加载
评论 #39145171 未加载
ilaksh超过 1 年前
That&#x27;s amazing to see those things in WASI finally.<p>But they also mention components. Does that mean components are part of the web assembly standard now?<p>And am I correct in assuming that components are an option for projects where the functionality of WASI still isn&#x27;t adequate?
评论 #39144365 未加载
评论 #39147237 未加载
spankalee超过 1 年前
I&#x27;ll be very happy when Preview 3 with async support is out.<p>GC + async makes WASM a suitable runtime for languages like JavaScript and Dart so that we don&#x27;t have to have JS + WASM runtimes where the JS doesn&#x27;t integrate with WASI well, or WASI runtimes that don&#x27;t support JS that well (compiling SpiderMonkey to WASM isn&#x27;t great).
评论 #39146941 未加载
zilti超过 1 年前
I wish we&#x27;d get what JavaFX promised: Programs running in the browser that can be installed by simply dragging them out of the browser.
评论 #39150902 未加载
niutech超过 1 年前
Sadly, still no Framebuffer API for WASI GUI apps (<a href="https:&#x2F;&#x2F;github.com&#x2F;WebAssembly&#x2F;WASI&#x2F;issues&#x2F;174">https:&#x2F;&#x2F;github.com&#x2F;WebAssembly&#x2F;WASI&#x2F;issues&#x2F;174</a>).
评论 #39143835 未加载
评论 #39161005 未加载
评论 #39143624 未加载
MR4D超过 1 年前
&gt; &quot;The simplest “hello world” example looks like...&quot;<p>And then gives code that reminds me of Enterprise JavaBeans from the early 2000&#x27;s.<p>Thankfully, later on we get:<p>&gt; &quot;Let me show you an example of the ideal Wasm hello world application...&quot;<p>And then have code that&#x27;s clean, logical, and simple to read.<p>TBH, I almost gave up after seeing that first bit of code, but thankfully I kept reading. Having a standard interface will go a long way to creating a very nice future.
andybug超过 1 年前
Props to the team, this is great work.<p>I&#x27;ve been trialing Preview 2 for the last couple of months to good results.<p>I do have one problem though and can&#x27;t seem to find a good way forward. My use case is to use WASM for the data processing modules in a tile-based simulation game&#x2F;engine. This involves passing around large (many MB) buffers. For any semblance of performance the data cannot be copied between modules and needs to be passed by reference.<p>To that end, I&#x27;ve implemented Resources. However, getting data out of a resource still requires copying (wasm-bindgen makes the return types from accessors owned Vec&lt;&gt;). I&#x27;ve resorted to just passing u32 memory offsets since all of the modules are sharing one Memory.<p>Would love some guidance on this as I&#x27;ve scoured the Internet and simply can&#x27;t find the right solution, if there even is one.
评论 #39149965 未加载
6gvONxR4sf7o超过 1 年前
I really want polyglot programming to become easier. What are the barriers remaining for wasm&#x2F;wasi to provide a foundation for a truly polyglot FFI? It seems like it was the promise from the beginning, but I lost track a long time ago.
评论 #39146257 未加载
评论 #39146281 未加载
评论 #39147196 未加载
评论 #39145994 未加载
ImHereToVote超过 1 年前
Does anyone know if there are discussions on integrating WebAssembly into actual OS&#x27;s? Would be great to have something that Java promised to be, but wasn&#x27;t.
shadowgovt超过 1 年前
At a glance (at this blog post, and at the WASI project on GitHub) I still can&#x27;t quite wrap my head around what WASI <i>is</i> and why it matters.<p>What problem is it solving?
评论 #39147076 未加载
评论 #39146740 未加载
PedroBatista超过 1 年前
About Wasm and WASI, I&#x27;ll try ( and probably fail ) to escape the HN stereotype so please forgive me.<p>I&#x27;ve been more of less following this for a decade ( since asm.js ), I still fail to see a practical use for this. And I mean a generalized use in real products and systems that stand the test of being an actual economically viable product, not cool demos which running Doom is probably the best one from a technical perspective.<p>For SO MUCH effort over a decade I feel it&#x27;s more and more a nerd kingdom where it&#x27;s full &quot;of cool things&quot; and much more work on creating and resolving problems that were solved years and decades ago and I still miss the point of all of this, I get the &quot;big promise&quot; but 10 years have passed and still nothing.<p>Also, I see a lot of Rust ( and I mean a lot ) attached to Wasm. Sorry but it&#x27;s not going to happen, it just isn&#x27;t. Rust is a systems programming language and Wasm has been pretty much another eternal tech demo. Real &quot;mid&quot; - as the gen-z says - use cases and products are needed and Rust is not going to cut it for a general product audience. This whole thing seems more like a &quot;Run Rust in the browser&quot; than a common runtime to run every language in the browser.<p>And since &quot;running stuff on the browser&quot; is kinda of old news, these new &quot;wasm runtimes&quot; ( which I get it and support ) in reality are basically a basic shitty proto-JVM.. again what&#x27;s the point of all of this having spend 10 years?<p>The &quot;devx&quot; ( always a sucker for a new marketing term :) ) is HORRIBLE! Ever tried to compile a moderately complex ( and useful ) C program to wasm?<p>On a positive note, I wish success to Wasm&#x2F;WASI because it&#x27;s a cool idea and can open a lot of doors. If not for the actual reality and implementation of things, I&#x27;m optimistic about the general idea.<p>Sorry for my &quot;ignorance&quot; and if I hurt anyone&#x27;s feelings.
评论 #39144492 未加载
评论 #39144108 未加载
评论 #39144535 未加载
评论 #39144573 未加载
评论 #39144451 未加载
评论 #39143972 未加载
评论 #39145362 未加载
评论 #39144340 未加载
评论 #39145437 未加载
评论 #39144158 未加载
评论 #39145160 未加载
pjmlp超过 1 年前
WASI aka redoing CLR Common Language Specification.<p><a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Common_Language_Infrastructure" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Common_Language_Infrastructure</a><p><a href="https:&#x2F;&#x2F;ecma-international.org&#x2F;publications-and-standards&#x2F;standards&#x2F;ecma-335&#x2F;" rel="nofollow">https:&#x2F;&#x2F;ecma-international.org&#x2F;publications-and-standards&#x2F;st...</a><p>&gt; This Standard defines the Common Language Infrastructure (CLI) in which applications written in multiple high-level languages can be executed in different system environments without the need to rewrite those applications to take into consideration the unique characteristics of those environments.
评论 #39144194 未加载
评论 #39144413 未加载
评论 #39144645 未加载
评论 #39144549 未加载
评论 #39144397 未加载
评论 #39144354 未加载
评论 #39144848 未加载