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.

Making calls to WebAssembly fast and implementing anyref

68 pointsby ag_dubsalmost 7 years ago

4 comments

ThJalmost 7 years ago
Still waiting for direct DOM&#x2F;HTML5 API access. Then you could use any language that compiles to WASM as a front-end language. Until then, WASM is of limited interest to me.<p>EDIT: I mean, why wouldn&#x27;t that be one of the first items on the agenda of WASM? I was surprised when I found out that this seemingly isn&#x27;t high on the list of priorities. If WASM is meant exclusively for high performance sections of code, it makes more sense, but that&#x27;s a bit dull if you ask me. The ability to use any compiled language as a front-end language is far more interesting.
devwastakenalmost 7 years ago
This is great. I&#x27;ve been tracking down performance issues in libraries porting to wasm due to what appears to be Emscripten having to do JS calls every time a function pointer is used for the equivalent wasm dynamic call.<p>On that issue i&#x27;ve spent the last month having to also go through and remake tooling for wasm because Emscripten is still stuck in the asm.js ages and isn&#x27;t at all flexibly modifiable.
Game_Enderalmost 7 years ago
I am curious to know if this also makes calls from WASM into JS faster. One of the issues with WASM is that you need the JS DOM API, it is essentially your OS abstraction layer, so faster that is, the better WASM will be.
评论 #17461998 未加载
评论 #17460634 未加载
btownalmost 7 years ago
Is there documentation on what Chrome&#x2F;v8 currently does here? Could a similar optimization be ported over?