Home | Notifications | New Note | Local | Federated | Search | Logout
Note Detail
Reply to @mcc@mastodon.social
mcc@mcc@mastodon.social (2025-06-04 08:57:44)
So now I can like… actually start on this part of the project. What I'm running into immediately is some confusion over the nature of memory. Okay, so what's been repeatedly claimed to me is "memory" to a wasm program is a single linear space that can be grown but not shrunk. But then I've got a stack. Is the stack in linear memory? Can I take pointers to it? Then there's (memory), which I think refers to buffers shared with FFI languages. Is this in the linear memory? Can I take pointers to it?
---Reply---
mcc@mcc@mastodon.social (2025-06-04 08:59:18)
I imagine the above would be explained if I read the spec rather than just blog-style summaries of the spec, but there is a problem with that, which is that the spec is on my laptop, and writing these posts while trying to power my phone which is providing the internet via USB on this bus has drained my laptop battery, to the point where I probably have to s
Reply
---Replies---
mcc@mcc@mastodon.social (2025-06-04 11:40:31)
Also [posting this from a donut shop in a mysterious town in Washington where the bus stranded me] I know, objectively, it's probably performance/complexity optimal on modern CPUs to support only i32 and i64 types and not bother with (say) i8 or i16, but it still *bugs* me