Better HN
topnewbestaskshowjobs
Log inSign up

abelanger

1,665 karma · joined Jul 2, 2019 (7y ago) · 214 submissions

Co-founder of Hatchet (W24, https://hatchet.run), a task queue built on Postgres. Previously co-founder of Porter (S20, https://porter.run)
Submissions

comment 6m ago · link · parent

Thanks! Many sandbox providers support snapshots through various mechanisms: filesystem snapshots and even full memory. The snapshot mechanism here is very simple, it just streams tars to S3, though we've been playing around a lot with OverlayFS which will likely be the next iteration.

comment 52m ago · link · parent

You can use it for that, yes. Note this is designed more for people building agent products who want to add a sandbox to their agent, not for developers running coding agents remotely.

Generally the two approaches to agents with sandboxes are to run your agent "inside the sandbox," where the entire agent process runs in the sandbox, or "outside the sandbox" where the agent uses the sandbox as tool calls. We usually recommend the latter though both are possible.

3.

Show HN: Brickie – Deploy sandboxes in your own AWS account(github.com ↗)

26 points · by abelanger · 7h ago · 5 comments

4.

What Happened in Fall 2026: AI and P vs. NP(cacm.acm.org ↗)

34 points · by abelanger · 2d ago · 5 comments

5.

Supertoast, Redux(hatchet.run ↗)

1 points · by abelanger · 1w ago · discuss

comment 1w ago · link · parent

(I work on Hatchet)

This is really neat! Especially the global illumination that passes ray data between nodes, much fancier than what we've done here. You could imagine each component as an actor that receives messages via async channels (though perhaps it's more deterministic than that?).

I think bursting on serverless for massively parallelizable problems is a really interesting use-case. We were partially inspired for this demo by one of our users doing energy simulations at massive scale, who built a library called Scythe for this purpose: https://github.com/szvsw/scythe

comment 1w ago · link · parent

I'm not sure if "pass" is the right word, but it does _something_: https://imgur.com/a/WSYUh89

comment 1w ago · link · parent

Some more resources on signed distance fields (SDFs), which I didn't know about until this demo:

- https://iquilezles.org/articles/distfunctions/

- The 2D version: https://iquilezles.org/articles/distfunctions2d/ (discussed here: https://news.ycombinator.com/item?id=46380054)

- How Zed uses (used?) SDFs to render their editor: https://zed.dev/blog/videogame (discussed at the time: https://news.ycombinator.com/item?id=35078464)

9.

Building Durable Streams on Postgres(hatchet.run ↗)

4 points · by abelanger · 2w ago · discuss

comment 3mo ago · link · parent

Whoops sorry, I'll need to size this down but: https://gist.github.com/abelanger5/c513ef259b1b03fe2e5a27b96...

Going to create a PR into https://github.com/knobiknows/all-the-bufo later today.

11.

Bufo pulls the andon cord(hatchet.run ↗)

16 points · by abelanger · 3mo ago · 2 comments

comment 3mo ago · link · parent

If you really need to merge and deploy, I've been having some luck getting things moving with the gh cli:

    gh pr review <xx> --approve
    gh pr merge <xx> --squash --delete-branch
Might not help your deploy process if webhooks are degrading, but at least it can keep your remote in sync with local changes, if you need to deploy from local.

comment 3mo ago · link · parent

My wife and I have been playing this game every day for the past few weeks or so. Some of the daily levels are incredibly satisfying.

We have very different ways of approaching the harder problems; some of the clues are easier for someone with a formal CS/engineering background, but others just require a better memory of the different constraints, and she's much better at building a tagging system around those constraints.

Previously launched here: https://news.ycombinator.com/item?id=43923843

14.

Clues by Sam(cluesbysam.com ↗)

2 points · by abelanger · 3mo ago · 1 comment

15.

Does anyone run Postgres without PgBouncer?(brandur.org ↗)

165 points · by abelanger · 3mo ago · 113 comments

16.

Am I the problem? Interviewing another team to find out(macchaffee.com ↗)

2 points · by abelanger · 3mo ago · discuss

17.

Why tech companies are bad (2019)(alexcrompton.com ↗)

3 points · by abelanger · 3mo ago · discuss

18.

Concurrency vs. Throughput: why more parallelism can make databases slower(planetscale.com ↗)

2 points · by abelanger · 3mo ago · discuss

19.

Coding agents supercharge Murphy's Law(hatchet.run ↗)

2 points · by abelanger · 3mo ago · discuss

comment 3mo ago · link · parent

Hatchet | Product Engineer | NYC or SF or REMOTE (US and EU) | https://hatchet.run

Hey HN! I'm Alexander, one of the founders of Hatchet. Hatchet is an open-source platform for running background jobs at scale.

We're hiring product engineers who are excited to build the next class of engineering primitives, starting with queues, background tasks and durable execution. We started in early 2024 after launching our distributed task queue (https://news.ycombinator.com/item?id=39643136).

Hatchet is currently used by thousands of engineers for all kinds of workloads: log ingestion pipelines, code review agents, video encoding, GPU scheduling, etc. Our target customer is fast-growing startups who have a strong need for background jobs system. These days, that tends to be AI companies, though we're general-purpose and not exclusively targeted for AI workloads.

Stack: Postgres, Go, Typescript, React, Kubernetes

Applying: I'm trying something different this time. `ssh hatchet-jobs.com`

Note that we're fully open-source, which you can check out here: https://github.com/hatchet-dev/hatchet (and if you have thoughts / opinions / questions about the codebase, please include those in your note!)

21.

Implementing PaxosLease in Python with HTTP Flask(bytepawn.com ↗)

1 points · by abelanger · 3mo ago · discuss

22.

A Treatise on Restaurant Design(substack.com ↗)

2 points · by abelanger · 3mo ago · discuss

23.

Building Online Communities(hintjens.com ↗)

1 points · by abelanger · 3mo ago · discuss

24.

The First Idempotency Key(hatchet.run ↗)

36 points · by abelanger · 3mo ago · 9 comments

comment 4mo ago · link · parent

> I do wish the guide was expanded a bit with lots of specific examples and details... a lot of it is hand-wavy blurbs.

I appreciate the feedback; I'm usually someone who tends to go into way too much detail, so this was difficult to write - I tried to focus on the "mental model" of understanding Postgres rather than very nuanced specifics. I tried to link out to my favorite articles on a number of subjects, and the Postgres manual is quite good.

Some external links from the article:

- https://www.digitalocean.com/community/tutorials/database-no...

- https://www.cybertec-postgresql.com/en/benefits-of-a-descend...

- https://martinfowler.com/bliki/ParallelChange.html

- https://www.cybertec-postgresql.com/en/tuning-autovacuum-pos...

Some internal links on where I've gone into our own use-cases in more detail:

- https://hatchet.run/blog/multi-tenant-queues (PG-backed queues)

- https://hatchet.run/blog/postgres-partitioning (PG partitioning)

(edit: formatting)

comment 4mo ago · link · parent

OP here, I appreciate this.

> in addition to minimizing locked records, make sure your locks are ordered deterministically across all queries (eg by id asc, always) or you’ll deadlock (but postgres has a really good deadlock detector so you’ll more likely just error out if you’re lucky)

This is really good advice, I should put this somewhere in the guide. To add to this, not only can you deadlock by not having a consistent `ORDER BY` when you're locking sets of rows, but you should also be careful of locking rows on tables in different orders. For example, even if you lock each row in a table with an ORDER BY and FOR UPDATE, if one tx locks `table_a` and then `table_b`, and the other locks `table_b` and then `table_a`, you'll deadlock. This is obvious in theory but exponentially harder to debug in practice, because you need to be globally aware of every table that a write touches - something that's bitten us in particular with certain extensions.

> learn about GIN (and GIST) indexes

We're just testing GIN for fast key-value lookups for JSONB columns, and the performance improvements have been really massive. Interestingly there was a large performance skew between AND vs OR on these key-value queries.

comment 4mo ago · link · parent

OP here, I appreciate the feedback! I tried to focus on things which could take down your database, so things like particularly slow reads and writes, autovacuum settings, reducing lock contention, particularly focused on cases that I've seen. There are lots of things that I left out which would belong in a general user guide.

We're heavy users of stored functions because we're (perhaps overly) reliant on Postgres triggers, which can improve performance by reducing network round-trips but are fairly risky because they're difficult to monitor and observe.

28.

The startup's Postgres survival guide(hatchet.run ↗)

523 points · by abelanger · 4mo ago · 240 comments

comment 5mo ago · link · parent

Hatchet | Full-Stack Engineer | NYC or SF or REMOTE (US and EU) | https://hatchet.run

Hey HN! I'm Alexander, one of the founders of Hatchet. Hatchet is an open-source platform for running background jobs at scale.

We're hiring engineers who are excited to build the next class of engineering primitives, starting with queues, background tasks and durable execution. We started in early 2024 after launching our distributed task queue (https://news.ycombinator.com/item?id=39643136).

Hatchet is currently used by thousands of engineers for all kinds of workloads: log ingestion pipelines, code review agents, video encoding, GPU scheduling, etc. Our target customer is fast-growing startups who have a strong need for background jobs system. These days, that tends to be AI companies, though we're general-purpose and not exclusively targeted for AI workloads.

Stack: Postgres, Go, Typescript, React, Kubernetes

Applying: email me at alexander@hatchet.run and tell me about something impressive you've built, along with your CV and why you're interested in Hatchet.

Note that we're fully open-source, which you can check out here: https://github.com/hatchet-dev/hatchet (and if you have thoughts / opinions / questions about the codebase, please include those in your note!)

30.

Durable execution, the hard way(github.com ↗)

64 points · by abelanger · 6mo ago · 3 comments

12345
8