Hacker News new | ask | show | jobs
by msla 961 days ago
> Almost all C++ code interacts with bare pointers at some point.

This is a device driver. If it has to talk to memory-mapped hardware, that's a raw pointer, inherently, inevitably.

Other things are language issues, and can be solved by changing languages, but raw pointers are inherent in the task.

2 comments

> This is a device driver. If it has to talk to memory-mapped hardware

This is an IPC "device driver". It does not talk to any hardware, it's used to pass messages between processes.

> This is a device driver.

It's not, it's an IPC subsystem. It doesn't talk to any hardware.