frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Fast16: Cyberweapon that predates Stuxnet by five years

https://hackingpassion.com/fast16-pre-stuxnet-cyber-sabotage/
62•dd23•1h ago•16 comments

Sawe smashes two-hour mark to 'move goalposts for marathon running'

https://www.bbc.com/sport/athletics/articles/crm1m7e0zwzo
87•berkeleyjunk•1h ago•59 comments

Butterflies are in decline across North America, a look at the Western Monarch

https://www.smithsonianmag.com/science-nature/butterflies-are-in-dramatic-decline-across-north-am...
33•1659447091•34m ago•2 comments

Magic: The Gathering took me from N2 to Japanese fluency

https://www.tokyodev.com/articles/how-magic-the-gathering-took-me-from-n2-to-japanese-fluency
50•pwim•2d ago•12 comments

AI should elevate your thinking, not replace it

https://www.koshyjohn.com/blog/ai-should-elevate-your-thinking-not-replace-it/
140•koshyjohn•1h ago•124 comments

SWE-bench Verified no longer measures frontier coding capabilities

https://openai.com/index/why-we-no-longer-evaluate-swe-bench-verified/
208•kmdupree•7h ago•124 comments

Clay PCB Tutorial

https://feministhackerspaces.cargo.site/Clay-PCB-Tutorial
173•j0r0b0•5h ago•108 comments

I Bought Friendster for $30k – Here's What I'm Doing with It

https://ca98am79.medium.com/i-bought-friendster-for-30k-heres-what-i-m-doing-with-it-d5e8ddb3991d
10•ca98am79•1h ago•1 comments

The Visible Zorker: Zork 1

https://eblong.com/infocom/visi/zork1/
73•PLenz•5h ago•12 comments

The 1944 Warsaw Uprising, in Color

https://www.barwypowstania.pl/
62•keiferski•2h ago•21 comments

Show HN: AI memory with biological decay (52% recall)

https://github.com/sachitrafa/YourMemory
11•SachitRafa•59m ago•6 comments

GoDaddy gave a domain to a stranger without any documentation

https://anchor.host/godaddy-gave-a-domain-to-a-stranger-without-any-documentation/
446•jamesponddotco•4h ago•177 comments

XOXO Festival Archive

https://xoxofest.com/
9•surprisetalk•2d ago•0 comments

An AI agent deleted our production database. The agent's confession is below

https://twitter.com/lifeof_jer/status/2048103471019434248
307•jeremyccrane•5h ago•402 comments

Show HN: Free textbook on engineering thermodynamics

https://thermodynamicsbook.com/
80•2DcAf•6h ago•27 comments

Statecharts: hierarchical state machines

https://statecharts.dev/
262•sph•12h ago•75 comments

Amateur armed with ChatGPT solves an Erdős problem

https://www.scientificamerican.com/article/amateur-armed-with-chatgpt-vibe-maths-a-60-year-old-pr...
718•pr337h4m•1d ago•499 comments

MoQ Boy

https://moq.dev/blog/moq-boy/
9•mmcclure•1h ago•0 comments

Orinoco: Young Generation Garbage Collection

https://v8.dev/blog/orinoco-parallel-scavenger
25•plow-tycoon•3d ago•2 comments

Dillo Browser Release 3.3.0

https://dillo-browser.org/release/3.3.0/
123•rodarima•4h ago•20 comments

Asahi Linux Progress Linux 7.0

https://asahilinux.org/2026/04/progress-report-7-0/
570•elisaado•11h ago•262 comments

Why has there been so little progress on Alzheimer's disease?

https://freakonomics.com/podcast/why-has-there-been-so-little-progress-on-alzheimers-disease/
388•chiefalchemist•21h ago•265 comments

Sloppy Copies

https://www.markround.com/blog/2026/04/19/sloppy-copies/
51•dev_hugepages•2d ago•12 comments

Show HN: Turning a Gaussian Splat into a videogame

https://blog.playcanvas.com/turning-a-gaussian-splat-into-a-videogame/
188•yak32•3d ago•38 comments

Plants can sense the sound of rain, a new study finds

https://news.mit.edu/2026/plants-can-sense-sound-rain-new-study-finds-0422
68•paulpauper•3h ago•7 comments

Chernobyl Wildlife Forty Years On

https://www.bbc.com/future/article/20260424-chernobyl-wildlife-forty-years-on
6•reconnecting•2h ago•0 comments

Show HN: Auge Vision from Your Terminal

https://auge.franzai.com/
16•franze•2h ago•2 comments

Waymo says can't avoid bike lanes because riders want to be dropped off in them

https://road.cc/news/driverless-taxis-veering-into-cycle-lanes-normal-practice-says-waymo
176•randycupertino•3h ago•236 comments

Tell HN: An app is silently installing itself on my iPhone every day

510•_-x-_•21h ago•179 comments

QNX on the Commodore 900 – Raiders of the lost hard drive [video] (2025)

https://archive.fosdem.org/2025/schedule/event/fosdem-2025-5479-raiders-of-the-lost-hard-drive/
45•rbanffy•9h ago•2 comments
Open in hackernews

Pglocks.org

https://pglocks.org/
80•hnasr•11mo ago

Comments

whilenot-dev•11mo ago
I'm a bit lost here.

Locking is a challenging problem in complex systems. Is this list to be interpreted as a "TODO: get rid of locking conflicts in future releases" or more a "NOTE: be aware there are known conflicts that will not change - find ways to work around them"?

EDIT: Also, is the creation of this list an automated or a manual effort?

tux3•11mo ago
I think this is intended as educational material, not a list of things to fix.

The locks are here by necessity, it is not so easy at all to get rid of them. And even in special cases where it is possible, the complexity you have to introduce is not to be taken lightly...

If even a tenth of these disapppeared, it would be incredible, in a very surprising way.

atombender•11mo ago
The creator looks like a developer and teacher, not a Postgres core team member. So I assume this is for documentation purposes.

I actually like this a lot, as there isn't a single place in the Postgres documentation that lists all the possible locks; it's spread out all over. Having a quick reference for what kinds of commands you'd be blocking with your transaction is valuable.

It's pretty evident that the pages have been programmatically generated, but I'd love know what it's generated from. I think you can derive this information from the documentation, but not sure if you can do it in an automated way without an LLM.

braiamp•11mo ago
> there isn't a single place in the Postgres documentation that lists all the possible locks

Did you read this page? https://www.postgresql.org/docs/current/explicit-locking.htm...

atombender•11mo ago
That's a great page, but it has several issues.

First, it isn't complete; as I said, the locking behaviour is spread out all over the Postgres documentation. For example, that page doesn't list what locks DROP INDEX takes. To find that out, you have to go to the documentation page for that command and read it carefully. In fact, really carefully — the locking behaviour is only documented under the section about CONCURRENTLY.

The page also doesn't list what possible commands are then blocked. Locks interact in subtle (and incorrectly named!) ways that are explained in the tables on that page ("Conflicting lock modes"), so to understand if something will block something else you have to look at the two commands you are curious about and then look at how their locks interact.

gulcin_xata•11mo ago
I agree, it is not so straightforward to find out.
braiamp•11mo ago
These are database locks, which means that depending which arrives first, the later transaction has to wait till the first one finishes to complete. These locks are about SQL commands and which commands can run concurrently with the others. There's a graph here of how that looks like https://pankrat.github.io/2015/django-migrations-without-dow...

Usually for maximum performance (minimum latency, maximum throughput) you want to have operations not lock each other, unless absolutely necessary, in which case you want them to be short.

whilenot-dev•11mo ago
You make it sound like the conflict is just affecting performance and won't result in a deadlock. So it's for performance aware postgres clients/users, and not for postgres developers?
andyferris•11mo ago
It is a guide for developers using postgres as a client, who need to write systems that don't deadlock, are performant and are correct. These are the (rather sharp) tools that postgres provides for doing so (or else you can use e.g. serializable isolation and optimistic concurrency, but in my experience that has too many false positives and bail out rather eagerly, whereas these tools let you be very precise and granular).
mebcitto•11mo ago
Other relevant talks/blogs that I found really useful for understanding Postgres locks are:

* Unlocking the Postgres Lock Manager by Bruce Momjian: https://momjian.us/main/writings/pgsql/locking.pdf

* Anatomy of table-level locks by Gulcin Yildirim Jelinek: https://xata.io/blog/anatomy-of-locks

pasxizeis•11mo ago
Shameless plug: I wrote a tool[1] that executes a given migration against a test database (e.g. in your CI) and reports back what locks it acquired.

The rationale being to have a "lock diagnostics report" commented in your PR's migration file.

It's a prototype and has a few rough edges and missing functionality, but feedback is more than welcome.

[1] https://github.com/agis/pglockanalyze

jononor•11mo ago
Very practical! Locking is one of the things that can really bite when doing migrations.