frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Discord will require a face scan or ID for full access next month

https://www.theverge.com/tech/875309/discord-age-verification-global-roll-out
916•x01•8h ago•923 comments

America has a tungsten problem

https://www.noleary.com/blog/posts/1
85•noleary•2h ago•64 comments

Converting a $3.88 analog clock from Walmart into a ESP8266-based Wi-Fi clock

https://github.com/jim11662418/ESP8266_WiFi_Analog_Clock
345•tokyobreakfast•6h ago•116 comments

Why is the sky blue?

https://explainers.blog/posts/why-is-the-sky-blue/
335•udit99•7h ago•118 comments

Upcoming changes to Let's Encrypt and how they affect XMPP server operators

https://blog.prosody.im/2026-letsencrypt-changes/
58•zaik•2h ago•37 comments

Hard-braking events as indicators of road segment crash risk

https://research.google/blog/hard-braking-events-as-indicators-of-road-segment-crash-risk/
169•aleyan•5h ago•220 comments

How I've run major projects (2025)

https://www.benkuhn.net/pjm/
49•thomascountz•6d ago•3 comments

Game Boy Advance Audio Interpolation

https://jsgroth.dev/blog/posts/gba-audio-interpolation/
58•ibobev•5h ago•17 comments

UEFI Bindings for JavaScript

https://codeberg.org/smnx/promethee
180•ananas-dev•9h ago•95 comments

Expansion Microscopy Has Transformed How We See the Cellular World

https://www.quantamagazine.org/expansion-microscopy-has-transformed-how-we-see-the-cellular-world...
19•sohkamyung•4d ago•0 comments

Sleeper Shells: Attackers Are Planting Dormant Backdoors in Ivanti EPMM

https://defusedcyber.com/ivanti-epmm-sleeper-shells-403jsp
120•waihtis•7h ago•40 comments

Another GitHub outage in the same day

https://www.githubstatus.com/incidents/lcw3tg2f6zsd
232•Nezteb•4h ago•157 comments

Sandboxels

https://neal.fun/sandboxels/
107•2sf5•7h ago•22 comments

Information Is Beautiful

https://informationisbeautiful.net/
84•surprisetalk•6d ago•8 comments

Thoughts on Generating C

https://wingolog.org/archives/2026/02/09/six-thoughts-on-generating-c
182•ingve•9h ago•53 comments

The Markets of Old London (2024)

https://spitalfieldslife.com/2024/06/20/the-markets-of-old-london-i/
43•zeristor•4h ago•14 comments

Show HN: Algorithmically finding the longest line of sight on Earth

https://alltheviews.world
355•tombh•13h ago•142 comments

Super Bowl Ad for Ring Cameras Touted AI Surveillance Network

https://truthout.org/articles/super-bowl-ad-for-ring-cameras-touted-ai-surveillance-network/
99•cdrnsf•2h ago•43 comments

The Traffic Mimes of Bogotá

https://www.atlasobscura.com/articles/traffic-mimes-of-colombia
80•IgorPartola•4d ago•18 comments

An articulated archer automaton [video]

https://www.youtube.com/watch?v=Bc0bIpDVEa8
22•Teever•3h ago•5 comments

Luce: First Electric Ferrari. Designed by LoveFrom

https://www.ferrari.com/en-US/auto/ferrari-luce
89•kaizenb•3h ago•89 comments

Pg-dev-container is a ready-to-run VS Code development container for PostgreSQL

https://github.com/jnidzwetzki/pg-dev-container
19•mariuz•4d ago•6 comments

What's the Entropy of a Random Integer?

https://quomodocumque.wordpress.com/2026/02/03/whats-the-entropy-of-a-random-integer/
27•sebg•4d ago•4 comments

Ask HN: What are you working on? (February 2026)

243•david927•1d ago•841 comments

Like Game-of-Life, but on Growing Graphs, with WASM and WebGL

https://znah.net/graphs/
147•znah•1d ago•23 comments

Stop Using Icons in Data Tables

https://medium.com/@codythistleward/stop-using-icons-in-data-tables-7537af18ea0d
8•ctward•4d ago•1 comments

Nobody knows how the whole system works

https://surfingcomplexity.blog/2026/02/08/nobody-knows-how-the-whole-system-works/
265•azhenley•17h ago•177 comments

AT&T, Verizon blocking release of Salt Typhoon security assessment reports

https://www.reuters.com/business/media-telecom/senator-says-att-verizon-blocking-release-salt-typ...
258•redman25•8h ago•64 comments

GitHub is down again

https://www.githubstatus.com/incidents/54hndjxft5bx
468•MattIPv4•6h ago•380 comments

MIT Living Wage Calculator

https://livingwage.mit.edu/
151•bear_with_me•3h ago•213 comments
Open in hackernews

Pglocks.org

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

Comments

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