Nix Hackers | 927 Members | |
| For people hacking on the Nix package manager itself | 193 Servers |
| Sender | Message | Time |
|---|---|---|
| 19 Nov 2024 | ||
In reply to @connorbaker:matrix.orgwe have fixed this bug in lix | 08:51:37 | |
it clumsily parses anything that says @nix in the output as json, which is used for setPhase inside stdenv that shows the phase in the progress bar, like, unpackPhase, etc | 08:52:48 | |
| this used to cause the entire build to fail | 08:53:07 | |
| https://gerrit.lix.systems/c/lix/+/2057 probably | 08:53:43 | |
| got this for the first time today
| 16:22:34 | |
| Hi. Wanted to share a pretty curious finding. I've been looking into speeding up the flex generated lexer by using the full scanner tables I've run into a funny issue, which really looks like either a
Looks like the generated scanner trips up lots of other cases with comments as well. Has anyone else previously looked into using full scanners previously? | 22:37:43 | |
| * Hi. Wanted to share a pretty curious finding. I've been looking into speeding up the flex generated lexer by using the full scanner tables I've run into a funny issue, which really looks like either a
Looks like the generated scanner trips up lots of other cases with comments as well. Has anyone else previously looked into using full scanners? | 22:43:58 | |
| 20 Nov 2024 | ||
| 00:59:23 | ||
| 01:39:00 | ||
| Hey, I was looking into https://github.com/NixOS/nix/issues/11903 and I'm super confused -- where IS system? The author looks at it with a double dash, but even without it I can't find any reference to system either as a LongFlag or as a Setting | 01:41:07 | |
| 01:41:50 | ||
Actually, I'm really confused on how --help decides to display anything | 01:44:59 | |
~everything in man nix.conf can be used as an --<option> | 01:54:42 | |
and system is documented there | 01:55:08 | |
Unless I'm confused, I meant in the nix repo, where is system as a flag that can be accepted defined. For example, man nix.conf tells me that it takes allow-unsafe-native-code-during-evaluation as a flag, which is defined here: https://github.com/NixOS/nix/blob/32becc87fef7340600df75ffed6e7c6bc56aa827/src/libexpr/eval-settings.hh#L54 | 01:58:17 | |
The only mention is https://github.com/NixOS/nix/blob/32becc87fef7340600df75ffed6e7c6bc56aa827/src/libmain/common-args.cc , where it's mentioning erasing system for nix-env but I don't know where to find that? | 01:59:34 | |
| right, sorry. my guess is that it's not an eval setting and is somewhere else since it's not strictly about eval(?), but I'm afraid I don't know where in the codebase it is exactly | 01:59:44 | |
Do you think you could point me to the entrypoint for --help in nix3 commands? I see showManPage, but as far as I can tell that's just nix2 | 02:02:20 | |
In reply to @dre:imad.nyc system is defined in the libstore settings: https://github.com/NixOS/nix/blob/32becc87fef7340600df75ffed6e7c6bc56aa827/src/libstore/globals.hh#L188 | 05:48:53 | |
In reply to @dre:imad.nyc showHelp: https://github.com/NixOS/nix/blob/32becc87fef7340600df75ffed6e7c6bc56aa827/src/nix/main.cc#L242 | 05:55:23 | |
| 06:57:39 | ||
| Eelco: OK https://github.com/NixOS/nix/issues/11928 is the ticket I would like to fix involving CA things. Don't worry about that. | 21:35:34 | |
| https://github.com/NixOS/nix/issues/11927 This is the plain code cleanup, no new features ticket that I would like to be done before attempting it | 21:36:03 | |
| As I've been working on the persistent lists PR, I've been thinking about the data structures we use currently for lists and attribute sets. Lists: https://github.com/NixOS/nix/blob/0498e2259a0e6ae2f6e121579d35ace79c5b3ef2/src/libexpr/value.hh#L136 Attribute sets: https://github.com/NixOS/nix/blob/0498e2259a0e6ae2f6e121579d35ace79c5b3ef2/src/libexpr/attr-set.hh Has anyone got metrics on what the most commonly used operations are on lists and attribute sets? I'd like to think that we could find out what operations we need to make cheap and select a data structure which provides a low cost for those operations. | 22:25:53 | |
| Most common is opUpdate. I've got some valgrind stuff somewhere. | 23:25:07 | |
In reply to @connorbaker:matrix.orgI doubt that this information is readily available. It should be possible to either instrument cppnix to collect this information and/or use profilers (think gprof/callgrind). callgrind would be the easiest approach | 23:26:06 | |
| I used this:
and got these graphs: https://github.com/NixOS/nix/issues/9034#issue-1910269659 | 23:33:08 | |
| 21 Nov 2024 | ||
| 02:51:38 | ||
| 15:16:11 | |
| Does this mean that Nix just doesn't work out of the box now because of flakes? Or have I misconfigured something? | 15:16:21 | |