yaegi
wasmer-go
yaegi | wasmer-go | |
---|---|---|
39 | 11 | |
6,609 | 2,737 | |
1.1% | 0.7% | |
5.8 | 0.0 | |
9 days ago | 5 months ago | |
Go | Go | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
yaegi
- Traefik/Yaegi: Yaegi Is Another Elegant Go Interpreter
-
Go: What We Got Right, What We Got Wrong
Yes. There are long standing feature requests for (e.g.) the reflect package that simply don't get done because they'd break this assumption and/or force further indirection in hot paths to support "no code generation at runtime, ever".
Packages like Yaegi (that offers an interpreted Go REPL) have "know limitations, won't be addressed" also because of these assumptions.
https://github.com/golang/go/issues/4146
https://github.com/golang/go/issues/16522
https://github.com/traefik/yaegi?tab=readme-ov-file#limitati...
- Fourteen Years of Go
-
Gojekyll – 20x faster Go port of jekyll
There is always https://github.com/traefik/yaegi - a Go interpreter written to make it easy to write plugins.
- Jacobin: Minimal JVM written in Go and capable of running Java 17 classes
-
Can Go run statements in cmd like Python?
I think https://github.com/traefik/yaegi comes as close as using the python interpreter in you CLI, but for Go
-
Can Go files be compiled by themselves?
There's a go interpreter: https://github.com/traefik/yaegi It could run programs without compiling them, but there're some limitations.
-
referencing packages on the internet and using go plugin
I'd recommend looking into a different approach for plugins such as hashicorp/go-plugin (which uses multiple process PIDs and RPC communication between them) or traefik/yaegi (which implements a Go-compatible scripting language that can be interpreted at runtime and which still supports most Go modules).
-
Mun v0.4.0: a statically-typed scripting language like Rust, written in Rust
Why do we need a language like Rust when we have Rust. Why not just create a Rust interpreter. (There's such an interpreter for Go, BTW, https://github.com/traefik/yaegi )
-
Plugo - A plugin library for Go.
A cool solution I saw was Traefik's yaegi module. They basically created an interpreted scripting language with Go compatible syntax (turning Go into an interpreted, not compiled, language). I haven't tried this but it sounds like it brings the better parts of dynamic languages like Python's plugin support to Go - plugin writers can still write "Go" code, which can load dynamically.
wasmer-go
-
Running WebAssembly code in Go
The next step is to create a Go project and run our wasm file with some runtime. For this, I chose wasmer-go.
-
Running Go code inside a NodeJS app with WASM (Part 1/2, 2023)
However, there are other, more fleshed-out, libraries like wasmer-go that provides a runtime and help us navigate around these limitations. The wasmer-go documentation provides a good summary of these challenges:
-
How to develop a Web app in go
wasmer-go
-
Plugo - A plugin library for Go.
I did some research and found a WebAssembly runtime that can run Go code that has been compiled to WASM. It seems to me that one could implement a plugin system using this. I might try.
-
The Carcinization of Go Programs
Thank you Syrus, appreciate your work with Wasmer. Congrats on the 3.0 release and Windows support! I just fixed guregu/trealla on WAPM to work with the latest changes. I think WAPM is very cool and I hope more people start doing releases on it.
These are the two issues I'm referring to:
https://github.com/wasmerio/wasmer-go/pull/200
https://github.com/wasmerio/wasmer-go/pull/286
-
First steps with Golang and WebAssembly
Time to implement the other side of the story. I have found a WebAssembly runtime for Go. Wasmer-go is a complete and mature WebAssembly runtime for Go based on Wasmer.
-
Choosing scripting extension - need advice
If performance is your main concern, there's Wasmer-go, but if you'd rather avoid CGO dependencies, there's wazero.
-
WASM without Node.js?
See wasmer-go for server-side runtime.
-
Options for running WASM in Go?
I've been looking at wasmer-go, and it seems to be quite performant given that the runtime is written in Rust and invoked through CGo bindings. Is this what everyone is using?
-
Trying to write a cross-language library
Go: I don't know of anything higher-level than either exposing a C ABI from Rust and then calling it using cgo or using wasmer-go to embed a WebAssembly runtime in your Go program.
What are some alternatives?
golive - ⚡ Live views for GoLang with reactive HTML over WebSockets 🔌
napi-rs - A framework for building compiled Node.js add-ons in Rust via Node-API
gomacro - Interactive Go interpreter and debugger with REPL, Eval, generics and Lisp-like macros
wazero - wazero: the zero dependency WebAssembly runtime for Go developers
grule-rule-engine - Rule engine implementation in Golang
wasmtime-go - Go WebAssembly runtime powered by Wasmtime
gobook - Simple in Pure Go in Browser Interactive Interpreter
uniffi-rs - a multi-language bindings generator for rust
scriggo - The world’s most powerful template engine and Go embeddable interpreter
PyO3 - Rust bindings for the Python interpreter
gophernotes - The Go kernel for Jupyter notebooks and nteract.