frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Primate Is the Last Great Web Framework

https://superarch.org/theanswerisc/primate-is-the-last-great-framework.html
31•terrablue•1h ago

Comments

fron•1h ago
Why use light gray code highlighting on a light background? Most of the code blocks are unreadable due to this.
terrablue•55m ago
Hey, thanks for the feedback, sorry for that. Should be fixed now.
wduquette•56m ago
We used to call this “middleware”, that which sits between the client and the server.
brightball•43m ago
I never understood that terminology since the middleware was always on the server too.
macintux•38m ago
I thought of middleware as sitting on one server, with the database behind it typically on another.
elliotec•34m ago
It can be on the client side. Middleware just means something between the operations of the application on a server and operations of the application on a client. Doesn't matter where it sits, it's just the link.

But to the parent comment, yes, I agree, this is a middleware.

echoangle•56m ago
Last or latest? I don’t get where the title comes from.
ademup•45m ago
My clients and colleagues are bragging about "headless web sites", by which they mean "sites built without WordPress (and kin)", by which they mean "sites built entirely using the English language via AI"

In that sense, the author might be implying that "web framework" may soon be a thing relegated to history

graypegg•41m ago
Wait, is that what headless means now in the agency world!? I remember headless meaning the CMS wasn't the software serving the initial request, it just provided an API that some HTML/CSS/JS on S3 or something would consume.
wredcoll•53m ago
The idea of the web-router "owning" the database fills me with a visceral sense of loathing.

Data is always the important part of any real program.

replygirl•41m ago
the connection, schema, and migrations are all separated so looks pretty easy to swap in your own ORM or have another service own data
jazzypants•40m ago
Yeah, this was the big red flag for me too. If you're going to try to decouple things, the last thing you should do is add more coupling.
terrablue•32m ago
Just a quick mention that there is next to no coupling. If you don't use `primate/store`, none of the ORM code gets pulled in. You could be using any other database client.

The same applies to sessions, i18n, or any frontend. They're all either path'd imports or distinct packages.

eithed•35m ago
The only place it make sense to me is the validation = at the route level you want to ensure that the given model exists / request attributes defining relationship (pivot), are there. This is how Laravel does this. Having said that this should be responsibity of domain rather than application
louiev•49m ago
bro at least give your frameworks main website a non-ai UI lol
wuliwong•27m ago
Making burner accounts for HN are ridiculous.

L(° O °L)

giraffe_lady•46m ago
cgi bin with extra steps.
graypegg•44m ago
I might be missing something here, but I'm struggling to understand why the concept of mixing up implementation details by request path is desirable.

Maybe for colocating a legacy application with a new application that's slowly strangling it [0], but for a new application, this seems antithethical to using a framework in the first place. I can't say for sure why you liked Laravel, but I like Laravel/Rails/et.al. because I don't have to make decisions about the parts of the application that aren't unique to what I'm building.

This just allows you to yak shave on a route-by-route basis?

[0] https://en.wikipedia.org/wiki/Strangler_fig_pattern

petra•41m ago
I think the next popular web framework would be something that would be optimized against llm code generation. So that the end result would be secure. correct. scalable(and scaling should be done by an llm).
tqwhite•40m ago
In a related idea...

https://jslightning.com

Sort of a PHP-like, folder based web serving tool that executes Javascript. Very quick and fluid.

dkarl•32m ago
> But web applications are not just pipelines of isolated tools. They are full of shared assumptions: request shapes, validation boundaries, session handling, rendering, routing, serialization, deployment targets.

Some of those things are specific to web applications. Others are not. It's fine for web-specific logic to be tied to all of the shared assumptions of a web framework, but application logic should not be. As the architecture evolves, the application logic may need to be run in other architectural contexts: as a message consumer, inside an orchestration framework, etc.

That's one of the most painful things about PHP. Entire businesses get built around business logic in PHP backends, and then when you need to execute that logic in a different architectural context, every line of it has to be rewritten, because it's too much work to extricate it from the context of serving web requests.

If you are designing your framework to contain application logic, then it should look ahead to the possibility of that logic being used in a different architectural context. It should facilitate and encourage writing application logic that is agnostic of the web context. Otherwise you're encouraging people to repeat the mistake of PHP all over again.

jjice•28m ago
If you work in a legacy PHP codebase, it's inevitable that you'll see $_GET in the middle of what you thought could be isolated business logic. The coupling that was done in my experience old PHP codebases is awful.

I guess I can't blame PHP because it comes down to the devs to enforce decent boundaries, but I think PHP makes it easier than others to do so.

PHP is so much better now, but if you're writing PHP, there's a very good chance you're not working with that new, clean PHP.

evolve2k•31m ago
Coming from Rails, which I’m sure informes part of the philosophy I really like this.

One design value of Rails is “Convention over configuration”, or what I sometimes explain as smart defaults over having to decide everything.

I see this is an area this project can help with; thought through folder and naming conventions; wrestling with issues at the seem between common tools. Making doing things the right way way (like database migrations) becomes the easiest way to do it; most of the time.

A bundle of smart conventions and ways of working that cuts down yak shaving and sometimes solves arguments as the project can be; well we thought on this a lot more than most of you and we’ve gone with this approach to stick these together and if you only half care now you can get this done for free for your apps.

deepsun•31m ago
I remember at the beginning Google didn't want to share their SOTA datacenter with public, considering it a market advantage. So instead of raw VMs they decided to promote the "framework" model, where all the seams are polished, under the name of Google App Engine.

I remember we've been going through a security audit, and many of their questions were about ports security and server access -- well, we did not even have SSH access at all, and only 80/443 ports were accessible. It was a breeze.

However, as market has shown, people really do want finer control, SSH root access, and custom ports. Along with many more fine-tuning. For example, GAE autoscaler did not reassign a request that triggered a new instance, waiting for it to start for 20s even though all requests completed within 200ms, so other workers were available, but the request waited for its own instance to wake up.

So I'm skeptical of "seams hidden" approach, as over and over again I needed to tune that one hidden seam.

ligarota•27m ago
Astro js can also handle multiple framework?!

As astro islands

threethirtytwo•23m ago
woah cool, I'll ask my agent if it likes this better. If so I'll have it start using it!
Kalanos•23m ago
It's an MVC that handles realtime frontend without React?
gitpusher•19m ago
The English language has no words (yet) to capture that special combination of nausea and embarrassment one feels when they commit in good faith to reading a long piece of prose... only to slowly realize the whole thing is AI generated. But I'm feeling it more and more often these days.
jottinger•4m ago
Does that have something to do with OP's post, though? I mean, it's written like someone who's mostly formally familiar with English. Maybe your infamiliarity with formal English itself is factoring in, because the AIs are ALSO formal in diction?

I didn't get the same "AI wrote this" that you did, but I get a lot of people saying "AI wrote this" to stuff I definitely wrote by hand, all the way.

gavino•16m ago
Honestly, why make it complicated. Just use Rails, and actually ship things.
turtlebits•11m ago
Great frameworks have great CLI tooling and just work. Be opinionated and consistent. The fact that this supports multiple frontends and multiple runtimes is a hard no for me, already know that it's going to be a massive headache to debug.

Lionel Messi Bathing a Baby Lamine Yamal

https://kottke.org/26/07/lionel-messi-bathing-a-baby-lamine-yamal
1•Tomte•1m ago•0 comments

Don't rewrite your CLI for agents

https://developer.microsoft.com/blog/dont-rewrite-your-cli-for-agents
1•gmays•1m ago•0 comments

IBM Power S1112 Brings Local AI Inference to the Edge as Power Goes Autonomous

https://www.storagereview.com/news/ibm-power-s1112-brings-local-ai-inference-to-the-edge-as-power...
1•rbanffy•2m ago•0 comments

Reverse Engineering the iPod Classic's Undocumented Mikey Chip

https://terminalbytes.com/reverse-engineering-ipod-classic-mikey-chip/
3•hemant6488•5m ago•0 comments

The Internet Is Training Us to Stop Being Human

https://mattruby.substack.com/p/we-are-all-emperors-now
2•rubymatt•5m ago•0 comments

Tiny Hidden Movie Theater in San Francisco [video]

https://www.tiktok.com/@humminglion/video/7662540717725732126
1•simonpure•6m ago•0 comments

In Defense of Polyfills

https://lea.verou.me/blog/2026/polyfills/
1•speckx•7m ago•0 comments

Codex Micro – a compact hardware controller for AI agents

https://worklouder.cc/codex-micro
1•tortilla•8m ago•1 comments

Kalshi creates prediction markets on airport flight cancellations

https://www.cftc.gov/IndustryOversight/IndustryFilings/TradingOrganizationProducts/61631
1•brett-jackson•8m ago•1 comments

Neko Health Raises $700M

https://www.nytimes.com/2026/07/15/business/dealbook/neko-health-ek-funding.html
1•mchusma•8m ago•1 comments

The OpenAI Bubble

https://www.wheresyoured.at/the-openai-bubble/
3•elorant•9m ago•0 comments

I mapped the biggest US patent cliffs using Medicare spending and FDA data

https://www.caelrith.com/blog/patent-cliff-watchlist
2•Caelrith•9m ago•0 comments

GPT‑Red: Unlocking Self-Improvement for Robustness

https://openai.com/index/unlocking-self-improvement-gpt-red/
3•alvis•9m ago•0 comments

Killing Coding Agent Slop with Adversarial Self-Play

https://usetelos.ai/blog/killing-coding-agent-slop
1•grohan•10m ago•0 comments

When your coding agent doesn't listen: evaluating a 241-turn Claude session

https://www.kurrent.io/blog/when-your-coding-agent-doesnt-listen/
1•RealTonyYoung•10m ago•0 comments

Show HN: Stemning AI

https://stemning.ai/packs/historical-portraits
1•theill•11m ago•0 comments

Starlink from 1984 – By Nemanja Trifunovic

https://nemanjatrifunovic.substack.com/p/starlink-from-1984
1•rbanffy•15m ago•0 comments

Building secure AI agents at scale: Introducing Loom for AWS

https://aws.amazon.com/blogs/opensource/building-secure-ai-agents-at-scale-introducing-loom-for-aws/
1•tcp_handshaker•15m ago•0 comments

The Vacation That Reshaped Pop Culture

https://standardebooks.org/blog/the-vacation-that-reshaped-pop-culture
1•sammynewton•16m ago•0 comments

Strongs Dictionary Open Scriptures

https://github.com/openscriptures/strongs
1•marysminefnuf•17m ago•0 comments

What makes life worth living?

1•koobear•17m ago•3 comments

Bothread – a local room where AI coding agents collaborate and communicate.

https://github.com/AdamACE9/bothread
1•AdamACE9•17m ago•1 comments

IBM Vice Chairman: Our software is not being disrupted by AI

https://www.youtube.com/watch?v=GnAoKk0i4R8
1•tcp_handshaker•18m ago•1 comments

Show HN: ReadAloud – on-device, podcast-quality text-to-speech in the browser

https://tryreadaloud.com
4•DmitryDolgopolo•19m ago•0 comments

Kbd-1.0-Codex-Micro

https://twitter.com/OpenAIDevs/status/2077425991790870644
2•delduca•22m ago•2 comments

Joe Rogan Experience #2524 – Rupert Lowe [video]

https://www.youtube.com/watch?v=k29cMrVtVXY
1•dp-hackernews•23m ago•0 comments

Linus Torvalds Reaffirms That Linux Is Not "Anti-AI"

https://www.phoronix.com/news/Linux-Is-Not-Anti-AI
5•moelf•25m ago•1 comments

Modelplane

https://modelplane.ai
3•hasheddan•31m ago•0 comments

Flock to Pay for Vandalized Flock Cameras

https://ipvm.com/reports/flock-pay-vandalized-cameras
5•jhonovich•31m ago•1 comments

People in Many Countries Now View China More Positively Than the U.S.

https://www.pewresearch.org/global/2026/07/15/people-in-many-countries-now-view-china-more-positi...
3•dabinat•32m ago•1 comments