!VRULIdgoKmKPzJZzjj:nixos.org

Nix Hackers

901 Members
For people hacking on the Nix package manager itself189 Servers

Load older messages


SenderMessageTime
18 Mar 2025
@Las:matrix.orgLas * 18:42:24
@Las:matrix.orgLas * 18:42:31
@Ericson2314:matrix.orgJohn EricsonI am not sure, I am just saying that https://github.com/NixOS/nix/pull/12668/commits/ece3823c258e688b329f75886fe04659a2ea6175 is not mechanical18:43:32
@Ericson2314:matrix.orgJohn Ericsonwait18:43:50
@Ericson2314:matrix.orgJohn Ericsonoh it was never called from a destructure18:43:58
@Ericson2314:matrix.orgJohn Ericson Las: not sure if this is necessary, but if you split the coroutine part at the end of amDone 18:45:29
@Ericson2314:matrix.orgJohn Ericson make two functions on Goal and amDone calls both 18:45:37
@Ericson2314:matrix.orgJohn Ericsonthen this change can be 100% mechanical18:45:47
@Las:matrix.orgLas
In reply to @Ericson2314:matrix.org
Las: not sure if this is necessary, but if you split the coroutine part at the end of amDone
You mean the bug workaround?
18:46:09
@Ericson2314:matrix.orgJohn Ericsonwell the large point is I think we should live review both PRs commit by commit, take commits from each and land them18:46:53
@Ericson2314:matrix.orgJohn Ericsonso interview as necessary18:47:00
@Ericson2314:matrix.orgJohn Ericson I mean split amDone where cleanup used to be called 18:47:24
@Ericson2314:matrix.orgJohn Ericson amDonePart1 (returns void), amDonePart2 (co_return Done {}) 18:48:10
@Las:matrix.orgLasBut why18:48:20
@Ericson2314:matrix.orgJohn Ericson it might not be necessary, but see it could be important to call worker.removeGoal(shared_from_this()) before putting the goal in an invalid state 18:49:08
@Ericson2314:matrix.orgJohn Ericsonit is unclear to me whether it is possible for two threads to be messing with a goal at once18:49:24
@Ericson2314:matrix.orgJohn Ericsonbut if the goal is removed from worker, and from waitees/waiters, then I don't think another thread can find the goal very easily18:49:50
@Ericson2314:matrix.orgJohn EricsonIf Robert is busy today, well we at least have the Nix meeting tomorrow 18:50:11
@Las:matrix.orgLasYou can’t move around the worker interactions freely because you might mutate the data structures that are being iterated over at the same time18:50:38
@Las:matrix.orgLasMaybe not an issue there though18:50:48
@Las:matrix.orgLasGoals are single threaded18:51:12
@Las:matrix.orgLasMaybe in 2035 Mobile Element will support threads so I can respond it a thread18:52:03
@Las:matrix.orgLas * 18:52:12
@emilazy:matrix.orgemily(Element X does)18:54:10
@k900:0upti.meK900Normal Element does too18:54:27
@k900:0upti.meK900Though we generally try to not use threads in public rooms because there's still clients that don't display them properly or at all18:54:45
@Las:matrix.orgLasI can’t make one on iOS I think?19:03:25
@Ericson2314:matrix.orgJohn EricsonI never saw any mutex or something that made it obviously single threaded, but yes I believe that is the intent19:08:15
@Las:matrix.orgLasSealed state was a mistake19:14:37
@Las:matrix.orgLas * 21:56:23

Show newer messages


Back to Room ListRoom Version: 6