Surma

Results 164 comments of Surma

@navono Can you give me some reproduction steps? There’s all kinds of dependencies and other cruft, the tests don’t pass and I honestly have no idea how to reproduce the...

I don’t quite follow. There is an official [Data URL plugin](https://github.com/rollup/plugins/tree/master/packages/url). Does that not work for you?

My intuition would be for `mmap` to have a similar interface to `ArrayBuffer` – maybe even a specially backed `SharedArrayBuffer`? I don’t know the internals of `ArrayBuffer`s too well, so...

Considering you can share a `mmap()`’d fd to multiple threads in C, I am pretty sure WASM will want to have that behavior, too.

> I think the original idea of returning a buffer that is just the mmap of a file would be pretty decent too I think this is ā€œgood enoughā€. There’s...

There is a note underneath saying ā€œNote: extra parameters are not allowed, including the empty `application/wasm;`ā€

It seems to be specifically about using `externref` in imported functions. Both an `externref` parameter and return type will trigger this error, but not for an exported function.

@martianboy Ah of course! That makes a lot of sense. Since the reference types proposal also allows having multiple tables, it seems like your idea with the table is a...