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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

WebAssembly consensus and end of Browser Preview

167 点作者 brosky117大约 8 年前

15 条评论

pella大约 8 年前
<i>Developer’s Guide &quot;This page provides step-by-step instructions to compile a simple program directly to WebAssembly.&quot;</i><p><a href="http:&#x2F;&#x2F;webassembly.org&#x2F;getting-started&#x2F;developers-guide&#x2F;" rel="nofollow">http:&#x2F;&#x2F;webassembly.org&#x2F;getting-started&#x2F;developers-guide&#x2F;</a>
gedy大约 8 年前
I worry it means &quot;end of browser view source&quot; and frankly concerned this will be (ab)used to implement DRM for information that we can easily view and copy the source now.
评论 #13759928 未加载
评论 #13763277 未加载
评论 #13763916 未加载
评论 #13759844 未加载
评论 #13759741 未加载
评论 #13761088 未加载
pella大约 8 年前
more: <a href="https:&#x2F;&#x2F;hacks.mozilla.org&#x2F;2017&#x2F;02&#x2F;where-is-webassembly-now-and-whats-next&#x2F;" rel="nofollow">https:&#x2F;&#x2F;hacks.mozilla.org&#x2F;2017&#x2F;02&#x2F;where-is-webassembly-now-a...</a><p><i>&quot;With this, developers can start shipping WebAssembly code. For earlier versions of browsers, developers can send down an asm.js version of the code. Because asm.js is a subset of JavaScript, any JS engine can run it. With Emscripten, you can compile the same app to both WebAssembly and asm.js.Even in the initial release, WebAssembly will be fast. But it should get even faster in the future, through a combination of fixes and new features.&quot;</i>
angrygoat大约 8 年前
I like the new logo (inspired by the side-on profile of an IC)<p><a href="https:&#x2F;&#x2F;github.com&#x2F;WebAssembly&#x2F;design&#x2F;issues&#x2F;980" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;WebAssembly&#x2F;design&#x2F;issues&#x2F;980</a>
评论 #13761380 未加载
hubert123大约 8 年前
I still dont understand: Can this be a general purpose replacement for javascript or not? Because if it is then every language, even Dart and typescript, should switch to producing webassembly. Right?
评论 #13761630 未加载
z1mm32m4n大约 8 年前
I think the big milestone for me is going to be when LLVM has first-class support for a wasm backend. I get that you can already get similar behavior using emscripten through asm.js to wasm, but it still feels clunky.<p>Even still, it&#x27;s great to see that things are still moving on smoothly (and the new logo looks really nice!).
评论 #13762712 未加载
评论 #13760906 未加载
评论 #13761043 未加载
ilaksh大约 8 年前
I believe that some of the core people who proposed this are actually NOT getting what they really intended. Because ALL APIs are only accessible through JavaScript still.<p>I think this could be much more useful if at least some APIs didn&#x27;t have to go through JS. Not saying that&#x27;s easy.<p>Part of the problem is the whole idea that every program is supposed to test for the existence of every feature it might need. I think that&#x27;s ridiculous. I suggested on github that actually what needs to happen eventually is to decompose the web platform into a a bunch of semantically versioned modules. One big problem with that is that modern modularization is not really first class in C++ because of its legacy worldview.
cyborgx7大约 8 年前
First DRM and now this. I&#x27;m getting the feeling the web is not interested in my priorities anymore.<p>So if I wanted to support a standard that prioritizes easy, accessible exchange of information, openess and user control with my server, where would I look?
评论 #13762737 未加载
zfedoran大约 8 年前
I&#x27;d love to know what the current advantages are over running asm.js? I understand that it will definitely be faster eventually, but if I have a project that uses asm.js today, would it make sense to run it with WebAssembly instead? (ignoring the fact that not all browsers support it)<p>One potential issue:<p>&quot;If you have lots of back-and-forth between WebAssembly and JS (as you do with smaller tasks), then this overhead is noticeable.&quot;<p>As far as I&#x27;m aware, asm.js code does not have an issue with this, as it is just js code. Is this correct?<p>(edit: I should have mentioned that I&#x27;m primarily interested from an electron.js point of view at the moment, where Firefox asm.js optimizations are unavailable)
评论 #13759916 未加载
评论 #13759836 未加载
评论 #13759894 未加载
评论 #13760005 未加载
评论 #13762727 未加载
pc2g4d大约 8 年前
Opening the web to non-Javascript languages will make it a more general platform. Imagine if Linux only let you run programs written in Perl! That&#x27;s largely the situation the web has been stuck in for 20 years. I think the concerns about &quot;view source&quot; are ill-founded, as minified Javascript is already essentially an uninterpretable (by humans) assembly language. This essentially retains the status quo regarding human access to the underlying code, while broadening the number of ways you can build web applications. I support it.
jwatte大约 8 年前
This is great news, if nothing else then because it actually allows programs to grow their heap. Previous emscripten-based solutions have suffered severely from either running out of RAM, or requesting more than they need (and then sometimes not even being able to start because of fragmentation.)<p>The web browser is still a second-rate user interface toolkit compared to a native app, but at least this gives us a slight step forward. Whether that&#x27;s enough, or whether most application development will be made using native toolkits in walled gardens, remains to be seen.
user1241320大约 8 年前
Cool to see also Rust supporting it: <a href="https:&#x2F;&#x2F;blog.rust-lang.org&#x2F;2016&#x2F;12&#x2F;22&#x2F;Rust-1.14.html" rel="nofollow">https:&#x2F;&#x2F;blog.rust-lang.org&#x2F;2016&#x2F;12&#x2F;22&#x2F;Rust-1.14.html</a>
themihai大约 8 年前
I&#x27;m afraid that without DOM access and GC it won&#x27;t get much traction or testing as far as the community is concerned. Did anyone took wasm seriously?(i.e run their main external&#x2F;internal app on wasm as a beta version)
评论 #13764352 未加载
felipellrocha大约 8 年前
Does anyone have an example on how to get the SDL2 to compile using WebAssembly?
评论 #13758991 未加载
评论 #13761342 未加载
mycall大约 8 年前
&gt; reference interpreter<p>not a compiler? ok.
评论 #13761625 未加载