HNHacker News
TopNewBestAskShowJobs

usefulcat

4,631 karma · joined April 30, 2012

submissionscomments
usefulcat··on Zed editor switching graphics lib from blade to wgpu
If you're talking about remote editing (editing files which reside on a remote server), Zed already supports that?
usefulcat··on Officials Claim Drone Incursion Led to Shutdown of El Paso Airport
Yes and no. AIUI there's generally a lot less liquidity available in prediction markets, which limits the profitability.

Even if you have perfect clairvoyance, you still need someone to take the other side of the bet.

usefulcat··on Discord will require a face scan or ID for full access next month
> Taxing assets is inflationary because it forces sales.

I can see how taxing assets could result in more selling than would have occurred otherwise.

But all else being equal, an increase in selling tends to put downward pressure on prices. So I don't see why an asset tax would be expected to cause inflation.

usefulcat··on My AI Adoption Journey
I've been using c++ for over 30 years. 20-30 years ago I was mostly using MSVC (including version 6), and it absolutely had bugs, sometimes in handling the language spec correctly and sometimes regarding code generation.

Today, I use gcc and clang. I would say that compiler bugs are not common in released versions of those (i.e. not alpha or beta), but they do still occur. Although I will say I don't recall the last time I came across a code generation bug.

usefulcat··on OpenClaw is what Apple intelligence should have been
You're saying I might have trouble getting a date if I don't have a Mac mini?
usefulcat··on Illinois joins WHO global outbreak network after U.S. withdraws
> Texas was Democratic 35 years ago.

As I believe were many southern states at that time, but certainly not because they were at all "liberal", either by the standards of then or now.

Both parties have changed so much since then that it's a weak comparison at best.

usefulcat··on AI on Australian travel company website sent tourists to nonexistent hot springs
I don't know. What is your answer to my question?
usefulcat··on AI on Australian travel company website sent tourists to nonexistent hot springs
Whataboutism is almost never a compelling argument, and this case is no exception.

ETA:

To elaborate a bit: based on your response, it seems like you don't think my question is a valid one.

If you don't think it's a valid question, I'm curious to know why not.

If you do think it's a valid question, I'm curious to know your answer.

usefulcat··on AI on Australian travel company website sent tourists to nonexistent hot springs
How is knowing what word is most likely to come next in a series of words remotely the same as having "the concept of truth and facts"?
usefulcat··on Television is 100 years old today
I can relate. I often feel like my earliest memories are now more like memories of memories, and I dimly recall that it wasn’t always like that.
usefulcat··on Gas Town's agent patterns, design bottlenecks, and vibecoding at scale
There's a rather fine line between "don't believe everything you read" and "don't believe anything you read". At least in this case.
usefulcat··on GPTZero finds 100 new hallucinations in NeurIPS 2025 accepted papers
I doubt that it's common for anyone to read a research paper and then question whether the researcher's calculator was working reliably.

Sure, maybe someday LLMs will be able to report facts in a mostly reliable fashion (like a typical calculator), but we're definitely not even close to that yet, so until we are the skepticism is very much warranted. Especially when the details really do matter, as in scientific research.

usefulcat··on Internet voting is insecure and should not be used in public elections
> I can take my time to actually look up all those random candidates' policies

But you can already do that, regardless of mail in voting or not?

usefulcat··on Libbbf: Bound Book Format, A high-performance container for comics and manga
After reading the reddit comments, it looks like a primary problem is that the author doesn't (didn't?) understand how to benchmark it correctly. Like comparing the time to mmap() a file with the time to actually read the same file. Not at all the same thing.

For example: https://old.reddit.com/r/selfhosted/comments/1qi64pr/i_got_i...

usefulcat··on Prediction markets are ushering in a world in which news becomes about gambling
It's not much different than other forms of advertising.

Compared to typical total advertising expenditures during a presidential election, my guess is that $4M is close to a rounding error.

usefulcat··on Ideas are cheap, execution is cheaper
Some are down over the previous 6 months, but not by 50%. At least among the largest.

    Company:     6 month change:
    ============================
    Palantir:    +20%
    Salesforce:  -9%
    Shopify:     +40%
    Intuit:      -26%
    ServiceNow:  -30%
    Adobe:       -17%
    CrowdStrike: -1.5%
    Snowflake:   -3%
    Cloudflare:  0%
    Autodesk:    -9%
Above companies are the 10 largest from this list:

https://www.mikesonders.com/largest-saas-companies/

usefulcat··on Ford F-150 Lightning outsold the Cybertruck and was then canceled for poor sales
As did some models of Honda Prelude starting in '87.
usefulcat··on The chess bot on Delta Air Lines will destroy you (2024) [video]
I've been enjoying Total Annihilation since 1997. Still works fine on fairly modern hardware with Windows 11. No modifications other than some additional maps that I downloaded decades ago.
usefulcat··on The struggle of resizing windows on macOS Tahoe
I don't like all the changes either, but I just opened the contacts app and started typing a name and it showed me exactly what I expected--several of my contacts with the name I typed. iOS 26.2.
usefulcat··on C++ std::move doesn't move anything: A deep dive into Value Categories
std::allow_move probably would have been a more accurate name for std::move.
usefulcat··on C++ std::move doesn't move anything: A deep dive into Value Categories
> C++ smart pointers (eg std::unique_ptr<>) are likewise to handle ownership and incur a runtime cost where in Rust they are handled by the compiler with no runtime cost.

What additional runtime cost is incurred by the use of std::unique_ptr? Either compared to Rust or compared to doing manual memory management in c++?

usefulcat··on C++ std::move doesn't move anything: A deep dive into Value Categories
That still leaves the problem of when to use std::swap vs ordinary assignment in generic (i.e. templated) code.

Like when std::vector needs to resize its underlying storage (as a result of push_back, for example), it has to decide which approach to use to copy/move items from the old storage to the new storage.

For std::vector<std::string>, std::swap would probably be at least ok if not optimal, but for std::vector<int> it would be overkill and therefore decidedly non-optimal. In the latter case, you want to do memcpy(new, old) and be done, not std::swap(old[i], new[i]) for each int.

I think a lot of the motive for adding move semantics to c++ has to do with giving the compiler enough information to produce results that are both optimal and correct in generic code.

usefulcat··on C++ std::move doesn't move anything: A deep dive into Value Categories
> I can’t understand why a language’s choice to impose complex rules like C++ move constructor hell is an inevitable outcome of irreducible complexity in systems programming

It's not about irreducible complexity in systems programming, it's about irreducible complexity in the creation of higher level abstractions.

You could certainly implement something functionally equivalent to std::vector<std::string> in C. What you couldn't do in C is implement std::vector<T> correctly and efficiently for any type T. That's where much of the complexity comes from.

The hard part is giving the compiler enough information so that it can automate a lot of what would have to be manually written in a language like C, and to produce a result that is both correct and efficient.

usefulcat··on C++ std::move doesn't move anything: A deep dive into Value Categories
Agreed that c++03 was much simpler, but that doesn't change the fact that there are useful things that are possible in modern c++ that simply were not possible before.

Like if I have a vector<std::string>, in c++03 when it resizes it must copy every string from the old storage to the new storage. For a vector of size N, that's up to N+1 allocations (allowing for the possibility that std::string uses the small string optimization).

Granted, std::string doesn't have to allocate when copied if it's a "copy on write" implementation. IIRC, there were some implementations that used that technique when c++03 was the latest, but I don't think there are any that still do, due to other problems with COW.

In modern c++, that same vector resizing operation requires exactly one allocation (for the new vector storage), because all the strings can be moved from the old storage to the new.

Yes, you could have a vector of pointers to std::string, but now you've got yet another allocation (and indirection on access) for every string. In practice that tradeoff almost never makes sense, unless perhaps the strings have shared ownership (e.g. vector<shared_ptr<string>>).

Ultimately, I think there's really no question that the vector resizing optimization described above is useful in certain scenarios. Having said that, I do agree that the associated complexity is annoying. Therefore, the real question is whether it's possible to have these benefits with less complexity, and I personally don't know the answer to that.

usefulcat··on C++ std::move doesn't move anything: A deep dive into Value Categories
Exceptions can be used to indicate many kinds of errors, not just allocation failures.
usefulcat··on Chase to become new issuer of Apple Card
I don't know where you live but the Walgreens near me is nothing like that.
usefulcat··on US will ban Wall Street investors from buying single-family homes
The R party has changed so radically that it's hardly recognizable any more. As a result, "not republican" is no longer a very meaningful description.

I think the most likely explanation is pretty simple. Whenever people are unhappy with their economic situation, at the ballot box they take it out on whoever is currently in power, logic be damned. Politicians know this.

usefulcat··on US will ban Wall Street investors from buying single-family homes
The only way that prices could go waaay down is if the supply of new homes increases or demand decreases (or some combination of both).

Which of those do you think is likely as a result of the proposed action, and why?

usefulcat··on C Is Best (2025)
And it remains to be seen how well this approach will work as time passes and the number of versions continues to increase.
usefulcat··on 2025 was a disaster for Windows 11
What specific apps are showing ads?
← PreviousPage 6 of 34Next →