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
Xe opened this Issue Sep 2, 2018 · 5 comments

Comments

Projects
None yet
2 participants
@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
@gedw99

This comment has been minimized.

Copy link

gedw99 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

This comment has been minimized.

Copy link
Owner

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.

@gedw99

This comment has been minimized.

Copy link

gedw99 commented Sep 6, 2018

@Xe

This comment has been minimized.

Copy link
Owner

Xe commented Sep 6, 2018

@Xe

This comment has been minimized.

Copy link
Owner

Xe commented Sep 9, 2018

Putting this on hold for now. Rust works.

@Xe Xe closed this Sep 9, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment