Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - Ishpeck

#1
Anything else we might add? / What we need is a patch...
February 28, 2012, 03:11:59 PM
http://www.custompatches.net/">http://www.custompatches.net/



Wondering if anybody would throw a hissy-fit if I took the dragon fly logos in the art section ( http://www.newlisp.org/index.cgi?page=Art">http://www.newlisp.org/index.cgi?page=Art ) and made embroidered patches out of them.



I'd love to sew one into my backpack.
#2
When I use exec or ! to run a shell command, I want to get strings containing the contents of stdout and stderr (even if empty) as well as the exit code of the program.



I could direct the output in the command like so:

(! "ls 2>/tmp/err >/tmp/out")



And then just read those files but that seems horribly crufty.

 

Now exec gives me stdout but I still  want exit code and stderr.



Is there a better way to see what is happening with the programs I run?
#3
Whither newLISP? / Why no closures?
October 21, 2011, 01:18:45 PM
I'm really quite surprised that this isn't in the FAQ.



Why don't we have closures now?


> (define (foo x) (lambda (y) (+ x y)))
(lambda (x) (lambda (y) (+ x y)))
> ((foo 3) 4)

ERR: value expected in function + : x


I can do this in Common Lisp:
[16]> (defun foo (x) (lambda (y) (+ x y)))
FOO
[17]> (apply (foo 3) '(5))
8




Was this part of the design philosophy or have we just not done it yet?
#4
newLISP newS / Helping where I can - Stylish Theme
September 23, 2011, 09:59:04 PM
http://userstyles.org/styles/54032/newlisp-dark">//http://userstyles.org/styles/54032/newlisp-dark

White backgrounds make my eyeballs cry out in agony.  Accordingly, made this.