“Running JavaScript on PHP” – what, that’s crazy right? Well maybe it is, but I like to do crazy stuff when I’m prototyping. I want to work out the feasibility of taking a piece of JavaScript, parsing it down to an AST (probably using JS Shaper) and emitting PHP code that the performs the equivalent logic. The eventual goal would be to make it so that Spectrum.js templates could be executed on a server running PHP (>= 5.3). Let the hacking commence…
To be continued…
2 Comments
Didn’t know you were working on such Tom. This is what I mean “for creativity”.
…now if I could only conceive of how something like that could be done…
Not really got the hang of this blogging thing. Didn’t know you had to approve comments (I’d change that but there was a bunch of spam and only one real comment
. Not very good at prioritising my projects outside of work. Creativity is only one of a set of competing motivations – need to focus.