frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Midjourney Medical

https://www.midjourney.com/medical/blogpost
914•ricochet11•10h ago•626 comments

Hospitals and universities repurposing drugs at 90% lower cost

https://www.kcl.ac.uk/news/hospitals-and-universities-repurposing-drugs-at-90-lower-cost
54•giuliomagnifico•1h ago•14 comments

DeepSeek Introduces Vision

https://chat.deepseek.com/
211•RIshabh235•6h ago•90 comments

Local Qwen isn't a worse Opus, it's a different tool

https://blog.alexellis.io/local-ai-is-not-opus/
277•alphabettsy•9h ago•142 comments

Lore – Open source version control system designed for scalability

https://lore.org/
1170•regnerba•21h ago•621 comments

I hate compilers

https://xeiaso.net/notes/2026/anubis-wasm-vendor-binary/
101•xena•7h ago•74 comments

I need your clothes, your boots, and your motorcycle

https://rbelmont.mameworld.info/?p=1725
71•ingve•4h ago•59 comments

AMD silently removes memory encryption from consumer Ryzen CPUs

https://www.tomshardware.com/pc-components/cpus/amd-silently-removes-memory-encryption-from-consu...
196•lompad•4h ago•103 comments

Vinyl Cache and Varnish Cache

https://vinyl-cache.org/organization/on_vinyl_cache_and_varnish_cache.html#org-vinyl-varnish
18•embedding-shape•3d ago•3 comments

US holds off blacklisting DeepSeek, more than 100 firms deemed security risks

https://www.reuters.com/world/china/us-holds-off-blacklisting-chinas-deepseek-more-than-100-firms...
478•giuliomagnifico•1d ago•523 comments

Challenging the Narrative of European Decline

https://paulkrugman.substack.com/p/challenging-the-narrative-of-european-478
30•vrganj•54m ago•12 comments

Sogen – High-performance Windows and Linux userspace emulator

https://sogen.dev/
41•fratellobigio•3d ago•10 comments

The 2-Year Apartment Rule

https://tadaima.bearblog.dev/the-2-year-apartment-rule/
47•surprisetalk•2d ago•118 comments

Clojure Hosted on Go

https://github.com/glojurelang/glojure
161•dnlo•13h ago•19 comments

How we run Firecracker VMs inside EC2 and start browsers in less than 1s

https://browser-use.com/posts/firecracker-browser-infra
289•gregpr07•1d ago•198 comments

How Madrid built its metro cheaply (2024)

https://worksinprogress.co/issue/how-madrid-built-its-metro-cheaply/
166•trymas•16h ago•111 comments

Storied Colors – A catalogue of named colors

https://storiedcolors.com/
186•susiecambria•14h ago•43 comments

Taxonomy of the Occlupanida (parasitoids on bread bag tags)

https://www.horg.com/horg/?page_id=921
159•beatthatflight•13h ago•39 comments

The Alaska Server

https://serialport.org/blog/the-alaska-server/
30•speckx•2d ago•7 comments

Loreline – Tools for writing interactive fiction

https://loreline.app/en/
187•smartmic•15h ago•32 comments

Seven Perfect Shuffles Randomize a Deck of Cards. But How Many Sloppy Ones?

https://www.quantamagazine.org/seven-perfect-shuffles-randomize-a-deck-of-cards-but-how-many-slop...
7•layer8•3h ago•8 comments

Launch HN: Adam (YC W25) – Open-Source AI CAD

https://github.com/Adam-CAD/CADAM
192•zachdive•20h ago•88 comments

RFC 10008: The new HTTP Query Method

https://www.rfc-editor.org/info/rfc10008/
386•schappim•1d ago•160 comments

Smashed Toilet Phone Web Server

https://www.offthebricks.com/articles/smashed-toilet-phone-web-server
24•mircerlancerous•3d ago•13 comments

About ASCII art and Jgs font (2023)

https://velvetyne.fr/news/about-ascii-art-and-jgs-font/
16•Luc•2d ago•2 comments

Nim Conf 2026 (Online, Sat June 20)

https://conf.nim-lang.org/
56•pietroppeter•8h ago•11 comments

The Australian Government to Require SMS/MMS Sender ID Registraion

https://www.acma.gov.au/sms-sender-id-register
116•anitil•6h ago•65 comments

Why thinking out loud with someone beats thinking alone

https://www.thesignalist.io/s/the-dialogue-dividend/
287•kodesko•23h ago•127 comments

Volkswagen started blocking GrapheneOS users

https://discuss.grapheneos.org/d/35949-volkswagen-app?page=3
721•microtonal•21h ago•428 comments

Show HN: We built an 8-bit CPU as 2nd year EE students

https://github.com/c0rRupT9/STEPLA-1
86•CorRupT9•2d ago•22 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.