!VRULIdgoKmKPzJZzjj:nixos.org

Nix Hackers

929 Members
For people hacking on the Nix package manager itself196 Servers

Load older messages


SenderMessageTime
31 Oct 2024
@emilazy:matrix.orgemily world readable like a secret in /nix/store that's totally fine because all local users are trusted and we have the sandbox enabled? :) 16:08:30
@connorbaker:matrix.orgconnor (burnt/out) (UTC-8)
In reply to @joerg:thalheim.io
connor (he/him) (UTC-7): ok. I could imagine that it takes more cpu time to lookup those nested datastructure (i.e. pointer chasing). I suppose you didn't look at memory usage in comparison?
I did; it allocates more memory from what I remember. I’ll try to update the numbers section with the output.
16:08:45
@khaleghi:matrix.org..what about Interpreter Profiling and Bottleneck Identification to optimize operations? do you know any open-source project where mathematical optimization is necessary to engage?16:10:44
@k900:0upti.meK900Well you could try, but Nix is currently very difficult to profile for a variety of reasons16:11:46
@k900:0upti.meK900And it's not something you can automate away16:11:50
@k900:0upti.meK900You need to actually be familiar with the code base and what to optimize16:11:59
@k900:0upti.meK900And it'll mostly be, like, low level C++ things16:12:14
@k900:0upti.meK900And not math16:12:23
@khaleghi:matrix.org..I can do some statistical and complexity analysis over the project16:13:06
@k900:0upti.meK900That's really not the kind of thing that's going to help16:13:21
@k900:0upti.meK900The interpreter isn't slow because it's complex16:13:38
@k900:0upti.meK900It's slow because it was not written to be fast16:13:44
@k900:0upti.meK900If that makes any sense16:13:47
@khaleghi:matrix.org..😕16:14:14
@aloisw:kde.org@aloisw:kde.org
In reply to @k900:0upti.me
The interpreter isn't slow because it's complex
I think they might mean "complexity" as in "algorithmic complexity".
16:14:41
@k900:0upti.meK900Yes, I get that16:15:23
@khaleghi:matrix.org..I'm looking for contributing some open-source projects to make my CV16:15:25
@k900:0upti.meK900And it's not going to help the interpeter16:15:27
@k900:0upti.meK900Because the interpreter is just ... not very designed to be fast16:15:40
@khaleghi:matrix.org.. K900: anyways, thanks for sharing your experience with us. 16:17:43
@connorbaker:matrix.orgconnor (burnt/out) (UTC-8)If you want to do open source work and have a background in numerical analysis, check out https://herbie.uwplse.org/16:19:04
@khaleghi:matrix.org..not bad, thanks a lot16:20:38
@khaleghi:matrix.org.. connor (he/him) (UTC-7): I have just sent an email to them. many thanks. 16:27:16
@khaleghi:matrix.org..it seems they are not active on the project. their email simply doesn't work to get inquiries. i have sent an email to tensorflow probability library to see how it goes.16:51:25
@adda0:matrix.orgAdda joined the room.17:17:45
@connorbaker:matrix.orgconnor (burnt/out) (UTC-8) Added GC numbers to https://github.com/NixOS/nix/pull/11767; with the change it allocates more memory than before (which is odd, given that the implementation we currently have just mallocs and memcpy's like wild -- I'd expect at least some decrease, though maybe that's because I haven't figured out how to work transient yet). 17:56:45
@catterwocky:matrix.orgPhilipp Jungkamp left the room.22:54:54
@catterwocky:matrix.orgPhilipp Jungkamp joined the room.22:55:15
1 Nov 2024
@joerg:thalheim.ioMic92Bumped all nix versions and added some automation for updating nix: https://github.com/NixOS/nixpkgs/pull/35283410:53:28
@ryan4yi:matrix.orgRyan Yin joined the room.14:21:04

Show newer messages


Back to Room ListRoom Version: 6