News for hackers. Stuff that matters.

ghhhhhk8899jj

Re:FTDI FT232RL: Real vs. Fake (2014) on Tuesday June 15, 2021 @04:13AM (#27512577)
Making your own custom USB device has quite a large upfront cost since you need to buy a PID/VID.
Re:Show HN: Embedded Ring Buffer C++98 on Monday June 07, 2021 @04:49AM (#27420419)
volatile does not imply compiler fence on gcc, so this code has a race condition when updating read/write_position, you need compiler barriers here

>data[write_position] = value;

>COMPILER_BARRIER(); // __asm__ volatile("":::"memory");

>write_position = (write_position + 1U) % LENGTH;

and same in Skip()

There's no reason to assume that code would contain fewer bugs.
Re:Sublime Text 4 on Friday May 21, 2021 @02:37AM (#27231160)
For now... Wait a few months/a year and they will find a reason to "take advantage" of that increase in performance and slow it back down again.