News for hackers. Stuff that matters.

bmm6o

Re:Jepsen: ParticleDB 1.1.4 on Saturday October 31, 2026 @08:29PM (#50321625)
Imagine bringing in any outside testing before your WHERE implementation works.
Re:A Design Space Exploration of Async/Await on Friday September 11, 2026 @06:35PM (#49666317)
C# has Task.FromResult(), which is useful if you are implementing an interface that allows async work but your implementation doesn't require it. I believe the runtime will check for this case and continue execution. It's better for the cache to keep executing the current task on the current thread.

I don't really understand gp's point. From inside the code, you can't tell if there was a pause or not. Clock time or thread id are heuristics, but you can't really be sure.

Those arbitrageurs who extract payment without adding value should not be surprised when people are upset and demand changes.
Re:Backpressure is all you need on Sunday May 31, 2026 @10:10AM (#48345821)
I took the analogy to be about the location of the pressure and not the direction. If you allow pressure to build on the input pipe when you can't accept more, the component that is upstream in the flow is able to observe that and respond. Maybe the difference is I envisioned a series of pipes and not a single one.
You mean the culture of cutting funding from under performing schools to enforce a downward spiral and divert money to private schools? If not you should be more specific.
Re:Maladaptive Frugality on Friday May 01, 2026 @04:40PM (#47980005)
Let's say that each month I have an extra $1000. Should I use that money to pay down a 4% mortgage, or should I invest it in an index fund that is all but guaranteed to earn more than that?
Re:Regex Blaster on Saturday March 21, 2026 @11:24AM (#47467866)
Automated accessibility testing needs to be in your loop, whether you are using an llm or not. Aria labels are easy to get right but they are also easy to forget.
Re:Python 3.15's JIT is now back on track on Wednesday March 18, 2026 @01:46PM (#47428879)
There are documented ways to ensure that changes are visible across threads (e.g. locks). If these are not used, the compiler is within its rights to not go out of its way to pull changes from another thread.
Re:Private Equity's New Venture: Youth Sports on Saturday November 22, 2025 @05:09AM (#46013588)
Right, it's pretty inevitable given the incentives. I think it's made worse by PE for a few reasons. They are investing with relatively short time horizons because they will need to sell to pay profits. So the long term health of the business is of no interest. If the reputation of the business suffers, that's someone else's problem. Compared to an individual investor who is looking long term, they need to retain customers and reputation.
Re:Compiling Ruby to Machine Language on Tuesday November 18, 2025 @06:59AM (#45964115)
It probably still sucks in C, but the C++ DX got a lot better. Importing the idl would generate wrapper functions that made calling code look much more like a normal function. It would check the hresult and return an out param from the function. They also introduced types like _variant_t that help boxing and unboxing native types. It still wasn't fun but it greatly reduced line count.
Re:Venn Diagram for 7 Sets on Saturday November 08, 2025 @11:52AM (#45858071)
One example included the empty set, the other did not. It doesn't always make sense to have it.
Re:When I say "alphabetical order", I mean "alphabetical order" on Monday September 29, 2025 @09:04AM (#45413195)
I mean, if you're running regedit at all you are not a casual user.
Re:Why Local-First Apps Haven't Become Popular? on Monday September 22, 2025 @11:39PM (#45342596)
Exchange server accepts or rejects meeting requests. There's no offline room reservation so it's pretty simple.
Re:Belling the Cat on Sunday September 07, 2025 @04:07PM (#45161678)
This is a community that values a high signal to noise ratio and generally eschews small talk, a la nohello.org. Congratulating someone for learning something does not advance the conversation.

It also has a low tolerance of what it perceives as reddit- style in-group signaling via repetition of a common meme (xkcd, in this case). Again noise vs signal but also suspicion of karma farming.

Re:Use Bayes rule to mechanically solve probability riddles on Thursday September 04, 2025 @12:00PM (#45128731)
There's also the cultural context of Monty Hall being a real person who had a real game show, on which he really opened doors with goats behind them. Most readers of her column would have been familiar with the mechanics of the show. And the question doesn't really make sense if there's a chance that he opens the door with a prize, there's no more hidden information in that case.
Re:Creating Beautiful Charts with JRuby and JFreeChart on Friday May 02, 2025 @11:04AM (#43870780)
What you should really track and chart is your downtime.
Also relevant is that the oceanic bulge is along the elliptic, but the earth's axis of rotation is tilted. So the effect can vary by latitude.
The short answer is that there would still be tides without rotation, but with a period based on the lunar cycle. We have daily tidal effects, the moon can't do that by itself.
What's interesting is that Poe is not in the Altered Carbon book. The hotel was called the Hendrix and its avatar was Jimi the guitarist. They couldn't get image rights for the film, so had to change it. But i agree that atmospherically and thematically Poe is a better fit.
Re:3,200% CPU Utilization on Saturday March 01, 2025 @10:35AM (#43220257)
I've seen this in production C#. Same symptoms, process dump showed a corrupt dictionary. We thought we were using ConcurrentDictionary everywhere but this one came in from a library. We were using .net framework, IIRC .net core has code to detect concurrent modification. I don't know how they implement it but it could be as simple as a version counter.

It's odd he gets so hung up on npe being a critical ingredient when that doesn't appear to be present in the original manifestation. There's no reason to think you can't have a bug like this in C just because it doesn't support exceptions.

To me it's all about class invariants. In general, they don't hold while a mutator is executing and will only be restored at the end. Executing another mutator before the invariants are reestablished is how you corrupt your data structure. If you're not in a valid state when you begin you probably won't be in a valid state when you finish.

Re:Inheritance and Subtyping on Sunday February 02, 2025 @03:52PM (#42911715)
It seemed really encouraged in early Java. I think C# picked it up more to support mocking for unit testing.

The Go approach is a breath of fresh air when it comes to mocking and testing.

Re:The intricacies of implementing memoization in Ruby on Tuesday December 24, 2024 @01:35PM (#42503851)
Right. Also note that the non-optimized implementation boils down to computing F(n) = 1+1+1+1+...+1, with a function call tree that has 2F(n) nodes. So no matter what the relative cost is for addition and function calls, the total time should go like F(n).
Re:A Made-Up Name Is Better Than No Name on Wednesday December 04, 2024 @07:39PM (#42323618)
The 'p' is for print.
Re:Turkish language has a gossip tense on Sunday October 13, 2024 @07:59PM (#41832831)
Not only all the phrasal verbs, but that there is no parallelism across usage. Take up, take down, take off versus break up, break down, break off. Knowing the meaning of some of those doesn't really shed light on the meaning of any others.
Re:Ask HN: What book have you given as a gift? on Tuesday April 16, 2024 @09:40AM (#40051719)
Gave my nephew the Hitchhiker's Guide and Surely You're Joking this past xmas.
Re:Review: Chris Dixon's Read Write Own on Monday February 12, 2024 @09:27AM (#39345111)
I thought HN was supposed to combine duplicate submissions.

Older »