frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Corruption erodes social trust more in democracies than in autocracies

https://www.frontiersin.org/journals/political-science/articles/10.3389/fpos.2026.1779810/full
94•PaulHoule•4h ago•30 comments

Polymarket gamblers threaten to kill me over Iran missile story

https://www.timesofisrael.com/gamblers-trying-to-win-a-bet-on-polymarket-are-vowing-to-kill-me-if...
242•defly•4h ago•134 comments

Canada's bill C-22 mandates mass metadata surveillance

https://www.michaelgeist.ca/2026/03/a-tale-of-two-bills-lawful-access-returns-with-changes-to-war...
814•opengrass•18h ago•240 comments

The "are you sure?" Problem: Why AI keeps changing its mind

https://www.randalolson.com/2026/02/07/the-are-you-sure-problem-why-your-ai-keeps-changing-its-mind/
13•turoczy•21h ago•14 comments

How I write software with LLMs

https://www.stavros.io/posts/how-i-write-software-with-llms/
299•indigodaddy•14h ago•243 comments

The 49MB web page

https://thatshubham.com/blog/news-audit
647•kermatt•20h ago•290 comments

Chrome DevTools MCP (2025)

https://developer.chrome.com/blog/chrome-devtools-mcp-debug-your-browser-session
522•xnx•21h ago•209 comments

Nango (YC W23, API Access for Agents and Apps) Is Hiring

https://jobs.ashbyhq.com/Nango
1•bastienbeurier•4h ago

Home Assistant waters my plants

https://finnian.io/blog/home-assistant-waters-my-plants/
86•finniananderson•4d ago•34 comments

Electric motor scaling laws and inertia in robot actuators

https://robot-daycare.com/posts/actuation_series_1/
113•o4c•4d ago•20 comments

Six ingenious ways how Canon DSLRs used to illuminate their autofocus points

https://exclusivearchitecture.com/03-technical-articles-CSDS-00-table-of-contents.html
63•ExAr•1d ago•15 comments

Stop Sloppypasta

https://stopsloppypasta.ai/
444•namnnumbr•22h ago•181 comments

What every computer scientist should know about floating-point arithmetic (1991) [pdf]

https://www.itu.dk/~sestoft/bachelor/IEEE754_article.pdf
87•jbarrow•4d ago•16 comments

LLM Architecture Gallery

https://sebastianraschka.com/llm-architecture-gallery/
459•tzury•1d ago•34 comments

LLMs can be exhausting

https://tomjohnell.com/llms-can-be-absolutely-exhausting/
256•tjohnell•19h ago•171 comments

Kona EV Hacking

http://techno-fandom.org/~hobbit/cars/ev/
60•AnnikaL•4d ago•32 comments

Why Are Viral Capsids Icosahedral?

https://www.asimov.press/p/viral-capsids
19•surprisetalk•4d ago•0 comments

Scientists discover a surprising way to quiet the anxious mind (2025)

https://www.sciencedaily.com/releases/2025/10/251027023816.htm
32•carlos-menezes•5h ago•29 comments

Reviewing Large Changes with Jujutsu

https://ben.gesoff.uk/posts/reviewing-large-changes-with-jj/
35•bengesoff•4d ago•4 comments

Separating the Wayland compositor and window manager

https://isaacfreund.com/blog/river-window-management/
317•dpassens•1d ago•174 comments

The Accidental Room (2018)

https://99percentinvisible.org/episode/the-accidental-room/
44•blewboarwastake•2d ago•5 comments

The Linux Programming Interface as a university course text

https://man7.org/tlpi/academic/index.html
123•teleforce•16h ago•20 comments

The emergence of print-on-demand Amazon paperback books

https://www.alexerhardt.com/en/enshittification-amazon-paperback-books/
182•aerhardt•1d ago•143 comments

Glassworm is back: A new wave of invisible Unicode attacks hits repositories

https://www.aikido.dev/blog/glassworm-returns-unicode-attack-github-npm-vscode
283•robinhouston•1d ago•169 comments

//go:fix inline and the source-level inliner

https://go.dev/blog/inliner
173•commotionfever•4d ago•69 comments

How far can you go with IX Route Servers only?

https://blog.benjojo.co.uk/post/how-far-can-you-get-with-ix-route-servers
47•ingve•4d ago•3 comments

Bus travel from Lima to Rio de Janeiro

https://kenschutte.com/lima-to-rio-by-bus/
202•ks2048•4d ago•76 comments

Lies I was told about collaborative editing, Part 2: Why we don't use Yjs

https://www.moment.dev/blog/lies-i-was-told-pt-2
116•antics•3d ago•61 comments

What makes Intel Optane stand out (2023)

https://blog.zuthof.nl/2023/06/02/what-makes-intel-optane-stand-out/
213•walterbell•1d ago•149 comments

A Visual Introduction to Machine Learning (2015)

https://r2d3.us/visual-intro-to-machine-learning-part-1/
374•vismit2000•1d ago•31 comments
Open in hackernews

Pglocks.org

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

Comments

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