Search found 35 matches

by imba
Sun Nov 28, 2010 4:56 pm
Forum: Other Tools
Topic: ECL: Compile Lisp to C
Replies: 8
Views: 19142

Re: ECL: Compile Lisp to C

But how can I produce a .c file? The .c file is obviously produced during compilation, because otherwise it wouldn't be possible to produce the .o file. It is the deleted, because it is not really designed for human consumption. I am not sure if there is exposed interface for suppressing the deleti...
by imba
Sat Nov 27, 2010 11:31 am
Forum: Common Lisp
Topic: making built-in functions (as length) inline
Replies: 3
Views: 1467

Re: making built-in functions (as length) inline

OK, thanks. I'm using LispWorks (free) Windows and your versions don't make a difference.
by imba
Sat Nov 27, 2010 11:30 am
Forum: Common Lisp
Topic: declaring an element of a defstruct fixnum
Replies: 4
Views: 1746

Re: declaring an element of a defstruct fixnum

Thanks.
by imba
Sat Nov 27, 2010 10:09 am
Forum: Common Lisp
Topic: making built-in functions (as length) inline
Replies: 3
Views: 1467

making built-in functions (as length) inline

Hi,

is there a possibility to make built-in functions (as length) inline? (without redefining them)
by imba
Sat Nov 27, 2010 9:42 am
Forum: Common Lisp
Topic: declaring an element of a defstruct fixnum
Replies: 4
Views: 1746

Re: declaring an element of a defstruct fixnum

Thanks! I have added another question above. This should be possible: "defstruct defines readers for the slots and arranges for setf to work properly on such reader functions. Also, unless overridden, it defines a predicate named name-p, defines a constructor function named make-constructor-name, an...
by imba
Sat Nov 27, 2010 8:37 am
Forum: Common Lisp
Topic: declaring an element of a defstruct fixnum
Replies: 4
Views: 1746

declaring an element of a defstruct fixnum

Hi, (defstruct structure struct-member) I want that in all functions accessing to struct-member they treat struct-member as a fixnum. But (defstruct structure struct-member (declare (type fixnum struct-member)) does not work. How do I implement this? Another question: How do I make make-structur, st...
by imba
Fri Nov 26, 2010 1:31 pm
Forum: Other Tools
Topic: Common Lisp to Scheme
Replies: 3
Views: 10671

Common Lisp to Scheme

Hi,

is there a Common Lisp -> Scheme translator?
by imba
Fri Nov 26, 2010 11:33 am
Forum: Common Lisp
Topic: general backtracking algorithm in Lisp
Replies: 11
Views: 9473

Re: general backtracking algorithm in Lisp

I implemented it as follows: (backtrack foo ... (if (foo (when (bar (baz)) (loop for continuation in (create-continuations) as Continuation = (backtrack )) collecting Continuation))) But I only want to collect those Continuations which aren't NIL. How do I implement this (without removing NIL only a...
by imba
Fri Nov 26, 2010 11:08 am
Forum: Common Lisp
Topic: pprint doesn't work with LispWorks
Replies: 2
Views: 1246

pprint doesn't work with LispWorks

Hi,

Code: Select all

(pprint '(1 2 (4 5) 3))
doesn't produce

Code: Select all

(1 2
  (4 5)
3),

but (1 2 (4 5) 3)
With LispWorks Windows. What am I doing wrong?
by imba
Fri Nov 26, 2010 10:47 am
Forum: Common Lisp
Topic: collecting *unique* in loop
Replies: 8
Views: 3346

Re: collecting *unique* in loop

Thank you very much! So what is faster: remove-duplicates or Warren Wilkinson's approach?