News for hackers. Stuff that matters.
Re:From Zero to Main(): Bare Metal Rust by MuffinFlavored on Tuesday December 17, 2019 @10:38PM (#21821543)
> are all just banging bits

At the end of the day, isn't playing the latest and greatest game on a new nVIDIA graphics card at 5k across 2 monitors also just "banging bits" too? :)

Re:From Zero to Main(): Bare Metal Rust by jacquesm on Wednesday December 18, 2019 @07:14AM (#21824063)
Bitbanging traditionally refers to doing what comms hardware can do in software, for instance to create a serial port using just software and a single bit of digital output and input.

https://en.wikipedia.org/wiki/Bit_banging

Re:From Zero to Main(): Bare Metal Rust by BubRoss on Tuesday December 17, 2019 @11:16PM (#21821732)
No, because you aren't writing directly to the frame buffer, you have to go through drivers, kernels and PCIe bus.
Re:From Zero to Main(): Bare Metal Rust by MuffinFlavored on Wednesday December 18, 2019 @11:37AM (#21826585)
What do the drivers in the kernel talking to the device do over the PCI-e bus? Just send data, right?
Re:From Zero to Main(): Bare Metal Rust by BubRoss on Wednesday December 18, 2019 @11:57AM (#21826809)
In the previous scenario the cpu isn't running using virtual memory and doesn't need to go through the kernel to do something outside of writing to its isolated memory space. It can write to certain memory addresses that make up the frame buffer that the screen is being drawn from.

This is not how a modern PC works. There are system calls (specific assembly instructions) that a user space program can use to communicate with global resources. These go through the kernel and thus are an escape hatch to isolated processes.

These are two very different scenarios with the fundamental difference between virtual memory and multiple isolated processes. There isn't much semantic wiggle room.