frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Show HN: PLJS – JavaScript for Postgres

7•jerrysievert•3h ago
PLJS is a new, modern JavaScript trusted language extension, bundling QuickJS, a small and fast JavaScript runtime with Postgres, providing fast type conversion between Postgres and JavaScript, fast execution, and a very light footprint.

Here are bencharks that show how it compares to PLV8: https://github.com/plv8/pljs/blob/main/docs/BENCHMARKS.md

This is the first step toward a truly light-weight, fast, and extensible JavaScript runtime embedded inside of Postgres. The initial roadmap has been published at https://github.com/plv8/pljs/blob/main/docs/ROADMAP.md

You can join the discussion by joining the PLV8 Discord: https://discord.gg/XYGSCfVNBC

You can find PLJS at https://github.com/plv8/pljs

Comments

timz•2h ago
Amazing.. Would be nice to have something like that for Redis to replace Lua
phartenfeller•2h ago
Interesting. This is now the second DB next to Oracle[1] that can do JS (that I know of). pgSQL and PL/SQL of course still stay relevant but in the Oracle spehere the argument is that you can reuse existing code from NPM. Like this blog post [2] describes how to run an GraphQL endpoint from within the DB.

[1] https://docs.oracle.com/en/database/oracle/oracle-database/2... [2] https://blogs.oracle.com/developers/post/creating-a-graphql-...

jerrysievert•1h ago
PLV8 (the predecessor to this project) was released in June of 2012. It provided JavaScript as a trusted language extension to Postgres 9.2.

PLJS is a newer generation.

oulipo•2h ago
What would be the typical use-case? Light data transformation?

Is there a significant advantage over Rust-based embedded Postgres language like https://github.com/tcdi/plrust which is compiled and a bit more type-safe?

tehlike•1h ago
A lot of logic just becomes easier with javascript. If you have complex-ish trigger logic, or a procedure etc - doing these in pl/pgsql is just hard if not intracatable. Also allows up reuse of a lot of code that people have built with npm - even if not directly with require(), it becomes possible to bundle compiled binary.

I used this for storing patches of data (to save space, compression is a pain in Postgres) and applying runtime to show full version etc. It's fun.

The scam that is Visa Account Updater

1•mountainriver•1m ago•0 comments

Project Indigo, a Google Pixel-like computational photography camera app

https://research.adobe.com/articles/indigo/indigo.html
1•phsilva•1m ago•0 comments

The Tail at Scale

https://cacm.acm.org/research/the-tail-at-scale/
1•ekiauhce•3m ago•0 comments

Fred Espenak, Astrophysicist Known as Mr. Eclipse, Dies at 73

https://www.nytimes.com/2025/06/25/science/space/fred-espenak-dead.html
2•sohkamyung•3m ago•1 comments

Show HN: Anagnorisis, local data-management with trainable recommendation engine

https://github.com/volotat/Anagnorisis
1•volotat•11m ago•0 comments

Ultimadownloader

https://www.ultimadownloader.xyz
1•robertprogram•12m ago•0 comments

The Hollow Men of Hims

https://www.alexkesin.com/p/the-hollow-men-of-hims
3•quadrin•19m ago•0 comments

A Clean Break: A New Strategy for Securing the Realm

https://en.wikipedia.org/wiki/A_Clean_Break:_A_New_Strategy_for_Securing_the_Realm
1•handfuloflight•20m ago•0 comments

Roblox's back end scales to 30M concurrent players and over 21M for a experience

https://corp.roblox.com/newsroom/2025/06/roblox-infrastructure-supporting-record-breaking-games
1•ak009•20m ago•1 comments

Why Did the Novel-Reading Man Disappear?

https://www.nytimes.com/2025/06/25/style/fiction-books-men-reading.html
2•mykowebhn•22m ago•0 comments

AI job replacement: Is the apocalypse coming for IT work?

https://www.spiceworks.com/it-careers/ai-job-replacement-is-the-apocalypse-coming-for-it-work/
1•CrankyBear•25m ago•0 comments

Getting Gemini CLI to multitask safely [video]

https://www.youtube.com/watch?v=hmh30wuXg08
1•gk1•26m ago•0 comments

Why AGI Is Impossible

https://claude.ai/public/artifacts/445500b7-bb6b-4bf3-be9a-0fa4ee64c790
3•builtsimple•27m ago•0 comments

Grete Hermann

https://en.wikipedia.org/wiki/Grete_Hermann
1•herodotus•27m ago•1 comments

Asana Picks Launch Darkly CEO Dan Rogers to Replace CEO Dustin Moskovitz

https://www.cnbc.com/2025/06/25/asana-ceo-dan-rogers-replace-dustin-moskovitz.html
2•coloneltcb•29m ago•0 comments

Cellular Entity Between Virus and Cell, encodes replication/not metabolism

https://www.sciencealert.com/strange-cellular-entity-challenges-very-definition-of-life-itself
5•toss1•32m ago•0 comments

The Implementation of Postgres (1990) [pdf]

https://dsf.berkeley.edu/papers/ERL-M90-34.pdf
2•susam•33m ago•0 comments

Skeet – Hosted MCP Tools for Coding

https://skeet.build
1•pfista•33m ago•1 comments

After a week, Trump Mobile drops claim that Trump phone is "made in the USA"

https://arstechnica.com/gadgets/2025/06/after-a-week-trump-mobile-drops-claim-that-trump-phone-is-made-in-the-usa/
7•coloneltcb•35m ago•0 comments

This month in Servo: color inputs, SVG, embedder JavaScript, and more

https://servo.org/blog/2025/06/18/this-month-in-servo/
3•brson•36m ago•0 comments

Improving River Simulation

https://undiscoveredworlds.blogspot.com/2025/04/improving-river-simulation.html
1•Hooke•40m ago•0 comments

The AI Boom's Multi-Billion Dollar Blind Spot [video]

https://www.youtube.com/watch?v=VWyS98TXqnQ
3•mgh2•40m ago•0 comments

How is this not a grift?

https://imgur.com/a/8NjQD74
2•thr-AI-grift•41m ago•1 comments

Extended security patches for Windows 10 for Microsoft reward points

https://www.engadget.com/computing/windows-10-users-can-get-extended-security-updates-for-1000-microsoft-rewards-points-170023129.html
2•42lux•41m ago•0 comments

Show HN: Linux tool to save and recall memories quickly

https://github.com/Ryusufe/rem
2•ryusufe•44m ago•2 comments

Privacy Tools vs. Online Child Exploitation and Abuse

https://theprivacydad.com/privacy-tools-vs-online-child-exploitation-and-abuse/
2•theprivacydad•45m ago•0 comments

IBM's Dmitry Krotov wants to crack the 'physics' of memory

https://research.ibm.com/blog/dmitry-krotov-ai-physics
4•bookofjoe•46m ago•0 comments

Disposable vapes may be more toxic than cigarettes, study finds

https://www.sfchronicle.com/health/article/disposable-vapes-toxic-metals-uc-davis-study-20393864.php?taid=685c680db24c5f00014c7236&utm_campaign=trueanthem%2B3988&utm_medium=social&utm_source=twitter
2•cempaka•47m ago•1 comments

Show HN: A Go library that replaces sensitive data with realistic fakes

https://github.com/aliengiraffe/deidentify
2•addieg•49m ago•0 comments

Scientists Retrace 30k-Year-Old Sea Voyage, in a Hollowed-Out Log

https://www.nytimes.com/2025/06/25/science/anthropology-ocean-migration-japan.html
2•benbreen•49m ago•0 comments