Wait, so you compile a swift executable that’s callable from js? How would one distribute this client side in browser?
I’m not smart enough to understand this. I love swift, vapor and node individually, I don’t get it together
I’m not smart enough to understand this. I love swift, vapor and node individually, I don’t get it together
NodeJS has had FFI for over a decade that allows you to call functions in .dylib/.a/.dll on Mac/Linux/Windows. I've used it extensively to link with libraries provided by USB device manufacturers to avoid direct USB interfacing.
See:
https://www.npmjs.com/package/ffi
This let's you call Node from inside Swift.