Recent submissions

Comment · 5 months ago
Spacebar hijacking, it is how I scroll webpages
Comment · 8 months ago

  “Bookmark Link…”
  “Save Link As…”
  “Email Image…”
  “Set Image as Desktop Background…”
  “Bookmark Page…”
  ... we can’t get rid of these things by simply toggling some option in about:config ...
Why seemingly the most useless options are not in about:config
Comment · 8 months ago
Probably not enough for AI haters, we need separate executables with kill switch already triggered!
Comment · 8 months ago
I would expect/hope that the deliver person does not know the tips for individual orders.
Comment · 9 months ago
I had a project with those 7 colour e-paper displays and used dithering and it looked amazing. Crazy how much you could fake with just 7 colours and dithering
Comment · 9 months ago
I think another problem is the tiny resize cursor, on windows (at least on mine) it is a lot bigger and more distinct compared to regular cursor and when your cursor changes to resize arrow it is more apparent.

I don't really see/care where my mouse exactly is. If it is outside or inside the window. Once my cursor turns to resize cursor, I just start dragging.

Comment · 10 months ago
Probably the users he is talking about are not the end users like you and me. It is one team using the tools/software of the other team and so "users" for that other team are the members of the first team.
Comment · 11 months ago
zoom
Comment · 11 months ago
Or more generalized "ammo += (maxAmmo * percentageToFill) / 100"
Comment · 1 year ago
Comment · 1 year ago
Probably yes, I know it at least refuses to 'type down first 5 pages of lotr book' because of copyright reasons. Its filter is getting better (as in worse for the user) everyday
Comment · 1 year ago
Does that hardware traps overflows or something?

  I had read an article about how DOOMs engine works and noticed how a variable for tracking the demo kept being incremented even after the next demo started. This variable was compared with a second one storing its previous value

Doesn't sound like something that would crash, I wonder what was the actual crash
Comment · 1 year ago

  The comments show the values each thread observed.
Why? Nothing in that code implies any synchronization between threads and force an ordering. thread_2 can fetch value of y before 1 writes to it which would set b to 0.

You would need additional mechanisms (an extra atomic that you compare_exchange) to force order

edit: but I guess the comment means it is the thing author wants to observe

  Now, the big question: is this execution even possible under the C++ memory model?
sure, use an extra atomic to synchronize threads

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton