Re: Genetic Algorithm in Clojure

2018-03-21 Thread Donato Cafarelli
Thank you! I'm using IntelliJ Idea to develop my Clojure code. How can I implement the Clojush library? Il giorno mercoledì 21 marzo 2018 08:58:09 UTC+1, Boris V. Schmid ha scritto: > > This is one of the most active genetic programming systems libraries in > clojure https://github.com/lspector

Re: How to Programmatically Create Unqualified Keywords?

2018-03-21 Thread Mauricio Aldazosa
On Wed, Mar 21, 2018 at 7:48 AM, Nick Mudge wrote: > I see what you mean. All keywords are namespaced, so there really is no > such thing as a no-namespaced keyword. Thank you. > You can have keywords without a namespace: user> (clojure-version) 1.9.0 user> (keyword "bar" "foo") :bar/foo user>

Re: How to Programmatically Create Unqualified Keywords?

2018-03-21 Thread Matteo Moci
Don't know about older clojure versions, but running your code in the 1.9 repl I got this: $ clj Clojure 1.9.0 user=> (keyword (str "something" "-empty")) :something-empty On Wed, Mar 21, 2018 at 2:15 PM, Nick Mudge wrote: > I want to programmatically create some keywords without namespaces? O

Re: How to Programmatically Create Unqualified Keywords?

2018-03-21 Thread Nick Mudge
I see what you mean. All keywords are namespaced, so there really is no such thing as a no-namespaced keyword. Thank you. On Wednesday, March 21, 2018 at 6:32:53 AM UTC-7, Alex Miller wrote: > > I believe you are mistaken as the keyword function will create > :something-empty in this case. > >

Re: How to Programmatically Create Unqualified Keywords?

2018-03-21 Thread Nick Mudge
Hi Alex, Yes, you are right. I was mistaken. The "keyword" function does produce what I want. I didn't realized that in my code I was actually doing this: (keyword (str ":something" "-empty")) The colon in front of "something" was making me make a namespaced keyword. Removing the colon fixe

Re: How to Programmatically Create Unqualified Keywords?

2018-03-21 Thread Alex Miller
I believe you are mistaken as the keyword function will create :something-empty in this case. ::something-empty is really a reader syntax for :user/something-empty btw (where user is your current namespace), so it's not even possible to "create" a keyword like ::something-empty. On Wednesday,

How to Programmatically Create Unqualified Keywords?

2018-03-21 Thread Nick Mudge
I want to programmatically create some keywords without namespaces? Or are we not supposed to do that? I can't use the "keyword" function because that only creates keywords with a namespace. For example doing this: (keyword (str "something" "-empty")) Creates this: ::something-empty But I

Re: Genetic Algorithm in Clojure

2018-03-21 Thread Boris V. Schmid
This is one of the most active genetic programming systems libraries in clojure https://github.com/lspector/Clojush But for an assignment, I would go with http://gigasquidsoftware.com/blog/2016/07/18/genetic-programming-with-clojure-dot-spec/ On Tuesday, March 20, 2018 at 11:17:49 AM UTC+1, Do