Email or username:

Password:

Forgot your password?
Top-level
Woozle Hypertwin

@oschonrock @Girgias @ramsey @cptwtf @IceWolf

I think we're using the word "runtime" in two different ways. Both statements are right, but they're talking about somewhat different things.

6 comments
Oliver Schönrock replied to Woozle

@woozle @Girgias @ramsey @cptwtf @IceWolf

maybe... I mean "runtime" as in... there is something that my programme is "running on top of or through", without which it could not work..

That is not the case for systems languages like C,C++ or Rust.

php/js/python/ruby and also JVM and .Net languages and to a lesser extent Go ... are just a different category of language.

The php interpreter/runtime, call it what you like, is written in C/C++. So is the JVM. Could you write it in php?

Gina Peter Banyard replied to Oliver

@oschonrock @woozle @ramsey @cptwtf @IceWolf I mean, someone did it for funsies: github.com/ircmaxell/PHPPHP

Like nothing prevents it from being done.

Oliver Schönrock replied to Gina Peter Banyard

@Girgias @woozle @ramsey @cptwtf @IceWolf

there goes the pedantic approach again....

"This requires that php be in your system path."

you still need the php interpreter which is written in C/C++ in order to run the php vm to run the php programme..

have you ever heard of chickens and eggs?

so.... "no"... basically.

not to mention it would be prob be stupidly slow..

Gina Peter Banyard replied to Oliver

@oschonrock @woozle @ramsey @cptwtf @IceWolf You asked if the PHP VM could be written in PHP, I gave you a repo where someone did this 13 years ago. I didn't say it was a good idea nor that it would be fast. Nor is this even fully fleshed out. People have written a Python interpreter in Python and use it to run Python. There is nothing fundamentally *preventing* you from doing it.

Chickens and Eggs exists with statically compiled languages when you need to boostrap it the first time too....

Oliver Schönrock replied to Gina Peter Banyard

@Girgias @woozle @ramsey @cptwtf @IceWolf

This is totally not the same... because you are still running a php interpreter at the outer layer in every case. In a systems language there is only the hardware.

You are apparently unable/unwilling to understand the fundamental difference, or just really stubborn and pedantic.

And with that I conclude the one thing that always irritated me more than anything else in php: The quality of understanding and discussion.

I am out. Have a nice day.

Woozle Hypertwin replied to Gina Peter Banyard

@Girgias @oschonrock @ramsey @cptwtf @IceWolf

Wasn't there even a PHP compiler at one point? I can't quite remember the name... closest I can find is this, but that wasn't it.

Go Up