News for hackers. Stuff that matters.
Re:Show HN: Zero-dependency Java framework out of beta by 7ep on Monday September 25, 2023 @08:24PM (#37652681)
There are locks around those - for example, writeLock
Re:Show HN: Zero-dependency Java framework out of beta by jabradoodle on Tuesday September 26, 2023 @03:43AM (#37655825)
I mean race conditions between the operations, e.g. an update followed by a delete:

1. update x in memory

2. delete x in memory

3. update fn checks for file on disk

4. delete x from disk

5. update x on disk

Is this not possible and you end up with different state in memory and on disk.

Re:Show HN: Zero-dependency Java framework out of beta by 7ep on Tuesday September 26, 2023 @08:45AM (#37658477)
hmmm. it does seem possible. Let me look into that, thanks!
Re:Show HN: Zero-dependency Java framework out of beta by 7ep on Wednesday September 27, 2023 @09:18AM (#37674241)
great find. i’ve got some adjustments in mind, mainly carefully placed locks. i’d like to give you credit for the call out in the docs/acknowledgment file. is there some better way to reference you than jabradoodle? the code i’m considering is in the branch under_consideration.
Re:Show HN: Zero-dependency Java framework out of beta by jabradoodle on Tuesday October 03, 2023 @04:28AM (#37749283)
Thanks that is kind of you. For the time being I would rather not tie my real life identity to my Internet identity.