4 ms·
An elegant, brilliant idea. What could possibly go wrong? ;) How about floating point division by zero? Then you could use floating point syscall numbers! SWOO
by DonHopkins 7y ago
An elegant, brilliant idea. What could possibly go wrong? ;)
How about floating point division by zero? Then you could use floating point syscall numbers! SWOON
Call it the NaNix kernel.
"To infinity, and beyond!!!"
- bicolao 7y ago> What could possibly go wrong? ;) It's not a bug, it's a feature. This adds.. ehem.. a new dimension to integer numbers (or even complex numbers, we'll call them supercomplex numbers).
- yason 7y agoBrilliant! For example, something like 180.7 could then be understood by the kernel to "userland wants to call 70% open and 30% unlink" in one go!
- rrmm 7y agoYou could probably build an academic career on "fractional interpolation of parameterized system calls".
- davedx 7y agoQuantum computing supremacy!
- DonHopkins 7y agoQuantum Objects: Maybe that's what "Quajects" in Alexia Massalin’s Synthesis Kernel actually represent! http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.29.4871&rep=rep1&type=pdf http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.29.... p. 51: Chapter 4, Kernel Structure All things should be made as simple as possible, but no simpler. -Albert Einstein 4.1 Quajects Quajects are the building blocks out of which all Synthesis kernel services are composed. The name is derived from the term "object" of Object-Oriented (O-O) systems, which they strongly resemble [32]. The similarity is strong, but the difference is significant. Like objects, quajects encapsulate data and provide a well-defined interface to access it. Unlike objects, quajects use a code-synthesis implementation to achieve high performance, but lack high-level language support and inheritance. Kernel quajects can be broadly classified into four kinds: thread, memory, I/O, and device. Thread quajects encapsulate the unit of execution, memory quajects the unit of data storage, I/O quajects the unit of data movement, and device quajects the machine's interfaces to the outside world. Each kind of quaject is defined and implemented independently.
- kccqzy 7y agoThat might not work. Integer division by zero is defined to raise #DE, incidentally the very first in the interrupt vector. Floating point division by zero silently produces infinity or NaN without informing the supervisor.