gval
gomacro
Our great sponsors
gval | gomacro | |
---|---|---|
2 | 11 | |
696 | 2,132 | |
0.7% | - | |
0.6 | 6.4 | |
4 months ago | 3 months ago | |
Go | Go | |
BSD 3-clause "New" or "Revised" License | 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.
gval
-
Interpreters built in Go
For practical start, see this: https://www.youtube.com/watch?v=JiViND-bpmw It explain one particular type of parser type that is quite easy to grasp and fun to write. Also look on some libraries that deliver "expression executors" - these are in fact small interpreted languages and can give you plenty of examples. Classic one (though currently unmaintaines I think) is: https://github.com/PaesslerAG/gval but there are plenty more, just google for them. On my last words, this is very enjoyable part of programming but it requires much learning so be patient and have fun!
-
My first open-source project looking for feedback
There is a nice lib that let you write much more compact expressions https://github.com/PaesslerAG/gval I'm using this lib for evaluating expressions in a small BPMN engine. At least your solution is missing a context, functions and data to work on. But trying stuff out is propably the best way to learm Go!
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.
- 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
-
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
What are some alternatives?
expr - Expression language and expression evaluation for Go [Moved to: https://github.com/expr-lang/expr]
yaegi - Yaegi is Another Elegant Go Interpreter
govaluate - Arbitrary expression evaluation for golang
gophernotes - The Go kernel for Jupyter notebooks and nteract.
goja - ECMAScript/JavaScript engine in pure Go
mypyc - Compile type annotated Python to fast C extensions
cel-go - Fast, portable, non-Turing complete expression evaluation with gradual typing (Go)
beartype - Unbearably fast near-real-time hybrid runtime-static type-checking in pure Python.
agora
hissp - It's Python with a Lissp.
Gentee script programming language - Gentee - script programming language for automation. It uses VM and compiler written in Go (Golang).
go-pry - An interactive REPL for Go that allows you to drop into your code at any point.