Search found 538 matches
- Thu Oct 05, 2017 8:03 pm
- Forum: Homework
- Topic: Lisp Propositional resolution : Implement a theorem in Lisp
- Replies: 1
- Views: 18613
Re: Lisp Propositional resolution : Implement a theorem in L
Please clarify your question. What exactly are you doing? Where are you getting stuck?
- Wed Oct 04, 2017 7:40 pm
- Forum: Common Lisp
- Topic: Pick and remove
- Replies: 6
- Views: 17564
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...
- Sat Sep 30, 2017 6:39 am
- Forum: Homework
- Topic: loop through forms in a macro
- Replies: 3
- Views: 21384
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 expans...
- Wed Mar 29, 2017 6:07 pm
- Forum: Common Lisp
- Topic: Functional Programming vs. Unnecessary Consing
- Replies: 4
- Views: 14743
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...
- Sat Mar 18, 2017 8:52 pm
- Forum: Homework
- Topic: Exercise from Grahams "Ansi Common Lisp"
- Replies: 3
- Views: 22195
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.
...
...
- Sun Mar 12, 2017 9:38 am
- Forum: Other Dialects
- Topic: Selection of blocks using two attribute values and then sum
- Replies: 1
- Views: 25658
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.
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.
- Mon Feb 06, 2017 8:48 pm
- Forum: Common Lisp
- Topic: Reference a variable
- Replies: 3
- Views: 11158
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.
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.
- Fri Sep 23, 2016 11:33 pm
- Forum: The Lounge
- Topic: LISP Machine Virtual Machine?
- Replies: 2
- Views: 21832
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.
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.
- Tue Sep 13, 2016 8:33 pm
- Forum: Other Dialects
- Topic: agi
- Replies: 5
- Views: 29319
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/...
- Tue Sep 06, 2016 8:56 pm
- Forum: Common Lisp
- Topic: Reference list of lisp symbols and commands
- Replies: 2
- Views: 8283
Re: Reference list of lisp symbols and commands
Hi,
Is the CLQR what you are looking for?
http://clqr.boundp.org/
The CLHS and CLTL2 are the full references.
http://www.lispworks.com/documentation/common-lisp.html
https://www.cs.cmu.edu/Groups/AI/html/cltl/cltl2.html
Is the CLQR what you are looking for?
http://clqr.boundp.org/
The CLHS and CLTL2 are the full references.
http://www.lispworks.com/documentation/common-lisp.html
https://www.cs.cmu.edu/Groups/AI/html/cltl/cltl2.html