Better HN
topnewbestaskshowjobs
Log inSign up

sgarland

5,559 karma · joined May 18, 2020 (6y ago) · 2,618 submissions

[ 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

---

Submissions

comment 13h ago · link · parent

It did, near the end. byteseek [0].

As to tradeoffs, IMO it depends on your goals. It seems like the goal here was performance at any cost, so potentially inscrutable code is probably acceptable to the author.

0: https://github.com/minimaxir/byteseek

comment 1w ago · link · parent

Depends what the extension is doing; C (or Rust) is much faster for CPU-heavy operations than PL/PgSQL.

comment 1w ago · link · parent

You’d probably write a helper function that automatically runs SELECT pg_current_wal_insert_lsn() after a write and returns it.

That said, I don’t see the point. If you need to read DB-generated data (like a PK, or timestamp) from a write, use RETURNING so you get it with one call, and pass that to another function if it needs it. If it’s data you wrote, you already have it. So many web apps are slow because they have a million services, and all of them are calling the DB for the same information instead of passing it to each other.

comment 1w ago · link · parent

Thank you, I’ll ask my therapist about this. The lack of silence is definitely the worst part for me. Music isn’t tremendously harmed; I think my brain has somewhat adjusted for the frequency scoop in one ear.

comment 1w ago · link · parent

As someone who recently had unilateral sudden sensorineural hearing loss, thank you. I have a constant tone that I estimate to be around 6000 Hz in my right ear; I’ll be checking with this over the next few days to confirm.

While I’m hopeful that it recovers (I caught it within a week and began a course of steroids, followed by middle-ear injections), I’m mentally preparing for that to not happen.

comment 1w ago · link · parent

Precisely this.

comment 1w ago · link · parent

They mentioned trying Scylla, but found it didn't do well with multi-megabyte blobs. I question why they need multiple megabytes' worth of JSON to store user preferences and metadata, personally, but that's neither here nor there.

comment 1w ago · link · parent

> Today, that's all abstracted away for pennies an hour.

Until it isn't. "Why is my query slow" doesn't get solved just because you didn't have to run apt-get install postgresql.

EDIT: the company also discusses working with Postgres [0], and man do they have some takes. work_mem set to 600 MB, using a temporary table for active queries while copying its rows to the main table (their pg_catalog has to be MASSIVE), generating a table per query on a "cache DB," resulting in millions of tables that are then dropped at EOD...

This is my point. Even if these were running on RDS (they aren't), they would still be causing performance problems, because you need to understand how your tooling works to use it well at scale.

0: https://zerodha.tech/blog/working-with-postgresql/

comment 1w ago · link · parent

I want people to read documentation and try experiments, I just question whether they should be creating a product at that time. I have nothing against "hey, look what I learned!" posts, it's the concomitant positioning as having enough expertise in the field to sell a solution that bothers me.

I felt similarly when Prisma launched and didn't implement JOINs, instead just doing full SELECTs and joining them itself.

comment 1w ago · link · parent

In other databases, you also don't get the space back (mostly [0]). Postgres requires VACUUM FULL (or REPACK CONCURRENTLY, as of Pg19), and MySQL requires OPTIMIZE TABLE, neither of which is commonly done.

This is my point; if you're coming from other databases, it should be obvious that you don't get space back unless you ask for it.

0: Postgres can, under the specific circumstance of pages at the end of a table being completely empty, release them back to the OS with a normal VACUUM.

comment 1w ago · link · parent

> What we learned along the way… Deleting rows doesn’t shrink SQLite files

This is true of every RDBMS I am aware of. It would be horribly inefficient to constantly run page merges in order to be able to free some of them.

Whenever I read things on posts that are a. discussed in documentation b. should be apparent from first principles, I immediately lose faith in the product.

comment 1w ago · link · parent

Experience across multiple companies of varying size and maturity has proven to me that devs are incapable of doing the RDBMS’ job for it; there are always orphaned rows and referential integrity issues when FK Constraints get dropped.

Databases are hard. They’re also some of the best-tested code that exists, so maybe let them do their job.

comment 1w ago · link · parent

Considering 418 is the positive assertion, suddenly reversing that would break backwards compatibility; additionally, it adds ambiguity by listing multiple entities it is not, leaving the receiver to potentially assume that it is, for example, a microwave.

EDIT: missed the positive part remaining, sorry. I maintain that the ambiguity issue stands.

comment 2w ago · link · parent

Unless you have god-tier CI/CD, which most places do not, I do not like Friday changes. I’ve worked at precisely one place where it didn’t bother me, and one place where they didn’t have CD, but shared my belief and didn’t deploy on Friday.

comment 3w ago · link · parent

My favorite game when I was a kid. It was the first shooter I’d played where it really felt like you could do anything from pure stealth through IDGAF tanking, and the game would respect your choices.

comment 3w ago · link · parent

Eh, it’s still pretty annoying. I have a small voice chat app, and it easily takes a couple of minutes to build releases for all three platforms (MacOS, Linux, Windows) on a MBP.

comment 3w ago · link · parent

This has to be hyperbole. I built (with Claude) a P2P LAN voice-only chat app in Rust recently, using native frameworks for each platform (Swift, GTK, Win32), and it weighs in at about 5-6 MB depending on the platform. I have spent an enormous amount of time looking for places to squeeze it further. It has ephemeral channels and password protection, but that’s about it: no text chat, no video, no friends, no blocklists, no concept of servers, etc. I can’t imagine everything else Discord has squeezes into another 5 MB.

comment 3w ago · link · parent

1. Personal Claude Max $100 tier; Work Claude Team, and ChatGPT Team. I use almost exclusively Claude Opus 5.5 Medium for everything. ChatGPT seems to miss a lot that Claude doesn’t; I’ll occasionally ask it to do an adversarial review where it finds something, but that’s about it.

2. No.

3. Claude CLI and Codex, but I rarely use the latter, and just call its review function from within Claude. If Anthropic didn’t require API usage for external tooling, I’d be interested in trying a lighter harness, but it’s not that big of a deal for me.

4. No.

5. No.

comment 3w ago · link · parent

I like and appreciate both, though I grew up as a Windows power user, and hated vi/vim for many years when I got into *nix. It wasn’t until I saw my boss teleport a block of code elsewhere in a file with a few keystrokes that I decided I needed to learn it.

IMO, Foobar2000 [0] was/is the zenith of bespoke GUI programs from that era. The UI is clean, the menus make sense, it’s infinitely configurable but the defaults are fine, it supports plugins…

0: https://www.foobar2000.org/

comment 3w ago · link · parent

tmux?

comment 3w ago · link · parent

It’s the archetypal Windows 2000-era power user tool. A million menus, every option you can imagine, and once you learn it, you are god.

comment 3w ago · link · parent

Same. It’s perhaps a little more bloated, but it’s nothing like what Discord has become, as a counter.

comment 3w ago · link · parent

The only recent reason I’ve managed to come up with is it far and away has the best support for Nvidia’s various drivers and utilities for running GPUs and its assorted ecosystem, like Infiniband and Spectrum-X Ethernet.

If there’s another option I’m unaware of, I’d love to hear it. Also to be fair, I didn’t evaluate Sid for this, only Stable.

comment 4w ago · link · parent

I should check to see if SimCity runs on Windows 11.

comment 4w ago · link · parent

And yet somehow, Windows 11 remains a steaming pile of incoherent garbage.

comment 4w ago · link · parent

> to the speed, reliability, and assurance requirements your market segment expects.

I suspect that the average Cisco customer expects a bit more stability than $RANDOM_SAAS.

comment 1mo ago · link · parent

I posted it as well before scrolling down and seeing yours. Deleted mine, as your post goes into much more detail.

I don’t know how people who’ve worked with Python and been frustrated with its performance don’t know about Numba.

comment 1mo ago · link · parent

Tbf, the author (prompter?) went on Postgres.fm [0] recently to discuss it, and while it didn’t make me entirely confident in it, it did at least seem like it was several steps above the average vibe project.

0: https://postgres.fm/episodes/pgrust

comment 1mo ago · link · parent

Hack (Meta) is presumably contributing somewhat to PHP’s continued existence.
12345
88