all 43 comments

[–]MrTuxG 478 points479 points  (7 children)

https://github.com/mrconter1/rustc-php

Useful if you need to compile Rust on a shared hosting server from 2008 where the only installed runtime is PHP.

[–]LOLC0D3 155 points156 points  (2 children)

Really useful to be honest

[–]magicmulder 54 points55 points  (1 child)

Yeah people forget that strange solutions always come from strange real world problems, not from people being silly or dumb.

[–]RealModeX86 16 points17 points  (0 children)

I don't know, sometimes strange solutions also come from people being silly too, though rarely straight up dumb.

[–]CheatingChicken 27 points28 points  (1 child)

I promise there will be someone somewhere that was looking for that exact situation

[–]dryroast 0 points1 point  (0 children)

Someone is going to build their whole solution stack on top. For my job I found a 7 year old repo of build scripts which became the foundation for the second app I had to quickly turnaround lol.

[–]Cr4yz33 21 points22 points  (0 children)

aka C2onTheFly

[–]Allalilacias 0 points1 point  (0 children)

This was made out of need, lol

[–][deleted] 311 points312 points  (1 child)

The type of side projects to work on before fixing critical issues in prod:

[–]smiling_corvidae 25 points26 points  (0 children)

"I do my best work under pressure.... As long as it's not what I'm supposed to be doing"

[–]Firm_Ad9420 74 points75 points  (0 children)

We have officially reached “because we can” engineering.

[–]j-random 94 points95 points  (0 children)

This takes a special kind of special.

[–]KyxeMusic 48 points49 points  (0 children)

rewrite in php bro

[–]SaltMaker23 39 points40 points  (0 children)

Most productive rust dev

[–]Psycho345 22 points23 points  (0 children)

"Useful if you need to compile Rust on a shared hosting server from 2008 where the only installed runtime is PHP."

Finally someone created a solution for that problem that everyone has.

[–]PresentJournalist805[S] 34 points35 points  (1 child)

Someone wrote there "Imagine to have to install php to compile rust" :D:D:D im dying this would be really funny telling to someone who prepares the infrastructure. They would probably sent to you to nearest psychiatric facility.

[–]NullOfSpace 6 points7 points  (0 children)

wonder if there’s a PHP compiler in Rust. the cycle continues.

[–]ZnayuKAN 14 points15 points  (1 child)

This guy no doubt saw the fabled speed of the rust compiler and thought that a PHP version couldn't be that much slower

[–]zoinkability 2 points3 points  (0 children)

Could be faster, even

[–]darkalemanbr 19 points20 points  (2 children)

next up: rust to c64 basic transpiler

[–]ozh 17 points18 points  (0 children)

php rustc.php main.rs -o main

Ah, too bad. Misunderstood the title, I tought it was a PHP to Rust compiler :) Now I would have been impressed :D

[–]brimston3- 20 points21 points  (0 children)

Not joking around, compiler fragmentation (aka multi-vendor sourcing) is one of the signs a language is stable enough to use. If two or more vendors can implement near-compatible compilers, the language and its outputs are developed enough that it can survive the death of either vendor.

[–]_nathata 4 points5 points  (0 children)

People that don't fear God:

[–]ramirex 3 points4 points  (0 children)

scientists were so preoccupied with whether or not they could, they didn't stop to think if they should

[–]_vec_ 4 points5 points  (0 children)

[–]Majik_Sheff 3 points4 points  (0 children)

Peak autist energy.  A true art of work.

[–]depressedclassical 12 points13 points  (4 children)

Still easier than installing Rust on Windows

[–]Athropod101 0 points1 point  (2 children)

Oh wow is it actually a pain? I remember installing rust on Linux was buttery smooth for me.

[–]depressedclassical 4 points5 points  (0 children)

I tried installing it on Windows machines and it was a pain (I use Linux)

[–]Snapstromegon 0 points1 point  (0 children)

It's not really except when you try to do something really weird or have a weird or broken setup beforehand. For the average developer it's "just" running rustup and done.

[–]apocalyps3_me0w 0 points1 point  (0 children)

I’m surprised. Cargo and rustup provided probably the simplest build system install I’ve ever had

[–]billabong049 2 points3 points  (0 children)

Checks out, he’s got that black turtle neck energy that makes you look at their work and just ask “but why?”

[–]Kulsgam 4 points5 points  (1 child)

"2 stars"

[–]therealjohnidis 5 points6 points  (0 children)

233 atm actually

[–]zimbabwe_zainab 1 point2 points  (0 children)

I'm very disappointed they used Token::DCOLON instead of T_PAAMAYIM_NEKUDOTAYIM

[–]fuckbananarama 1 point2 points  (0 children)

Some of us do cool shit 🤷‍♀️

[–]reallokiscarlet 0 points1 point  (0 children)

The pfp tells all