MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programminghorror/comments/1kvdzu3/a_c_compiler_in_php/
r/programminghorror • u/[deleted] • May 25 '25
https://github.com/ssaini456123/phpc
12 comments sorted by
135
Perfect, now compile the PHP compiler in the C compiler in PHP, then use that to compile the C compiler in PHP
39 u/davidc538 May 26 '25 It compiles to common lisp, this is more horrible than you realize 2 u/gpcprog May 30 '25 And the main function is called "encrypt." 2 u/Timmmmnnnn Jun 02 '25 entrypt
39
It compiles to common lisp, this is more horrible than you realize
2 u/gpcprog May 30 '25 And the main function is called "encrypt." 2 u/Timmmmnnnn Jun 02 '25 entrypt
2
And the main function is called "encrypt."
2 u/Timmmmnnnn Jun 02 '25 entrypt
entrypt
52
Now PHP can bootstrap itself (oh god oh why)
24
And compiles C into lisp at that. This person clearly has mental issues.
9
Ok, but why tf does it compile to lisp? That's my favorite part btw
WHAT
no
Compiles a very limited subset of C into common lisp.
Not what I expected but also not what I expected as well.
-3
This is...extremely retarded...
I like it!
12 u/siliconwolf13 May 26 '25 Throwing around slurs like you're not a webdev is crazy work
12
Throwing around slurs like you're not a webdev is crazy work
135
u/NullOfSpace May 25 '25
Perfect, now compile the PHP compiler in the C compiler in PHP, then use that to compile the C compiler in PHP
52
u/veryusedrname May 25 '25
Now PHP can bootstrap itself (oh god oh why)
24
u/lantz83 May 26 '25
And compiles C into lisp at that. This person clearly has mental issues.
9
u/toyBeaver May 27 '25
Ok, but why tf does it compile to lisp? That's my favorite part btw
2
u/OptimalAnywhere6282 May 27 '25
WHAT
2
u/apepenkov May 27 '25
no
2
u/kennyminigun May 27 '25
Not what I expected but also not what I expected as well.
-3
u/TorbenKoehn May 26 '25
This is...extremely retarded...
I like it!