First  |  Prev |  Next  |  Last
Pages: 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
Reason to hate loop
Another reason to hate loop: (defun closures-from-loop (list) (loop for el in list collect (lambda () (format t "~s~%" el)))) (loop for lambda in (closures-from-loop (list 1 2 3 'a 'b 'c)) do (funcall lambda)) prints, since heavy setq-ing is going on behind the scene curtain: C C C C C C NIL... 26 Apr 2010 09:07
optimize, inline, oh my (questions)
Hey now, So I'm relatively new to Lisp, but my understanding is improving gradually. Right now I'm wondering about the various declaim, declare, inline options. I have the following code... (declaim (inline roll)) (defun roll (number-of-dice type-of-dice) "Simulate a roll of several dice of the same type.... 23 Apr 2010 20:46
help save comp.lang.lisp from spam
today, comp.lang.lisp is 95% spam. let's help save it. Regardless what newsgroup readers you use, when you do your daily newsgroup reading, please take 15 seconds to go to: http://groups.google.com/group/comp.lang.lisp/topics then, click on the “Report as spam” for the 10 spam posts that shows on the fir... 29 Apr 2010 19:12
Reason to hate loop
Johan Ur Riise wrote: Alberto Riva <ariva(a)nospam.ufl.edu> writes: Johan Ur Riise wrote: Another reason to hate loop: (defun closures-from-loop (list) (loop for el in list collect (lambda () (format t "~s~%" el)))) (loop for lambda in (closures-from-loop (list 1 2 3 'a 'b 'c))... 23 Apr 2010 20:46
Tracing recursive functions in slime REPL (Allegro CL)
Hello all, I did not understand what it is with the tracing of the recursion. I have some file with this content: ---------------------- (defun foo (n) (print n) (when (plusp n) (foo (1- n)))) (defun bbb () (print "bbb")) (defun aaa () (print "aaa") (bbb)) ---------------------- Then I ... 23 Apr 2010 20:47
Iterate: nested maximization returning two values
Hi, I need to implement an argmax-like function that works this way: (i*,j*) = argmax{f(i,j) | i,j in C}, i.e. I have to find the optimal couple (i*,j*) for function f where i,j are variables varying on a finite discrete set C=0..n-1. Using iterate I came up with the following solution (iter (for i from 0 bel... 26 Apr 2010 09:07
[CfP] DLS'10
Dynamic Languages Symposium 2010 October 18, 2010 Co-located with SPLASH (OOPSLA) 2010 In cooperation with ACM SIGPLAN John Ascuaga's Nugget, Reno/Tahoe, Nevada, USA http://www.dynamic-languages-symposium.org/dls-10/ ***** Call for papers ***** The 6th Dynamic Languages Symposium (DLS) at the conferenc... 20 Apr 2010 15:47
[ELW 2010] Deadline extension to April 25th
+------------------------------------------------------------+ | CALL FOR PAPERS | | 7th European Lisp Workshop | | June 22 2010, Maribor, Slovenia, co-located with ECOOP | +------------------------------------... 20 Apr 2010 14:28
Type calculation from the ground up
http://ojasper.nl/Blog.html#Type%20calculation Hope i wrote it well, honestly can't assess it properly now. Also posted in http://www.reddit.com/r/lisp/comments/bsu83/type_calculation_from_the_ground_up/, http://www.lispforum.com/viewtopic.php?f=29&t=696 ... 18 Apr 2010 21:55
celtk-3d (let's see LTk do this!)
The classic OpenGL Gears demo, running really badly, in Common Lisp atop Tcl/Tk: http://github.com/kennytilton/celtk Select the celtk-3d branch. Next stop, Cello I guess. ... 23 Apr 2010 20:47
First  |  Prev |  Next  |  Last
Pages: 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50