Re:PHP: v8.js
by FuzzyDunlop on Saturday February 25, 2012 @11:28AM
(#3633236)
Stuff like this with PHP just reminds me how nice the module loading systems other languages use to handle this sort of thing.*
PHP - forgot something? Best re-compile so I can access the module's massive list of global functions.
Python, Ruby, Node, etc. - `import/include/require module`
* because Pear is basically a waste of time.
What?
Have you tried to install something using pip for Python? How about npm for Node?
Those package management programs compile stuff on your system all the time. Same as PECL extensions.
The ecosystem for Python, Ruby, Node works exactly the same as it does for PHP. Please leave your random PHP hatred at the door.
If you've been doing a lot of work in PHP recently, then you should be compiling your own PHP. Which gives you the option of disabling every extension. The PHP core is actually very lean. Virtually everything is an extension. They even have a nifty flag to disable everything.
I like having the option of compiling a bazillion extensions in the binary if I want to. Even though I never enable anything beyond the basic stuff I need.