Sam Clegg

Results 1115 comments of Sam Clegg

For what its worth I believe @kg is currently looking at implementing a lower level page allocator that sits underneath malloc: #21620. If this works out it should give you...

> We've just landed our prototype mmap/munmap replacement to start testing it out in our runtime. If it shakes out well I may look into what it would take to...

Sounds good, assuming the distinction isn't needs by any of our users. @curiousdannii, I share your concern regarding maintaining backwards compat. For this kind of thing I'd like to see...

> If possible, please remove the prefix of `_` in function exports 👍 Yes, removing the underscore is indeed part of this change. It will go hand in hand.

> Why were exports prefixed in the first place? I believe is comes from windows and/or macOS where the C ABI includes a leading underscore on all C symbols. I...

> I thought it had more to do with the fact that back in the asm.js days there was the potential of naming conflicts between the asm-compiled part and the...

The short answer is that because `stringToNewUTF8` is actually a JS library function you can use `-sDEFAULT_LIBRARY_FUNCS_TO_INCLUDE=$stringToNewUTF8`. (You might need to escape the `$` if you are typing that in...

I'm not sure just bundling the `.so` files that happen to live next the output binary is the most correct thing to do here. Are all of your `.so` files...

> Well if there was naming conflict, should we just prefix our library function with something like `EM_` There are two types of JS library symbols: 1. Symbols that we...