News for hackers. Stuff that matters.
Re:Lisphp is a Lisp dialect written in PHP. by dahlia on Monday July 05, 2010 @11:17AM (#1488366)
I'm the author of this, I made the web REPL also.

http://dahlia.ruree.net/try-lisphp/

Well, of course, it uses a sandbox environment.

Re:Lisphp is a Lisp dialect written in PHP. by mahmud on Monday July 05, 2010 @12:18PM (#1488527)
From a quick look, you managed to get one thing right, even though it baffles even respected language implementers: a proper stack trace on error. Most people who write a HLL interpreter in another HLL tend to cheat and implement a half-baked source to source translator.

[Edit:

Question: Why does it have T, NIL, #T and #F? what roles do these symbols play in the language; which ones are canonical truth values, which ones signify list termination, and which ones signify the empty value? This is the perennial Lisp question.]

Re:Lisphp is a Lisp dialect written in PHP. by KirinDave on Monday July 05, 2010 @01:58PM (#1488714)
> Most people who write a HLL interpreter in another HLL tend to cheat and implement a half-baked source to source translator.

Is this a jab at the Lisp tradition of compiled sublanguages?

Re:Lisphp is a Lisp dialect written in PHP. by mahmud on Monday July 05, 2010 @03:24PM (#1488893)
It's a jab against the general case, below.

A lame, wasteful little script to print out a TODO list ;-)

  (defun map-print (item list)
    (mapcar (lambda (x)
  	    (format t "~a in ~a~%" item x)) list))
  
  (defun permute (list)
    (mapcar (lambda (x)
  	    (map-print x list)) list))
  
  (defun languages ()
    (destructuring-bind (response headers body)
        (trivial-http:http-get "http://mahmud.arablug.org/languages.txt")
      (when (= response 200)
        (loop for line = (read-line body nil nil)
  	 while line
  	 collecting line))))
  
  (permute (languages))
Re:Lisphp is a Lisp dialect written in PHP. by jimbokun on Monday July 05, 2010 @03:05PM (#1488849)
Bad stack traces is certainly one of the major complaints against Clojure.
Re:Lisphp is a Lisp dialect written in PHP. by KirinDave on Monday July 05, 2010 @04:25PM (#1489018)
They seem fine to me.

Do you want to see “bad” stack traces? Try Erlang. There is a language with truly obtuse stack traces.

Re:Lisphp is a Lisp dialect written in PHP. by eru on Tuesday July 06, 2010 @09:25AM (#1490875)
And the very concept of strack traces does not even make too much sense in e.g. Haskell. (Though it can be made to work, with some cleverness.)