Nix NodeJS | 208 Members | |
| 60 Servers |
| Sender | Message | Time |
|---|---|---|
| 18 Nov 2023 | ||
| Are the results in any way surprising? The cputime looks a bit too small to be used for reliable measurements without perf counters | 10:41:33 | |
| Not surprising to me. I was expecting it to be a bit faster and use less memory I'm not overly concerned with exact wall time, I'm OK concluding it's a bit faster and leave it at that. | 11:11:13 | |
| A concern that often comes up when when talking about lock file parsing in nixpkgs performance. I wanted to have ballpark numbers to refer to. | 11:12:52 | |
| Ah, okay. Thank you for sharing | 11:13:31 | |
In reply to @adis:blad.isYou know that I nerdsnipped @tomberek on adding the parsing built-in based on a EBNF grammar (a packrat parser) | 11:48:39 | |
| He got OK speed I think | 11:48:46 | |
| But he uncovered a quadratic issue with Nix strings | 11:48:54 | |
| Because substr is linear all the time as strings in Nix doesn't really know their own length | 11:49:14 | |
| Huh | 11:49:28 | |
In reply to @raitobezarius:matrix.orgThat would be cool to have. | 11:50:50 | |
| But for this case you really don't need fancy parsing, you just need json | 11:51:00 | |
| But gigabyte/s JSON parsing:> | 12:00:28 | |
| Idk how fast is our JSON library | 12:00:43 | |
| Fatet than our nix parser :p | 12:06:05 | |
| * Faster than our nix parser :p | 12:08:01 | |
| After some further refactoring:
| 13:24:25 | |
| I mainly did it for improved UX, but that was a sweet bonus. | 13:24:56 | |
It looks much more similar to fetchNpmDeps in usage now | 13:29:54 | |
| 19 Nov 2023 | ||
| 11:02:39 | ||
| 20 Nov 2023 | ||
In reply to @adis:blad.isHah, it doesn't work (at least not out of the box) but not for the reasons I was thinking of | 16:08:31 | |
| we have a .npmrc to do bearer auth against a private gitlab registry and we hacked support for that into our npmlock2nix fork | 16:09:10 | |
after porting that over (in an even hackier manner), the next issue seems to be that we have packageRoot != src. That makes the npm-config-hook.sh unhappy. Looks like it's being run in src, not in packageRoot for some reason. | 17:04:37 | |
debugging a little bit, I found that $npmRoot is not set at this point: https://github.com/adisbladis/buildNodeModules/blob/master/hooks/npm-config-hook.sh#L6 | 17:09:42 | |
am I still expected to pass sourceRoot to mkDerivation for this to work? | 17:17:07 | |
| so atm I have 2 questions adisbladis
| 17:30:49 | |
the src/sourceRoot/npmRoot/packageRoot situation is quite confusing to me. no combination I've tried seems to work. | 17:46:59 | |
| 21 Nov 2023 | ||
fetchYarnDeps is failing for me with unable to get local issuer certificate for basically everything | 21:57:51 | |
In reply to @r_i_s:matrix.orghttps://github.com/NixOS/nixpkgs/pull/269061 | 22:12:57 | |
| 22 Nov 2023 | ||
| 14:58:10 | ||
| 15:11:18 | |