Search found 5 matches
- 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: 4132
- 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: 4132
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 ...
- Thu Apr 09, 2009 7:56 pm
- Forum: newLISP newS
- Topic: Promoting my blog.
- Replies: 61
- Views: 34921
Kazimir Majorinc wrote:Thanx, itistoday.
Lutz, maybe letex should be replaced or supported with evlex?
Code: Select all
(eval (letex ((x 1)) '(f x)))
- Wed Apr 08, 2009 9:24 pm
- Forum: Whither newLISP?
- Topic: newLISP Challenge: The seemingly simple 'my-or'
- Replies: 37
- Views: 22455
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...
- Wed Apr 08, 2009 8:50 pm
- Forum: Whither newLISP?
- Topic: newLISP Challenge: The seemingly simple 'my-or'
- Replies: 37
- Views: 22455
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...