Today’s Hacking: Running JavaScript on PHP

“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…

This entry was posted in Hacking. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.


  1. Posted September 19, 2011 at 10:33 pm | Permalink

    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…

    • Tom
      Posted September 20, 2011 at 7:13 pm | Permalink

      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.

Post a Comment

Your email is never published nor shared. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>