frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

The newest Instagram “exploit” is the goofiest I've seen

https://www.0xsid.com/blog/meta-account-takeover-fiasco
1403•ssiddharth•10h ago•333 comments

macOS needs its grid back

https://blog.hopefullyuseful.com/blog/macos-needs-its-grid-back/
54•ranebo•1h ago•25 comments

Can the stockmarket swallow Anthropic, SpaceX and OpenAI?

https://www.economist.com/finance-and-economics/2026/06/01/can-the-stockmarket-swallow-anthropic-...
106•1vuio0pswjnm7•3h ago•229 comments

OpenAI frontier models and Codex are now available on AWS

https://openai.com/index/openai-frontier-models-and-codex-are-now-available-on-aws/
152•typpo•5h ago•53 comments

Debug Project

https://debug.com/
159•Eridanus2•6h ago•72 comments

Chipotlai Max

https://github.com/cyberpapiii/chipotlai-max
63•nigelgutzmann•3h ago•13 comments

How is Groq raising more money?

https://www.zach.be/p/how-the-hell-is-groq-raising-more
19•hasheddan•1h ago•6 comments

AI Agent Guidelines for CS336 at Stanford

https://github.com/stanford-cs336/assignment1-basics/blob/main/CLAUDE.md
334•prakashqwerty•10h ago•119 comments

Fooling around with encrypted reasoning blobs

https://blog.cryptographyengineering.com/2026/05/29/fooling-around-with-encrypted-reasoning-blobs/
8•supermatou•3d ago•1 comments

Squillions: How Money Laundering Won

https://www.lrb.co.uk/the-paper/v48/n09/john-lanchester/squillions
19•rwmj•1d ago•7 comments

CS336: Language Modeling from Scratch

https://cs336.stanford.edu/
372•kristianpaul•12h ago•43 comments

Should you normalize RGB values by 255 or 256?

https://30fps.net/pages/255-vs-256-division/
201•pplanu•9h ago•85 comments

Crystal Nights (2008)

https://www.gregegan.net/MISC/CRYSTAL/Crystal.html
9•rorylawless•1h ago•0 comments

A new way to build chips: Sequentially stacking silicon to extend Moore's Law

https://matse.illinois.edu/news/85775
25•hhs•2d ago•6 comments

U.S. Midterms Have a Cyber Problem, but It's Not at the Ballot Box

https://blog.checkpoint.com/exposure-management/the-2026-u-s-midterms-have-a-cyber-problem-but-it...
7•gnabgib•30m ago•2 comments

What appear to be biochemical processes may be a natural feature of geology

https://www.quantamagazine.org/the-dirt-that-refused-to-die-20260601/
197•speckx•11h ago•66 comments

Alphabet announces $80B equity capital raise to expand AI infra and compute

https://abc.xyz/investor/news/news-details/2026/Alphabet-Announces-Proposed-80-Billion-Equity-Cap...
116•gregschlom•6h ago•118 comments

Anyone seen a CC- serial prefix on legacy networking hardware?

11•Throwaway_sys•2d ago•5 comments

Microsoft builds MacBook Pro rival with NVIDIA-powered Surface Laptop Ultra

https://www.windowslatest.com/2026/06/01/microsoft-builds-its-ultimate-macbook-pro-rival-with-the...
157•jbk•14h ago•365 comments

Nvidia RTX Spark

https://www.nvidia.com/en-us/products/rtx-spark/
341•shenli3514•21h ago•337 comments

Florida sues OpenAI and Sam Altman over AI risks

https://www.politico.com/news/2026/06/01/openai-hit-with-florida-lawsuit-00944215
184•cyunker•10h ago•162 comments

Age verification for social media, the beginning of the end for a free internet?

https://mullvad.net/en/blog/age-verification-for-social-media-the-beginning-of-the-end-for-a-free...
112•StrLght•3h ago•60 comments

Ask HN: Who is hiring? (June 2026)

165•whoishiring•11h ago•239 comments

What's gonna happen to software engineers?

https://yakko.dev/blog/whats-gonna-happen-to-software-developers
36•yakkomajuri•2h ago•51 comments

Stealing from Biologists to Compile Haskell Faster

https://www.iankduncan.com/engineering/2026-05-30-stealing-from-biologists-to-compile-haskell-fas...
99•mooreds•2d ago•4 comments

The Frame Problem (2004)

https://plato.stanford.edu/entries/frame-problem/
16•rzk•3h ago•3 comments

Book Dedications

https://walzr.com/dedications
7•walz•2h ago•1 comments

Launch HN: Expanse (YC P26) – Unlock Wasted GPU Capacity

70•ismaeel_bashir•13h ago•22 comments

I made my phone slow on purpose

https://vinewallapp.com/notes/i-made-my-phone-slow-on-purpose/
169•gcampos•4d ago•161 comments

Only 17% of all 64-bit Integers are products of two 32-bit integers

https://lemire.me/blog/2026/05/22/only-17-of-all-64-bit-integers-are-products-of-two-32-bit-integ...
206•sebg•4d ago•94 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.