!rWxyQqNqMUDLECdsIf:blad.is

Poetry2nix

304 Members
https://github.com/nix-community/poetry2nix55 Servers

Load older messages


SenderMessageTime
6 Nov 2023
@matthewcroughan:defenestrate.itmatthewcroughanyeah, it has taken me hours to do this stuff too, where docker would have potentially taken a few minutes 17:50:38
@matthewcroughan:defenestrate.itmatthewcroughanbut the missing information in that statement, is that Docker would have only worked for a few minutes 17:50:49
@matthewcroughan:defenestrate.itmatthewcroughanOnce done in Nix, it will continue working, the Dockerfile for the project is probably not reproducible.17:51:26
@matthewcroughan:defenestrate.itmatthewcroughanSo if you care about reproducibility, you kind of have to do it in Nix 17:51:36
@pareto-optimal-dev:matrix.orgpareto-optimal-dev
In reply to @matthewcroughan:defenestrate.it
So if you care about reproducibility, you kind of have to do it in Nix
My problem is typically putting too much time/effort into packaging with Nix honestly.
17:58:03
@matthewcroughan:defenestrate.itmatthewcroughanIt's not Nix. It's software in general.17:58:29
@pareto-optimal-dev:matrix.orgpareto-optimal-devAlso, here is an issue related to poetry2nix and tiktoken, not sure if you've seen it: https://github.com/nix-community/poetry2nix/issues/115517:58:22
@matthewcroughan:defenestrate.itmatthewcroughanI see a lot of misattributed blame on Nix. 17:58:44
@pareto-optimal-dev:matrix.orgpareto-optimal-devI agree that Nix surfaces the mess that crappy build practices have made. However, sometimes I don't have enough free time to counteract that by getting Nix to work ;)17:59:23
@matthewcroughan:defenestrate.itmatthewcroughanOkay, we can debug this. 17:59:38
@matthewcroughan:defenestrate.itmatthewcroughan

First,

Validating consistency between /build/Cargo.lock and /Cargo.lock
/nix/store/546ykj3xf8w5vznnk4m29a0wkzi4phf7-diffutils-3.9/bin/diff: /Cargo.lock: No such file or directory
18:00:00
@matthewcroughan:defenestrate.itmatthewcroughanNow, you tell me, who's fault is that?18:00:05
@matthewcroughan:defenestrate.itmatthewcroughanIs that nix's fault? Or is that tiktoken's fault?.18:00:12
@matthewcroughan:defenestrate.itmatthewcroughanThe fact that there is no Cargo.lock in the tiktoken repository, leading to unreproducibility.18:00:29
@pareto-optimal-dev:matrix.orgpareto-optimal-devtiktokens for not committing their lockfile18:00:40
@matthewcroughan:defenestrate.itmatthewcroughanOkay, so they have not committed a lockfile, that means you cannot build their software with Nix.18:00:57
@matthewcroughan:defenestrate.itmatthewcroughanIf you want that to happen, you need to use another build system that will generate different results every time you try to build the software.18:01:42
@matthewcroughan:defenestrate.itmatthewcroughanOr get the lockfile, and pass it to Nix, yourself.18:02:12
@matthewcroughan:defenestrate.itmatthewcroughanSo we can see here, that there is absolutely nothing wrong with Nix. Instead, the problem is with tiktoken.18:02:30
@matthewcroughan:defenestrate.itmatthewcroughanThis problem is present in most Python software.18:02:39
@matthewcroughan:defenestrate.itmatthewcroughan * This problem is present in most Python software too. The lack of a lockfile.18:02:47
@matthewcroughan:defenestrate.itmatthewcroughanOr an incomplete lockfile.18:03:09
@matthewcroughan:defenestrate.itmatthewcroughan So what does pip do? It ignores that and gives different results when you run it twice. 18:03:28
@pareto-optimal-dev:matrix.orgpareto-optimal-devYes. The problem is "figure out workaround Nix needs because they don't value reproducibility" is it can be costly in terms of time and lots of times different per language. I'd prefer to always both get Nix to work and push the upstream to use a lock file.18:04:14
@matthewcroughan:defenestrate.itmatthewcroughanYes, so why don't you just not use their software?18:04:25
@pareto-optimal-dev:matrix.orgpareto-optimal-devBecause it offers value. For instance MemGPT can help me with remembering those Nix overrides, perhaps better than my current notes ;)18:05:10
@matthewcroughan:defenestrate.itmatthewcroughanThere's a lot of good Rust stuff coming out, regarding LLMs and machine learning in general18:05:12
@matthewcroughan:defenestrate.itmatthewcroughanpoetry2nix, and other projects like it, are Nix code that scrambles to find correct input data, to automatically build python packages.18:05:36
@matthewcroughan:defenestrate.itmatthewcroughanbut Python has seen an explosion in build systems, complexity, making it deeply unautomatable.18:05:50
@matthewcroughan:defenestrate.itmatthewcroughanpoetry2nix still reduces the amount of code required to do something, massively 18:05:59

Show newer messages


Back to Room ListRoom Version: 6