Multiple evaluation2029 (7/25/2008 5:28:02 PM) comp.lang.lisp This is not a question about preventing accidental multiple evaluation in macros, but rather about forcing multiple evaluation in functions. Let's say I want to create a list of 5 random numbers like this: (m... Ari
Stack access--Am I looking for continuations?623 (7/8/2007 11:29:17 PM) comp.lang.lisp I'm writing a recursive function, and I find myself asking, how many invocations of this function are currently on the stack? What's the value of a local variable 5 invocations down the stack? I could give the... Ari
Setting content-type and encoding on XMLHTTPRequest0172 (12/23/2006 3:22:25 AM) comp.lang.javascript When I send an XML document over XMLHTTPRequest, IE encodes it in UTF-16, but fails to set the "encoding" part of "Content-Type:" header. According to rfc 2616, default encoding in HTTP is ISO-8859-1. Parsing a... Ari
intrinsic size of an Image1320 (12/5/2006 12:23:27 AM) comp.lang.javascript Image.width returns the width of an image as it is displayed on a browser page, which may be different from the image's intrinsic size if the 'img' element had a 'width' attribute specified. Is there a reliabl... Ari
method combinations1329 (7/18/2006 2:01:49 AM) comp.lang.lisp I have a class that has methods specialized on it that are expensive. I want to inherit from this class to include slots that can hold precomputed values of these expensive methods. I want to make it so that if... Ari
loop with an optional limit?332 (7/16/2006 7:12:43 AM) comp.lang.lisp I'm trying to write a function that reads forms from a file. The caller may optionally specify a maximum number of forms to read; if that variable is null, the function should read forms until eof. Is there a w... Ari
Silly argument for a unix DIRECTORY:635 (7/13/2006 11:48:33 PM) comp.lang.lisp I get this warning when I pass a string as :directory to make-pathname in CMUCL: Silly argument for a unix DIRECTORY: "/home/ari/foo" What makes this a silly argument? Ari. -- Elections only count as free ... Ari
multiple namespaces524 (6/26/2006 7:57:11 AM) comp.lang.lisp Common Lisp has separate namespaces for functions and values. What are the tradeoffs? There are two cases I've seen where one is easier to use than the other, but I'm sure there must be others. One case is whe... Ari
What's more idiomatic?2933 (10/20/2005 7:23:26 AM) comp.lang.lisp Performance issues aside, which one of these expressions is more idiomatic in Common Lisp? (mapcar #'foo (mapcar #'bar list)) (mapcar #'(lambda (i) (foo (bar i))) list) Ari. -- Elections only count as free... ari
Variable capture921 (10/18/2005 9:00:42 PM) comp.lang.lisp Is it accurate to say that variable capture can only occur in macros that introduce local variable bindings? IOW, can capture occur in a macro that has no LET operators or macro calls that expand to LET, like D... ari
Multiple evaluation2029 (7/25/2008 5:28:02 PM) comp.lang.lisp This is not a question about preventing accidental multiple evaluation in macros, but rather about forcing multiple evaluation in functions. Let's say I want to create a list of 5 random numbers like this: (m... ari(61)
Stack access--Am I looking for continuations?623 (7/8/2007 11:29:17 PM) comp.lang.lisp I'm writing a recursive function, and I find myself asking, how many invocations of this function are currently on the stack? What's the value of a local variable 5 invocations down the stack? I could give the... ari(61)
method combinations1329 (7/18/2006 2:01:49 AM) comp.lang.lisp I have a class that has methods specialized on it that are expensive. I want to inherit from this class to include slots that can hold precomputed values of these expensive methods. I want to make it so that if... ari(61)
loop with an optional limit?332 (7/16/2006 7:12:43 AM) comp.lang.lisp I'm trying to write a function that reads forms from a file. The caller may optionally specify a maximum number of forms to read; if that variable is null, the function should read forms until eof. Is there a w... ari(61)
Silly argument for a unix DIRECTORY:635 (7/13/2006 11:48:33 PM) comp.lang.lisp I get this warning when I pass a string as :directory to make-pathname in CMUCL: Silly argument for a unix DIRECTORY: "/home/ari/foo" What makes this a silly argument? Ari. -- Elections only count as free ... ari(61)
Amazon used lisp & C exclusively?766197 (7/8/2006 12:58:28 PM) comp.lang.lisp http://www.cabochon.com/~stevey/blog-rants/tour-de-babel.html But sadly they don't have any more openings for lisp. http://tinyurl.com/zaewf What other major companies have posts for lisp? Alok ... alok.bisani(55)
multiple namespaces524 (6/26/2006 7:57:11 AM) comp.lang.lisp Common Lisp has separate namespaces for functions and values. What are the tradeoffs? There are two cases I've seen where one is easier to use than the other, but I'm sure there must be others. One case is whe... ari(61)
What's more idiomatic?2933 (10/20/2005 7:23:26 AM) comp.lang.lisp Performance issues aside, which one of these expressions is more idiomatic in Common Lisp? (mapcar #'foo (mapcar #'bar list)) (mapcar #'(lambda (i) (foo (bar i))) list) Ari. -- Elections only count as free... ari(61)
Variable capture921 (10/18/2005 9:00:42 PM) comp.lang.lisp Is it accurate to say that variable capture can only occur in macros that introduce local variable bindings? IOW, can capture occur in a macro that has no LET operators or macro calls that expand to LET, like D... ari(61)