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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Intro to WebAssembly

120 点作者 codelitt将近 8 年前

7 条评论

Klathmon将近 8 年前
The official FAQ specifically states the opposite of the second bullet point.<p>Web Assembly is not meant to be a replacement for JavaScript. And although the blog doesn&#x27;t explicitly say it, it&#x27;s alluding to it being easy to create entire applications without using JavaScript at all.<p>JavaScript is going to continue to be used as &quot;glue code&quot; at the very least, and UI code in the majority of cases. I think it&#x27;s really important to make this distinction.<p>Trying to use web assembly as a solution to problems it&#x27;s explicitly not meant to solve is only going to lead to pain and frustration.<p>Furthermore, things like &quot;static type checking&quot;, easy functional programming, and making application coding &quot;less painful&quot; aren&#x27;t really goals as the post seems to make them out to be as well.
评论 #14668499 未加载
评论 #14668391 未加载
评论 #14668834 未加载
nevi-me将近 8 年前
If the author states that there are already a number of Hello World examples, why not spend a bit more time and create something else that&#x27;s still simple enough?<p>As a self-taught programmer, one of the difficulties I found (before SO) was that the many articles one read up on would typically repeat what someone else said. This especially with new technologies.<p>I think if authors pointed us to an existing &quot;Hello World&quot;, and then expanded on that, in the long-run, beginners would sometimes find it easier to learn fadter.
评论 #14671148 未加载
bluejekyll将近 8 年前
I&#x27;m really surprised to read an article like this that doesn&#x27;t mention Rust. The reason is that I find it hard to believe that developers will want to move to unsafe languages like C&#x2F;C++. Many of the other languages mentioned require runtimes, runtimes that will need to be built on top of webassembly.<p>Rust doesn&#x27;t have any of these drawbacks, is runtime free, and can already target webassembly. Given that both of these technologies are young, webassembly even younger, there&#x27;s no big argument for legacy code in this context, which means adopting something new would be fine, and good in this case because of the safety guarantees.<p>Anyway, a great intro in general, but for anyone looking at getting into this, I highly recommend checking out the Rust tutorials, like this one: <a href="https:&#x2F;&#x2F;medium.com&#x2F;@ianjsikes&#x2F;get-started-with-rust-webassembly-and-webpack-58d28e219635" rel="nofollow">https:&#x2F;&#x2F;medium.com&#x2F;@ianjsikes&#x2F;get-started-with-rust-webassem...</a>
评论 #14668535 未加载
评论 #14669121 未加载
评论 #14668618 未加载
评论 #14668619 未加载
zzo38computer将近 8 年前
I like the idea of WebAssembly too; it is another kind of VM code. However, is there a C API to WebAssembly? Having a JavaScript API that is usable in both HTML and Node.js (and could easily be added to any other JavaScript too) is good, but a C API can also help (and I have written on some file on my computer what are some ideas for making a C API).<p>(I did not read the linked document much though, but only the official FAQ. However I do think you would not use WebAssembly all the time, but it can be helpful in some cases, including wanting VM codes.)
评论 #14668508 未加载
评论 #14668386 未加载
IshKebab将近 8 年前
Is anyone experimenting with using WebAssembly in non-web contexts? Could be great for cross-platform native apps, microcontrollers, etc.
评论 #14670141 未加载
drmeister将近 8 年前
Looks great! I&#x27;m looking forward to exception handling support.
timwaagh将近 8 年前
i read it but it does not really explain wasm the language.
评论 #14671141 未加载