3 ms·
> A memory-safe language that you can write OSes and drivers in? No. Why couldn’t you? There was always an escape hatch API that let’s you manage that few dire
by kaba0 4y ago
> A memory-safe language that you can write OSes and drivers in? No.
Why couldn’t you? There was always an escape hatch API that let’s you manage that few direct pointer accesses mandated by hardware - otherwise the rest could very well be written in a managed language (as shown by research done by Microsoft for example)
- lmm 4y agoRight, that's exactly the kind of thing that Java's promoters said. But it doesn't seem to have panned out; I don't think I've ever seen a driver written in Java (even though I have seen certain kinds of drivers written in Python).
- kaba0 4y agoA driver doesn’t exist in a vacuum, they are attached to OSs, and all prominent OS today is written in C. Python does have better FFI with C than java, but I really don’t see how that would prove anything contrary to Java.
- lmm 4y agoWhatever the reasons are, the fact remains that it's an example of Java not living up to its early hype.
- spacemanmatt 4y agoI don't remember any claims that people would write general-purpose OS drivers in Java. I do remember the claim that many app-level drivers would migrate from native wrappers to pure Java. And that happened.