News for hackers. Stuff that matters.

facturi

Re:User-defined Order in SQL (2018) on Tuesday August 13, 2024 @03:11AM (#41233062)
It works in MariaDB.
Re:Official proposal for Type Unions in C# on Wednesday August 07, 2024 @10:18PM (#41187519)
Tearing issue is mentioned in this issue https://github.com/dotnet/csharplang/issues/7016 but not in proposal
Re:Official proposal for Type Unions in C# on Wednesday August 07, 2024 @09:36PM (#41187261)
That proposal doesn't mention how the union struct handles tearing under concurrent modification.

Tearing can cause memory safety issue. Variant A can have an integer field and variant B can have a reference field in the same offset. Tearing can cause it to treat an integer as reference.

Re:A hash table by any other name on Monday July 29, 2024 @04:55AM (#41098940)
In GC languages, RCU is just atomic pointer update with immutable data structure. In a language without GC, it requires delayed destruction to avoid memory safety issues.

Linux kernel's RCU waits for all CPU cores to context switch and disables preemption when reading RCU data structure. This is not usable in normal application programming.

Re:When Objects Are Not Enough on Friday July 26, 2024 @05:14AM (#41077062)
This is related: Why relations are better than objects https://www.cell-lang.net/relations.html