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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: Box2D fluid simulation in WebGL and WASM

71 点作者 Birch-san大约 4 年前

9 条评论

boogies大约 4 年前
Does this work for most people? I’d assume it was just my slightly out of date version of the weird browser Palemoon that makes it throw “SyntaxError: missing declaration after &#x27;import&#x27; keyword” and stay blank white (<a href="https:&#x2F;&#x2F;ibb.co&#x2F;Bj2HHxH" rel="nofollow">https:&#x2F;&#x2F;ibb.co&#x2F;Bj2HHxH</a>) for me, but a dead comment just claimed it’s broken on both macOS and iOS Safari, and Chrome.
评论 #26676122 未加载
评论 #26675583 未加载
pjmlp大约 4 年前
&gt; This experiment relies on a lot of new Web Worker functionality (ES imports and requestAnimationFrame). As such, it is currently only expected to work in Chrome&#x2F;Chromium-based browsers.<p>Ah, how was it again regarding IE?
singularity2001大约 4 年前
Doesn&#x27;t work on Firefox<p>SyntaxError: import declarations may only appear at top level of a module
asadlionpk大约 4 年前
Neat. Slightly related, I did a fluid simulation many years ago in JS: <a href="https:&#x2F;&#x2F;asadmemon.com&#x2F;SPHjs&#x2F;" rel="nofollow">https:&#x2F;&#x2F;asadmemon.com&#x2F;SPHjs&#x2F;</a><p>code: <a href="https:&#x2F;&#x2F;github.com&#x2F;asadm&#x2F;SPHjs" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;asadm&#x2F;SPHjs</a>
LinguaBrowse大约 4 年前
Nice work!<p>What&#x27;s the benefit of using WebGL compared to Canvas?<p>Does the WASM bring a performance improvement in practice, relative to the equivalent JS library?<p>Keep it up!
评论 #26675478 未加载
ramoz大约 4 年前
That&#x27;s art. Thanks for sharing.
fctorial大约 4 年前
Shows an empty box on chrome linux?
Y_Y大约 4 年前
How come only Chrome has whatever feature this needs?
评论 #26675755 未加载
评论 #26676291 未加载
wrongdonf大约 4 年前
I remember in 2015 when I first saw that go-kart wasm demo. It was exciting. But that was such a long time ago and we are only now starting to see webgpu roll out. I’m really looking forward to the new golden age of wasm and webgpu.