Search found 538 matches

by nuntius
Thu Oct 05, 2017 8:03 pm
Forum: Homework
Topic: Lisp Propositional resolution : Implement a theorem in Lisp
Replies: 1
Views: 4106

Re: Lisp Propositional resolution : Implement a theorem in L

Please clarify your question. What exactly are you doing? Where are you getting stuck?
by nuntius
Wed Oct 04, 2017 7:40 pm
Forum: Common Lisp
Topic: Pick and remove
Replies: 6
Views: 8153

Re: Pick and remove

This is a spot where recursion shines. You can treat the list as immutable, and creating a new list is fairly cheap since a traversal is required anyway. So the caller gets the value and a new list, instead of destructively modifying the original list. Unfortunately, this gets a little buried in the...
by nuntius
Sat Sep 30, 2017 6:39 am
Forum: Homework
Topic: loop through forms in a macro
Replies: 3
Views: 4519

Re: loop through forms in a macro

A couple tips when working on macros: First, print out the expansion, either using macroexpand or by injecting print statements into the body. Second, try splitting the macro into a "syntax wrapper" that calls a normal function to manipulate the form. This helps with visibility into expansion and ma...
by nuntius
Wed Mar 29, 2017 6:07 pm
Forum: Common Lisp
Topic: Functional Programming vs. Unnecessary Consing
Replies: 4
Views: 7955

Re: Functional Programming vs. Unnecessary Consing

Style purists have little place in CL. CL is often touted as an "any paradigm" language. Some other languages are more "helpful" for writing purely functional code. You mostly avoid consing in performance-critical code. You mostly avoid mutation in multi-threaded code. Both areas are somewhat advanc...
by nuntius
Sat Mar 18, 2017 8:52 pm
Forum: Homework
Topic: Exercise from Grahams "Ansi Common Lisp"
Replies: 3
Views: 5495

Re: Exercise from Grahams "Ansi Common Lisp"

In Common Lisp, NIL is an empty list, every list ends in NIL, and an empty list is NIL. '() is NIL, (CAR NIL) is NIL, (CDR NIL) is NIL, and (LISTP NIL) is T.

...
by nuntius
Sun Mar 12, 2017 9:38 am
Forum: Other Dialects
Topic: Selection of blocks using two attribute values and then sum
Replies: 1
Views: 8797

Re: Selection of blocks using two attribute values and then

Hi,

This looks like AutoLISP code, not generic Common Lisp. Many (most?) Common Lisp users don't know AutoCAD.
You might get better results asking on an AutoLISP Forum.
by nuntius
Mon Feb 06, 2017 8:48 pm
Forum: Common Lisp
Topic: Reference a variable
Replies: 3
Views: 5926

Re: Reference a variable

Hi,

There are multiple ways to do this.

A simple way is to use READ and EVAL.

A more specialized way is to use INTERN and SYMBOL-VALUE.
by nuntius
Fri Sep 23, 2016 11:33 pm
Forum: The Lounge
Topic: LISP Machine Virtual Machine?
Replies: 2
Views: 5973

Re: LISP Machine Virtual Machine?

I haven't tried it, but there appears to be a new platform for running Open Genera.

http://www.loomcom.com/genera/genera-install.html

Given the instructions, its probably best to try this inside a VM, even if Linux is your native OS.
by nuntius
Tue Sep 13, 2016 8:33 pm
Forum: Other Dialects
Topic: agi
Replies: 5
Views: 10034

Re: agi

Hi, I'm not aware of any current artificial general intelligence toolchains written in Lisp. Most machine learning approaches these days, so called "deep learning", are numerically intensive. Thus I expect those engines to be written with the tools that currently dominate numeric tasks (C/C++, Fortr...