A couple of questions on lisp compiler/optimization art Hi there, Much as enjoy lisp, I still spend quite a bit of my time worrying about single-instruction details of generated C code (embedded DSP applications). I was wondering, this morning, whether the state-of-lisp- compiler-art ran to inlining of leaf functions, and all of the usual subsequent optimization ... 2 Mar 2010 20:20
External command's output as stream I'm studying streams and CLISP's EXT:RUN-PROGRAM. As an exercise I wrote a function which runs an external program and returns its output as a list of strings. Each output line gets its own string in the list. The function works but I want to make sure I'm doing it correctly. Here it is: (defun my-command ... 3 Mar 2010 02:57
anomalies in capitalization in String functions The spec for STRING-CAPITALIZE is defined to break into words where: "a ``word'' is defined to be a consecutive subsequence consisting of alphanumeric characters". This gives interesting results such as "don't" => "Don'T". Any 4th-grader would know that the right capitalization is "Don't". In CLforJava, we use the ... 3 Mar 2010 14:07
tiny fix to asdf Hi! Asdf is so nasty and weird. It does not even show a pathname of a file where the error occurred. I have fixed this simply with: http://paste.lisp.org/display/95807 Now cl-source file prints as #<ASDF:CL-SOURCE-FILE (ripol dict-ripol) #P"L:/sw/fb2/dict-ripol.lisp" 23AD6474> Now we can use commands l... 2 Mar 2010 08:57
emacs on windows, compiling Hi. How do I compile a lisp file in emacs ? I tried some shortcuts I found on internet but it doesn't work. It comes to a command line saying : make -k, I don't have 'make' command. I just downloaded emacs for windows. Do I have to download anything else ? Thanks Haris ... 7 Mar 2010 17:21
Perl errors (was Re: another frustrating learner question, CLOS) Ron Garret <rNOSPAMon(a)flownet.com> writes: It should be noted at this point that you are the one who introduced the concept of catching exceptions into the conversation, not me. What I was talking about was catching *errors*. Catching exceptions can be the same thing as catching errors but it might n... 28 Feb 2010 17:49
Miscellaneous cross-references on Lisp history and philosophy In recent days, I've done a lot of blogging (mostly political, some philosophy, even some poetry) at Open Salon [1]. Very little is technical, so I haven't bothered to promo it here. But once in a while I do things with a technical theme, and my post Friday was such a one, so I hope you'll indulge me a bit of se... 28 Feb 2010 16:42
Programming v Mathematics Chris F Clark <cfc(a)shell01.TheWorld.com> writes: If we want, to formalize this more, it is not true: For all (person), person an element of people, learn(person, programming) implies learn(person, math) < learn(person, math) given not learn(person, programming) While it is quite ... 1 Mar 2010 15:15
Redirecting program output with SBCL's RUN-PROGRAM I'm trying to figure out how to use the output stream of one program I start with RUN-PROGRAM so it can be used as the input of another program started with RUN-PROGRAM (i.e., the moral and perhaps literal equivalent of piping). I've tried using a number of combinations of the :INPUT, :OUTPUT and :WAIT keyword argu... 2 Mar 2010 11:13
let and undefined symbols Hi! Here is some code: (let ((a 0) (b 1) (c 2) (d 3)) (loop for i in '(wood clay iron food) do (format t "~A:~D~%" i (symbol-value i)))) Seems as a working code, but sbcl writes "The variable [ABCD] is defined but never used.", and when code executes an error "The variable A is unbound" arrives. ... 28 Feb 2010 21:08 |