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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

W3C recommends WebAssembly

385 点作者 lottamus超过 5 年前

25 条评论

6gvONxR4sf7o超过 5 年前
Whatever you think about javascript, I love the historic separation between content and interactivity. I dislike that so many static pages won&#x27;t load without JS and that we&#x27;re moving further in that direction. I hope the evolution towards &quot;browser as OS&quot; doesn&#x27;t hurt the content vs interactivity separation. Could we ever lose the HTML centered model?<p>That could mean we lose hackability and the ability to write extensions or even scrape the web without a BigCo webcrawler&#x27;s level of infra investment. Is everything going to turn into an opaque single page app? Technically, webassembly is really cool, but I worry about where the browser is headed.
评论 #21723423 未加载
评论 #21723673 未加载
评论 #21723537 未加载
评论 #21724443 未加载
评论 #21723336 未加载
评论 #21723824 未加载
评论 #21724337 未加载
评论 #21723364 未加载
评论 #21725785 未加载
评论 #21726297 未加载
评论 #21725539 未加载
评论 #21726439 未加载
评论 #21727867 未加载
评论 #21723356 未加载
nojvek超过 5 年前
The design goals of WebAssembly are the following:<p>Fast, safe, and portable semantics:<p>* Fast: executes with near native code performance, taking advantage of capabilities common to all contemporary hardware.<p>* Safe: code is validated and executes in a memory-safe [2], sandboxed environment preventing data corruption or security breaches.<p>* Well-defined: fully and precisely defines valid programs and their behavior in a way that is easy to reason about informally and formally.<p>* Hardware-independent: can be compiled on all modern architectures, desktop or mobile devices and embedded systems alike.<p>* Language-independent: does not privilege any particular language, programming model, or object model.<p>* Platform-independent: can be embedded in browsers, run as a stand-alone VM, or integrated in other environments.<p>* Open: programs can interoperate with their environment in a simple and universal manner.<p>Efficient and portable representation:<p>* Compact: has a binary format that is fast to transmit by being smaller than typical text or native code formats.<p>* Modular: programs can be split up in smaller parts that can be transmitted, cached, and consumed separately.<p>* Efficient: can be decoded, validated, and compiled in a fast single pass, equally with either just-in-time (JIT) or ahead-of-time (AOT) compilation.<p>* Streamable: allows decoding, validation, and compilation to begin as soon as possible, before all data has been seen.<p>* Parallelizable: allows decoding, validation, and compilation to be split into many independent parallel tasks.<p>* Portable: makes no architectural assumptions that are not broadly supported across modern hardware.<p>If webassembly is truly able to meet this goals, together with good debugging and tools, it will become the the universal way to represent computation across devices and platforms.<p>Really cool.
评论 #21727250 未加载
duxup超过 5 年前
Does anyone have any good intro resources for WebAssembly for noobs?<p>I&#x27;ve read articles here and there seen some in person demos, and honestly struggle to understand what it is &#x2F; how it would &#x2F; works relative to the current state of JavaScript frameworks.<p>Often I&#x27;m approaching it from a JavaScript framework (React&#x2F;Vue&#x2F;Angular) approach as I&#x27;m a bit of a noob to the industry and that&#x27;s generally my day job working on web applications.... and while I read about WebAssembly I wonder about state management and someone tells me &quot;oh you still need to something to do that&quot; and I&#x27;m a bit lost on ... how that would work &#x2F; why I would or wouldn&#x27;t use one of those frameworks anyway, etc. So many examples I&#x27;ve seen are one off simplified (and for good reason I like those for demos) widgets but ... I&#x27;m not sure I&#x27;ve seen them as an application &#x2F; understand how that would work.<p>Obviously I&#x27;m missing a lot here and feel like on HN I&#x27;m often talking to folks who aren&#x27;t so much front end web devs who are excited about the efficiencies and such but ... not sure how this plays out in a practical sense &#x2F; relative to the state of web applications as they are now.
评论 #21722894 未加载
评论 #21724330 未加载
评论 #21722916 未加载
评论 #21722979 未加载
评论 #21722946 未加载
评论 #21724281 未加载
评论 #21723006 未加载
评论 #21722902 未加载
评论 #21723681 未加载
评论 #21722929 未加载
评论 #21723830 未加载
评论 #21726202 未加载
评论 #21723076 未加载
dmvinson超过 5 年前
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 to make .wasm files coherent for users who have to run the code to view websites? This feels like a step backwards in so many ways, even if it is a technological marvel.
评论 #21722843 未加载
评论 #21722770 未加载
评论 #21722887 未加载
评论 #21722987 未加载
评论 #21722811 未加载
评论 #21722931 未加载
评论 #21728315 未加载
评论 #21722885 未加载
评论 #21722762 未加载
评论 #21725451 未加载
评论 #21725680 未加载
评论 #21723238 未加载
评论 #21722955 未加载
评论 #21723237 未加载
评论 #21723580 未加载
评论 #21723316 未加载
Unit-336超过 5 年前
For those who are asking themselves what WASM does differently than Java, .NET or other native extensions like ActiveX or NaCl, here&#x27;s the best rationale doc I found on this topic: <a href="https:&#x2F;&#x2F;github.com&#x2F;WebAssembly&#x2F;spec&#x2F;blob&#x2F;master&#x2F;papers&#x2F;pldi2017.pdf" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;WebAssembly&#x2F;spec&#x2F;blob&#x2F;master&#x2F;papers&#x2F;pldi2...</a>
评论 #21726481 未加载
magsnus超过 5 年前
I really hope this can become a viable alternative to the JS-frameworks we have today for webapps and that more apps can be served via the web.
评论 #21723256 未加载
评论 #21733735 未加载
smattiso超过 5 年前
Good. Javascript needs to die. It was far simpler to build performant multi-device UIs 15 years ago than it is today. Building UIs natively on iOS and Android is so much simpler than building for the web.<p>Technical question: 1.) What is the speed of WebAssembly on iOS WebKit and Android WebView? 2.) Is it feasible to write an entire app UI in something like Qt and target WebAssembly? 3.) Android, iOS, Windows versions of the app are Qt apps natively or possibly through the device&#x27;s WebKit.<p>Is this possible today? Is there a better UI library than Qt for this?
评论 #21727389 未加载
arghwhat超过 5 年前
W3C endorsing it has nothing at all to do with whether or not it is here to stay.
Crontab超过 5 年前
This sounds interesting, but personally, I am worried that this will just turn into yet another browser technology that will be used to abuse and track users. I really hope I am wrong.
cylon13超过 5 年前
What&#x27;s the debugging situation like for developing WASM apps? I&#x27;m doing a lot of TypeScript+WebGL work right now, and though TS is fairly nice, my use case requires being aware of not allocating too many new objects frequently, and that kind of control would be easier in something like C++ or Rust. I&#x27;ve been thinking of hacking together a small test project with WASM+WebGL to see what it&#x27;s like, but I get the sense it might still be more hassle than it&#x27;s worth to use in production. Currently I can easily set breakpoints in my TS code, I can see how much memory is allocated by which functions, how much time is spent in each function, etc. very easily. If there&#x27;s a way to do these kinds of things with WASM in another language, that would be fantastic.
评论 #21723778 未加载
dmitriid超过 5 年前
Ok. It&#x27;s here to stay. What&#x27;s the progress on the two dozen post-MVP features?<p>The &quot;arrival&quot; of WebAsm to w3c only means that w3c had finally woken up from eternal slumber and realized that everyone has already implemented The listed features.
bogwog超过 5 年前
Hopefully this also means that Javascript is going away for good
评论 #21723725 未加载
评论 #21722910 未加载
评论 #21723013 未加载
评论 #21724103 未加载
chx超过 5 年前
How&#x27;s the DOM manipulation coming along?
postit超过 5 年前
It amuses me we&#x27;re circle backing to have applets all over again.
评论 #21723153 未加载
评论 #21723869 未加载
utf985超过 5 年前
I&#x27;m interested in how will WebAssembly affect the functionality of browser addons such as ad and script blockers?
mrandish超过 5 年前
Does WebAssembly threaten app store business models by allowing devs to distribute apps directly via browser (thereby saving the app store &#x27;tax&#x27;)?<p>For example, if Adobe delivers its new mobile Photoshop directly via iPad Safari will Apple have a way of &#x27;nerfing&#x27; WebAssembly to stop them?
markstos超过 5 年前
This is bad for frontend JavaScript being &quot;open&quot; for review, right?<p>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.<p>Yes, I&#x27;m sure there will be reverse-compilation tools for WASM, but still.
评论 #21722712 未加载
评论 #21722781 未加载
评论 #21722787 未加载
评论 #21722711 未加载
评论 #21722708 未加载
评论 #21722743 未加载
评论 #21722935 未加载
cryptozeus超过 5 年前
Why are people saying with wasm coming JavaScript will have tough time ? Think about it as flash vs JavaScript. They can happily co exist or u can choose one of the other. Don’t assume that wasm is the hammer for every nail.
apatheticonion超过 5 年前
&lt;script type=&quot;module&quot; src=&quot;app.wasm&quot;&gt;&lt;&#x2F;script&gt;<p>Please
tmountain超过 5 年前
What&#x27;s the horizon for WebAssembly capable browsers gaining enough marketshare that it becomes a viable compilation target?
评论 #21722638 未加载
评论 #21722631 未加载
评论 #21725865 未加载
评论 #21725238 未加载
评论 #21722627 未加载
评论 #21723071 未加载
shiado超过 5 年前
Does anybody know the state of the art for wasm tooling? I have used emscripten but are there any excellent &#x27;higher level&#x27; tools? The worst part was writing the interface between the wasm and JS.
dm33tri超过 5 年前
What I&#x27;m thrilled to see is an optimization of binary sizes in compilers and libraries. Maybe &lt;1MB native apps will become common (or few MB of code for single webpage will become standard)
dm33tri超过 5 年前
Write once, run everywhere.<p>I bet in few years we will run wasm natively on processor.
评论 #21722901 未加载
评论 #21722690 未加载
评论 #21722752 未加载
评论 #21722772 未加载
评论 #21722742 未加载
评论 #21722611 未加载
评论 #21722915 未加载
评论 #21723288 未加载
dang超过 5 年前
The submitted title was &quot;It&#x27;s official, WebAssembly is here to stay&quot;. That broke the site guidelines by editorializing. Please don&#x27;t do that.
batterystd超过 5 年前
So what was webassemnly until now?