go-jsonnet
participle
go-jsonnet | participle | |
---|---|---|
2 | 8 | |
1,639 | 3,507 | |
1.3% | - | |
7.0 | 4.5 | |
4 months ago | 5 days 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.
go-jsonnet
-
The Dhall Configuration Language
> jsonnet seemed like a great idea to me, but I've experienced extremely low performance.
Although each implementation of jsonnet has some quirks, take a look at (scala-based) sjsonnet^1 or go-jsonnet^2 for improved performance. We use go-jsonnet because of some issues we had with the scala version - but it does seem to be the fastest by a large margin.
There's also a Rust version^3 that claims to be the fastest yet^4, but I haven't experimented with it at all.
[1]: https://github.com/databricks/sjsonnet
[2]: https://github.com/google/go-jsonnet/
[3]: https://github.com/CertainLach/jrsonnet
[4]: https://gist.github.com/CertainLach/5770d7ad4836066f8e0bd91e...
-
Is GO a good option to write a compiler/interpreter?
While I never wrote one, there are some good examples out there beyond the Go compiler itself. Have a look at the Benthos bloblang one (which is quite simple): https://github.com/Jeffail/benthos/tree/master/internal/bloblang and the go-jsonnet VM one (which is more complex): https://github.com/google/go-jsonnet
participle
-
Parser generator
I know of tools like Kaitai that do essentially what I want, just curious about my options. I guess something like https://github.com/alecthomas/participle could work to parse the format, then I'd have to generate code based on the parsed data or something
-
Advice or tip
This one was recommended in an older thread and looks like it's still actively developed: https://github.com/alecthomas/participle
-
Best parser generator in go?
I like participle: https://github.com/alecthomas/participle. It's pretty easy to get something working if it fits your use case.
-
I'm looking for a library that can parse through a string and pickup parameters and add it to a golang object
Like the other commenters said, it's probably best to just split the string and go through it manually. If you need a real parser, check out: https://github.com/alecthomas/participle
-
JQL in go
I used https://github.com/alecthomas/participle to implement a custom DSL for some projects. I think there's also an SQL example in the repository. After the parsing is solved it's 'only' about doing something useful with the query but at least you've full control of all aspects, which features you'd like to support and so on.
-
Is GO a good option to write a compiler/interpreter?
I made a domain specific language using https://github.com/alecthomas/participle what I found interesting is the grammar defined in structure annotations. After the parser runs, you get a fully instantiated structure based upon the input. I then invoke structure methods to do the work described in the DSL.
-
GO App has very bad performance vs. NodeJS version. Seeking answers.
Maybe instead of regex you could look into other options.
-
If you know Go and Rust and you are DevOps engineer, what situation would you prefer to develop DevOps tooling in Rust instead of Go?
Shameless plug, but have you compared your Rust parser to https://github.com/alecthomas/participle?
What are some alternatives?
Benthos - Fancy stream processing made operationally mundane [Moved to: https://github.com/redpanda-data/connect]
golang-pkg-pcre
starlark-go - Starlark in Go: the Starlark configuration language, implemented in Go
go-auto-commenter - A go tool to add comments automatically on all the exported functions in a go project
mina - Mina is a cryptocurrency protocol with a constant size blockchain, improving scaling while maintaining decentralization and security.
graphql-go-tools - GraphQL Router / API Gateway framework written in Golang, focussing on correctness, extensibility, and high-performance. Supports Federation v1 & v2, Subscriptions & more.
dhall-aws-cloudformation - Typecheck, template and modularize your AWS CloudFormation with Dhall
TatSu - 竜 TatSu generates Python parsers from grammars in a variation of EBNF
jrsonnet - Rust implementation of Jsonnet language
phpgrep - Syntax-aware grep for PHP code.
kubernetes-mixin - A set of Grafana dashboards and Prometheus alerts for Kubernetes.
salsa - A generic framework for on-demand, incrementalized computation. Inspired by adapton, glimmer, and rustc's query system.