frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: uplpgsql – PL/pgSQL compiled to native code

https://github.com/nextgres/uplpgsql
2•jonahharris•1h ago
uplpgsql compiles PL/pgSQL to native code. It took over twenty years to get here, but here it is.

On July 19, 2005, I demoed my optimizing PL/SQL compiler to Andy Astor, Denis Lussier, and Jim Mlodgenski at EnterpriseDB; PL/SQL packages, procedures, and functions ran on Postgres at native speed, not interpreted. While they didn't acquire it, they brought me on as a founding engineer focused on Oracle Database compatibility and performance.

Then, on November 20, 2014, long after we'd both left, Denis suggested I make it a universal PL compiler that didn't care which dialect it was handed, with front-ends for PL/pgSQL, PL/SQL, SQL/PSM, and T-SQL. "Build it on top of your compiler," he said, "and call it the Universal Procedural Language." I did, but I kept it closed.

uplpgsql is the modern PL/pgSQL version of that compiler, built using AI-assisted analysis and reconstruction of my prior work, now JIT-based and Apache licensed.

Why? Because normal PL/pgSQL is a tree-walking interpreter: every IF, every loop iteration, every assignment costs a switch dispatch and call through exec_stmt. Postgres' built-in JIT doesn't help. uplpgsql compiles the control flow itself to native code through its own LLJIT instance. It has multi-tiered optimizations from truly native to direct Postgres function calls to helpers to an interpreted worst case. Postgres doesn't even need to be built --with-llvm.

Independent benchmarks show 2-4x on ordinary stored procedures and up to 22x on heavy procedural and numerical work. Some functions are currently slower than interpreted; we're working on those regressions.

Super-pre-alpha WIP. Building against PostgreSQL 20devel. Keep it away from anything and everything you care about. It's under heavy development by Joshua Drake (JD) of Command Prompt and me, with several other Postgres companies joining the effort.

Still want to play with it? Build and use LANGUAGE uplpgsql instead of plpgsql. Docker coming soon.

How Our Rust-to-Zig Rewrite Is Going

https://rtfeldman.com/rust-to-zig
1•jorangreef•1m ago•0 comments

The Chip Security Act Explained: Will US Chips Come with a Tracking Device?

https://mrkt30.com/the-chip-security-act-explained-will-us-chips-come-to-europe-with-a-tracking-d...
1•technewssss•3m ago•0 comments

$300 in the Basement vs. $1,500 a Month in the Cloud – Neomind

https://www.neomindlabs.com/2026/06/07/300-dollars-in-the-basement/
1•rbanffy•5m ago•0 comments

Flathub does not want to delete Russian spyware that got sanctioned by the EU

https://github.com/flathub/flathub/issues/9338
1•xoxo458•6m ago•0 comments

Trent Reznor and Saul Williams Discuss Their New Collaboration, Mourn OiNK (2007)

https://www.vulture.com/2007/10/trent_reznor_and_saul_williams.html
1•robtherobber•6m ago•0 comments

Ask HN: How about a "Merge Stories" feature?

1•RetroTechie•7m ago•0 comments

The Day WhatsApp Goes Dark

https://xn--gckvb8fzb.com/the-day-whatsapp-goes-dark/
2•figmert•8m ago•0 comments

E Approximation

https://www.johndcook.com/blog/2026/07/06/e-approximation/
1•ibobev•11m ago•0 comments

Reproducing a Geometry Theorem Diagram

https://www.johndcook.com/blog/2026/07/06/arc-hypotenuse/
1•ibobev•11m ago•0 comments

Progress on Gilbreath's Conjecture

https://www.johndcook.com/blog/2026/07/11/progress-on-gilbreaths-conjecture/
1•ibobev•12m ago•0 comments

Umuganda

https://en.wikipedia.org/wiki/Umuganda
2•thunderbong•13m ago•0 comments

Pgrust was built: four attempts to rewrite Postgres in Rust with AI

https://malisper.me/how-pgrust-was-built-four-attempts-to-rewrite-postgres-in-rust-with-ai/
3•brilee•14m ago•0 comments

Mystery bidder buys T. rex nicknamed 'Gus' for a record $50M

https://www.npr.org/2026/07/15/nx-s1-5894586/mystery-bidder-buys-t-rex
1•pseudolus•15m ago•0 comments

Flock CEO Lied, Suggests CCO, Comparing His Boss to Donald Trump

https://ipvm.com/reports/flock-cco-ceo
2•jhonovich•16m ago•0 comments

Detection of a four-carbon sugar in interstellar space

https://www.nature.com/articles/s41550-026-02905-7
1•u1hcw9nx•16m ago•0 comments

Linus Torvalds position on LLM use in Linux kernel code

https://lore.kernel.org/all/CAHk-%3Dwi4zC%2BZe8e%2Bp3tMv8TtG_80KzsZ1syL9anBtmEh5Z40vg@mail.gmail....
2•jllyhill•16m ago•0 comments

Codex Micro

https://openai.com/it-IT/supply/co-lab/work-louder/
1•simonebrunozzi•16m ago•0 comments

Triumph Hands-free Coding while Driving

https://github.com/free-soellingeraj/paraLlmDirectory
1•A-Aron•17m ago•1 comments

SpaceX shares slide below IPO price for first time as blistering rally unravels

https://www.reuters.com/legal/transactional/spacex-shares-slide-below-ipo-price-blistering-rally-...
2•1vuio0pswjnm7•18m ago•0 comments

AI Didn't Make Programming Easier. It Just Made It Differently Difficult

https://cacm.acm.org/opinion/ai-didnt-make-programming-easier-it-just-made-it-differently-difficult/
2•pseudolus•18m ago•0 comments

Crowdsourcing an AI-transcribed archive of the world's handwritten past

https://www.tryleo.ai/blog/leo-collections-our-plan-to-build-a-universal-archive
1•coopzada•19m ago•0 comments

Windows and Ubuntu Interoperability

https://learn.microsoft.com/en-us/archive/blogs/wsl/windows-and-ubuntu-interoperability
2•ankitg12•19m ago•0 comments

Show HN:I built an open alternative to Simplify for autoapplying to LinkedIn job

https://jobeasyapply.com/compare/simplify
1•workplace_1•20m ago•0 comments

Google loses court fight against $854,250 Italian fine over gambling advertising

https://www.reuters.com/world/eu-court-upholds-googles-854250-italian-fine-over-gambling-advertis...
3•1vuio0pswjnm7•20m ago•0 comments

Americans are angry about data centers. Politicians are feeling the pressure

https://www.reuters.com/world/us/americans-are-angry-about-data-centers-politicians-are-feeling-p...
2•1vuio0pswjnm7•21m ago•0 comments

Ask HN: What are you using for authn/authz and payments?

1•jftuga•21m ago•0 comments

Phone maker OnePlus says it won't release new phones in the U.S. and Europe

https://techcrunch.com/2026/07/16/phone-maker-oneplus-reportedly-plans-to-wind-down-us-and-europe...
1•nsdfg•21m ago•0 comments

Ente's business metrics are open now

https://ente.com/blog/open/
3•methuselah_in•21m ago•2 comments

Creating Dual Use Windows GUI and Console Applications

https://weblog.west-wind.com/posts/2026/Jun/23/Creating-Dual-Use-Windows-GUI-and-Console-Applicat...
1•ankitg12•24m ago•0 comments

Elixir language gets a new website

https://elixir-lang.org/
1•laszlokorte•24m ago•0 comments