HNHacker News
TopNewBestAskShowJobs

sgarland

5,439 karma · joined May 18, 2020

[ my public key: https://keybase.io/sgarland; my proof: https://keybase.io/sgarland/sigs/L3NDZjRkwP104qhB6b-hPvZp-S1y6AmlcolanYS8Vnw ]

email: <stephan@{username}.dev>

meet.hn/city/us-Charlotte

Socials: - github.com/stephanGarland

Interests: DevOps, Hardware, Databases, Open Source, Linux

---

submissionscomments
sgarland··on I hired an illustrator to draw my house. Now it's my Home Assistant dashboard
> Always have a manual way to control a device if HA goes down.

It is for this reason that my lights (Hue) and switches (Inovelli) are bound in ZigBee groups. HA adds some niceties, but the lights still work if it’s down. Accent lights I have bound to the Hue Bridge, because their app adds features HA doesn’t have, and they aren’t required for emergency egress.

The only gap I have, I think, is that because I’ve set all bulbs to respond to power restoration after a cut in last known state, if everything somehow lost its Zigbee binding, putting switches into dumb mode locally still wouldn’t help. However, since that’s an improbable scenario, I accept the remote possibility in exchange for not being awakened from lights coming on in the middle of the night. Plus I keep flashlights / headlamps throughout the house.

sgarland··on Show HN: K10s – A Clickable Kubernetes TUI (Go, Bubble Tea)
Some of us enjoy working entirely in the terminal. It’s OK not to enjoy that, but I assure you, I am far more productive in tmux + nvim than in, say, VSCode.
sgarland··on A new write and space optimized storage engine for MySQL is here
How does this differ from RocksDB / MyRocks?
sgarland··on California closed the Montana license plate loophole
The electoral college was created because citizens couldn’t reliably be expected to travel to vote. That time has long since passed, since voting stations are generally (modulo places that are actively shuttering them to disenfranchise people) scattered around enough that it’s not arduous.

Plenty of other countries with rural areas seem to do fine without one. They also usually have much better / more granular representation, instead of a hard cap of 435 for a population that is orders of magnitude larger than at the country’s founding.

sgarland··on How Fast is Python 3.15?
There is a benefit in being able to read and understand your code. If you’re most proficient in Python, it’s reasonable to want to stay there, perhaps looking to PyPy.

Also, of course, the majority of SaaS apps (perhaps most apps in general?) are not compute-bound, so gains from performance alone shouldn’t be the only metric.

My current job has a mix of Python and Go. Personally, I dislike Go. I don’t like its syntax, I don’t like its utter lack of formatting standards (gofmt is not a standard; also it sets tabs - ugh), I don’t like its insistence on static linking, and I don’t like how people claim it’s a great scripting language when you can’t just run a file on its own (and its stdlib is weak sauce compared to Python).

sgarland··on Polars 2.0
TIL that Polars supports SQL. Amazing.
sgarland··on Opus 5.5 agents discover two room-temperature magnetic semiconductor candidates
I am deeply upset every time the HomePod in another room decides to attempt to answer my query instead of the phone that’s in my hands, which then has to ask who is speaking, and has a 50:50 chance of ultimately failing to do the task.

With how magical handoff / continuity / whatever it’s called is, it is baffling to me why Apple allows the HomePod to so aggressively take over requests when it sucks so, so much at it.

sgarland··on Meta Uses A.I. Data Centers to Avoid Billions in Federal Taxes
> One of the biggest expenses of any A.I. data center was computer chips, which are made by companies like Nvidia and cost thousands of dollars each.

“Thousands.” Yes, in the same way that the earth is thousands of years old. 4.5 million thousands, but still, thousands.

sgarland··on 56k.rip – the 1996 dial-up internet experience
This is great! I especially enjoyed the live chat feature, that was surprising. Should definitely allow HN to go through on the browser, though, that would be awesome. It would only take... ~90 seconds to load. Damn, it's heavier than I thought.
sgarland··on Ask HN: Who's still keeping a DOS machine up because the business depends on it?
Or McLaren needing to use an ancient, very specific Compaq laptop to service the F1.

https://www.extremetech.com/cars/227828-the-mclaren-f1-super...

sgarland··on Ask HN: Who's still keeping a DOS machine up because the business depends on it?
Because what they have works well enough to be NRC-certified, and they have enough spare parts to comfortably outlast the rated lifetime of the reactor.

Relevant: https://www.joelonsoftware.com/2000/04/06/things-you-should-...

sgarland··on Owners mourn spoiled food after firmware update bricks Samsung smart fridges
Sorry, I was unclear / misunderstood your statement. I haven’t tested this with Spotify, but disabling the thermostat’s mic (Settings / Device Microphone) disables Alexa and Siri implicitly, and also seems to remove it as an AirPlay target, which is primarily how we stream music to Sonos.
sgarland··on Owners mourn spoiled food after firmware update bricks Samsung smart fridges
I also experienced this, albeit deliberately. I saw that it was possible, and out of morbid curiosity, enqueued a song to play through it. I immediately questioned why anyone would want it, stopped play, and disabled it. There are settings on the thermostat you can change such that it isn't used for playback or recording.
sgarland··on Owners mourn spoiled food after firmware update bricks Samsung smart fridges
The Bosch 800 series dishwashers are god-tier, or at least they were as of 5 years ago, when I last bought one. I've had one in the last 3 houses, and went so far recently as to swap my new house's dishwasher (I think a Whirlpool something-or-other) with my old house's Bosch 800, because it was a cross-town move, and I could.
sgarland··on Vibecoding isn't a crime How Distribute Your App on Linux after Flathub refusal
Have you read maintainer guidelines for a major distro, like Debian's [0]? I would wager there is between 0 - 1% chance that a vibecoder would be willing or able to meet these.

0: https://www.debian.org/doc/manuals/developers-reference/deve...

sgarland··on SAML: A fractal of bad design
If a company said "you must support DES," I would expect that their cybersecurity insurance provider would start asking them some questions, and if they became indignant that no one would do so, I would expect them to be publicly mocked.

There is one valid excuse for why you must have support for an outdated protocol: embedded / air-gapped systems. For anything else, just admit that you don't want to make the change. That's a business decision, nothing else.

sgarland··on AI coding has made CI a bottleneck, so we reworked ours to keep up
Agreed. It was the first time I installed a new iOS version I can remember in a long time where it felt faster. My only complaint is that it also seems to have changed WebKit rendering somehow such that the HomeAssistant companion app is incredibly slow, but that also seems to at least partially my fault due to dashboard design. Still tinkering with that.
sgarland··on AI coding has made CI a bottleneck, so we reworked ours to keep up
Percona Monitoring and Management [0].

...or not. Probably not.

0: https://github.com/percona/pmm

sgarland··on Vibecoding isn't a crime How Distribute Your App on Linux after Flathub refusal
So download the release from the tool’s Git{Hub,Lab} page.
sgarland··on Vibecoding isn't a crime How Distribute Your App on Linux after Flathub refusal
> One shared that they were flagged for using Claude Code to submit the pull request, not to write the app.

Who is opening up an LLM to run git push?!

sgarland··on Heretic removes restrictions from language models
They did, via uv. uv run heretic, and it will handle the rest.
sgarland··on What Zig felt like, coming from Rust
This is in fact more readable, thank you.

I still don’t know that I find it more intuitive or readable than the simple loop, but it’s much less awful than before.

sgarland··on What Zig felt like, coming from Rust
THANK YOU. I feel exactly the same way.

https://news.ycombinator.com/item?id=49769812

sgarland··on What Zig felt like, coming from Rust
From TFA, on combinators vs. loops:

    items.iter().enumerate().filter(|(_, i)| cond(i)).map(|(idx, i)| Pointer::idx(i, path, idx)).collect()

    while (i < cursors.len) {
        if (actual_index < arr.items.len) { cursors[i] = .{...}; i += 1; }
        else iteration.remove(i);
    }
I’ve been slowly learning Rust, and this style is my main gripe against it, because I feel like I’m being gaslit. Its proponents praise its readability and ease of use, and just… no. It looks deranged. A simple loop is immediately obvious to anyone who’s programmed in any language. Even Python’s list comprehensions are loop-ish.
sgarland··on Tin: full-text search for Postgres
On-prem.
sgarland··on I Don't Like LLMs
I’m simply exhausted at needing to refute incorrect LLM answers professionally.
sgarland··on Training a 4B model to produce 81% faster query plans than Postgres
Unless they’ve been elided, there were no indices other than the PK on any table, and no additional statistics. There are correlated columns here: a given country may have produced more movies in a given range of years, as its movie industry built up; a given country may produce more TV series than movies, etc.

Nearly every time I’ve seen someone resorting to hints for a query, it’s because their statistics are incorrect. Adding hints is papering over the problem, and can backfire later if the data shape changes.

sgarland··on Show HN: EterDB, a Postgres fork that makes it easy to recover from incidents
This is interesting, and I would like to know how it actually works, but I can’t understand the tech page. I tried.

Could you write that by hand? It would make it a lot easier to understand. I’d also recommend removing the various mentions to previous versions, or at least shifting them to footnotes. It’s confusing to be reading an implementation and then finding out later that it isn’t the approach that was taken.

sgarland··on Txt: A fast, keyboard-driven terminal text editor for engineers
> The editors that live in the terminal either have steep learning curves built around modal paradigms, or they are too limited to be genuinely useful.

> txt is not trying to replace your main IDE. It is the editor you reach for when you just need to edit something

These two are in conflict. If you just want to edit something, and don’t know [n]vi[m] or emacs, then use nano. If you want line numbers, code folding, syntax highlighting, etc. then it sounds like you should spend the time to learn a more powerful editor.

Honestly, vi isn’t that hard to learn the absolute basics, and you should spend the 15 minutes to do so, because it’s practically guaranteed to be available everywhere. :wq and i are about all you need to “just edit something.”

sgarland··on iPhone 18 Pro and iPhone 18 Pro Max
You’re in luck, the Duo has Touch ID and a big screen.
Page 1 of 34Next →