Search found 35 matches
- Fri Oct 23, 2009 10:31 pm
- Forum: Common Lisp
- Topic: Fibonacci recursion -argh
- Replies: 11
- Views: 13175
Re: Fibonacci recursion -argh
Recursion is slowing me down immensely in my learning of Common Lisp. Recursion is simple, but I have a hard time visualizing the cycle flow (IMO) The whole point of using recursion is to avoid the extra work of having to look at or manage cycle flow, and thus be able to code faster and more powerf...
- Fri Oct 23, 2009 9:16 am
- Forum: Common Lisp
- Topic: Shortest Universal Turing Machine Implementation
- Replies: 10
- Views: 15436
Re: Shortest Universal Turing Machine Implementation
In my opinion, the below is probably the best example of the shortest meaningful Turing machine code. Church and Turing discovered that the 'lamba machine' invented by Church was equivalent in expressiveness to the Turing machine. It was also invented before the Turing machine, but the Turing machin...
- Wed Jul 22, 2009 3:36 pm
- Forum: Common Lisp
- Topic: Lisp program to control Windows Mouse and Keyboard?
- Replies: 2
- Views: 4123
Re: Lisp program to control Windows Mouse and Keyboard?
Update:
I can my windows program in wine, so the lisp mouse and keyboard controller program would also work if it runs in x windows.
I can my windows program in wine, so the lisp mouse and keyboard controller program would also work if it runs in x windows.
- Wed Jul 22, 2009 2:55 pm
- Forum: Common Lisp
- Topic: Lisp program to control Windows Mouse and Keyboard?
- Replies: 2
- Views: 4123
Lisp program to control Windows Mouse and Keyboard?
Anyone know if there is one? There is a java program called 'robot' which allows you to do that, as well as the AutoHotKey language, but I would like to do that with lisp or scheme instead.
Thanks
Thanks
- Thu May 07, 2009 1:55 pm
- Forum: Common Lisp
- Topic: Clozure Lisp CGI Programming
- Replies: 19
- Views: 39441
Re: Clozure Lisp CGI Programming
Try switching to the apache user and running the lisp program to see what the error is. You could also run the lisp program from a batch file, and redirect the error output to a file.
- Thu Apr 16, 2009 3:45 pm
- Forum: Common Lisp
- Topic: top level delete?
- Replies: 2
- Views: 4413
Re: top level delete?
AFAIK 'top level' refers to the REPL, the read eval print loop. This is the command prompt you see for the lisp image. So doing something at the 'top-level' means doing it at the lisp command prompt. This sounds like an exercise to practice using car and cdr interactively.
- Tue Apr 14, 2009 3:34 pm
- Forum: Common Lisp
- Topic: Rant: lisp is not C. Get over it.
- Replies: 47
- Views: 228197
Re: Rant: lisp is not C. Get over it.
Cusp is an IDE for programming in lisp (Common Lisp flavor). It comes prepackaged with SBCL and a set of tested libraries. Its package contains everything for it to work and Cusp doesn't have any external dependencies (other than Eclipse). Cusp contains all the basic features you expect from modern ...
- Mon Apr 13, 2009 5:10 pm
- Forum: Common Lisp
- Topic: novice question about CONS
- Replies: 5
- Views: 7319
Re: novice question about CONS
If you happen to append a tree to a list, you won't flatten all the lists together, you'll get this: (append '(1 2 (2) ) '(1 2)) (1 2 (2) 1 2) So you need to use 'double recursion', something like this: (defun oct (tr) (if (atom tr) (cons tr nil) (append (oct (car tr)) (oct (cdr tr)))))
- Tue Feb 24, 2009 10:00 pm
- Forum: Common Lisp
- Topic: Best way to edit run debug with slime and emacs?
- Replies: 2
- Views: 4898
Re: Best way to edit run debug with slime and emacs?
Thanks. I reloaded emacs and slime and it started showing the load messages in slime-repl. It occured to me I can just make keyboard macros for switching between windows, I'm working over putty so no mouse.
- Tue Feb 24, 2009 9:08 pm
- Forum: Common Lisp
- Topic: Best way to edit run debug with slime and emacs?
- Replies: 2
- Views: 4898
Best way to edit run debug with slime and emacs?
Thanks in advance lispers, What edit, run, debug process with emacs and slime results in the fastest development speed? My current approach: 3 windows open. 1 for lisp code file. 1 for help list of slime key bindings, 1 for slime-repl. Type in a function. Reload whole file with c-c c-l, or eval regi...