4 ms·
If you're willing to throw a large part of the existing code away to move to a microkernel architecture, you might as well rewrite it in a language that doesn't
by adrianN 7y ago
If you're willing to throw a large part of the existing code away to move to a microkernel architecture, you might as well rewrite it in a language that doesn't have race conditions by design.
- moomin 7y agoThe funny thing about this being that Linux was originally announced on comp.os.minix.
- tormeh 7y agohttps://redox-os.org/ https://redox-os.org/
- danmg 7y agoHow does rust negate data race conditions? These aren't memory errors.
- jolux 7y agoThe borrow checker prevents it. Race conditions that aren’t data races are not prevented, though.
- tormeh 7y agoIt's an OS with microkernel written in Rust. It's literally the first thing you see on the website. So it's both microkernel, and Rust, so it is an example of people doing what parent mentioned.
- jacquesm 7y agoRace conditions can be constructed in almost any language. It is more of a systemic thing than a language artifact though some languages are more race condition prone than others. You can even have race conditions in hardware. Multi-threading or distributed software are excellent recipes for the introduction of race conditions, sometimes so subtle that the code looks good and the only proof that there is something bad going on is the once-in-a-fortnight system lockup.
- lokedhs 7y agoI believe the undocumented instructions in the 6502 was caused by race conditions in the CPU. Some of these instructions are actually usable while others give random results.
- jacquesm 7y agoI wrote a 6502 assembler and had a really hard time not giving $88 it's own mnemonic in the main table rather than to load it at the start of every file from an include. It was just too useful :)
- lokedhs 7y agoWhy wouldn't you? These opcodes seems to be used by most people these days, so there seems to be no reason not to treat them just like any other opcode?
- mondoshawan 7y agoAh, no. Those are caused by don't care states in the logic of the PLA instruction decode block.
- Symmetry 7y agoOne of my professors in processor design had a story about debugging a register leak in an out of order processor with register renaming.
- vkaku 7y agoRace conditions can be created by I/O paths. I'm willing to state that unless the said language abstracts away all I/O, it will always be possible to introduce a bug :)
- ukj 7y agoHaskell Monads! #Sarcasm
- not_a_cop75 7y agoIs the trade off efficiency? Because I'm sure a language that is willing to wait 5 seconds between operations can do pretty well at eliminating race conditions.
- jacquesm 7y agoRace conditions do not have anything to do with absolute time, it is simply an assumption about the sequence in which things are going to happen and finding out in practice that the implementation allows other sequences the output of which is undefined.
- not_a_cop75 7y agoMost absolutes spoken about anything are natural fallacies. The truth is that they can. Hell, I see Apple devices that don't update anything including time until you take them out of screen lock, and you see the previous date and charge amount sometimes even after unlock. That is an efficiency based form of race condition.