-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Added Wazero dependent Wasm SDK #4821
Conversation
Signed-off-by: Kaijlo <kaijserlove@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had a first read through. This is cool stuff, thanks for working on it 👍
There are some large amounts of copied-over code here; which in itself is not a problem if refactoring is too cumbersome here -- but we should perhaps leave a few notes re: what was copied from where, and why.
Haven't had a chance to pull this down and play with it yet, but it the code looks mostly in a good shape. 🥳
496b4c2
to
7f25c00
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like some wires got crossed rebasing this? But I've noted many good improvements 👍 thanks for bearing with me.
d150854
to
1092d6d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still some git hurdles, it seems. Also go.sum and go.mod seem to have diverged, could you please rebase this again? 😃
the differences in go.mod and go.sum seems to just be the wazero package |
057cb1f
to
000a071
Compare
Added License Signed-off-by: Kaijlo <kaijserlove@gmail.com>
features/wazero/wazero.go
Outdated
) | ||
|
||
func init() { | ||
opa.RegisterEngine("wazero", &factory{}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's use "wasm"
here: it'll allow users of the golang package to pick which wasm engine they want: wazero or wasmtime, by importing features/wazero
or features/wasm
respectively.
ℹ️ It might take a little longer, but I'm adopting this PR. |
OK, I've got this. Closing the PR for now because our open PRs page is a mess 🧹 |
Added a Wazero dependent Wasm SDK that is almost interchangeable with the Wasmtime dependent SDK.
Currently supports Go 1.17 and 1.18 as Wazero doesn't support Go 1.16