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.

WebAssembly consensus and end of Browser Preview

167 pointsby brosky117about 8 years ago

15 comments

pellaabout 8 years ago
<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>
gedyabout 8 years ago
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 未加载
pellaabout 8 years ago
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>
angrygoatabout 8 years ago
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 未加载
hubert123about 8 years ago
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 未加载
z1mm32m4nabout 8 years ago
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 未加载
ilakshabout 8 years ago
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.
cyborgx7about 8 years ago
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 未加载
zfedoranabout 8 years ago
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 未加载
pc2g4dabout 8 years ago
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.
jwatteabout 8 years ago
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.
user1241320about 8 years ago
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>
themihaiabout 8 years ago
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 未加载
felipellrochaabout 8 years ago
Does anyone have an example on how to get the SDL2 to compile using WebAssembly?
评论 #13758991 未加载
评论 #13761342 未加载
mycallabout 8 years ago
&gt; reference interpreter<p>not a compiler? ok.
评论 #13761625 未加载