Live data from Hacker News

A brainfuck compiler written in PHP

github.com

1–10 of 24 posts

Re: A brainfuck compiler written in PHP

#4

I once wrote some PHP. It's the worst language. I can't believe anybody would write a respectable compiler, for a respectable language, in this junk.

And yet, all over the Internet, real websites, real business, is getting built using PHP. Whilst people write fractal of a bad blog post, the smart folks are quietly delivering.

Re: A brainfuck compiler written in PHP

#6

I once wrote some PHP. It's the worst language. I can't believe anybody would write a respectable compiler, for a respectable language, in this junk.

And yet, all over the Internet, real websites, real business, is getting built using PHP. Whilst people write fractal of a bad blog post, the smart folks are quietly delivering.

Quietly delivering bad code in an outdated language.

Re: A brainfuck compiler written in PHP

#8

Earlier quoted context omitted.

And yet, all over the Internet, real websites, real business, is getting built using PHP. Whilst people write fractal of a bad blog post, the smart folks are quietly delivering.

Quietly delivering bad code in an outdated language.

It is possible to write good, or bad code, in any language. If you think the choice of language will define the level of your code, then you still have a lot to learn.

Re: A brainfuck compiler written in PHP

#9
post #3

Next thing you know they will be compiling PHP with PHP.

There is PHP parser written in PHP [0], a PHP VM implementation (running PHP code with PHP) [1] and a AOT compiler for PHP which is written in PHP, for a subset of the PHP language [2]. So yeah, it is already happening.

[0] https://github.com/nikic/PHP-Parser

[1] https://github.com/ircmaxell/PHPPHP

[2] https://github.com/google/recki-ct

Post reply on HN