News for hackers. Stuff that matters.
Re:Introducing extended line endings support in Notepad by Analemma_ on Tuesday May 08, 2018 @04:00PM (#17024355)
> with none of the benefits of a database (ACID)

This is not correct, Windows Registry updates are atomic and transactional. There may be other problems with the registry model, but it is a "real" database.

Re:Introducing extended line endings support in Notepad by krylon on Tuesday May 08, 2018 @04:07PM (#17024452)
ACID means more than atomic updates, though. To be ACID-compliant, you'd have to be able to group several changes to the registry and have them take effect either all at once or not at all.
Re:Introducing extended line endings support in Notepad by Const-me on Tuesday May 08, 2018 @06:49PM (#17026024)
> To be ACID-compliant, you'd have to be able to group several changes to the registry and have them take effect either all at once or not at all.

You mean transactions? Windows registry supports them since Vista when they added Kernel Transaction Manager: https://msdn.microsoft.com/en-us/library/windows/desktop/bb9...

See CreateTransaction, RegCreateKeyTransacted, RegOpenKeyTransacted, CommitTransaction[Async], RollbackTransaction[Async] APIs.

Re:Introducing extended line endings support in Notepad by krylon on Wednesday May 09, 2018 @12:04AM (#17027340)
I stand corrected. Good to know, thank you!
Re:Introducing extended line endings support in Notepad by Const-me on Wednesday May 09, 2018 @09:04AM (#17029438)
To be fair, I’ve never used KTM in my apps.

In cases when I need to write several values atomically (e.g. in a program with persistent window positions, after user moved a window I want to write all 4 coordinates of the rectangle), I just keep them in a single value, either string or binary. Even without KTM, registry API already guarantees value writes are atomic.

Re:Introducing extended line endings support in Notepad by eterm on Tuesday May 08, 2018 @04:09PM (#17024474)
A word for that is transactional.
Re:Introducing extended line endings support in Notepad by fulafel on Tuesday May 08, 2018 @05:03PM (#17025070)
It's implied by the I (isolation).