HNHacker News
TopNewBestAskShowJobs

wpollock

383 karma · joined June 18, 2023

submissionscomments
wpollock··on What is the best shape of a city? Modelling effect of urban form on distance
I think the best shape for a city is a Mobius strip: go anywhere without turns, so no traffic lights needed.
wpollock··on The Curious Power of Punctuation
Dang says tomhow is the better moderator.

Dang, says tomhow, is the better moderator.

wpollock··on Jemalloc 5.4.0
WiFi is not an acronym for "wireless fidelity"; the developers likely just thought it sounded cool. The term is probably just a play on the words from the audio term "high fidelity". The phrase "Wireless Fidelity" is meaningless.

The more you know!

wpollock··on I don't like passkeys
> The website should display a qr code you can scan with your phone that allows you to then login...

A malicious website can display a QR code too. I think this "feature" could cause some of the security issues that passkesys were intended to solve.

I use Keepass and the free tier of Dropbox, to keep my passwords strong and available across multiple devices. (Dropbox not required, you can store the database on a thumb drive.) Backups are no problem.

Keepass (or KeepassXC) stores other data as well, including the correct URLs for sites. So my workflow is simply to click the URL from within Keepass, copy the username and password, and paste them into the login screen. So easy even an adult can do it! (Humor attempt)

For convenience, Keepass database can be unlocked with either a password or biometrics (your fingerprint).

(Not affiliated with Keepass, just a happy longtime user.)

wpollock··on How to write an effective software design document
Two suggestions, based on my experience:

1) Add a section called "Potential Changes". This is broader than "missing features", and can include other items too, such as new hardware that might become avaliable, customer requirement changes you might anticipate, possible new technology (e.g. a new database or cloud service that might be useful), multilingual support, etc. Listing some of these often causes reviewers to think of others as well.

Ensuring the design is modular around such changes means implementing any of them will be far easier than if assumptions are hard-coded throughout the codebase.

2) Security and privacy are two aspects of a more general category of "compliance assurance". Those two are worthy of their own categories, but you should have a section covering any other legal, regulatory, or corporate requirements. The plan for auditing these compliances should be listed too.

Often, of course, there are none beyond security and privacy.

wpollock··on Since it was stripped of planetary status, Pluto’s defenders have been fighting
Your point is fishy. But if the IAU definition changes to "a body orbiting a star", we can rename them to "paparazzi".
wpollock··on Since it was stripped of planetary status, Pluto’s defenders have been fighting
[Edited for clarity.] My issue with the IAU's definition is that the body must "orbit the Sun". I would prefer they said "star" instead, and excluded other stars (so a binary star means neither star is a planet).
wpollock··on 'Mad honey' that can stop your heart is being sold online
You remind me of Episode 2 of the Apothecary Diaries: several Chinese troops were poisoned after eating local food. The food was fine, the wood used for fire and eating utensils was the source. I wonder if something like that ever actually happened?
wpollock··on Lion-man
You might enjoy the book "The Weans" by Robert Nathans, <https://www.goodreads.com/en/book/show/2664067-the-weans>
wpollock··on Lion-man
> ... so why would a community living on the edge of subsistence, whose primary concerns were finding food, keeping that fire going, protecting children from predators, allow someone to spend so much time away from those tasks?

One possibility that occurs to me is the carving was done by the elderly, the injured, or possibility the young, who would not have such duties. A carving by a shaman is another possibility.

wpollock··on Rethinking Database Programming
> Just learn SQL....

I agree. In my experience, ORMs are more complex and harder to learn to an expert level than SQL. Knowing Java (but not SQL) doesn't help much with learning Java ORMs (Again, to an expert level). Besides not supporting all the SQL features of some DB, ORMs also covers other things such as caching.

Learning ORMs is likely just as difficult as learning SQL. It is likely harder to learn how to optimize performance with ORMs.

SQL as opposed to code has the advantage that it can be kept in a separate file, and thus modified by experts in databases without changing the code. The article claims the author found migrations harder with SQL than with his framework. I would think it would depend a great deal on the database one is migrating.

I'm not convinced that LLMs make things easier, you still need an expert to verify the generated code, and to tune it, as often the database is business critical with serious consequences if wrong, slow, or turns out to be infringement of someone's copyright.

Just learn SQL!

wpollock··on Workers Drilling in Romania Broke into a Cave Sealed for 5.5M Years
Just because the cave is sealed now, does not mean it has been sealed for millions of years. Even for geology, 5.5M years is a long time. I don't understand how they can claim it never had connections to the outside, just because it doesn't have connections now.
wpollock··on Faster Than Ninja
> He thinks everyone needs manpages. I told him I never look at any local man page ever; I only look online for help...

Everyone's workflow is different. Your's obviously works for you and many others.

But I like local man pages. They get updated at the same time as the software is updated. Sometimes I have an older version of software and the online version is for a newer version, or vice-versa. Local man pages are always available and generally quicker than accessing them online.

If the machines in question are mult user, you should always install local documentation regardless of your personal preferences.

wpollock··on Show HN: Learning Rust by writing a Markdown to HTML compiler
I think you have mixed up ordered and unordered lists? But a fun sounding project, good luck!
wpollock··on I wanted a clock that never needed setting. Things escalated
In 1982 I purchased a GE analog alarm clock which plugs into an electric socket, has a gentle backlight and a snooze button. It cost 4-5 dollars.

This clock still sits on my nightstand. The backlight stopped working years ago, the cheap plastic case is cracked, the numbers on the dial from 12 to 5 have crumbled away. But it keeps perfect time! It is also silent (no ticking at all, no quartz crystal) and has no battery to charge or worry about leaking

I'd pay quite a bit for a replacement, but such clocks haven't been made in over 30 years. An "atomic" clock is cool, but the signal doesn't reach where I live.

wpollock··on Write code like a human will maintain it
The title of this post reminds me of a favorite quote "Write code as if the next person to maintain it is a homicidal maniac who knows where you live!"
wpollock··on Every new car sold in the European Union must include a driver monitoring camera
Car: You look tired. There's a motel in 3 miles.

Car: You appear to be suffering from acne. Try Zit-away, available at the convenience store in 2.4 kilometers.

Car: Facial recognition failed. Car is now disabled. Contact your car dealer to reenable vehicle.

wpollock··on 6 years and 360 patches to clean all instances of strnpy out of the Linux kernel
> Should be using strcpy_s or strncpy_s

These functions are optional in the C standard and not always present. AFAIK, they are not included in glibc as of 2025.

wpollock··on POSIX Is Not a Shell
TIL! Thanks!
wpollock··on POSIX Is Not a Shell
Stéphane (not "M") Chazelas is a genius. I have written him several times over the past 30 years, encouraging him to write a book about shell, POSIX, and other topics that he is an expert in. He writes very well too. I fear we will all be the poorer if/when he retires.
wpollock··on 6 years and 360 patches to clean all instances of strnpy out of the Linux kernel
This article is a bit misleading. Linux kernel programming uses C, but not the C standard library and never has. The string functions discussed here are "helper" functions included in the kernel and are not part of the standard library.

The C standard library doesn't have strscpy or the others; it still has strncpy.

wpollock··on .gitignore Isn't the only way to ignore files in Git
One point of clarification: with git, "global" means per-user, not "machine-wide. (I never understood why "--global" wasn't better named, maybe "--user".) That's why these pathnames are in a user's home (the "~" means the current user's home directory).

Machine-wide configuration is called "system" in git, and generally lives under "/etc".

wpollock··on US bans differential privacy in Census data
> There are laws in place forbidding government agencies from merging together datasets.

This is an excellent point. In my opinion, such laws are a good idea. Most of the time, policy decisions should not require IRS data. (Or other personal data.)

But to get around such laws, the government asks citizens to provide that data a second time (in the census). And sometimes it's asked yet again on other forms. This seems to defeat the purpose of those laws.

I can see that federal disaster aid might need to know if some area needs more or less aid, depending on the wealth of the area receiving aid. If aid is given to individuals, the have a need to know the individuals' income.

When there is a reasonable need to know, I would prefer the government use the much more accurate IRS data, rather than ask for people's income multiple times. The laws preventing merging federal datasets could be rethought, given what is now known about preserving privacy mathematically. I would like to see specific exemptions made, with the provided data properly anonymized to preserve privacy while serving the legitimate purpose for which the data was requested. The use of such data should require a request to congress for it.

wpollock··on Noise infusion banned from statistical products published by Census Bureau
> Are you saying the census shouldn't collect any data that people wouldn't be comfortable publishing? Because that's a recipe for a census that is far less useful for helping the country make useful decisions.

I'll say that. The state representatives should provide congress and the president any data needed to inform policy decisions about the people they represent. And as others have pointed out, other departments and agencies (such as the IRS) have most of the rest of the data required to make policy decisions.

Except for gerrymandering purposes, I fail to see why income, party affiliations, etc., is useful for the purpose the census was created for.

wpollock··on Building an HTML-first site doubled our users overnight
The Sahara desert. It's not only repetitive but it repeats itself too as well.

These gems are brought to you by the department of redundancy department.

wpollock··on What is the purpose of the lost+found folder in Linux and Unix? (2014)
One of several reasons to partition a large volume into smaller ones. At least, back then.
wpollock··on The new bibliomaniacs
For what it's worth, in the U.S. at least you can connect to your local library with an app named "libby". I used this frequently on my Android phone to download books and magazines, and you can connect with the InterLibrary Loan system too. My use of the public library is much, much higher than before, when I had to travel to the physical library branch to check out books or read magazines.
wpollock··on IPv6 zones in URLs are a mistake
I wonder how many readers realized your joke here. For the ones who didn't, the 4-byte "magic number" that identifies Java .class files, in hex, spell "CAFEBABE".
wpollock··on I was recently diagnosed with anti-NMDA receptor encephalitis
This. Today, well-meaning doctors cannot spend more than 5-10 minutes between seeing patients. Medical shows on TV show teams of physicians working on one or two patients per week. The reality in my part of the world is that each doctor sees 10 or so patients each day, and are not available for phone calls. (Even in 2026 my parents can reach their doctors by phone, and they spend the time to chat. But they are in New York and I live in Florida. )

I have seen my current PC doctor for 25 years now and he knows me well enough to spot significant changes. But he's retiring in a few months and I have no idea how to find a new doctor. My current doctor has no recommendations for me. (I'm not asking here for any if that's what this sounds like.)

wpollock··on Nobody cracks open a programming book anymore
> Do you know how to operate a punch card?

I remember! You created a control card, with tab stops and other controls, wrapped it around a control drum, and then had an easy time punching your source FORTRAN!

I just looked and found my old control drum, in the back of my junk drawer. But I can't find an old punch card machine in there, most have lost it somehow.

Page 1 of 8Next →