Open nkysg opened 1 month ago
The problem is technically easy to solve, but requires deep thinking about how the API should look like. In wasm32 usize has 4 bytes. My structures (bitmaps) support 2 to the power of 64 indexes. So I would have to use u64 instead of usize to index them. Moreover, I use arrays and vectors underneath, so when their indexes are 32 bits, I can't implement full 64 bit indexes in bitmaps.
As a workaround, you can try compiling with the wasm64-unknown-unknown target. It uses the (for now experimental) memory64 wasm extension.
I work on 32 bit support in 32bits branch. The code should compile and work, but I have no way to test it at the moment. The API is preserved, i.e. usize is used for indexing and counting bits. This means that (for a 32 bit usize) their number cannot exceed 2 to the power of 32.
Thanks for your help!
when I run the cmd
It outputs this information
Do we have plan to support wasm32-wasip1 ?