K.J. Valencik
K.J. Valencik
Basic idea: * Create a node module that bootstraps the environment. Shims common APIs (e.g. node-fetch) and loads WASM (WASI?) from a known location (overridden with an input). * Rust...
Depends on https://github.com/kjvalencik/ghshare/issues/12
Depends on https://github.com/kjvalencik/ghshare/issues/12
Thanks for the feedback @samizdatco! That's some good points about thread pools. Switching to keep using `rayon` is a little more boilerplate, but I _think_ still an ergonomics win. ```rust...
One workaround is that it's possible to document modules in two different places: 1. At the top of the file with `//!` 2. On the `pub mod ...;` line The...
@spion I like the ergonomics of that. Some method that accepts a list of disposers and defers their call until after the disposers that they depend on. It's essentially unwinding...
Here's what I came up using only public methods: ```js function derive(...args) { const disposer = args.pop(); const f = args.pop(); if (!args.length) { return Promise.reject( new TypeError('you must pass...
It is not currently possible with APIs to distinguish between a pending exception and not being able to call into js for some _other_ reason. This can be worked around...
@mhdawson The most common use case is to _stop_ calling JavaScript instead of attempting to handle a JavaScript exception. Consider the first call in a threadsafe function. It fails with...
What do the non-JS libraries encode? It seems strange to encode a one-of with the default since you can still decode the default. I've never tested this.