victoria-dom
jsonnet
Our great sponsors
victoria-dom | jsonnet | |
---|---|---|
1 | 18 | |
43 | 5,523 | |
- | 1.6% | |
10.0 | 6.7 | |
almost 3 years ago | 24 days ago | |
Rust | Jsonnet | |
GNU General Public License v3.0 or later | 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.
victoria-dom
-
Are there any rust libraries implementing a CSS-like language?
You could use https://lib.rs/crates/cssparser + https://lib.rs/crates/selectors - or, if you are willing to convert your tree to DOM just for querying, there are other libraries like https://lib.rs/crates/simplecss, https://lib.rs/crates/nipper, https://github.com/kuchiki-rs/kuchiki or https://github.com/khvzak/victoria-dom
jsonnet
-
More work
you still use JSON? have you heard of https://jsonnet.org/ ? yaml?
- Nix and NixOS Get So Close to Perfect
-
Config file formats suck
If you needs templating you can use jsonnet: https://jsonnet.org/ if you need scheme constraints you can use JSON-SCHEME: https://json-schema.org/ That is the whole design you add on what you need for your specific requirements. This gets back to the core philosophy of the Unix way vs something like JEE. The Unix way, is that you add on the functionality you need via pluggable parts as you need them. The JEE way is the same as the Angular way, the same as any other opinionated way, and that is trust us that we made all the right decisions for you, and it is rarely the case. A JSON based information transport solution with jsonnet bolted on top of it if you need templating, is far more robust than YAML. Because when you don't need templating you can just treat it as simple JSON.
-
Jo – a shell command to create JSON
"Even though Python isn't the fastest language out there, it's likely still faster than the shell command above."
That is going a bit far. By all means use Python. Go ahead and attack people who use the shell. But let's be honest. The shell is faster, assuming one knows how to use it. A similar claim is often made by Python advocates, something along the lines of Python is not slow if one knows how to use it.
The startup time of a Python interpreter is enormous for someone who is used to a Bourne shell. This is what always stops me from using Python. If anyone knows how to mitigate that delay, feel free to share.
Anyway, this "jo" thing seems a bit silly. Someone at Google spent their 20% time writing a language called jsonnet to emit JSON. It has been discussed on HN before. People have suggested dhall is a perhaps better alternative.
- Jsonnet – A Data Templating Language
-
Alternatives to Terragrunt
I generate terraform from jsonnet to get rid of repetition. See https://jsonnet.org/.
-
Do DevOpers Use JSONNET?
I have heard about jsonnet.org and wanted to know how is it used in Stack Setup and what is the motivation behind Creation of Configuration Files through Variables and Programming Logic?
- Tips on Adding JSON Output to Your CLI App
-
Best struct merge function design?
If your use-case is parsing and overriding some JSON configuration, you might want to take a look at JSONNET - https://jsonnet.org/, a language that is commonly used within Google to manage different configurations. It is basically an extension to JSON with different merge operators. For example ``key: ['value']`` overrides the previous list, while ``key+: ['value']`` extends the list. Overriding / extending objects works similarly. Overriding bools could be done with ``{hasCarnivores: !super.hasCarnivores}`` for example.
-
The Perfect Configuration Format? Try TypeScript
No type support but I find jsonnet [0] pretty useful when you have tons of configuration files.
[0] - https://jsonnet.org/
What are some alternatives?
kube-libsonnet - Bitnami's jsonnet library for building Kubernetes manifests
cue - CUE has moved to https://github.com/cue-lang/cue
dhall-lang - Maintainable configuration files
cson - CoffeeScript-Object-Notation. Same as JSON but for CoffeeScript objects.
Pulumi - Pulumi - Universal Infrastructure as Code. Your Cloud, Your Language, Your Way 🚀
toml.io - Source Code for toml.io
s6 - The s6 supervision suite.
Protobuf - Protocol Buffers - Google's data interchange format
lua-patterns - Exposing Lua string patterns to Rust
pyyaml - Canonical source repository for PyYAML
skycfg - Skycfg is an extension library for the Starlark language that adds support for constructing Protocol Buffer messages.
jsoneditor - A web-based tool to view, edit, format, and validate JSON