Live data from Hacker News

Show HN: A simple 2D fluid and gravity simulation with WASM and WebGL

aestuans.github.io

21–25 of 25 posts

Re: Show HN: A simple 2D fluid and gravity simulation with WASM and WebGL

#23
post #11

very cool! if you're exploring wasm for graphics, take a look at Wander- lets you create and execute "renderlets" — portable modules containing graphics data and code compiled to wasm https://github.com/renderlet/wander

This is probably a dumb question but I assume anything leveraging WASM can only run on the CPU?

Re: Show HN: A simple 2D fluid and gravity simulation with WASM and WebGL

#24
post #11

very cool! if you're exploring wasm for graphics, take a look at Wander- lets you create and execute "renderlets" — portable modules containing graphics data and code compiled to wasm https://github.com/renderlet/wander

This is probably a dumb question but I assume anything leveraging WASM can only run on the CPU?

while it's true that wasm was originally designed to run primarily on the cpu(e.g., executed in a sandboxed environment on the main thread, which is generally managed by the cpu), the assumption that wasm only runs on the cpu might be becoming a bit dated. esp. as a result of webgpu and frameworks mentioned above, wasm is increasingly capable of executing on the gpu imho.
Post reply on HN