frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Better JIT for Postgres

https://github.com/vladich/pg_jitter
42•vladich•2h ago

Comments

eru•1h ago
> However, standard LLVM-based JIT is notoriously slow at compilation. When it takes tens to hundreds of milliseconds, it may be suitable only for very heavy, OLAP-style queries, in some cases.

I don't know anything here, but this seems like a good case for ahead of time compilation? Or at least caching your JIT results? I can image much of the time, you are getting more or less the same query again and again?

olau•52m ago
Yes.

Some years ago we ported some code from querying out the data and tallying in Python (how many are in each bucket) to using SQL to do that. It didn't speed up the execution. I was surprised by that, but I guess the Postgres interpreter is roughly the same speed as Python, which when you think about it perhaps isn't that surprising.

But Python is truly general purpose while the core query stuff in SQL is really specialized (we were not using stored procedures). So if Pypy can get 5x speedup, it seems to me that it should be possible to get the same kind of speed up in Postgres. I guess it needs funding and someone as smart as the Pypy people.

asah•1h ago
awesome! I wonder if it's possible to point AI at this problem and synthesize a bespoke compiler (per-architecture?) for postgresql expressions?
kvdveer•1h ago
Two things are holding back current LLM-style AI of being of value here:

* Latency. LLM responses are measured in order of 1000s of milliseconds, where this project targets 10s of milliseconds, that's off by almost two orders of magnitute.

* Determinism. LLMs are inherently non-deterministic. Even with temperature=0, slight variations of the input lead to major changes in output. You really don't want your DB to be non-deterministic, ever.

simonask•1h ago
> 1000s of milliseconds

Better known as "seconds"...

olau•1h ago
The suggestion was not to use an LLM to compile the expression, but to use an LLM to build the compiler.
fabian2k•40m ago
The last time I looked into it my impression was that disabling the JIT in PostgreSQL was the better default choice. I had a massive slowdown in some queries, and that doesn't seem to be an entirely unusual experience. It does not seem worth it to me to add such a large variability to query performance by default. The JIT seemed like something that could be useful if you benchmark the effect on your actual queries, but not as a default for everyone.
pjmlp•12m ago
That is quite strange, given that big boys RDMS (Oracle, SQL Server, DB2, Informix,...) all have JIT capabilities for several decades now.

Motorola GrapheneOS devices will be bootloader unlockable/relockable

https://grapheneos.social/@GrapheneOS/116160393783585567
597•pabs3•8h ago•167 comments

RFC 9849. TLS Encrypted Client Hello

https://www.rfc-editor.org/rfc/rfc9849.html
37•P_qRs•1h ago•6 comments

Agentic Engineering Patterns

https://simonwillison.net/guides/agentic-engineering-patterns/
105•r4um•4h ago•21 comments

Better JIT for Postgres

https://github.com/vladich/pg_jitter
42•vladich•2h ago•8 comments

TikTok will not introduce end-to-end encryption, saying it makes users less safe

https://www.bbc.com/news/articles/cly2m5e5ke4o
222•1659447091•7h ago•155 comments

A CPU that runs entirely on GPU

https://github.com/robertcprice/nCPU
77•cypres•4h ago•23 comments

MacBook Pro with M5 Pro and M5 Max

https://www.apple.com/newsroom/2026/03/apple-introduces-macbook-pro-with-all-new-m5-pro-and-m5-max/
775•scrlk•19h ago•803 comments

Graphics Programming Resources

https://develop--gpvm-website.netlify.app/resources/
86•abetusk•6h ago•10 comments

Show HN: Rust compiler in PHP emitting x86-64 executables

https://github.com/mrconter1/rustc-php
20•mrconter11•2d ago•17 comments

On the Design of Programming Languages (1974) [pdf]

https://web.cs.ucdavis.edu/~su/teaching/ecs240-w17/readings/PLHistoryGoodDesign.PDF
35•jruohonen•3d ago•1 comments

Claude's Cycles [pdf]

https://www-cs-faculty.stanford.edu/~knuth/papers/claude-cycles.pdf
622•fs123•22h ago•252 comments

Weave – A language aware merge algorithm based on entities

https://github.com/Ataraxy-Labs/weave
118•rs545837•7h ago•72 comments

Speculative Speculative Decoding (SSD)

https://arxiv.org/abs/2603.03251
40•E-Reverance•5h ago•6 comments

Voxile: A ray-traced game made in its own engine and programming language

https://elbowgreasegames.substack.com/p/voxray-games-pushes-major-update
187•spacemarine1•11h ago•50 comments

Reverse-Engineering the Wetware: Spiking Networks and the End of Matrix Math

https://metaduck.com/reverse-engineering-the-wetware-spiking-networks-td-errors-and-the-end-of-ma...
19•pgte•2d ago•4 comments

My spicy take on vibe coding for PMs

https://www.ddmckinnon.com/2026/02/11/my-%f0%9f%8c%b6-take-on-vibe-coding-for-pms/
88•dmckinno•9h ago•86 comments

Textadept

https://orbitalquark.github.io/textadept/
129•giancarlostoro•3d ago•21 comments

Mount Mayhem at Netflix: Scaling Containers on Modern CPUs

https://netflixtechblog.com/mount-mayhem-at-netflix-scaling-containers-on-modern-cpus-f3b09b68beac
54•vquemener•3d ago•25 comments

Welcoming Elizabeth Barron as the New Executive Director of the PHP Foundation

https://thephp.foundation/blog/2026/02/27/welcoming-elizabeth-barron-new-executive-director/
27•ulrischa•2d ago•14 comments

You can use newline characters in URLs

https://lemire.me/blog/2026/02/28/you-can-use-newline-characters-in-urls/
68•chmaynard•3d ago•33 comments

Indefinite Book Club Hiatus

https://whatever.scalzi.com/2026/03/03/indefinite-book-club-hiatus/
13•cdrnsf•4h ago•5 comments

When AI writes the software, who verifies it?

https://leodemoura.github.io/blog/2026/02/28/when-ai-writes-the-worlds-software.html
223•todsacerdoti•16h ago•224 comments

An Interactive Intro to CRDTs (2023)

https://jakelazaroff.com/words/an-interactive-intro-to-crdts/
140•evakhoury•13h ago•23 comments

Circle Games (2019)

https://srconstantin.wordpress.com/2019/06/06/circle-games/
6•surprisetalk•2d ago•0 comments

Launch HN: Cekura (YC F24) – Testing and monitoring for voice and chat AI agents

82•atarus•18h ago•20 comments

The largest acidic geyser has been putting on quite a show

https://www.usgs.gov/observatories/yvo/news/echinus-geyser-back-action-now
48•1659447091•7h ago•1 comments

Number Research Inc

https://numberresearch.xyz/
31•eieio•6h ago•16 comments

California's Digital Age Assurance Act, and FOSS

https://runxiyu.org/comp/ab1043/
95•todsacerdoti•5h ago•72 comments

GPT‑5.3 Instant

https://openai.com/index/gpt-5-3-instant/
344•meetpateltech•15h ago•270 comments

Mac external displays for designers and developers, part 2 (2022)

https://bjango.com/articles/macexternaldisplays2/
43•fragmede•6h ago•26 comments