


























Specified by whom? Not the C standard for sure. It is indeed soecified by individual ABIs, and ABIs don't tend to do anything too weird, but that's another question. |
what would make it break? i think the program just calls a 64 bit wasm memory function if it uses the capability |
WASM has a (pointer + i32) address mode, and the effective address is 33 bits. So WASM implementations use 8GB mappings ... |
32 is better for a lot of things like simd. the strength of it is wasm can do both types now and js can't unfortunately. a number in js is strictly 64. |
There's no way to draw on a canvas in WASM either. You just decided to write JS wrapper functions for that. But you didn't write wrapper functions for DOM manipulation. |
You're right. But at least the JS wrapper for the canvas is just used for setting up the shared memory, if I remember correctly? At any rate: this doubly makes my point. |
Fun game! The demo works great on mobile except for some small font sizes and you can't hover over items to see the tooltip before selecting them. |
The memory64 proposal was merged into upstream last year, any reason to opt into 32 bit despite that? |
Oh that's interesting, never noticed it in my experience but I have never written anything in wasm where it would matter. Makes perfect sense now that I think about it though. Thanks! |
You don't need 4GB and it wastes memory to make pointers twice as big? Even Linux supports running 64-bit code in a 32-bit address space ("x32 ABI") for this reason. |
they limit some good things on purpose just for the sake of ecosystem competition. but with this they are slowly implementing it? |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。