frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Amazon saves millions by replacing Sonnet 4.6 with Strands Decider

https://strandsagents.com/blog/amazon-saves-millions-replacing-sonnet-with-strands-decider/
374•aloukissas•6h ago•129 comments

Claude Fable 5.2 and Mythos 5.2

https://www.anthropic.com/claude-fable-and-mythos-5-2
663•lairv•18h ago•843 comments

Queens Public library under ransomware attack e-borrowing suspended

https://connect.queenslibrary.org/
58•rustyhancock•3h ago•39 comments

Fossil CO2 emissions decrease by 0.4% in 2026

https://news.exeter.ac.uk/faculty-of-environment-science-and-economy/fossil-co2-emissions-decreas...
34•giuliomagnifico•3h ago•21 comments

USPS now offers official ZIP Code boundary polygons

https://postalpro.usps.com/zcb
638•munro•16h ago•321 comments

Your TV can see through walls

https://maurycyz.com/projects/fading/
153•Curiositry•6h ago•56 comments

Fireworks AI security breach impacts Notion and their customers

https://www.notion.com/help/security-incident-involving-a-third-party-ai-vendor
70•werrett•4h ago•20 comments

Locating the source of a mysterious beep

https://simonwillison.net/2026/Nov/9/mysterious-beeps/
219•bigwheels•12h ago•100 comments

Billion Watts in the Speaker [video]

https://www.youtube.com/watch?v=PHOcTXYaMfg
26•Element_•2d ago•11 comments

How hard is it to check for whitespace?

https://serce.me/posts/2026-10-30-how-hard-is-it-to-check-for-whitespace
50•theanonymousone•3d ago•11 comments

Payments Canada announces launch of Canada's Real-Time Rail (RTR) payment system

https://www.payments.ca/canada-launches-real-time-rail-bringing-247-payment-infrastructure-nation...
538•ocd•20h ago•303 comments

Foldable Flight: The Best Paper Airplanes

https://www.foldableflight.com
1060•vismit2000•23h ago•151 comments

E-means: Outperforming k-means in one-tenth the epochs

https://e-means.github.io/
420•porridgeraisin•17h ago•50 comments

AI usage generates a fragile codebase

https://evanxmerz.com/post/ai-usage-generates-a-fragile-codebase/
74•plun9•1h ago•63 comments

Horible public key tricks

https://maurycyz.com/projects/badcert/
183•Curiositry•12h ago•60 comments

'C:\> FORMAT C:' – relax, it's just a screen saver

https://fakedos.com/
5•TheIncredibleCh•1h ago•0 comments

Ultorg: The User Interface for Relational Databases

https://www.ultorg.com/
89•Ivoah•8h ago•26 comments

Show HN: Ghanaian street games you can play in the browser

https://www.ghanastreetgames.com/
10•samuelaidoo45•1d ago•2 comments

ClickHouse Acquires Xata

https://xata.io/blog/xata-is-joining-clickhouse
49•mebcitto•5h ago•7 comments

Semi-transparent, colored cadmium telluride photovoltaic panels in agrivoltaics

https://www.anthropocenemagazine.org/2026/10/magenta-solar-panels-may-be-agrivoltaics-cleverest-t...
323•speckx•21h ago•220 comments

What Constant Surveillance Is Doing to Children

https://www.theatlantic.com/magazine/2026/12/location-tracking-apps-parental-surveillance/689031/
26•FinnLobsien•1h ago•8 comments

Formalizing CPython

https://broyojo.com/python-formalization/
86•carnevalem•10h ago•32 comments

Show HN: Every satellite that passed over any place this week, and its photos

https://www.watched.earth
378•a585gupt•18h ago•66 comments

A primer on GPUs and kernel optimization

https://www.nabo.dev/blogs/kernel-primer
164•nomi_uw•4d ago•14 comments

The first 300-millimeter power silicon carbide (SiC) wafer

https://www.infineon.com/press-release/2026/infpr202611-028
141•sshah03•17h ago•81 comments

Google Gemini routes personal Drive files and emails to human annotators

https://github.com/thisisme6598/gemini_files/
634•gf74918•17h ago•134 comments

Muse Ember: Our smallest, most efficient model

https://research.meta.ai/blog/muse-ember
310•dvaplima•18h ago•132 comments

CoreWeave bond yield tops 16% as AI credit stress rises

https://www.cnbc.com/2026/11/06/coreweave-bond-yield-tops-16percent-as-ai-credit-stress-rises.html
175•lxm•8h ago•139 comments

On Being an Engineer in 2026

https://twitter.com/shaharglazner/status/2119796029256032278
130•talboren•21h ago•207 comments

Time for AVIF everywhere?

https://www.michaelponders.com/2026/11/isnt-it-time-for-avif-everywhere.html
88•speckx•2d ago•61 comments
Open in hackernews

Pglocks.org

https://pglocks.org/
80•hnasr•1y ago

Comments

whilenot-dev•1y 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•1y 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•1y 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•1y 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•1y 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•1y ago
I agree, it is not so straightforward to find out.
braiamp•1y 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•1y 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•1y 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•1y 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•1y 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•1y ago
Very practical! Locking is one of the things that can really bite when doing migrations.