HNHacker News
TopNewBestAskShowJobs

pionaryon

8 karma · joined December 12, 2024

submissionscomments
pionaryon··on Programmers want flow. when programming, light turns RED
The worst time to break my flow is when I'm debugging.
pionaryon··on Dumb TVs deserve a comeback
Really? They've been working hard on a mass surveillance legislation (which would outlaw encryption) for a couple years now, it was thankfully voted down in 2023 because of a successful public outcry, but that didn't stop these gestapo assholes, they're gonna "reword it" and keep pushing it and eventually the public will have fatigued and stopped caring and it will go through.
pionaryon··on I replaced my son's school timetable app with an e-paper
And programmers back in the day managed just fine with punch cards...
pionaryon··on What every systems programmer should know about concurrency (2020) [pdf]
You can get pretty far with keeping sharing to an absolute minimum and when you do need to share data, slap a lock free ringbuffer between them to communicate. Pretty simple to get right.
pionaryon··on Deciphering C++ compiler errors: Nonsensical errors from a function declaration
You can suppress function like macros by using parenthesis because function like macro expansion is literally defined as "name directly followed by open paren".

  #define foo(x) something
  void foo(int a) {} // doesn't work
  void (foo)(int a) {} // does work because 'foo)' can never be a function macro