frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Fedware: Government apps that spy harder than the apps they ban

https://www.sambent.com/the-white-house-app-has-huawei-spyware-and-an-ice-tip-line/
78•speckx•1h ago•14 comments

Do your own writing

https://alexhwoods.com/dont-let-ai-write-for-you/
100•karimf•7h ago•26 comments

How to turn anything into a router

https://nbailey.ca/post/router/
452•yabones•6h ago•171 comments

Bird brains (2023)

https://www.dhanishsemar.com/writing/bird-brains
252•DiffTheEnder•6h ago•159 comments

CodingFont: A game to help you pick a coding font

https://www.codingfont.com/
195•nvahalik•4h ago•112 comments

Cherri – programming language that compiles to an Apple Shortuct

https://github.com/electrikmilk/cherri
125•mihau•2d ago•22 comments

A sea of sparks: Seeing radioactivity

https://maurycyz.com/projects/spinthariscope/
21•maurycyz•1h ago•5 comments

Seeing Like a Spreadsheet

https://davidoks.blog/p/how-the-spreadsheet-reshaped-america
20•paulpauper•2d ago•1 comments

OCR for construction documents does not work, we fixed it

https://www.getanchorgrid.com/developer/docs/endpoints/drawings-doors
67•wcisco17•3h ago•46 comments

William Blake, Remote by the Sea

https://www.laphamsquarterly.org/roundtable/william-blake-remote-sea
7•occurrence•36m ago•0 comments

Build123d: A Python CAD programming library

https://github.com/gumyr/build123d
81•Ivoah•22h ago•34 comments

The Hateful Eight is 85% of S&P 500 Decline

https://paulkedrosky.com/chart-of-the-day-the-hateful-eight-is-85-of-s-p-500-decline/
14•aanet•1h ago•3 comments

Take better notes, by hand

https://brianschrader.com/archive/take-better-notes-by-hand/
117•sonicrocketman•3h ago•57 comments

In math, rigor is vital, but are digitized proofs taking it too far?

https://www.quantamagazine.org/in-math-rigor-is-vital-but-are-digitized-proofs-taking-it-too-far-...
65•isaacfrond•4d ago•51 comments

An NSFW filter for Marginalia search

https://www.marginalia.nu/log/a_134_nsfw/
47•speckx•3h ago•7 comments

Mathematical methods and human thought in the age of AI

https://arxiv.org/abs/2603.26524
167•zaikunzhang•8h ago•65 comments

FTC action against Match and OkCupid for deceiving users, sharing personal data

https://www.ftc.gov/news-events/news/press-releases/2026/03/ftc-takes-action-against-match-okcupi...
172•gnabgib•4h ago•84 comments

Show HN: Coasts – Containerized Hosts for Agents

https://github.com/coast-guard/coasts
27•jsunderland323•4h ago•9 comments

The curious case of retro demo scene graphics

https://www.datagubbe.se/aipixels/
319•zdw•14h ago•81 comments

How Does Offline Bitcoin Signing Work Step by Step

https://frozensecurity.com/blog/how-offline-bitcoin-signing-works/
3•frozensecurity•50m ago•0 comments

I am definitely missing the pre-AI writing era

https://www.lesswrong.com/posts/BJ4pnropWdnzzgeJc/i-am-definitely-missing-the-pre-ai-writing-era
181•joozio•12h ago•155 comments

I use Excalidraw to manage my diagrams for my blog

https://blog.lysk.tech/excalidraw-frame-export/
234•mlysk•12h ago•99 comments

New Washington state law bans noncompete agreements

https://www.seattletimes.com/business/local-business/new-washington-law-bans-noncompete-agreements/
228•toomuchtodo•2h ago•88 comments

Proactively Parasocial

https://nicklandolfi.com/posts/proactively-parasocial.html
18•jxmorris12•4d ago•3 comments

Fibonacci's Composed Fractions

https://ztoz.blog/posts/fibonacci-fractions/
5•aebtebeten•3d ago•1 comments

You are falling behind because you haven't fed the insincerity machine

https://christianheilmann.com/2026/03/28/you-are-falling-behind-because-you-havent-fed-the-insinc...
96•speckx•2h ago•17 comments

The ladder is missing rungs – Engineering Progression When AI Ate the Middle

https://negroniventurestudios.com/2026/03/19/the-ladder-is-missing-rungs/
36•sorenvrist•5h ago•3 comments

Hamilton-Jacobi-Bellman Equation: Reinforcement Learning and Diffusion Models

https://dani2442.github.io/posts/continuous-rl/
135•sebzuddas•12h ago•39 comments

Recover Apple Keychain

https://arkoinad.com/posts/apple_keychain_recovery.html
6•speckx•2h ago•0 comments

Copilot edited an ad into my PR

https://notes.zachmanson.com/copilot-edited-an-ad-into-my-pr/
1368•pavo-etc•15h ago•558 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.