|
48 | 48 | in just a few seconds.
|
49 | 49 | [^benchmark-specs]
|
50 | 50 |
|
51 |
| - | Cores | Seconds | |
52 |
| - | :---: | :-----: | |
53 |
| - | 1 | 24 | |
54 |
| - | 2 | 12 | |
55 |
| - | 4 | 7 | |
56 |
| - | 8 | 6 | |
57 |
| - | 16 | 7 | |
58 |
| - |
59 | 51 | - ✔️ **Powerful**
|
60 | 52 |
|
61 |
| - All elements in the Nix grammar have a totally defined style. |
| 53 | + We define a comprehensive style |
| 54 | + for all possible combinations of the Nix expression language. |
62 | 55 |
|
63 | 56 | - ✔️ **Reliable**
|
64 | 57 |
|
65 |
| - Coverage is currently 90%, |
66 |
| - and we'll have 💯% soon. |
| 58 | + High coverage, battle tested. |
67 | 59 |
|
68 |
| - Plus, after formatting [Nixpkgs](https://github.com/nixos/nixpkgs) |
69 |
| - no semantically significant changes are made. |
70 | 60 | From Nix's eyes, code is _just_ the same.
|
71 | 61 | [^semantic-changes]
|
72 | 62 |
|
73 |
| -- ✔️ **Reproducible** |
| 63 | +- ✔️ **Beautiful** |
74 | 64 |
|
75 |
| - Formatting many times yields the same results. |
| 65 | + Beauty is subjective, right? |
76 | 66 |
|
77 |
| -- 🚧 **Beautiful** |
| 67 | + We optimize for the wisdom of the crowd, |
| 68 | + which comes in big part |
| 69 | + from the 2.3 million lines of code of [Nixpkgs](https://github.com/NixOS/nixpkgs). |
78 | 70 |
|
79 |
| - Beauty is subjective, right? |
| 71 | +- ✔️ **Transparent** |
80 | 72 |
|
81 |
| - Style is negotiable at this moment. |
| 73 | + You won't notice the formatter after a while. |
| 74 | + |
| 75 | + Humans care about the content, |
| 76 | + machines about the style! |
82 | 77 |
|
83 | 78 | ## Getting started
|
84 | 79 |
|
@@ -124,18 +119,28 @@ Let's get Alejandra on our systems:
|
124 | 119 |
|
125 | 120 | See why Alejandra was created
|
126 | 121 | and a comparison between alternatives
|
127 |
| -[here](https://discourse.nixos.org/t/the-uncompromising-nix-code-formatter/17385/3?u=kamadorueda) |
| 122 | +[here](https://discourse.nixos.org/t/the-uncompromising-nix-code-formatter/17385/3?u=kamadorueda). |
128 | 123 |
|
129 | 124 | ## Footnotes
|
130 | 125 |
|
131 | 126 | [^benchmark-specs]:
|
132 | 127 | Running on a [machine](https://github.com/kamadorueda/machine) with:
|
133 | 128 |
|
134 |
| - - CPU: 16 x Intel(R) Core(TM) i7-10700K |
| 129 | + - CPU: 8 physical x Intel(R) Core(TM) i7-10700K, 16 logical |
135 | 130 | - MHz: 3800.00
|
136 | 131 | - BogoMips: 7599.80
|
137 | 132 | - Cache Size: 16384 KB
|
138 | 133 |
|
| 134 | + Results: |
| 135 | + |
| 136 | + | Logical Cores | Seconds | |
| 137 | + | :-----------: | :-----: | |
| 138 | + | 1 | 45 | |
| 139 | + | 2 | 22 | |
| 140 | + | 4 | 14 | |
| 141 | + | 8 | 10 | |
| 142 | + | 16 | 11 | |
| 143 | + |
139 | 144 | [^semantic-changes]: The methodology to claim this is:
|
140 | 145 |
|
141 | 146 | 1. Checkout [Nixpkgs](https://github.com/nixos/nixpkgs) and run:
|
|
0 commit comments