PHP: v8.js
php.net
PHP: v8.js
1–10 of 43 posts
Re: PHP: v8.js
#2It could definitely be handy for a lot of reasons. Seems like it might be handy for embedding a bit of JavaScript testing in your PHP test suite.
Re: PHP: v8.js
#3For simple examples it worked fine, but trying it on real projects such as coffeescript it kept seg faulting.
It's definitely got potential though..
Re: PHP: v8.js
#4I'm afraid you can not get much out of the great features of JS. Event drivenness..
Anyway, this blows my mind!
Re: PHP: v8.js
#5I genuinely can't think of a way this will be used which will be positive for PHP.
Re: PHP: v8.js
#6Re: PHP: v8.js
#7It looks like a PHP extension to embed JavaScript using the V8 engine. The docs are pretty limited. The return value of executing a blob of JS is described thusly: "Returns the last variable instantiated in the Javascript code converted to matching PHP variable type." I supposed the mapping is obvious, to someone :). I'd personally want to know if JS objects come back as stdClass objects or assoc arrays. It could def…
Re: PHP: v8.js
#8Re: PHP: v8.js
#9Re: PHP: v8.js
#10Well that just makes me go WTF. I genuinely can't think of a way this will be used which will be positive for PHP.
In general I'd be cautious about both the ruby racer and this as you are practically embedding a garbage-collected heap into another garbage collected heap, exchanging references between them (more so for the ruby racer - the PHP extension here is way less integrated).
This is memory errors waiting to happen.