!lymvtcwDJ7ZA9Npq:lix.systems

Lix Development

423 Members
(Technical) development of Lix, the package manager, a Nix implementation. Please be mindful of ongoing technical conversations in this channel.140 Servers

Load older messages


SenderMessageTime
18 May 2024
@puck:puck.moepuckand honestly isn't a great name for what it does (it still requires a valid derivation, just it may not be registered with the store properly; which is, tbh, not something that should be able to happen)14:21:48
@puck:puck.moepuck e.g. the easiest way to make this happen is builtins.toFile "hi.drv" "meow" 14:22:42
@puck:puck.moepuck it writes to /nix/store/233k2fcz02xfpi48ildccq1740gh5mcs-hi.drv but also errors out saying error: expected string 'D'; but claims the path is invalid simultaneously 14:23:46
* @k900:0upti.meK900 flips the counter14:28:07
@Ericson2314:matrix.orgJohn Ericson puck: yeah that reflects my memory 14:30:45
@Ericson2314:matrix.orgJohn Ericson I moved the .drv validation code out of LocalStore so all implementations can use it 14:31:07
@Ericson2314:matrix.orgJohn Ericsonbut it not make it be called more eagerly for things like that14:31:16
@Ericson2314:matrix.orgJohn Ericsonso the file is removed if the validations fails14:32:15
@Ericson2314:matrix.orgJohn Ericson(could also assueme drvs are small and buffer in memory first)14:32:32
@Ericson2314:matrix.orgJohn Ericsonyou all will probably want to take my code unifying the other add to store with the add text to store, so there are fewer versions of this shit to play wack-a-mole with14:33:04
@ckie:ckie.devmei 🌒& hi it seems like lix repl doesn't detect cycles and print them correctly w :p ? 19:58:59
@puck:puck.moepuckit does here; are you thinking about cycles or infinitely recursive non-cycle structures20:00:10
@ckie:ckie.devmei 🌒&uh i'm not sure, just OOM'd after writing that msg20:01:46
@ckie:ckie.devmei 🌒& luckily i made it recover nicely so im back here already. :p mapAttrsRecursiveCond (as: true) id nodes.cookiemonster.options 20:02:18
@puck:puck.moepuckah, that is in fact infinitely recursive non-cycle20:02:28
@ckie:ckie.devmei 🌒&eats all the memory and a few cpu cores and yeah20:02:31
@ckie:ckie.devmei 🌒&not good20:02:36
@ckie:ckie.devmei 🌒&
In reply to @puck:puck.moe
ah, that is in fact infinitely recursive non-cycle
bad ux,,
20:02:45
@ckie:ckie.devmei 🌒&lost my big repl thing cuz i printed a recursive thing20:03:08
@puck:puck.moepuckyeahhhhh we should have an issue for repl history imploding20:03:21
@ckie:ckie.devmei 🌒&and recurse limit 🥺20:03:32
@ckie:ckie.devmei 🌒&maybe even configurable interactively-only in the repl20:03:47
@ckie:ckie.devmei 🌒&silly code should not hang the machine20:04:18
@ckie:ckie.devmei 🌒&ill make the issues20:05:01
@ckie:ckie.devmei 🌒& REPL history should be saved immediately #328 20:07:35
@raitobezarius:matrix.orgraitobezarius (DECT: 7248)if i remember, there was a crude recurse limit detector20:07:56
@raitobezarius:matrix.orgraitobezarius (DECT: 7248)but i think eelco wanted to remove it?20:08:01
@puck:puck.moepucki think we added one in, yeah20:08:37
@puck:puck.moepuckbut that doesn't help wider recursion issues, which i think this was20:08:47
@ckie:ckie.devmei 🌒&not making the other ticket since idk enough20:10:46

Show newer messages


Back to Room ListRoom Version: 10