Re:Pharen: A lisp that compiles to PHP
by mkrecny on Sunday January 30, 2011 @01:08PM
(#2158607)
Is the intended user a Lisp programmer forced to work on a php code base...or a Lisp programmer looking to take advantage of some of php's native server scripting features?
[ Parent
| on HN ]
HAH!
I think, strictly, the former.
(I actually laughed out loud at this :_)
Fair enough. I've never programmed in lisp. I just assumed that lisp didn't have native server abstractions like $_REQUEST - and that Pharen may expose those.
Re:Pharen: A lisp that compiles to PHP
by randallsquared on Sunday January 30, 2011 @05:00PM
(#2159313)
While no or few lisps have that sort of thing baked in natively, they mostly have libraries that expose it, which is arguably better in any case.
Both really, since interop with PHP is pretty easy so you can use those native features in a lispy way.
Do you believe there are or will be good reasons to choose Pharen over Scheme, Common Lisp or Clojure in a situation where one isn't forced in to using a PHP backend? With Clojure, for example, I consider the baked-in concurrency models and data structures very valuable, but haven't had much cause to care that it runs on the JVM.
That's a really good question. The main case I can see is if someone is already familiar with PHP and its deployment and doesn't want to learn another language/platform. It might also be useable for basic scripting tasks (the compiler has an --executable flag that adds a PHP hashbang to the top of a script).
Other than that Pharen is still pretty new and nowhere near the same level as mature lisps. Making debugging and interop with 3rd party libraries easier are the main long-term goals, so maybe after that it'll be at least a little viable.