Skip to content

Draft: Simplify DFX behavior#350

Closed
matthewhammer wants to merge 3 commits intomasterfrom
simplified
Closed

Draft: Simplify DFX behavior#350
matthewhammer wants to merge 3 commits intomasterfrom
simplified

Conversation

@matthewhammer
Copy link
Contributor

Not meant for master.

This branch gives a simpler, more predictable, more understandable behavior to dfx and its commands. It's an ongoing experiment in software minimalism.

@matthewhammer matthewhammer changed the title Simplify DFX behavior Draft: Simplify DFX behavior Jan 31, 2020
@matthewhammer matthewhammer marked this pull request as ready for review January 31, 2020 15:28
@matthewhammer matthewhammer requested a review from a team as a code owner January 31, 2020 15:28
@matthewhammer
Copy link
Contributor Author

(Putting this into non-draft status just to get CI to run.)

@dfinity dfinity deleted a comment from hansl Jan 31, 2020
@dfinity dfinity deleted a comment from hansl Jan 31, 2020
@chenyan-dfinity
Copy link
Contributor

chenyan-dfinity commented Jan 31, 2020

I think we need to design a DSL for configuration and build. The CLI command can then be extremely minimal without any flags. All configuration/build flags will be extracted from the DSL.

I like Google's internal GCL language a lot, and there seems to be an open source version: https://jsonnet.org/articles/design.html, with a third-party Rust support: https://github.com/anguslees/rust-jsonnet. Unfortunately they made a compromise by targeting JSON as the output format, but the main features of the language are preserved.

A DSL like this should be able to unify everything: the cache, build params, deployment configs all written in one language in a single configurable place. No more code changes in the dfx binary.

@matthewhammer
Copy link
Contributor Author

@matthewhammer matthewhammer deleted the simplified branch February 3, 2020 22:47
dfinity-bot added a commit that referenced this pull request Aug 15, 2020
## Changelog for advisory-db:
Branch: 
Commits: [rustsec/advisory-db@fdc3c78d...8fba4e52](rustsec/advisory-db@fdc3c78...8fba4e5)

* [`f81972e8`](rustsec/advisory-db@f81972e) Informational advisory for rust-lang-nursery/failure[RustSec/advisory-db⁠#336](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/336)
* [`5cc05895`](rustsec/advisory-db@5cc0589) Add advisory for rgb
* [`a61e5b2c`](rustsec/advisory-db@a61e5b2) Fix spelling
* [`9611ff4c`](rustsec/advisory-db@9611ff4) Added note about invariants, specified resolution
* [`90624f4e`](rustsec/advisory-db@90624f4) Assigned RUSTSEC-2020-0029 to rgb ([RustSec/advisory-db⁠#350](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/350))
* [`7ba77515`](rustsec/advisory-db@7ba7751) Apply PR feedback
* [`8cfebb1f`](rustsec/advisory-db@8cfebb1) Assigned RUSTSEC-2019-0036 to failure
* [`8fba4e52`](rustsec/advisory-db@8fba4e5) fix disclosure date
mergify bot pushed a commit that referenced this pull request Aug 15, 2020
## Changelog for advisory-db:
Branch: 
Commits: [rustsec/advisory-db@fdc3c78d...8fba4e52](rustsec/advisory-db@fdc3c78...8fba4e5)

* [`f81972e8`](rustsec/advisory-db@f81972e) Informational advisory for rust-lang-nursery/failure[RustSec/advisory-db⁠#336](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/336)
* [`5cc05895`](rustsec/advisory-db@5cc0589) Add advisory for rgb
* [`a61e5b2c`](rustsec/advisory-db@a61e5b2) Fix spelling
* [`9611ff4c`](rustsec/advisory-db@9611ff4) Added note about invariants, specified resolution
* [`90624f4e`](rustsec/advisory-db@90624f4) Assigned RUSTSEC-2020-0029 to rgb ([RustSec/advisory-db⁠#350](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/350))
* [`7ba77515`](rustsec/advisory-db@7ba7751) Apply PR feedback
* [`8cfebb1f`](rustsec/advisory-db@8cfebb1) Assigned RUSTSEC-2019-0036 to failure
* [`8fba4e52`](rustsec/advisory-db@8fba4e5) fix disclosure date
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants