News for hackers. Stuff that matters.
Re:Ways of Implementing a System Call by DonHopkins on Friday January 17, 2020 @03:45AM (#22072976)
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!!!"

Re:Ways of Implementing a System Call by yason on Friday January 17, 2020 @05:47AM (#22073586)
Brilliant! 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!
Re:Ways of Implementing a System Call by rrmm on Friday January 17, 2020 @06:17AM (#22073724)
You could probably build an academic career on "fractional interpolation of parameterized system calls".
Re:Ways of Implementing a System Call by davedx on Friday January 17, 2020 @08:50AM (#22074567)
Quantum computing supremacy!
Re:Ways of Implementing a System Call by DonHopkins on Friday January 17, 2020 @12:14PM (#22076655)
Quantum 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....

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.

Re:Ways of Implementing a System Call by kccqzy on Friday January 17, 2020 @08:27PM (#22081505)
That 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.
Re:Ways of Implementing a System Call by bicolao on Friday January 17, 2020 @04:06AM (#22073092)
> 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).