Xe / olin

Webassembly + Event Sourcing
MIT License
519 stars 26 forks source link

Make Go binaries interface with Dagger #5

Closed Xe closed 6 years ago

Xe commented 6 years ago

In https://github.com/Xe/olin/commit/3daf7b85e0c39c56637df8c6680894742c06821b, work was started to interoperate Go webassembly binaries with Dagger to get a basic example of reading from the printer facts API online. Unfortunately, a dependency on syscall/js was somehow introduced by compiling the package github.com/Xe/olin/dagger in webassembly mode.

ghost commented 6 years ago

Interesting project with some nice approaches to Microservices.

Wondering if Wagon golang project removes the need for Otto ? I have not tried. Wagon with Life yet though but just wanted to check if you have tried Wagon

Xe commented 6 years ago

Update: Seems we can't pull in any of the standard library. I'm gonna fork Go and make my own "OS" that doesn't pull in any of the syscall/js stuff. This is going to result in a lot of very interesting low-level knowledge about the Go runtime.

ghost commented 6 years ago

i think gopherjs might be doing something similar using tags that you can piggy back on.

see: https://github.com/gopherjs/gopherjs/issues/833

Its not the same as what you want, which is to run WASM server side. But they are facing the same challenge in a way and take a similar route.

The other thing might be to liase with the golang team first too, so that what you do an be pushed upstream into golang proper later too.

On Wed, 5 Sep 2018 at 15:07 Christine Dodrill notifications@github.com wrote:

Update: Seems we can't pull in any of the standard library. I'm gonna fork Go and make my own "OS" that doesn't pull in any of the syscall/js stuff. This is going to result in a lot of very interesting low-level knowledge about the Go runtime.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Xe/olin/issues/5#issuecomment-418723491, or mute the thread https://github.com/notifications/unsubscribe-auth/ATuCwuE4c2Kzh5OowzNydMaCgEpHsMitks5uX8x0gaJpZM4WWbxx .

Xe commented 6 years ago

Linker error! https://groups.google.com/forum/#!topic/golang-nuts/wHaSHO_Qw-c

Xe commented 6 years ago

Putting this on hold for now. Rust works.

LaPingvino commented 8 months ago

Maybe time to check out the WASI support for this?