Hacker News new | ask | show | jobs
by AaronFriel 1312 days ago
I don't understand why this non-sequitur keeps going! There seems to be a lot of point-missing here.

OpenBSD is a kernel and a general purpose operating system. It runs arbitrary userland software.

Rewriting the kernel in Java will not make C user code safer, and the cost to convert OpenBSD is so nontrivial as to make it an absurd suggestion. I mean, really truly absurd. As in, "am I even talking to real people who work with software?" absurd. If you think it's a good idea to rewrite a posix-compatible OS kernel in Java, by all means, go do so and make a patch against OpenBSD. It's a monumental undertaking, and I'm sure it'll be impressive!

On the other hand, rewriting userland software in Java (from C) will definitely make it safer, but users can already do this and are choosing not to. The goal of this change is to make it easier to write safer C.

1 comments

A bare metal language runtime is a kernel....

I am fully aware UNIX clones will never use anything beyond C for most part, although there are some famous UNIXes like Apollo that did indeed trail another path.

The context of this thread is adding syscall to the kernel to allow C userland programs to be safer.

Even if the kernel were written in Java - which is, again, absurd to ask of the OpenBSD developers - it would still be a viable syscall to add for user mode programs written in memory unsafe languages.

Only way to make C "safer", is to follow Solaris footsteps, hardware memory tagging.