theory-exploration-benchmarks
json_env
theory-exploration-benchmarks | json_env | |
---|---|---|
2 | 3 | |
0 | 4 | |
- | - | |
10.0 | 10.0 | |
over 5 years ago | about 1 year ago | |
Racket | Rust | |
- | 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.
theory-exploration-benchmarks
-
My resignation letter as R7RS-large chair
I chose Racket for a project that involved lots of AST manipulation. Those ASTs were already in s-expression format, so Scheme seemed a natural fit.
The lack of static types was annoying; Typed Racket helped, but was so slow I only enabled it during unit tests (more precisely: Typed Racket functions can be faster than those written in normal Racket, but calling them from normal Racket functions will be slow as it performs run-time checks)
https://github.com/Warbo/theory-exploration-benchmarks/tree/...
-
Use TOML for `.env` Files?
> "CLI args are usually passed around explicitly" -- I think this is a pro, not a con.
Sure; I never said it's a con. They have different characteristics, and are both useful in certain situations :)
> I think the correct term for "things the caller knows better than the implementor" are parameters.
True; that's also the name Racket gives to dynamically-scoped variables https://docs.racket-lang.org/guide/parameterize.html
In fact, Racket uses a parameter (dynamically-scoped variable) to store the environment. This is actually slightly annoying, since the parameter is one big hashmap of all the env vars; but I usually want to override them individually. One of my Racket projects actually defines a helper function to override individual env vars makes a copies all the other environment ( made a are contained in a parameterhttps://github.com/Warbo/theory-exploration-benchmarks/blob/...
json_env
-
Use TOML for `.env` Files?
My major pain point was that I had big JSON files inside my .env files. We use Cloud Foundry at work and it uses plenty of these for configuration.
I wrote a small Rust tool called ‘json_env’[0] to read JSON files and supply them as ENV vars to a program. I’m working on it in my free time and eventually want to also replace direnv with it. TOML and YAML support is also planned.
[0] https://github.com/brodo/json_env
- json_env - Environment Variable Loader
-
My fist rust crate: `json_env`
I just published my `json_env` crate to homebrew. It's a small CLI app which allows you to start other apps with env variables defined in an `.env.json` file.
What are some alternatives?
options-chain-marketdata.ps1
deon - DeObject Notation Format
renegade-way - Option Trading Application
gura - Gura configuration language
r7rs-spec
goapilib - Collection of packages to simplify writing REST APIs
envy - deserialize env vars into typesafe structs with rust
dhall-lang - Maintainable configuration files
viper - Go configuration with fangs