Nix Hackers | 955 Members | |
| For people hacking on the Nix package manager itself | 204 Servers |
| Sender | Message | Time |
|---|---|---|
| 8 Nov 2024 | ||
Observation: If I do nix build .#{foo,bar,baz,qux} in a dev checkout of nixpkgs, I appear to see all of nixpkgs get copied to the store repeatedly. At least, it takes a while and the 'copying' message is shown. Is there a cheaper way to eval a large number of packages during development? | 11:27:13 | |
| p14: nix build -f . .#{foo,bar,baz,qux} | 13:24:38 | |
| for nixpkgs | 13:24:45 | |
| maybe also: nix build -f . .#{foo,bar,baz,qux} -L | 13:24:59 | |
| p14: actually you need to do this: nix build -f . foo bar baz qux -L | 13:26:23 | |
In reply to @joerg:thalheim.ioThat is fine for nixpkgs but what about flake-only projects? | 13:34:16 | |
| 14:28:52 | ||
| 14:30:12 | ||
| Redacted or Malformed Event | 16:11:44 | |
| off-topic here | 16:12:29 | |
| Oh wrong thread | 16:12:46 | |
| #dev:nixos.org | 16:13:58 | |
| Yingchi Long: ^ maybe also post your ideas here. | 17:51:21 | |
| Oh, I see, recently I was taking a brainstorm on "what did nixd need in NixOS/nix". The first thing I want to do is a type-annotation / type checking features for nix-lang, and I'd like to do this in nixd as a PoC, that's a long term plan w/ a large diff. | 17:56:38 | |
| The second is to improve the error handling of the parser to some extend, maybe switch it from a yacc-generated GLR, to hand-written recursive descent, also unifies the parser used for tooling, and the official one. | 17:57:53 | |
| And the last one is to improve the evaluation performance by Ahead-Of-Time analysis, namely some tricks used in Chez Scheme, and related work. | 17:59:13 | |
| (Just some thoughts, sorted by implementation state). | 17:59:57 | |
| 9 Nov 2024 | ||
| Yingchi Long: Could type annotations combined with doc comments? A bit how jsdoc does type checking? | 07:51:59 | |
| https://github.com/NixOS/rfcs/pull/145 | 07:52:28 | |
| 11:44:40 | ||
In reply to @inclyc:matrix.org For reference, in the improbable case you aren't aware: https://github.com/thufschmitt/ptyx Theophane did his master's thesis on building gradual typing into the Nix language. | 14:19:46 | |
| 14:20:11 | ||
| 10 Nov 2024 | ||
Path is deprecated for new code, right? | 03:27:46 | |
do we have conversions for when new std::filesystem::path-using code has to talk to Path-land, or should I just port any Path stuff I touch? | 03:28:12 | |
| 10:04:43 | ||
| 11:56:32 | ||
In reply to @emilazy:matrix.orgI noticed that many std::filesystem::path exception do not provide the most readable error messages and they also do not support these error traces, we are using, so I think we maybe should re-wrap those and throw nix's own exception class in most cases. I think for the most part we want to at least migrate away from path concatenation, this is the most annoying part that breaks things in the windows port. | 17:12:11 | |
In reply to @emilazy:matrix.org* I noticed that many std::filesystem::path exception do not provide the most readable error messages and they also do not support these error traces, we are using, so I think we should re-wrap those and throw nix's own exception class in most cases. I think for the most part we want to at least migrate away from path concatenation, this is the most annoying part that breaks things in the windows port. | 17:13:19 | |
do the error messages differ from strerror? | 17:16:17 | |
they provide the OS error code, so you can always just strerror yourself | 17:16:32 | |