Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Go binaries interface with Dagger #5

Closed
1 of 14 tasks
Xe opened this issue Sep 2, 2018 · 6 comments
Closed
1 of 14 tasks

Make Go binaries interface with Dagger #5

Xe opened this issue Sep 2, 2018 · 6 comments

Comments

@Xe
Copy link
Owner

Xe commented Sep 2, 2018

In 3daf7b8, 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.

  • Discover why github.com/Xe/olin/dagger pulls in syscall/js
    • If JS support is actually needed for now:
      • Integrate Otto and shim together syscall/js
      • Callback support
        • Read documentation on package syscall/js
        • Implement
    • If JS support isn't needed:
      • Hack around it
  • Write and test bindings for dagger ABI functions in package github.com/Xe/olin/dagger
    • open
    • read
    • write
    • close
    • sync
  • Create http.RoundTripper instance using dagger's http:// and https:// file schemes
  • Printerfacts client
@ghost
Copy link

ghost commented Sep 2, 2018

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
Copy link
Owner Author

Xe commented Sep 5, 2018

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
Copy link

ghost commented Sep 6, 2018 via email

@Xe
Copy link
Owner Author

Xe commented Sep 6, 2018

@Xe
Copy link
Owner Author

Xe commented Sep 9, 2018

Putting this on hold for now. Rust works.

@Xe Xe closed this as completed Sep 9, 2018
@LaPingvino
Copy link

Maybe time to check out the WASI support for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants