!djTaTBQyWEPRQxrPTb:nixos.org

Nixpkgs Architecture Team

230 Members
https://github.com/nixpkgs-architecture, weekly public meetings on Wednesday 15:00-16:00 UTC at https://meet.jit.si/nixpkgs-architecture51 Servers

Load older messages


SenderMessageTime
9 Jun 2023
@syphoxy:matrix.org@syphoxy:matrix.orghaha. yeah. I ninja edited that change just now.18:24:30
@infinisil:matrix.orginfinisil I think the biggest argument against such multi-level structures in general is that they cause ambiguities when the package name is too short. E.g. In a pkgs/A/B structure, where would a itself go? 18:25:27
@infinisil:matrix.orginfinisilThere are solutions to this, but it's an extra special case that needs to be explained and implemented.18:25:59
@infinisil:matrix.orginfinisil However, with only pkgs/A/B, there's only very few packages that would cause such problems, so it's very minor 18:26:28
@raitobezarius:matrix.orgraitobezariusthe pkgs/AB/CD is a classical thing BTW18:26:54
@syphoxy:matrix.org@syphoxy:matrix.orgoh. that's an excellent point. I guess if we used underscores..18:27:31
@infinisil:matrix.orginfinisilYeah that was one of the suggested ideas for handling this, using some replacement character18:27:52
@syphoxy:matrix.org@syphoxy:matrix.org* oh. that's an excellent point. I guess if we used underscores.. (or maybe prefix with s?)18:28:37
@syphoxy:matrix.org@syphoxy:matrix.org* oh. that's an excellent point. I guess if we used underscores..18:29:21
@k900:0upti.meK900 How bad of an idea would pkgs/_/AA/BB be 18:31:31
@infinisil:matrix.orginfinisil K900: The 2-level 2-prefix sharding would lead to most shards containing very few packages (I should measure this a bit better, but it's recorded as an argument in the RFC) 18:33:23
@k900:0upti.meK900 I mostly mean the _ part 18:33:56
@infinisil:matrix.orginfinisil K900: Using _ is nice and short compared to unit, though it feels like a hack, similar to how you can do let _ = 0; in _ :P 18:34:03
@infinisil:matrix.orginfinisilI guess it's solving the problem of naming though, because then you don't even have a name anymore lol18:34:28
@k900:0upti.meK900That's the idea, yeah18:36:38
@k900:0upti.meK900It's sorted first18:36:41
@k900:0upti.meK900And it's explicitly not a name18:36:43
@k900:0upti.meK900And it hopefully looks temporary18:36:50
@hexa:lossy.networkhexathere were arguments against a temporary name, like that moving things around breaks lots of assumptions about backports and out-of-tree usage18:37:29
@infinisil:matrix.orginfinisilHmm I don't think it should be intended to be temporary. Yes we hope to migrate to something else at some point, but this might also never happen or we completely change the direction. And this is in the scale of perhaps years18:38:34
@infinisil:matrix.orginfinisilRedacted or Malformed Event18:50:36
@roberthensing:matrix.orgRobert Hensing (roberth) I don't think we've considered pkgs/by-name yet? 19:14:03
@infinisil:matrix.orginfinisil Robert Hensing (roberth): I just thought of pkgs/by-prefix a couple minutes ago :o 19:14:40
@infinisil:matrix.orginfinisil Should definitely consider, reminds me of /dev/disk/by-* 19:15:09
@roberthensing:matrix.orgRobert Hensing (roberth) yeah, I don't think we'll have many views into the same "structure" like dev has, but I don't think that's an objection 19:16:08
@infinisil:matrix.orginfinisilI guess it's also focusing on the structure of it, not the contents, which I don't think is great19:16:22
@roberthensing:matrix.orgRobert Hensing (roberth)that's kind of the point though, because we can't agree on what the contents should be19:16:52
@roberthensing:matrix.orgRobert Hensing (roberth)and we've already acknowledged that we may want to use it for more than packages19:17:09
@roberthensing:matrix.orgRobert Hensing (roberth) and pkgs/by-name does suggest "packages", so that's actually covered 19:17:35
@roberthensing:matrix.orgRobert Hensing (roberth) like unit it lends itself to a transposition like by-name/<shard+name>/package. It's really quite similar 19:18:54

Show newer messages


Back to Room ListRoom Version: 9