Recent submissions

Comment · 1 month ago
It’s easier just to use a proper decimal type than to remember all of the ways where using floats will bite you in the ass. The behavior is unintuitive even in trivial examples. Code like

  amount_due = 0.10 + 0.20
  amount_paid = 0.30
  
  if amount_paid >= amount_due:
      print("PAID")
  else:
      print("OUTSTANDING")
will print “OUTSTANDING”.
Comment · 5 years ago
Isn’t that kind of implementation blatantly illegal, though?
Comment · 8 years ago
Would've making regular assignment an expression broken too much existing code?
Comment · 9 years ago
Comment · 9 years ago
I have no idea why the C++ designers chose those particular names, but at least Scala uses the same Promise/Future dichotomy, where you resolve (or reject) a Promise into a Future. Perhaps they drew from the same well?
Comment · 9 years ago
Comment · 10 years ago
I have no experience with SQS, but there is definitely space for a simpler queue implementation (or even a standard) than AMQP. I think it's needlessly complex for many problem domains.
Comment · 10 years ago
Here's one example. Web browsers often use bloom filters or similar data structures to check for malicious URLs. They first check the URL against the local bloom filter, and if a match is found, they double check against an online API to make sure it wasn't a false positive.

Shipping a full list of malicious URLs would be too expensive, but a bloom filter fits in a fraction of the space and can still eliminate a vast majority of the API calls.

Comment · 10 years ago
That's Norway. The other Nordic countries weren't lucky enough to have significant numbers of oil.
Comment · 10 years ago
Not the American pronounciation!
Comment · 10 years ago
The y is pronounced like the ü in über.
Comment · 10 years ago
> Imagine if that lone guy at Microsoft didn't figure out trick with 286 protected mode that allowed Windows to survive and wasn't heard by top management - we would all be running OS/2 10 now.

I haven't heard this story before. Got a link?

Comment · 10 years ago
CSGO does as well.
Comment · 10 years ago
Going above 32G doesn't kill performance per se, it just means that there is not point in using heap sizes between 32G and 48G due to the larger pointers. If you go above that, it's all good again.
Comment · 10 years ago
It's a nice tool, I use it daily. Right now my only gripe is that it doesn't format (PostgreSQL) JSON columns in any way, so if you're storing a lot of JSON data, it can be difficult to view.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton