!9IQChSjwSHXPPWTa:lix.systems

Lix

807 Members
Lix user channel. Feel free to discuss on-topic issues here and give each other help. For matrix.to links to the rest of the Lix channels, see: https://wiki.lix.systems/books/lix-organisation/page/matrix-rooms235 Servers

Load older messages


SenderMessageTime
16 Feb 2025
@gretj:catgirl.cloudgretj joined the room.16:11:33
@charles:computer.surgeryCharles
In reply to @piegames:flausch.social
Though I'd probably stringify the enum tag instead of using a boolean, especially in combination with symbol optimization (strings in the symbol table compress down to u32)
I've just realized that you could just get rid of the bool entirely and just go off the length of the list
16:41:49
@charles:computer.surgeryCharlesIn this particular case anyway. But yeah you'd need a string tag or something in the general case16:42:16
@charles:computer.surgeryCharlesAlso this (the general case) is pretty much the same as what I came up with for python a while back: https://charles.pages.gitlab.computer.surgery/blog/python-has-sum-types.html16:48:14
@piegames:flausch.socialpiegames
In reply to @charles:computer.surgery
In this particular case anyway. But yeah you'd need a string tag or something in the general case
Yeah, this exactly. I'd probably prefer making it a more general sum type system
16:50:33
@charles:computer.surgeryCharles is there a name for the <nixpkgs> syntax? newer versions of the cppnix manual seem to call this "path lookup", but i don't see that term in the lix manual anywhere 18:32:36
@antifuchs:asf.computerantifuchsBelieve that’s just called a path, at least that’s what the nix manual calls them18:41:23
@antifuchs:asf.computerantifuchsFrom https://nix.dev/manual/nix/2.18/language/values#type-path18:41:36
@charles:computer.surgeryCharlesyour manual is too old18:41:45
@charles:computer.surgeryCharleshttps://nix.dev/manual/nix/2.25/language/constructs/lookup-path18:42:03
@antifuchs:asf.computerantifuchsFine fine https://docs.lix.systems/manual/lix/stable/language/values.html#type-path18:42:39
@charles:computer.surgeryCharlesthat doesn't give the construct a name18:42:59
@charles:computer.surgeryCharlesit just says you can use that syntax, but it doesn't give it a name18:43:19
@charles:computer.surgeryCharlesi'm looking for a name18:43:23
@antifuchs:asf.computerantifuchsAh, for the syntax; got it18:43:38
@charles:computer.surgeryCharlesyeah18:43:44
@charles:computer.surgeryCharles semantically paths and lookup paths behave the same way so for a type system they should probably both just belong to a single path type, but i think it would be useful to have a term for both actual paths and the angle bracket syntax 18:44:20
@antifuchs:asf.computerantifuchsHm, yeah, maybe something to put on the value’s meta info (:18:49:26
@charles:computer.surgeryCharlesrelatedly, here's some half-baked thoughts on a system for doing type annotations in nix-the-language: https://hedgedoc.computer.surgery/s/59ni6v-oA#19:37:35
@charles:computer.surgeryCharles if anyone has ideas for how to solve the problem mentioned with callPackage towards the end there i'd be interested in hearing it 19:46:06
@charles:computer.surgeryCharles basically, callPackage will add attributes if the thing you're callPackageing returns an attribute set, otherwise it won't bother 19:47:01
@charles:computer.surgeryCharlesthe type in the reference doesn't even indicate this behavior: https://nixos.org/manual/nixpkgs/unstable/#function-library-lib.customisation.callPackageWith21:27:59
@jyrama:garm.jrd.fijyramaI somehow managed to get my nix-env oom-killed while running comma. Not sure why comma even ran nix-env in the background. Anyone has pointers for gathering information on the process so the underlying problem could be investigated after I start reproducing it?21:38:28
17 Feb 2025
@r522:matrix.org522
# nix flake update
warning: Ignoring the client-specified setting 'tarball-ttl', because it is a restricted setting and you are not a trusted user
warning: Ignoring the client-specified setting 'tarball-ttl', because it is a restricted setting and you are not a trusted user

any clue what would be causing this? nix run nixpkgs#nix -- flake update doesn't cause this, so this seems to be a lix specific thing?

# nix --version
nix (Lix, like Nix) 2.92.0

(installed using the lix module on a flakes system)

grepping through my dotfiles for tarball-ttl finds nothing, so i have no clue where it's actually picking that up from

02:52:47
@charles:computer.surgeryCharles yeah i've been seeing this too, i suspect there's something inside lix that's setting this specifically for nix flake update to try to refresh tarballs 03:24:40
@charles:computer.surgeryCharles i don't think i've seen those warnings appear when doing any operation other than nix flake update 03:25:03
@charles:computer.surgeryCharles friendship ended with nixpkgs.lib.packagesFromDirectoryRecursive, now loadFromDirectoryRecursive and makeScopedPackagesFromDirectoryRecursive are my new best friends: https://gitlab.computer.surgery/charles/dotfiles/-/blob/main/nix/lib/fs.nix?ref_type=heads 07:25:56
@charles:computer.surgeryCharlesi've just opened an issue about this since i didn't see an existing one: https://git.lix.systems/lix-project/lix/issues/68007:37:06
@julia:the-apothecary.clubjulia
In reply to @charles:computer.surgery
yeah i've been seeing this too, i suspect there's something inside lix that's setting this specifically for nix flake update to try to refresh tarballs

guessing it's this

https://git.lix.systems/lix-project/lix/src/commit/d745b28500c4cd9d865e219502e363efd82751f7/lix/nix/flake.cc#L121

10:14:24
@odd:oddware.netOdd joined the room.11:58:51

Show newer messages


Back to Room ListRoom Version: 10