Lisp HUG Maillist Archive

Some newbie questions about LISP

Hello guys, I'm absoloutely new to LISP language, and to this user
group, but I really wanna learn, so here's my question:
- Is there any way of treating numbers in a bit-level? (binary AND and
OR operators, bit shifting operators, anything!)

I'm just trying to code a genetic algorithm in LISP, but my teacher
wants me to do "binary coding" to the values.
(Also if there's any LISP Genetic Algorithm code you've seen around, tell me)

Thanks!


Re: Some newbie questions about LISP

On Tue, 19 Jul 2005 11:50:23 -0400, Carlos Bruguera <cbruguera@gmail.com> wrote:

> Hello guys, I'm absoloutely new to LISP language, and to this user
> group, but I really wanna learn, so here's my question: - Is there
> any way of treating numbers in a bit-level? (binary AND and OR
> operators, bit shifting operators, anything!)

See here

  <http://www.lispworks.com/documentation/HyperSpec/Body/c_number.htm>,

specifically ASH and the entries from BOOLE to MASK-FIELD, and here

  <http://www.lispworks.com/documentation/HyperSpec/Body/c_arrays.htm>

for bit arrays and vectors.

Cheers,
Edi.


Re: Some newbie questions about LISP

Thank you very much Edi


Re: Some newbie questions about LISP


On Jul 19, 2005, at Tue, Jul 19, 11:50 23 AM, Carlos Bruguera wrote:

(Also if there's any LISP Genetic Algorithm code you've seen around, tell me)


<http://www.aic.nrl.navy.mil/galist/src/#lisp>

<http://www-2.cs.cmu.edu/afs/cs/project/ai-repository/ai/areas/genetic/ga/systems/0.html>

<http://www-2.cs.cmu.edu/afs/cs/project/ai-repository/ai/areas/genetic/gp/systems/koza/koza_gp.cl>
and a patch for it:
<http://www-2.cs.cmu.edu/afs/cs/project/ai-repository/ai/areas/genetic/gp/systems/koza/patch.gz>

As usual, google is your friend here. All of these I originally found with a simple web search like:

lisp genetic algorithms


regards,

Ralph

Raffael Cavallaro, Ph.D.
raffaelcavallaro@mac.com

Updated at: 2020-12-10 08:51 UTC