HNHacker News
TopNewBestAskShowJobs

kccqzy

19,256 karma · joined April 8, 2014

GitHub: https://github.com/kccqzy

I love Big Tech more than I love startups. Feel free to disagree with me on that.

submissionscomments
kccqzy··on Go Concurrency Distilled
For many people, besides learning what you should do, it is more helpful to read anti-patterns and things you should not do in Go, and none is better than this article about data race patterns in Go: https://www.uber.com/us/en/blog/data-race-patterns-in-go/
kccqzy··on Go Concurrency Distilled
I learned Haskell before that, and frankly the concurrency in Go feels similar, but is a definite downgrade due to the lack of STM.

You can implement channels and select using STM, so these don’t have to be in the standard library. And the contentious design choices like what happens when you close the channel twice can be your choice! And going from STM to managing mutexes is a definite downgrade in abstraction power.

The concurrency design in Haskell feels like true magic.

kccqzy··on Does Georgism work? Five years later
The idea here is that unused land in a city should be highly taxed, but unused land in rural areas should not.
kccqzy··on Fifteen years later, the Apple Cards origin story
I completely forgot about this app. It was a few years later that I had my own experience of using a letterpress machine (and debossing) and tracing my finger on the debossed letterforms. I don’t have a letterpress machine now but now I really wanted cards with letterpress. I guess more than a decade of dealing with exclusively digital invitations and the sort made the pendulum swing the other way.
kccqzy··on Ask HN: Who's still keeping a DOS machine up because the business depends on it?
Did they not need NRC recertification when they moved from a physical machine running AmigaOS to an AmigaOS emulator?
kccqzy··on California is chasing wealth that has feet
California, more so than other places, have a lot of paper billionaires living a middle-class lifestyle because these billionaires are tech founders that hold illiquid ownership in their own startups.
kccqzy··on Supreme Court permits states to use SAVE database for citizenship checks
Wow I haven’t heard of the SAVE database at all before today, despite knowing about e-verify and SEVIS and similar programs. Reading Wikipedia there’s also VIS and PCQS, two more systems I haven’t heard of. It seems that the country’s distaste for a national ID not only forces each state to issue IDs but also the federal government to create a patchwork of slightly different ID programs.
kccqzy··on Book review: Is parallel programming hard, and, if so, what can you do about it?
I completely agree. Even in classic Python with GIL, the programmer would still have to understand concepts from concurrent programming. The asyncio package has to provide types such as Lock, Condition, Semaphore, even when it uses just one thread. The threading package on the other hand uses OS threads, and yet it provides its own version of types such as Lock, Condition, Semaphore, even if it is protected by the Python GIL. The GIL is preventing meaningful parallelism in Python, but it remains the programmer’s responsibility to use concurrency tools correctly.
kccqzy··on California is chasing wealth that has feet
The amount here is not immaterial. Which is why this tax won’t be like other taxes predicted to cause individuals to move.
kccqzy··on Writing Parquet files using Haskell
The phrase “tends to” is doing a lot of work here. Inexperienced Haskellers tend to use the singly linked list for everything and that data structure just doesn’t perform in any language.
kccqzy··on Book review: Is parallel programming hard, and, if so, what can you do about it?
Just drain the traffic (make the load balancer temporarily not send traffic to it) and attach a debugger. I hope your load balancer has that feature because health checking also needs it.
kccqzy··on Book review: Is parallel programming hard, and, if so, what can you do about it?
What kind of tooling were you using? IMO, deadlocks are some of the easiest concurrency bugs to diagnose. If you can see the thread stacks, it is easy to see threads are blocked from acquiring a lock. If you can attach a debugger, it is easy to see which locks are involved. Then you can pretty much figure things out using the straightforward guideline that if multiple locks are involved, they must be acquired in the same order in all code paths.

I don't want to devalue your experience, but I am surprised to hear that. Livelock is harder to debug. Silent data corruption caused by missing or wrong synchronization is way harder to debug.

kccqzy··on Writing Parquet files using Haskell
Funny how you mention it is a functional programming torture course, but the Parquet writer introduced in this article is written in a highly imperative style. I have not seen this much IORefs and MutableByteArrays in recent memory.
kccqzy··on Toyota is taking the Corolla electric
At one point my car had a firmware update that made the Eco mode sluggish in acceleration. I thought it made perfect sense; being economical in battery use means limiting acceleration. It received so much backlash that the manufacturer had to issue a subsequent update to increase the acceleration cap.
kccqzy··on California is chasing wealth that has feet
I don’t have experience elsewhere but in Santa Clara county, the county assessor calculates a very much incorrect split between land value and value of the improvements (buildings) when they assess the property tax. Sometimes they just divide the total value by two and call it value of the land; in other cases the value seems to match reality more, and the value of improvements match the actual cash value (but not replacement cost) from insurance companies.

How would a land value tax accurately compute the land value?

kccqzy··on California is chasing wealth that has feet
It is quite disingenuous to attribute the South Bronx fires as a result of landlords unable to raise rental prices. I mean that is technically true, but your comment makes it sound like it was a result of a particular legal proposal. It was not. It was a period of urban decay in NYC and many cities in the United States. It was the continuation of white flight into suburbs that started in earlier decades. It was a large demographic change with complex causes.
kccqzy··on Google’s Project Suncatcher to put ML infrastructure in space
The article mentions that:

> The biggest challenge was how to cool the A.I. chips, which heat up when they perform calculations and process information. Fans, which typically help dissipate the heat, do not work in space. So the Silicon Valley company instead developed a cooling system that uses layers of conductive material to expel the heat into space.

> The bottom layer is made up of Google’s A.I. chips, which sit on a green motherboard. The next layer consists of “thermal interface material,” a pale green putty that comes in sheets like Fruit Roll-Ups and connects the chips to layers of aluminum and copper, radiating heat away from the motherboard. Finally, there is a radiator panel, which projects heat into space.

> The chips can operate for about 15 minutes in space before needing to be shut down so they can cool off, said Travis Beals, Google’s senior director of product management for Project Suncatcher.

kccqzy··on A brief history of Windows scroll bar shortcuts
Sure. I had memories of using the chat feature in Microsoft NetMeeting in Windows 2000 and feeling the GUI was okay even though many features were lacking: I don’t remember I could bold text in messages. There’s no reason we couldn’t port all of the modern chat features like those in Slack using old Win32.
kccqzy··on Making Tailscale Faster
No you are being disingenuous if you think raw wireguard is amazingly simple to set up. Sure it is simpler than IPSec. But it’s absolutely not simpler than Tailscale. I migrated my raw Wireguard setup to Tailscale because after a few months without any tinkering I simply forget details of my setup. I’d rather outsource it to Tailscale.
kccqzy··on VSCode's SSH Agent Is Bananas (2025)
The difference is that there is an SSH agent at all, whereas Emacs just uses the built-in Bourne shell.

Some people get an icky feeling where remote editing tools change the remote filesystem in any way that is not explicitly done by the user. A binary installation of Node is extra extra icky. (I don’t have Node installed anywhere on my computers; I avoid JS if possible and if not I prefer Deno.)

kccqzy··on Italian parliament votes for return to nuclear energy
Notice how for roads you compare the total economic value of all roads against the cost of them. But for electricity you compare a single power generation system. You are not comparing the same thing. A fair comparison would be the total economic value of having electricity against the cost of all electricity infrastructure. Sadly this fair comparison is irrelevant in this thread.
kccqzy··on Italian parliament votes for return to nuclear energy
Why? Isn’t it in the national interest of a government to preferentially use foreign sources of uranium to preserve domestic sources?
kccqzy··on Jev in 25 Lines of Python
If you believe the marketing, constraining the output this way can make the model much faster and much more type-safe (the model didn’t give you a fifth choice not present in the choices).
kccqzy··on A brief history of Windows scroll bar shortcuts
> I don’t mind if you want a custom look and feel for your application

I would go further and say that I don’t want a custom look and feel for each app unless the app is a game, especially if your app is a regular line of business app. The default Win32 widgets are good enough. The default Cocoa widgets are also good enough.

kccqzy··on The new CC, an AI agent built for families
This year? CC was launched last year.

This was the original launch announcement from 2025: https://blog.google/innovation-and-ai/models-and-research/go...

kccqzy··on What California is learning from solar panels built over irrigation canals
These thieves are probably drug addicts and have mental health problems. The “violent punishment” (I think you mean capital punishment) is not going to be a deterrent for them, unlike for normal people who can still think with normal risk-reward calculus.
kccqzy··on How did AMD Ryzen get 50% faster in two years?
If your goal is web browsing you will want faster single core performance. Unfortunately that means Apple M series. If your goal is local LLM, I’m afraid a several-year-old GPU will smoke the fastest CPU available today.
kccqzy··on Writing Rust code that's fast by asking agents to make the code faster
I see the same thing, except I was working on high level performance reasoning. Whenever a piece of code has multiple steps that require multiple algorithms to work, AI almost always fails to guess which step is the slowest and what causes that step to be slow. Even Fable makes wrong guesses. You definitely need to give them a benchmark feedback loop.
kccqzy··on Attention is all you have
I am pretty sure early versions of the Safari browser (in the 2000s) did in fact store a full-text version of every webpage in the history and allow you to search that. I even remember looking at the plist files where Safari stored all the extracted text.

I relied on that a lot until one day a random system update deleted all my old browsing history.

kccqzy··on Turn off and restrict access to Apple Intelligence features on Mac
In practice the difference is whether the code that does this reclaiming is actually working. I’ve never gotten my Mac into a low disk space situation (other than maybe in Leopard days) but on iOS, it is quite frequent for me to trigger a situation where the free space including purgeable space is many gigabytes but actual free space is nil. Trying to commit a transaction in a SQLite database in an app? Sorry you can’t, there’s no space left on device. Now go to settings and observe that you have 15 GB left (which includes purgeable space). Even SpringBoard has trouble showing icons. I do not trust Apple’s OS level disk space purging at all. I trust the filesystem and the storage medium more.
← PreviousPage 2 of 34Next →