frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

A guide to local coding models

https://www.aiforswes.com/p/you-dont-need-to-spend-100mo-on-claude
285•mpweiher•7h ago•137 comments

Deliberate Internet Shutdowns

https://www.schneier.com/blog/archives/2025/12/deliberate-internet-shutdowns.html
64•WaitWaitWha•3d ago•16 comments

I'm just having fun

https://jyn.dev/i-m-just-having-fun/
209•lemper•5d ago•62 comments

Disney Imagineering Debuts Next-Generation Robotic Character, Olaf

https://disneyparksblog.com/disney-experiences/robotic-olaf-marks-new-era-of-disney-innovation/
128•ChrisArchitect•6h ago•50 comments

ONNX Runtime and CoreML May Silently Convert Your Model to FP16

https://ym2132.github.io/ONNX_MLProgram_NN_exploration
41•Two_hands•3h ago•4 comments

Show HN: Books mentioned on Hacker News in 2025

https://hackernews-readings-613604506318.us-west1.run.app
365•seinvak•11h ago•142 comments

Kernighan's Lever

https://linusakesson.net/programming/kernighans-lever/index.php
13•xk3•2d ago•3 comments

Build Android apps using Rust and iced

https://github.com/ibaryshnikov/android-iced-example
4•rekireki•1h ago•0 comments

Show HN: WalletWallet – create Apple passes from anything

https://walletwallet.alen.ro/
324•alentodorov•12h ago•96 comments

Evaluating chain-of-thought monitorability

https://openai.com/index/evaluating-chain-of-thought-monitorability/
38•mfiguiere•2d ago•9 comments

CO2 batteries that store grid energy take off globally

https://spectrum.ieee.org/co2-battery-energy-storage
169•rbanffy•12h ago•151 comments

The Going Dark initiative or ProtectEU is a Chat Control 3.0 attempt

https://mastodon.online/@mullvadnet/115742530333573065
490•janandonly•9h ago•163 comments

I program on the subway

https://www.scd31.com/posts/programming-on-the-subway
187•evankhoury•5d ago•123 comments

86Box v5.3

https://86box.net/2025/12/21/86box-v5-3.html
33•chungy•2h ago•0 comments

Show HN: Autograd.c – A tiny ML framework built from scratch

https://github.com/sueszli/autograd.c
66•sueszli•5d ago•7 comments

I wish people were more public

https://borretti.me/article/i-wish-people-were-more-public
41•swah•4h ago•23 comments

Autoland saves King Air, everyone reported safe

https://avbrief.com/autoland-saves-king-air-everyone-reported-safe/
159•bradleybuda•11h ago•91 comments

E.W.Dijkstra Archive

https://www.cs.utexas.edu/~EWD/welcome.html
120•surprisetalk•12h ago•9 comments

You’re not burnt out, you’re existentially starving

https://neilthanedar.com/youre-not-burnt-out-youre-existentially-starving/
244•thanedar•9h ago•278 comments

I can't upgrade to Windows 11, now leave me alone

https://idiallo.com/byte-size/cant-update-to-windows-11-leave-me-alone
399•firefoxd•9h ago•362 comments

Ruby website redesigned

https://www.ruby-lang.org/en/
373•psxuaw•21h ago•148 comments

Indoor tanning makes youthful skin much older on a genetic level

https://www.ucsf.edu/news/2025/12/431206/indoor-tanning-makes-youthful-skin-much-older-genetic-level
223•SanjayMehta•22h ago•171 comments

Danish postal service to stop delivering letters after 400 years

https://www.theguardian.com/world/2025/dec/21/denmark-postnord-postal-delivery-letters-society
41•hackerbeat•2h ago•31 comments

Waymo halts service during S.F. blackout after causing traffic jams

https://missionlocal.org/2025/12/sf-waymo-halts-service-blackout/
223•rwoll•23h ago•316 comments

Why “negative vectors” can't delete data in FAISS – but weighted kernels can

https://github.com/nikitph/bloomin/tree/master/negative-vector-experiment
19•loaderchips•4d ago•3 comments

ARIN Public Incident Report – 4.10 Misissuance Error

https://www.arin.net/announcements/20251212/
135•immibis•12h ago•35 comments

Get an AI code review in 10 seconds

https://oldmanrahul.com/2025/12/19/ai-code-review-trick/
107•oldmanrahul•10h ago•57 comments

Coarse is better

https://borretti.me/article/coarse-is-better
190•_dain_•15h ago•99 comments

Rue: Higher level than Rust, lower level than Go

https://rue-lang.dev/
105•ingve•7h ago•74 comments

Structured outputs create false confidence

https://boundaryml.com/blog/structured-outputs-create-false-confidence
120•gmays•13h ago•59 comments
Open in hackernews

Pglocks.org

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

Comments

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