frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Windows 9x Subsystem for Linux

https://social.hails.org/@hailey/116446826733136456
258•sohkamyung•2h ago•59 comments

3.4M Solar Panels

https://tech.marksblogg.com/american-solar-farms-v2.html
32•marklit•33m ago•0 comments

GitHub CLI now collects pseudoanonymous telemetry

https://cli.github.com/telemetry
28•ingve•38m ago•5 comments

How the Heck Does GPS Work?

https://perthirtysix.com/how-the-heck-does-gps-work
67•alfanick•3h ago•14 comments

Making RAM at Home [video]

https://www.youtube.com/watch?v=h6GWikWlAQA
431•kaipereira•1d ago•123 comments

Nobody Got Fired for Uber's $8M Ledger Mistake?

https://news.alvaroduran.com/p/nobody-got-fired-for-ubers-8-million
25•ohduran•1h ago•1 comments

ChatGPT Images 2.0

https://openai.com/index/introducing-chatgpt-images-2-0/
891•wahnfrieden•17h ago•741 comments

All your agents are going async

https://zknill.io/posts/all-your-agents-are-going-async/
67•zknill•2d ago•41 comments

MuJoCo – Advanced Physics Simulation

https://github.com/google-deepmind/mujoco
49•modinfo•3d ago•8 comments

XOR'ing a register with itself is the idiom for zeroing it out. Why not sub?

https://devblogs.microsoft.com/oldnewthing/20260421-00/?p=112247
66•ingve•5h ago•73 comments

Contact Lens Uses Microfluidics to Monitor and Treat Glaucoma

https://spectrum.ieee.org/smart-contact-lens-glaucoma-microfluidics
61•pseudolus•3d ago•2 comments

Laws of Software Engineering

https://lawsofsoftwareengineering.com
1069•milanm081•1d ago•488 comments

Why Musicians Are Manufacturing Sold-Out Shows

https://www.bloomberg.com/news/articles/2026-04-17/how-bands-like-cameron-winter-s-geese-are-manu...
14•helsinkiandrew•3d ago•3 comments

Garbage Collection Without Unsafe Code

https://fitzgen.com/2024/02/06/safe-gc.html
70•foota•3d ago•12 comments

Prefill-as-a-Service:KVCache of Next-Generation Models Could Go Cross-Datacenter

https://arxiv.org/abs/2604.15039
11•matt_d•3d ago•0 comments

Windows Server 2025 Runs Better on ARM

https://jasoneckert.github.io/myblog/server-2025-arm64/
142•jasoneckert•3d ago•115 comments

CATL's new LFP battery can charge from 10 to 98% in less than 7 minutes

https://arstechnica.com/cars/2026/04/catls-new-lfp-battery-can-charge-from-10-to-98-in-less-than-...
30•PotatoNinja•1h ago•3 comments

The Vercel breach: OAuth attack exposes risk in platform environment variables

https://www.trendmicro.com/en_us/research/26/d/vercel-breach-oauth-supply-chain.html
324•queenelvis•19h ago•109 comments

Drunk post: Things I've learned as a senior engineer (2021)

https://luminousmen.substack.com/p/drunk-post-things-ive-learned-as
170•zdw•12h ago•113 comments

SpaceX says it has agreement to acquire Cursor for $60B

https://twitter.com/spacex/status/2046713419978453374
646•dmarcos•14h ago•811 comments

Changes to GitHub Copilot individual plans

https://github.blog/news-insights/company-news/changes-to-github-copilot-individual-plans/
491•zorrn•1d ago•199 comments

Britannica11.org – a structured edition of the 1911 Encyclopædia Britannica

https://britannica11.org/
312•ahaspel•19h ago•105 comments

Acetaminophen vs. ibuprofen

https://asteriskmag.com/issues/14/the-mystery-in-the-medicine-cabinet
472•nkurz•1d ago•304 comments

Diverse organic molecules on Mars revealed by the first SAM TMAH experiment

https://www.courthousenews.com/preserved-for-billions-of-years-organic-compounds-found-on-mars/
81•geox•1d ago•4 comments

Meta to start capturing employee mouse movements, keystrokes for AI training

https://www.reuters.com/sustainability/boards-policy-regulation/meta-start-capturing-employee-mou...
631•dlx•18h ago•432 comments

Stephen's Sausage Roll remains one of the most influential puzzle games

https://thinkygames.com/features/10-years-of-grilling-stephens-sausage-roll-remains-one-of-the-mo...
215•tobr•4d ago•113 comments

Fusion Power Plant Simulator

https://www.fusionenergybase.com/fusion-power-plant-simulator
170•sam•22h ago•115 comments

Cal.diy: open-source community edition of cal.com

https://github.com/calcom/cal.diy
223•petecooper•18h ago•55 comments

Framework Laptop 13 Pro

https://frame.work/laptop13pro
1345•Trollmann•18h ago•673 comments

A printing press for biological data

https://www.owlposting.com/p/the-printing-press-for-biological
44•crescit_eundo•1d ago•0 comments
Open in hackernews

Show HN: I reinvented PHP in TypeScript (demo)

https://github.com/vseplet/morph
25•vseplet•11mo ago
I built Morph, an experimental fullstack HTML-first library for Deno, Node, and Bun.

Everything returns HTML, not JSON. No React, no Vite — just plain HTML with server-side rendering.

No build steps, no preprocessors, no complex configs — everything runs from a single file.

Perfect for Telegram Web Apps, internal tools, simple admin panels, dashboards, or anywhere a full-blown SPA feels like overkill.

Important: I built this entirely for myself — to solve my own problems. I hate complex frontend. I hate writing it. And I don’t want to waste time on it. But maybe it’ll help you too.

Comments

askonomm•11mo ago
So this is supposed to be following the practices that were common in PHP ten years ago? Modern PHP is not written in such a way where business logic is mixed with templating. For good reason.
bovermyer•11mo ago
For applications you're right.

For trivial scripts, though, that practice is still pretty common. You don't necessarily need Twig or whatever if you just need a script to spit out the rows from a single database query.

al_borland•11mo ago
Not everything is a big web app. Applying this separation of concerns to everything, and assuming everything will scale into Facebook, brings a lot of needless complexity into what should be simple little pages. Old PHP was great at that, and still is. I’m continually shocked that it has seemed to be the only game in town for decades. It seems like such an obvious use case. Maybe this is a testament to how well PHP solve this space, despite catching a lot of flack online. Similarly to this project, PHP also started out of the developer’s need to manage his Personal Home Page, not large scale enterprise apps.

So many people talk about missing the old Internet and the virtues of the small web, and breaking free from platforms… then at the same time speak out against the tools that allow a person to start small and dip their toe into the water of web development, without needing to spend several months in a boot camp for a few lines of server side code.

oaiey•11mo ago
My naive question: so if I have node, express, and JS tagged template literals. Is not that what PHP does. Route some url to a html interpolated with code.

What is the add-on from this library? The only thing I read out of it, is some css and other templating benefits. Which is not the essence of PHP. The essence of PHP is that you mix html and code (which many JS tagged templates support).

This goes more in the direction of component oriented development (e.g. what Blazor does... even Angular). So my rant is about comparing it with PHP.

Not a node & browser dev, but I have my past in PHP and currently some Blazor.

Oxodao•11mo ago
php has not been "mix html & code" for the last 10 years if you use it properly
ZYbCRq22HbJ2y7•11mo ago
You mean that the general patterns that people implement when using PHP changed. The language hasn't changed in a fundamental way that prevents it from being utilized in this way.
Oxodao•11mo ago
Yes
ipaddr•11mo ago
No it's still proper to mix html and php code. You could always use a templating language like smarty 20 years ago so if it wasn't proper 10 years ago it wasn't proper 20 years ago. The truth is <=$variable?> is very readable.
Oxodao•11mo ago
The issue is not the readability, it's that you don't handle how your stuff is sent. Using php as a template language, it starts to send everything until it reaches a Php tag to be executed.

That's why people taught each other that "you absolutely need to make session_start at the beggining of your file". No you don't, but since afterward the content starts to be sent the headers are already too.

I'm not saying you absolutely need to use a framework, but you should have only one echo in your requests.

I've never said the syntax you're saying is bad, I mean pretty much any templating language such has Twig uses this kind of stuff. The issue I have with this is how it works behind the scenes

bdcravens•11mo ago
You should call it NodeFusion
PetahNZ•11mo ago
I think this misses one of the main selling points of PHP, the shared nothing, single thread, fire and forget methodology that I can throw behind a load balancer and spin up 100 servers.
ChocolateGod•11mo ago
You can probably use something like https://www.cgi-node.org/ to get close to the PHP model in the JS world.

But, I wouldn't be surprised if its slower than PHP due to the overhead of starting up NodeJS for each request, as PHP has been optimised to have fast start times.

WorldMaker•11mo ago
This project is suggesting Deno, which has rather different startup characteristics to Node, and tuned for Deno Deploy which is already a "serverless" scale-to-zero/scale-as-many-as-you-need-behind-a-load-balancer deployment host. Deno Deploy is a proprietary solution, of course, but not alone in the growing world of JS-based "serverless" (Netlify, Vercel, Cloudflare Edge, and more).
ZYbCRq22HbJ2y7•11mo ago
PHP can be multi-threaded, share many things. So can nodejs.
DonHopkins•11mo ago
PHP is a templating languages designed to be so inadequate that you have to implement other templating languages in it.

https://news.ycombinator.com/item?id=32961202

>PHP was already a templating language, but somebody got it in their head that there should be an iron-clad separation between designers and programmers, and that PHP gave designers too much power and confused them, and that their incompetent untrustworthy designers who refused to learn anything about programming deserved something even "simpler" than PHP, so they came up with Smarty.

>Then over time the realized that their designers were powerless, so their programmers would have to learn TWO languages so they could wade into the Smarty templates to make them actually work with all the extra code they had to write because Smarty was so crippled, so they nickle-and-dimed more and more incoherent programming language elements into Smarty, making it EVEN HARDER to use and more complicated and less consistent than PHP, yet nowhere near as powerful.

askonomm•11mo ago
Modern PHP is not a templating language. It can be, much like many other languages can be, but it's not how it is used. Most other languages also implement their own templating languages. Have you seen modern PHP ... I don't know, sometime in the last 10 or so years, or is this just another circle jerk of hating on something you have little clue about?

Now if you see that as a bad thing, separating business logic and presentation, and sandboxing presentation so it has no larger access to the system, then I'm afraid you're just not a good programmer.

ZYbCRq22HbJ2y7•11mo ago
> Modern PHP is not a templating language. It can be

Modern PHP has the same capabilities as PHP 5 had, and more. There was nothing fundamental removed from the language that keeps it from being used as it was in PHP 5.

scsh•11mo ago
It didn't seem like they were suggesting otherwise?
ZYbCRq22HbJ2y7•11mo ago
Not sure we read the same thing?
cess11•11mo ago
Object-oriented PHP, i.e. PHP 5, was released in 2004. PHP 4 was killed in 2008.

Separating out templates was already something one used to do back when Laravel added Blade back in 2010-2011 sometime, in one of the first iterations of the framework. It's not like they experienced pushback because of Blade.

nusl•11mo ago
The title originally threw me off but reading the link made me quite like the idea. Keep existing skills and use them in other contexts better suited for the application.
hu3•11mo ago
Interesting pattern. This is specially nice to me:

"No build steps, no preprocessors, no complex configs".

I worked on a project recently that followed this and Devs loved it. The DX was amazing.

vseplet•11mo ago
Thank you, DX was really important for me in this project. I will add some examples and documentation in the near future, it will be cool. But writing README is very difficult for me =(

Well, I am sure that we need to develop the part with api. It already exists and works great, but lacks middlware functions and caching

lylejantzi3rd•11mo ago
A lot of people here are comparing it to PHP, but it looks more like python to me.
buttocks•11mo ago
This project is cool but the author seems to have never actually touched PHP that he compares it to.
vseplet•11mo ago
I studied it a long time ago — maybe it was even taught in college. Yeah, the comparison isn’t entirely accurate, but what I meant was the idea of merging code with its template plus rendering it all server-side right away.
gbraad•11mo ago
The selling point of PHP is the case of deployment on shared gisteren, who either use the pho module with Apache or fpm, or other CGI method. But, as a user, you do not care about this.

Just unpack, set MySQL credentials, and done.

andrewmcwatters•11mo ago
Not really. That implies that you’re running each HTTPS call as a lifetime process that starts and ends with that request, and the entire body of the JavaScript file, beginning to end is HTML with subtrees of the document including optionally some JavaScript that is synchronously run.

Respectfully, this doesn’t look anything like that at all.

fennecbutt•11mo ago
Oh my god I have to share this with my php friend ahahaha.
fpauser•11mo ago
https://www.youtube.com/watch?v=EnnpbVW7Yb8