Search found 12 matches

by Domus123
Mon Apr 11, 2016 5:26 pm
Forum: Common Lisp
Topic: Genetic algorithms
Replies: 5
Views: 6810

Re: Genetic algorithms

sylwester wrote:You can randomize it with sort:

Code: Select all

(defparameter *lst* (list a b c d)) ; list of the elements
(setf *lst* 
  (sort *lst* 
        (lambda (&rest lst) 
          (< 0.5 (random 1.0)))))

That code seems work,but how exactly that work?
by Domus123
Wed Apr 06, 2016 5:53 pm
Forum: Common Lisp
Topic: Genetic algorithms
Replies: 5
Views: 6810

Genetic algorithms

Hey guys, i'm learning a bit of IA and i want to make a traveling salesman problem using GA . So i have a doubt , i have some points pre-defined ex: (defvar a '(23 20)) (defvar b '(10 30)) (defvar c '(0 45)) (defvar d '(43 0)) How can i randomly create a list that contain all of it elements only one...
by Domus123
Tue Mar 08, 2016 6:57 pm
Forum: Scheme
Topic: Help with packages
Replies: 0
Views: 4269

Help with packages

Hello guys , so , there's any package to manage emails (get who send , send email ...) for racket?
Is there any other good package for cloud programming and encryption?

Thank you guys !
by Domus123
Wed Nov 04, 2015 6:21 pm
Forum: Books and Resources
Topic: Peter Norvig book
Replies: 0
Views: 6834

Peter Norvig book

Does anyone recommend peter norvig book about IA in common Lisp?Some people saythat is the best book ever made for programming . So , any comments?
by Domus123
Mon Oct 26, 2015 3:33 pm
Forum: Emacs Lisp
Topic: Regular expressions on emac lisp
Replies: 1
Views: 7083

Regular expressions on emac lisp

Hey guys,my college teacher asked me to study and teach him about regular expressions in emac Lisp,can someone tell me a good documentation to follow ?
by Domus123
Sun Oct 25, 2015 6:41 am
Forum: Common Lisp
Topic: With-open-file macro problem
Replies: 6
Views: 8514

Re: With-open-file macro problem

One more question,when i write :

Code: Select all

(defun save-data()
   (with-open-file (stream "deseases.dat" :direction :output)
      (format stream "~S" glob)))
What i have to do to overwrite the deseases.dat file instead of creating a new one ?
by Domus123
Sun Oct 25, 2015 6:08 am
Forum: Common Lisp
Topic: With-open-file macro problem
Replies: 6
Views: 8514

Re: With-open-file macro problem

Thank you my friend,that work !! Thank you a lot !
by Domus123
Sat Oct 24, 2015 6:10 pm
Forum: Common Lisp
Topic: With-open-file macro problem
Replies: 6
Views: 8514

Re: With-open-file macro problem

It not return error . I just did

Code: Select all

(defvar glob nil)
And then,after (get-data) setf dont add the data value to the global variable glob.When i call the get-data function it read the file but dont associate the file value to the variable
by Domus123
Sat Oct 24, 2015 10:17 am
Forum: Common Lisp
Topic: With-open-file macro problem
Replies: 6
Views: 8514

With-open-file macro problem

Hello guys,i have this question . I have created a code to manipulate some list saved in a global variable . But now,i want that global to get the value of some data "deseases.dat" and then use this on the others functions that i have created. (defun get-data() (with-open-file (stream "deseases.dat"...
by Domus123
Wed Oct 07, 2015 9:38 am
Forum: Common Lisp
Topic: Function that found matchs in nested Lisp
Replies: 4
Views: 5417

Re: Function that found matchs in nested Lisp

Thank you !! That help me a lot !!