fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

10K
active users

૮༼⚆︿⚆༽つ / Wildan

devlog
rant

Somehow I decide to use rather than to implement Apache Arrow data type because Rust support multivalue return. However it can only return up to 2 value. And unlike Zig, Rust wasm can't emit nor import mutable-globals 😞. The `static mut` variables are stored in wasm linear memory instead of being `global mut`.

If my guess is correct, `static mut` should be wrapped in `thread_local` macro to produce mutable-globals. But… it's not yet supported 🥲

I wonder if it's possible to link both wasm files produced by zig and rust 🤔

So treat *.wasm as *.o and statically link those wasm via wasm-ld or whatever.