Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ghhhhhk8899jj
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
ghhhhhk8899jj
5y ago
Making your own custom USB device has quite a large upfront cost since you need to buy a PID/VID.
2.
▲
by
ghhhhhk8899jj
5y ago
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
3.
▲
by
ghhhhhk8899jj
5y ago
There's no reason to assume that code would contain fewer bugs.
4.
▲
by
ghhhhhk8899jj
5y ago
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.