Re: Need help to find a bug in a genetic algorithm

2012-03-26 Thread Stefan Kamphausen
Hi, > For my little project I wanted to reprogramm the gentic algorithm from > the book "Clojure" written by Stefan Kamphausen and Tim Oliver Kaiser. quickly glancing at the code, it looks like a valid translation into English. Did you try to tune number-of-domiciles? Depending on your machi

Re: Clojure cheatsheet with tooltips (alpha)

2012-03-26 Thread Andy Fingerhut
I've replaced this test page [1] with another one. The one I posted on March 24 has been overwritten. The version at [2] that does not use JavaScript, but only the title attribute on anchors, is still there as it was yesterday. [1] http://homepage.mac.com/jafingerhut/files/cheatsheet-clj-1.3.

Re: Alternate set literal syntax?

2012-03-26 Thread Ambrose Bonnaire-Sergeant
On Mon, Mar 26, 2012 at 2:35 PM, Cedric Greevey wrote: > > I don't agree, and furthermore I consider responding to someone's > reasoned debate with an accusation that they in any way failed to > comprehend something to be insulting and rude. The onus is on you to > communicate clearly. If you say

Re: Clojure cheatsheet with tooltips (alpha)

2012-03-26 Thread mnicky
Seems that the text of cl-format overflows the right edge of the tooltip: http://i.imgur.com/B0ljt.png (tested in FF, Opera, Chrome) On Monday, March 26, 2012 11:12:50 AM UTC+2, Andy Fingerhut wrote: > > I've replaced this test page [1] with another one. The one I posted on > March 24 has been

Re: [OT] Any other italian Clojure users?

2012-03-26 Thread Pierpaolo Bernardi
On Thu, Mar 22, 2012 at 10:21, Marco Dalla Stella wrote: > Hi, > > I just want to know if there are any other italian Clojure users in > the ml, maybe for open an Italian Clojure User Group and organize some > meetings... Hi, I'm not doing much clojure nowadays, but count me in. Ciao P. -- Yo

Re: Alternate set literal syntax?

2012-03-26 Thread László Török
> > The only redundant syntax in that list #^{} vs. ^{}. A wart in the > language, but a clear improvement nonetheless. Thankfully Clojure is very > conservative with breaking changes. > > All others serve a purpose, no matter how minor. > > How is this proposal (on *any* alternative set syntax) di

Re: Alternate set literal syntax?

2012-03-26 Thread Cedric Greevey
On Mon, Mar 26, 2012 at 5:29 AM, Ambrose Bonnaire-Sergeant wrote: > I will continue the debate with more class. Thank you. >>> Isn't this just another way of saying "humans will have to read to the >>> end to see what the form is?" > > No, this is a way of saying the {{}} proposal is very unlike

can Clojure 1.3 code always be made as fast as Java for numeric computations?

2012-03-26 Thread Sergey Didenko
Hi, I believe I've heard claims that nothing stops Clojure 1.3 code to be made very close to Java in terms of execution speed. However when trying to match the speed of ad-hoc Heapsort implementation I have faced essential obstacles. Setting type hints and coercions was quite easy. A bit harder

Re: [OT] Any other italian Clojure users?

2012-03-26 Thread Roberto Mannai
Hi Marco, here another "user" (really a student), although I'm out-of-sync with Clojure since a couple of months. Why do not create also an Italian Clojure Linkedin group? Ciao, Roberto On Thu, Mar 22, 2012 at 10:21 AM, Marco Dalla Stella < m.dallaste...@gmail.com> wrote: > Hi, > > I just want

Re: [OT] Any other italian Clojure users?

2012-03-26 Thread Marco Abis
Ok, I think it's better to leave this list alone, join http://groups.google.com/group/clojure-italy/ is you are interested :-) Marco On Mon, Mar 26, 2012 at 12:05 PM, Roberto Mannai wrote: > Hi Marco, > > here another "user" (really a student), although I'm out-of-sync with > Clojure since a cou

Re: can Clojure 1.3 code always be made as fast as Java for numeric computations?

2012-03-26 Thread David Nolen
I suggest examining the examples in test.benchmark to see how Java numeric performance can be attained, http://github.com/clojure/test.benchmark On Monday, March 26, 2012, Sergey Didenko wrote: > Hi, > > I believe I've heard claims that nothing stops Clojure 1.3 code to be > made very close to Ja

Re: GSOC Idea: Interactive documentation with autodoc

2012-03-26 Thread David Nolen
Zack, Having examples in the Clojure source has come up before and it's probably not going to happen. Also the repl-y project that is now integrated into lein 2 has this functionality. However I think you're on an interesting track as far as how Mathematica works. I don't think anyone has tackled

Re: GSoC: Browser-based Clojure(Script) editor

2012-03-26 Thread David Nolen
Martin, This sounds like a fantastic idea, and as Zack said very Mathematica like. We have ClojureScript so building a very powerful cross-platform graphical environment is very much in reach. It also seems that WebKit can integrate easily with Java applications? While building a simple Bret Vict

Re: GSOC Idea: Interactive documentation with autodoc

2012-03-26 Thread Colin Jones
One thing missing from reply's clojuredocs integration is the ability to have a local cache of the examples. Currently, we're just making an API call every time (using the clojuredocs-client library), which is great for getting off the ground and for having the latest examples, but not so great for

Re: GSoC: Browser-based Clojure(Script) editor

2012-03-26 Thread kovas boguta
I've been working on this, and related permutations, for a few months. My thoughts on this (from a month ago) are at http://groups.google.com/group/clojure-tools/browse_thread/thread/f0ef25f5489b4554?pli=1 along with some commentary by others on related tools. Will try to get something sensible o

Re: can Clojure 1.3 code always be made as fast as Java for numeric computations?

2012-03-26 Thread Daniel Solano Gomez
Hello, Having given a talk on precisely this topic at Clojure/West, I may be able to give you a couple of hints and explanations. You can find the slides at , and I am planning o

Re: GSoC: Browser-based Clojure(Script) editor

2012-03-26 Thread David Nolen
BTW, Julia lang is doing some interesting stuff along these lines: http://julialang.org/ On Mon, Mar 26, 2012 at 1:09 PM, kovas boguta wrote: > I've been working on this, and related permutations, for a few months. > My thoughts on this (from a month ago) are at > > http://groups.google.com/grou

Re: GSOC Idea: Interactive documentation with autodoc

2012-03-26 Thread Zack Maril
Here's one way of going about getting the bare bones for examples: Simple examples with autodoc: http://clojure-examples.herokuapp.com/clojure.core-api.html#clojure.core/+ The changes to autodoc required to make this happen: https://github.com/zmaril/autodoc/commit/4cb3d7aa1079f0859b129469ea1163e

Re: Alternate set literal syntax?

2012-03-26 Thread Herwig Hochleitner
So to summarize: You suggest to a) Break expressions like (comp <{:k1 5 :k2 6}) or {{:foo 5} 4} which are legal and therefore used in production; when challenged you propose additional workarounds that take a whole page to even informally describe b) Introduce the completely new notational conven

Re: GSOC Idea: Interactive documentation with autodoc

2012-03-26 Thread Daniel Solano Gomez
On Mon Mar 26 16:11 2012, Zack Maril wrote: > Here's one way of going about getting the bare bones for examples: > > Simple examples with autodoc: > http://clojure-examples.herokuapp.com/clojure.core-api.html#clojure.core/+ > > The changes to autodoc required to make this happen: > https://github

Re: can Clojure 1.3 code always be made as fast as Java for numeric computations?

2012-03-26 Thread Sergey Didenko
Thank you for pointers! I will dig further. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsu

Re: Clojure cheatsheet with tooltips (alpha)

2012-03-26 Thread Andy Fingerhut
Yeah, it was cl-format and many others that were doing that. I've fixed it via a quick method. Every doc string line that was over 80 characters is now wrapped, by itself, without attempting to detect or reflow entire paragraphs. Andy On Mar 26, 2012, at 2:35 AM, mnicky wrote: > Seems that t

Re: Clojure cheatsheet with tooltips (alpha)

2012-03-26 Thread Devin Walters
This is slightly off-topic, but I wanted to discuss the structure of the cheatsheet. I would like to turn the cheatsheet into a more queryable document than it currently is and allow for it to be a dependency via clojars. cheatsheet-structure has a lot of the display logic for various output

Re: core.logic program doesn't terminate

2012-03-26 Thread Reid Draper
On Sunday, March 25, 2012 11:07:33 PM UTC-4, David Nolen wrote: > > I'll try to take a closer look soon - but first, did you try unifying c > earlier? You have to be careful with recursive goals and fresh vars. This probably just shows my naivety, but what do you mean unifying c earlier? The

Re: core.logic program doesn't terminate

2012-03-26 Thread Jack Moffitt
> This probably just shows my naivety,  but what do you mean unifying c > earlier? The order of forms in a `run` clause don't matter, right? There's an explanation of it in the talk that Friedman and Byrd gave at the Conj: http://blip.tv/clojure/dan-friedman-and-william-byrd-minikanren-5936333 ja

Re: Clojure cheatsheet with tooltips (alpha)

2012-03-26 Thread mnicky
just the first idea that came into my mind: maybe with something like RDF schema? On Monday, March 26, 2012 8:47:54 PM UTC+2, Devin Walters (devn) wrote: > > This is slightly off-topic, but I wanted to discuss the structure of the > cheatsheet. > > I would like to turn the cheatsheet into a mo

Re: core.logic program doesn't terminate

2012-03-26 Thread David Nolen
On Mon, Mar 26, 2012 at 2:49 PM, Reid Draper wrote: > > > On Sunday, March 25, 2012 11:07:33 PM UTC-4, David Nolen wrote: >> >> I'll try to take a closer look soon - but first, did you try unifying c >> earlier? You have to be careful with recursive goals and fresh vars. > > This probably just sh

Re: Clojure cheatsheet with tooltips (alpha)

2012-03-26 Thread Andy Fingerhut
It might be straightforward to write a bit of Clojure code that takes the first structure and transforms it into the second. Discarding information you don't want is usually easier than adding information that isn't there. Strings could be manipulated to remove characters that are illegal in ke

Re: can Clojure 1.3 code always be made as fast as Java for numeric computations?

2012-03-26 Thread Cedric Greevey
> What you're running into is the overhead of get the root value of vars > like swap! and move-up!.  The only way to avoid this is use something > like definline. I thought that in 1.3 those had been made much faster to access if they didn't have ^{:dynamic true} applied to them? -- You received

Re: Alternate set literal syntax?

2012-03-26 Thread Devin Walters
Agree with Herwig 100%. This conversation has been interesting to me only insofar as I've discovered *more* problems with the initial proposal than I think I would have found by myself. '(Devin Walters) On Monday, March 26, 2012 at 1:12 PM, Herwig Hochleitner wrote: > So to summarize: > > Yo

Re: Clojure cheatsheet with tooltips (alpha)

2012-03-26 Thread Devin Walters
Ah, I was thinking the reverse: (clojure.string/split (name :foo->bar) #"->") But yes, you might be right. I guess the only thing I'd say is that the structure as it currently exists is sort of a bear. It just "feels" too big, like there's a more modular solution, but maybe it's not necessary?

Re: Alternate set literal syntax?

2012-03-26 Thread Cedric Greevey
On Mon, Mar 26, 2012 at 2:12 PM, Herwig Hochleitner wrote: > So to summarize: > > You suggest to > > a) Break expressions like (comp <{:k1 5 :k2 6}) or {{:foo 5} 4} which > are legal and therefore used in production; No. The first suggestion does not break {{:foo 5} 4}, which should have been cle

Re: Alternate set literal syntax?

2012-03-26 Thread Cedric Greevey
On Mon, Mar 26, 2012 at 3:22 PM, Devin Walters wrote: > Agree with Herwig 100%. That's rather odd, seeing as how Herwig didn't even participate in any reasoned debate in this thread; instead, he just threw a drive-by flame at me out of the blue and without provocation. > This conversation has be

Re: Alternate set literal syntax?

2012-03-26 Thread Laurent PETIT
To all, please: - either the topic doesn't interest you, and then let the thread die by not answering to it. - either you want to participate, and then answer questions, ask new ones, period. Piece to all, Laurent Le 26 mars 2012 à 21:34, Cedric Greevey a écrit : > On Mon, Mar 26, 2012 at 3

I want leiningen not to download from remote repos (clojars, central,..)

2012-03-26 Thread diepeglo
Hi I don't want leiningen to download jars from remote repositories as I have all jars in .m2 local repo already from older sessions so there is no need for leiningen to download them. The build process fails (no network) and it takes years ... *Downloading: org/apache/log4j/1.2.4/log4j-1.2.4.

Using the Clojure Logo

2012-03-26 Thread Marco Dalla Stella
Hi, We would like to use the Clojure logo for our new Italian Clojure User Group. Can we have the permission to use a modified version like the one attached? If not, we will use the standard Clojure logo (if permitted). TIA, -- Marco Dalla Stella web: http://thediracsea.org twitter: http://twitt

ClojureScript One: clojure-jack-in fails with "error in process filter" Symbol's value as variable is void: Type"

2012-03-26 Thread Tom Krestle
Hi folks, "clojure-jack-in" works quite well for regular clojure projects for me. I'm having hard time trying to figure out how to fix it for ClojureScript One project. Looking at *swank* buffer it looks like some random text is being inserted and attempted to evaluate as elisp and that causes

Re: [OT] Any other italian Clojure users?

2012-03-26 Thread Marco Dalla Stella
Ok, nice to see some other italians here! :) What about to make a LinkedIn/Google Group and a common twitter account? Maybe we could spread Clojure on Italian programming culture... Il 22 marzo 2012 10:21, Marco Dalla Stella ha scritto: > Hi, > > I just want to know if there are any other italia

Re: Need help to find a bug in a genetic algorithm

2012-03-26 Thread Marcus Lindner
Thanks for the answer. Yes, the number of domicles was the problem. When I use one or two domiciles the population remains relativ stable. If I use 3 or more, then the population is increasing. Is it a good idea to add some helpers for the grimreaper if the population grows too fast? Marcus 20

Re: can Clojure 1.3 code always be made as fast as Java for numeric computations?

2012-03-26 Thread Daniel Solano Gomez
On Mon Mar 26 15:15 2012, Cedric Greevey wrote: > > What you're running into is the overhead of get the root value of vars > > like swap! and move-up!.  The only way to avoid this is use something > > like definline. > > I thought that in 1.3 those had been made much faster to access if > they did

Re: New(er) Clojure cheatsheet hot off the presses

2012-03-26 Thread Pierre Mariani
On Saturday, March 24, 2012 11:59:49 PM UTC-7, Andy Fingerhut wrote: > > I've tried again using links with doc strings as the values of the title > attribute, but when the text in Firefox 11.0 it does not honor the line > breaks in my text, but reflows it. Try it out yourself at [1]: > > [1]

newb question about idioms, and meta: where should i ask noob questions?

2012-03-26 Thread Dustin Getz
first a quesiton about idiomatic code: ;; provided by book Fogus & Houser, Joy of Clojure (defn index [coll] (cond (map? coll) (seq coll) (set? coll) (map vector coll coll) :else (map vector (iterate inc 0) coll))) ;; book gives this as idiomatic code (defn pos [needle coll] (for

Re: [OT] Any other italian Clojure users?

2012-03-26 Thread Devin Walters
I've had good luck with meetup.com for organizing meetings. IIRC they had a discount specifically for clojure meetup groups once upon a time that would make it $17/year instead of the typical $80 fee. I would email their support staff and ask if that promotion is still available. Cheers, '(Dev

ANN: Google Summer of Code 2012 Student Applications Start Today

2012-03-26 Thread David Nolen
http://www.google-melange.com/gsoc/homepage/google/gsoc2012 If you had submitted a proposal via Confluence or here on the mailing list please submit now using the real form so we have you in the system. Thanks! David -- You received this message because you are subscribed to the Google Groups "

Re: Clojure meetups near Zürich

2012-03-26 Thread Devin Walters
I posted this in another thread, but my advice is to just go ahead and start one up. Worst case: You wind up with some extra time every month to sit and read or hack on Clojure. I used meetup.com, but you can use whatever locals use to advertise user groups. 2c, '(Devin Walters) On Friday,

Re: Clojure cheatsheet with tooltips (alpha)

2012-03-26 Thread Rostislav Svoboda
> if there are any strong feelings about how to make the cheatsheet more of a > modular, queryable structure than it currently is. The key question is "Why do we need a cheatsheet"? Well, the learning curve is steep. I.e. there are things like [1] quite many functions and [2] they are hard to rem

Re: core.logic program doesn't terminate

2012-03-26 Thread Reid Draper
Moving the unification of `c` to the top of the run form worked, thanks. Any thoughts on these questions, from the bottom of the gist: 1. How can I make the list of ingredients and cocktail names a set instead of a list (or at least a unique list)? 2. Is there a better way to describe the problem

Re: Clojure cheatsheet with tooltips (alpha)

2012-03-26 Thread Devin Walters
This is basically exactly what I've been thinking about. I was going to get the cheatsheet into a place where I could use it easily so I could ask: (sente [1 2 3]) Since [1 2 3] is a clojure.lang.PersistentVector, we could return functions that operate specifically on that type. But the idea

Re: core.logic program doesn't terminate

2012-03-26 Thread David Nolen
On Mon, Mar 26, 2012 at 5:10 PM, Reid Draper wrote: > Moving the unification of `c` to the top of the run form worked, thanks. > Any thoughts on these questions, from the bottom of the gist: > > 1. How can I make the list of ingredients and cocktail names a set > instead of a list (or at least a

Re: clojure-scheme - Compiling Clojure to Scheme to C

2012-03-26 Thread Devin Walters
I've been itching to try this out. I pulled down the repo, grabbed gambit-scheme, and started to look around, but I'm a little lost as to how I can get it working. Could you provide the magic required to make one pass from cljs to scm to c? I would be happy to contribute to the project, but I'm

Re: New(er) Clojure cheatsheet hot off the presses

2012-03-26 Thread Andy Fingerhut
Welcome, Pierre. Thanks for the info. My current thinking is to start publishing on clojure.org two, or maybe even three versions of the cheatsheet: (1) no tooltips, just like the one published now, in case people find them annoying: http://clojure.org/cheatsheet (2) tooltips with the tit

Re: Clojure cheatsheet with tooltips (alpha)

2012-03-26 Thread Rostislav Svoboda
> It's certainly a non-trivial problem To solve this problem would mean 'to make computer think'. That's why I only mentioned 'frequently used patterns'. But it would be a great tool to help learn clojure. -- You received this message because you are subscribed to the Google Groups "Clojure" gro

Re: core.logic program doesn't terminate

2012-03-26 Thread Reid Draper
On Monday, March 26, 2012 5:19:30 PM UTC-4, David Nolen wrote: > > On Mon, Mar 26, 2012 at 5:10 PM, Reid Draper wrote: > >> Moving the unification of `c` to the top of the run form worked, thanks. >> Any thoughts on these questions, from the bottom of the gist: >> >> 1. How can I make the list o

Re: I want leiningen not to download from remote repos (clojars, central,..)

2012-03-26 Thread Phil Hagelberg
diepeglo writes: > I don't want leiningen to download jars from remote repositories as I > have all jars in .m2 local repo already from older sessions so there > is no need for leiningen to download them. The build process fails > (no network) and it takes years ... The only case where Leiningen

Re: core.logic program doesn't terminate

2012-03-26 Thread David Nolen
On Mon, Mar 26, 2012 at 5:32 PM, Reid Draper wrote: > I'm sure there are other solutions - but the beauty of miniKanren is how >> easily you can switch between paradigms at your convenience. >> > Does cKanren share this property? > cKanren is miniKanren with extensions. So yes. David -- You r

Re: Clojure cheatsheet with tooltips (alpha)

2012-03-26 Thread Devin Walters
I have a repo called sente that is largely a blank slate. Would you be interested in collaborating on this? If so let me know your github username and ill add you to the project. Cheers, '(Devin Walters) On Mar 26, 2012, at 4:31 PM, Rostislav Svoboda wrote: >> It's certainly a non-trivial pr

Re: Clojure cheatsheet with tooltips (alpha)

2012-03-26 Thread Rostislav Svoboda
> I have a repo called sente that is largely a blank slate. Would you be > interested in collaborating on this? Yes I'm *definitely* interested but I doubt I'd gonna be much useful for you. > If so let me know your github username and ill add you to the project. Thank you but I think it brings

Re: newb question about idioms, and meta: where should i ask noob questions?

2012-03-26 Thread Michael Klishin
Dustin Getz: > meta question: where is the best place to ask noob questions like this, and > also more long-form discussion questions? stackoverflow frowns on questions > like this. i could slam in a couple of these a day, that doesn't seem > appropriate here. Just ask them here. This is what

Re: newb question about idioms, and meta: where should i ask noob questions?

2012-03-26 Thread Caleb
In this case the for gives you the destructuring, plus the ability to do filtering (:when) and mapping (yeilding the value of i) in one expression. So you have one destructured binding that you can use for both purposes. If you want to use filter, I think it is probably more idiomatic to follow