5 ms·
Greetings, author of the post here :) This post was, of course, just a thought exercise. But if it sounds intriguing, please check Andrea Giamarchi's much more
by ssttoo 15y ago
Greetings, author of the post here :)
This post was, of course, just a thought exercise. But if it sounds intriguing, please check Andrea Giamarchi's much more advanced "JavaScript Hypertext Preprocessor":
http://webreflection.blogspot.com/2011/06/javascript-hypertext-preprocessor.html http://webreflection.blogspot.com/2011/06/javascript-hyperte...
He has stuff like:
$Object->prototype->toString->call($o); // [object Object]
- phpnode 15y agoHere's what it looks like the other way round, a PHP framework ported to JavaScript (then swiftly abandoned) https://github.com/phpnode/YiiJS/tree/master/js/yii https://github.com/phpnode/YiiJS/tree/master/js/yii
- ssttoo 15y agoYeah, there's also phpjs.org when you miss things like strstr() in JS
- phpnode 15y agoyeah this port relies heavily on php.js, it's part of the reason it's abandoned, with all the libs it just becomes too big for client side apps, and it sits in some kind of uncanny valley that is really nearly the same as the equivalent php but not quite.