Search found 5 matches

by cgs1019
Thu Apr 23, 2009 8:15 pm
Forum: Anything else we might add?
Topic: HOW-TO serve multiple apps with the builtin newLISP -http
Replies: 4
Views: 2125

This is great. Thanks a lot!
by cgs1019
Thu Apr 23, 2009 12:29 am
Forum: Anything else we might add?
Topic: HOW-TO serve multiple apps with the builtin newLISP -http
Replies: 4
Views: 2125

Marc I am also new to newlisp. When I first found it I browsed the newlisp source and found that the http connection code is single threaded and blocks on more than one connection. In order to use newlisp in a more robust server setting I'm playing with apache/cgi. Simply set up a webfolder, enable ...
by cgs1019
Thu Apr 09, 2009 7:56 pm
Forum: newLISP newS
Topic: Promoting my blog.
Replies: 61
Views: 17715

Kazimir Majorinc wrote:Thanx, itistoday.
Lutz, maybe letex should be replaced or supported with evlex?

Code: Select all

(eval (letex ((x 1)) '(f x)))
quoting the expr and wrapping in eval does the trick for me[/code]
by cgs1019
Wed Apr 08, 2009 9:24 pm
Forum: Whither newLISP?
Topic: newLISP Challenge: The seemingly simple 'my-or'
Replies: 37
Views: 10546

Re: Avoid var capture by avoiding variables?

So you used nested function call to transfer arguments in nested function so you do not have to use any variable at all. As (arg n) are always local, accidental overshadowing is impossible. Very interesting idea. Welcome to the forum. Thanks! While this particular problem is unlikely to arise in an...
by cgs1019
Wed Apr 08, 2009 8:50 pm
Forum: Whither newLISP?
Topic: newLISP Challenge: The seemingly simple 'my-or'
Replies: 37
Views: 10546

Avoid var capture by avoiding variables?

(define-macro (my-or) ( (lambda () (if (args 0) (args 0) (eval (args 1)) ) ) (eval (args 0)) (args 1) ) ) This solution uses a lambda to store the eval'ed first arg to the macro and defer evaluation of the second. It's not as fast as the solution presented by lutz, which has an execution time about...