swiftwasm/JavaScriptKit

JavaScriptKit as a "system" library?

MaxDesiatov opened this issue · 1 comments

It would be great if we could provide shims for Dispatch and Foundation APIs that rely on JS hosts directly instead of WASI. The problem is that Dispatch and Foundation are "system" modules shipped with the SwiftWasm SDK, while JavaScriptKit is consumed by users via SwiftPM.

I wonder if we could consider promoting JavaScriptKit to a "system" library, I guess Swift for Tensorflow does a similar thing with PythonKit already. This will obviously require our API to become much more stable, but I hope it would be worth it.

WDYT?

I think that would be a good option. However, I think it's too early to ship this in the toolchain due to compatibility issues.