Ahsan Hadi: PostgreSQL 19 Is Here: Worth the Wait
PostgreSQL 19 is available through the pgEdge repository, with installation instructions for apt and dnf systems. Release notes and a blog series explain the project’s changes. (pgedge.com)
Mutex poisoning marks a lock as compromised when its guard is dropped during a panic, causing later lock attempts to return an error. The mechanism aims to prevent code from observing data left in an invalid intermediate state, such as a value that must remain even while a critical section increments it twice. The author argues that this protection is valuable in some situations, especially when a lock safeguards state beyond the mutex’s direct control, but is uncommon in ordinary applications, where critical sections are simple and interruption leaves no lasting invariant violation. Rust should make the common case easy while allowing specialized poisoning where needed.
The main case against poisoning by default is its cost across every mutex, whether or not a program needs the feature. It adds state and can increase mutex size; more significantly, generated code includes poison checks, panic handling, and guard cleanup. Assembly comparisons show that locking and unwrapping a mutex can produce 147 lines, while explicitly recovering the inner value from a poison error reduces this to 68; a nightly non-poisoning mutex needs 34. The extra branching and code can affect performance and instruction-cache use. Poisoning also complicates everyday code: ignoring poison requires a lengthy recovery expression, while using unwrap is shorter but can panic unexpectedly and encourages habits that obscure whether poison matters. The author favors non-poisoning mutexes by default and a separate poison wrapper for programs that genuinely need the safeguard.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.
PostgreSQL 19 is available through the pgEdge repository, with installation instructions for apt and dnf systems. Release notes and a blog series explain the project’s changes. (pgedge.com)
Graham Dumpleton, creator of mod_wsgi, is building Muru, an AI-assisted Rust server for running Python’s WSGI and ASGI apps in development and production. Its features include HTTPS, Kubernetes support, scaling, and tracing, with Dumpleton using his two decades of experience to guide and refine the project. (simonwillison.net)
Fast-Anything helps optimize Python, Node, and Ruby apps by profiling them and rewriting only their slowest functions in Rust. It uses coding agents to make the changes and checks that the rewritten functions behave the same. (github.com)
Leonida is a community project that aims to recompile the Xbox version of Grand Theft Auto 6 for native PC execution. Its public GitHub repository is GPL-3.0 licensed and has attracted thousands of stars and hundreds of forks. (github.com)
Rust GUI development is gaining momentum as AI makes Rust easier to use and teams seek safer, faster alternatives to bloated cross-platform apps. New toolkit projects should focus on clear use cases and practical trade-offs instead of chasing a universal definition of “native.” (linebender.org)
Big data is not the main obstacle to useful insights: hardware has kept pace with data growth, while teams still struggle to make sense of their information. The author argues that organizations should focus on making data easier to understand and use, rather than buying tools built for ever-larger datasets. (motherduck.com)
Today's best Hacker News stories, summarized and screenshotted, one email a day.