gomacro
yaegi
Our great sponsors
gomacro | yaegi | |
---|---|---|
11 | 38 | |
2,128 | 6,533 | |
- | 2.4% | |
6.4 | 5.6 | |
3 months ago | 23 days ago | |
Go | Go | |
Mozilla Public License 2.0 | Apache 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.
gomacro
-
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.
- Interpreters built in Go
-
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
-
DoorDash: Migrating From Python to Kotlin for Our Backend Services
For our use (debugging and running small scripts to update data), gomacro should work well enough, despite being an "almost complete" Go interpreter. This isn't the same as the Python REPL which uses entirely the same code to run, but it should be up to the task.
-
Hy: A dialect of Lisp that's embedded in Python
I keep meaning to play with https://github.com/cosmos72/gomacro
yaegi
-
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.
-
Best local Golang REPL for learning?
I've used https://github.com/traefik/yaegi REPL combined with rlwrap for nicer readline experience. But sadly no completion.
What are some alternatives?
golive - ⚡ Live views for GoLang with reactive HTML over WebSockets 🔌
grule-rule-engine - Rule engine implementation in Golang
gophernotes - The Go kernel for Jupyter notebooks and nteract.
gobook - Simple in Pure Go in Browser Interactive Interpreter
scriggo - The world’s most powerful template engine and Go embeddable interpreter
gop - The Go+ programming language is designed for engineering, STEM education, and data science
klipse - Klipse is a JavaScript plugin for embedding interactive code snippets in tech blogs.
go - The Go programming language
grex - A command-line tool and Rust library with Python bindings for generating regular expressions from user-provided test cases
goprotobuf - Go support for Google's protocol buffers
mypyc - Compile type annotated Python to fast C extensions