Skip to content

feat(go): add a TinyGo guest generator (WIP, do not merge!) #321

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

Closed
wants to merge 8 commits into from

Conversation

Mossaka
Copy link
Member

@Mossaka Mossaka commented Sep 22, 2022

I started this work as a hackathon project. It currently can only work with integer functions for both import/export. It's not nearly half done yet, but I want to put this out to those who are interested in. Any feedback on the go user application's experience would be much welcomed!

This is also a place to track things to be done:

  • type numbers
  • update to use the world generator trait
  • type record
  • type flags
  • type tuple
  • type string
  • type varient
  • type option
  • type union
  • type enum
  • type alias
  • type list
  • type builtin
  • "go:generate" and executable that hides "init" function
  • type resource

Signed-off-by: Jiaxiao Zhou [email protected]

@Mossaka Mossaka marked this pull request as draft September 22, 2022 23:54
@Mossaka Mossaka changed the title feat(go): add a Go guest generator feat(go): add a Go guest generator (WIP, do not merge!) Sep 22, 2022
@codefromthecrypt
Copy link

curious. is this intended to be go like normal go? (GOOS=js) or tinygo js or tinygo wasi?

@Mossaka
Copy link
Member Author

Mossaka commented Dec 2, 2022

@codefromthecrypt

This is intended to be tinygo wasi.

@Mossaka
Copy link
Member Author

Mossaka commented Dec 19, 2022

I am working on update this "ancient" PR to the newest component model world generator. Then I will implement the remaining types.

@Mossaka Mossaka changed the title feat(go): add a Go guest generator (WIP, do not merge!) feat(go): add a TinyGo guest generator (WIP, do not merge!) Dec 19, 2022
@Mossaka
Copy link
Member Author

Mossaka commented Jan 29, 2023

Closing this outdated draft PR as I am working on a new branch to bring tinygo guest binding generator.

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

Successfully merging this pull request may close these issues.

2 participants