Search found 14 matches

by humpolec
Thu Nov 06, 2008 8:10 am
Forum: Common Lisp
Topic: IF/WHEN?
Replies: 6
Views: 11808

IF/WHEN?

I often run into cases where I want to write "if A then B else NIL" (that is, the result matters either way.)
Should I use (IF A B NIL), (IF A B), or (WHEN A B)? What is the convention?
by humpolec
Mon Sep 22, 2008 8:59 am
Forum: Emacs
Topic: Emacs + Clisp + Slime = messy backtrace
Replies: 1
Views: 6981

Emacs + Clisp + Slime = messy backtrace

Every time I enter the debugger in Slime, it looks like this: EVAL: variable FORTY-TWO has no value [Condition of type SYSTEM::SIMPLE-UNBOUND-VARIABLE] ;; ... Backtrace: 0: [362] frame binding variables (~ = dynamically): | ~ SWANK::*SLDB-STEPPING-P* <--> NIL 1: [359] frame binding variables (~ = dy...
by humpolec
Mon Sep 22, 2008 6:52 am
Forum: Common Lisp
Topic: Poll: Which Lisp implementations do you use?
Replies: 32
Views: 92540

Re: Poll: Which Lisp implementations do you use?

From what I understand from the license, distributing a modified binary would require me to distribute either source code or FAS files along with them, and making FAS files available isn't hiding the implementation very well.
by humpolec
Mon Sep 22, 2008 5:12 am
Forum: Common Lisp
Topic: Extending FORMAT
Replies: 3
Views: 8944

Re: Extending FORMAT

Hmm... I read a bit and I see what I want can be very easily done with CL-PPCRE:REGEX-REPLACE-ALL. Yay for Lisp! :)
by humpolec
Mon Sep 22, 2008 4:49 am
Forum: Common Lisp
Topic: Extending FORMAT
Replies: 3
Views: 8944

Re: Extending FORMAT

But... I like FORMAT :) (Just as I like printf more than iostreams.) OUT seems to have been invented because FORMAT strings can get too hairy and illegible. I don't think that would be a problem in my case, as I won't be doing anything fancy... ;; Suppose I want a message like "Monkey hits you ...
by humpolec
Mon Sep 22, 2008 2:51 am
Forum: Common Lisp
Topic: Extending FORMAT
Replies: 3
Views: 8944

Extending FORMAT

I want to format my text using FORMAT-like syntax, but with ability to call some other functions, for example (message "%a" obj) would print (descr obj), and (message "%b" obj) prints (short-descr obj). I thought of making wrappers to that functions, and using them to with the FO...
by humpolec
Sun Sep 21, 2008 4:59 pm
Forum: Common Lisp
Topic: Poll: Which Lisp implementations do you use?
Replies: 32
Views: 92540

Re: Poll: Which Lisp implementations do you use?

I'm a newbie writing a roguelike game in Lisp, and while I develop it in Clisp (under windows), eventually I plan on releasing it as stand-alone packages on some systems (Windows and Linux at least) - I'm not sure if I want it open source, and Clisp's license would force me to do that, so I guess I ...
by humpolec
Sun Sep 14, 2008 8:11 am
Forum: Common Lisp
Topic: Crosscompiling Linux->Windows
Replies: 7
Views: 15887

Re: Crosscompiling Linux->Windows

Just distribute a zip archive with clisp.exe, your FAS files, and a .bat file running them (the appropriate command-line options should be in clisp's man page). As for saving executable directly - clisp (as it's licensed under GPL) prohibits distribution of modified binaries without your program's s...
by humpolec
Fri Sep 05, 2008 5:01 pm
Forum: Common Lisp
Topic: How to organize source code in multiple files?
Replies: 2
Views: 7360

How to organize source code in multiple files?

Most of the time I work in Emacs with interpreter running and all my code loaded, but I wanted to make an ASDF definition file. I understand that when a multi-file project is compiled and loaded, it's done sequentially, file after file, so you have to be careful about the definitions order: - Compil...
by humpolec
Thu Sep 04, 2008 3:47 am
Forum: Common Lisp
Topic: How to split project into multiple files
Replies: 6
Views: 15062

Re: How to split project into multiple files

I have a question: ASDF lets you specify dependencies for your files, but is it a problem if my files have circular dependencies?