frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Rust compiler in PHP emitting x86-64 executables

https://github.com/mrconter1/rustc-php
20•mrconter11•2d ago

Comments

holg•2d ago
interesting proof of concept, in php, who would have thought :D
devmor•1h ago
I think that proof of concepts are PHP’s greatest strength, actually.

These days it can be almost as strict as you want it to be, but it’s always been a “loose” enough language that you can implement things that work in very fragile ways and iterate at incredible speed.

When I am designing PoC microservices that will eventually end up running as Go or Rust, I often start with a prototype in PHP.

mike_d•1h ago
Sometimes when doing offensive security work you end up in the strangest environments with limited tools, odd quirks, broken shells, and god knows what else. But you know what is almost always available and just works? PHP.
psychoslave•25m ago
Nop. awk, bash or some POSIX shell certainly. Perl most likely, despite it’s plunge in popularity. On a modern Mac, awk, bash and Perl are preinstalled with the system. PHP is not even necessarily present at system level on a PHP dev box as it might be only installed in some container.
nasretdinov•1h ago
I wonder if the compiler runs on https://github.com/VKCOM/kphp (a PHP->C++ transpiler)
wiseowise•1h ago
Are all PHP developers named Rasmus?
doctor_phil•1h ago
I also for a second thought this was Rasmus Lerdorf, the creator of PHP. In my head I just have him as Rasmus L-something, so this guy was just a hash collision. :)
nxtfari•1h ago
you never know what’s going on in someone else’s claude max plan
dashzebra•59m ago
This is a great example of how people waste our planet's resources faster with AI.

Seriously, in what world do we need a rust compiler in php? I'd rather have cheap RAM and storage, which I can't because of this kind of stupid idea.

I wonder how much energy was wasted on this. How many people got poisoned or killed in mines to create the GPUs that spewed out this useless code.

The fact that we can do something doesn't mean we should. It's time to end this madness.

EDIT: yeah keep your downvotes coming. Ignore the obvious problem. Easy, it's invisible, just don't think about it.

MarsIronPI•54m ago
Why are you assuming this was AI? It doesn't show any obvious indications of being AI. Maybe this is just someone's random side project. I advise you against jumping to conclusions.
dashzebra•42m ago
Prove me wrong :)
scandinavian•41m ago
Just look at the commit cadance, the bulk of the 8k lines of code was added in a couple of hours. Most commits 2-4 minutes apart. This is 100% vibe coded and it's pretty obvious.

> It doesn't show any obvious indications of being AI.

I agree that he probably asked the AI to omit some common AI tells, like excessive comments, verbose readmes etc.

gregman1•23m ago
People are weird, I for one started to use em dash more often — look at me!
binaryturtle•49m ago
Why do we assume this was created with AI? Is there some marker we can use to detect that?
dashzebra•43m ago
The amount of code committed per day suggest some kind of automation.

Also, a passionate programmer usually will add a "why this exists" in his readme.

I'd be very surprised if this wasn't AI.

gregman1•26m ago
You never know what’s going on in someone else’s Claude Max plan =D
orthogonal_cube•15m ago
Interesting that both you and nxtfari made essentially the same comment within an hour of each other, though yours is slightly modified

Motorola GrapheneOS devices will be bootloader unlockable/relockable

https://grapheneos.social/@GrapheneOS/116160393783585567
597•pabs3•8h ago•166 comments

RFC 9849. TLS Encrypted Client Hello

https://www.rfc-editor.org/rfc/rfc9849.html
36•P_qRs•1h ago•6 comments

Agentic Engineering Patterns

https://simonwillison.net/guides/agentic-engineering-patterns/
104•r4um•4h ago•19 comments

Better JIT for Postgres

https://github.com/vladich/pg_jitter
42•vladich•2h ago•8 comments

TikTok will not introduce end-to-end encryption, saying it makes users less safe

https://www.bbc.com/news/articles/cly2m5e5ke4o
221•1659447091•7h ago•155 comments

A CPU that runs entirely on GPU

https://github.com/robertcprice/nCPU
76•cypres•4h ago•23 comments

MacBook Pro with M5 Pro and M5 Max

https://www.apple.com/newsroom/2026/03/apple-introduces-macbook-pro-with-all-new-m5-pro-and-m5-max/
775•scrlk•19h ago•802 comments

Graphics Programming Resources

https://develop--gpvm-website.netlify.app/resources/
86•abetusk•6h ago•10 comments

Show HN: Rust compiler in PHP emitting x86-64 executables

https://github.com/mrconter1/rustc-php
20•mrconter11•2d ago•17 comments

On the Design of Programming Languages (1974) [pdf]

https://web.cs.ucdavis.edu/~su/teaching/ecs240-w17/readings/PLHistoryGoodDesign.PDF
35•jruohonen•2d ago•1 comments

Claude's Cycles [pdf]

https://www-cs-faculty.stanford.edu/~knuth/papers/claude-cycles.pdf
622•fs123•22h ago•251 comments

Weave – A language aware merge algorithm based on entities

https://github.com/Ataraxy-Labs/weave
118•rs545837•7h ago•72 comments

Speculative Speculative Decoding (SSD)

https://arxiv.org/abs/2603.03251
40•E-Reverance•5h ago•6 comments

Voxile: A ray-traced game made in its own engine and programming language

https://elbowgreasegames.substack.com/p/voxray-games-pushes-major-update
187•spacemarine1•11h ago•50 comments

Reverse-Engineering the Wetware: Spiking Networks and the End of Matrix Math

https://metaduck.com/reverse-engineering-the-wetware-spiking-networks-td-errors-and-the-end-of-ma...
19•pgte•2d ago•4 comments

My spicy take on vibe coding for PMs

https://www.ddmckinnon.com/2026/02/11/my-%f0%9f%8c%b6-take-on-vibe-coding-for-pms/
88•dmckinno•9h ago•86 comments

Textadept

https://orbitalquark.github.io/textadept/
128•giancarlostoro•3d ago•21 comments

Mount Mayhem at Netflix: Scaling Containers on Modern CPUs

https://netflixtechblog.com/mount-mayhem-at-netflix-scaling-containers-on-modern-cpus-f3b09b68beac
53•vquemener•3d ago•25 comments

Welcoming Elizabeth Barron as the New Executive Director of the PHP Foundation

https://thephp.foundation/blog/2026/02/27/welcoming-elizabeth-barron-new-executive-director/
27•ulrischa•2d ago•14 comments

You can use newline characters in URLs

https://lemire.me/blog/2026/02/28/you-can-use-newline-characters-in-urls/
68•chmaynard•3d ago•33 comments

Indefinite Book Club Hiatus

https://whatever.scalzi.com/2026/03/03/indefinite-book-club-hiatus/
13•cdrnsf•4h ago•4 comments

When AI writes the software, who verifies it?

https://leodemoura.github.io/blog/2026/02/28/when-ai-writes-the-worlds-software.html
223•todsacerdoti•16h ago•224 comments

An Interactive Intro to CRDTs (2023)

https://jakelazaroff.com/words/an-interactive-intro-to-crdts/
140•evakhoury•13h ago•23 comments

Circle Games (2019)

https://srconstantin.wordpress.com/2019/06/06/circle-games/
6•surprisetalk•2d ago•0 comments

Launch HN: Cekura (YC F24) – Testing and monitoring for voice and chat AI agents

82•atarus•18h ago•20 comments

The largest acidic geyser has been putting on quite a show

https://www.usgs.gov/observatories/yvo/news/echinus-geyser-back-action-now
48•1659447091•7h ago•1 comments

Number Research Inc

https://numberresearch.xyz/
31•eieio•6h ago•16 comments

California's Digital Age Assurance Act, and FOSS

https://runxiyu.org/comp/ab1043/
95•todsacerdoti•5h ago•72 comments

GPT‑5.3 Instant

https://openai.com/index/gpt-5-3-instant/
344•meetpateltech•15h ago•270 comments

Mac external displays for designers and developers, part 2 (2022)

https://bjango.com/articles/macexternaldisplays2/
43•fragmede•6h ago•26 comments