yaegi
gomacro
| yaegi | gomacro | |
|---|---|---|
| 43 | 14 | |
| 8,294 | 2,286 | |
| 1.1% | 0.2% | |
| 4.0 | 3.8 | |
| 4 months ago | 8 months ago | |
| Go | Go | |
| Apache License 2.0 | Mozilla Public License 2.0 |
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
- Show HN - htmgo, build simple and scalable systems with go and Htmx
-
Ask HN: Writing a Shell in Go, Advice
Take a look at yaegi, it already can be used as a REPL and shell. [1]
[1] https://github.com/traefik/yaegi
- Golang Interpreter Written in PHP
-
CouchGO! — Enhancing CouchDB with Query Server Written in Go
One problem I faced here was that the Query Server should be able to interpret and execute arbitrary code provided in design documents. Knowing that Go is a compiled language, I expected to be stuck at this point. Thankfully, I quickly found the Yeagi package, which is capable of interpreting Go code with ease. It allows creating a sandbox and controlling access to which packages can be imported in the interpreted code. In my case, I decided to expose only my package called couchgo, but other standard packages can be easily added as well.
- 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
gomacro
-
Faster interpreters in Go: Catching up with C++
do a type analysis on each expression you want to "compile" to a closure, and instantiate the correct closure for each type combination.
Here is a pseudocode example, adapted from https://github.com/cosmos72/gomacro/blob/2ff796e3da1057c005c...
/* return a closure that computes x + y when executed /
-
Prep: Golang Comptime
I'd been looking at https://github.com/cosmos72/gomacro/ on and off to get similar functionality.
(and by "looking at" I mean "kept meaning to try it but totally haven't got round to it yet" but I still think it's worth a look)
-
Go superset
gomacro added macros and generics several years before generics reached release.
-
Alternative REPL to "gore"
I use https://github.com/cosmos72/gomacro when I want to quickly try some code.
- Gomacro: Go Interpreter and REPL
- Interpreters built in Go
-
".. beat the Crap out of ..", really liked that wording. You can't trump that.
Officially, it's not much scripting friendly, but there are unofficial support to make it a proper scripting option like the gomacro.
-
How to run a go main package from another go program?
If it's a simple program I guess you could use gomacro:https://github.com/cosmos72/gomacro
- Scripting in Go
-
go-notebook
Thanks to gomacro we can import no standard libraries on the notebook :P
What are some alternatives?
go-plugin - Golang plugin system over RPC.
gophernotes - The Go kernel for Jupyter notebooks and nteract.
klipse - Klipse is a JavaScript plugin for embedding interactive code snippets in tech blogs.
mypyc - Compile type annotated Python to fast C extensions
grule-rule-engine - Rule engine implementation in Golang
codegen_example - End to end example to define a Bazel rule that generates Go code