Re: Help me improve and/or simplify this code

2012-02-22 Thread Meikel Brandmeyer (kotarak)
Salut Laurent, yes. That's probably even better. Meikel -- 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

Re: Help me improve and/or simplify this code

2012-02-22 Thread Meikel Brandmeyer (kotarak)
Salut Laurent, that's a good remark. Collecting and exporting of constants were conflated in the previous version. So I added another API call: exported-constants. Usually this are just the ones collected from the child nodes. But for ::fn it's always empty. ; From your other mail (defn proces

Re: Help me improve and/or simplify this code

2012-02-22 Thread Cedric Greevey
If I may venture an opinion here: aren't some people over-thinking and maybe even gold-plating this? My own version is succinct, and moreover when the requirements were changed/clarified it required only changing a single "constants" to "[]" in a single spot in a single line of code to adjust it.

Re: Help me improve and/or simplify this code

2012-02-22 Thread Laurent PETIT
2012/2/22 Cedric Greevey > If I may venture an opinion here: aren't some people over-thinking and > maybe even gold-plating this? My own version is succinct, and moreover > when the requirements were changed/clarified it required only changing > a single "constants" to "[]" in a single spot in a

Re: clj-webdriver: Clojure API for Selenium-WebDriver

2012-02-22 Thread Tavis Rudd
Daniel, Thanks again for the effort you've put into documentation and release communication. It's first rate. Tavis -- 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

Re: Lack in the documentation

2012-02-22 Thread John Gabriele
On Feb 20, 3:05 pm, Sean Corfield wrote: > On Mon, Feb 20, 2012 at 1:48 AM, Sergey Didenko > > wrote: > > It looks like our community already has a lot of articles, tutorials, > > gists, but they are just not very reachable to beginners. > > > > May be what we really need is a meta site or artic

clojure thesis opportunity

2012-02-22 Thread Paolo Negri
Dear list, In the company where I work [1] we have an opening for a thesis project involving clojure, I’m posting the abstract proposal on this list since some reader might be interested. Here’s some information about the thesis Games configurations are structured collections of connected data r

Re: mcache 0.1.0 released

2012-02-22 Thread DHM
On Feb 21, 5:58 am, Jim Crossley wrote: > DHM writes: > > I want to announce the release of mcache 0.1.0: > >https://github.com/davidhmartin/mcache > > Very nice. One thing you might consider is implementing > core.cache/CacheProtocol [1] in terms of mcache. I've done this [2] for > the Infinispa

Re: mcache 0.1.0 released

2012-02-22 Thread David Martin
I had looked at that but it wouldn't be a good candidate for forking in this case, because the approaches are different. Clojure-memcached talks to the low-level memcached api via socket connections, whereas mcache uses the spymemcached Java library via java interop. -Dave On Mon, Feb 20, 2012

Re: ClojureScript for form

2012-02-22 Thread Adrian Mowat
Hi David That worked a treat. Thanks! Adrian On Feb 21, 4:55 am, David Nolen wrote: > for creates lazy sequences - this can be a problem if you need side > effects. I suggest using doseq instead. > > David > > On Mon, Feb 20, 2012 at 11:26 AM, Adrian Mowat wrote: > > > > > > > > > Hi Everyone,

Trouble using the fetch Clojurescript library.

2012-02-22 Thread James Sofra
hi, I am putting together a small Clojurescript project and trying out Chris Granger's library, fetch. I can call functions defined in the fetch.util namespace no problem but when ever I try and use things defined in the fetch.remotes namespace it fails. The compilation is successful but the

Compilation model

2012-02-22 Thread T.Y Chew
Hi all, I had a question about clojure's compilation model, which my co-worker suggest to redirect here :-) I wonder what clojure does during compilation of a file? Can side-effects occur (definition of variables, functions, macros, etc in the compiler)? Does clojure have an EVAL-WHEN construct

Re: ClojureScript + Overtone

2012-02-22 Thread Chip Collier
You, sir, are doing it right! Thanks for posting this. :) On 2/20/12 7:09 PM, Chris Granger wrote: > People have been asking for an example using Noir and CLJS for a > while, so today I threw together a recording and a blog post of me > building an iPad controller for overtone :) > > HN link: htt

Re: MacOS menu bar time tracker in Clojure

2012-02-22 Thread number 23
it is cool On Tue, Feb 21, 2012 at 04:12, Philip K wrote: > Hey, > > I just made a text file based menu bar timer tracker as a weekend > project in Clojure. It allows for easy task management using your > favorite text editor, easy prioritization, time tracking and easy > Dropbox integration; it

Re: Trouble using the fetch Clojurescript library.

2012-02-22 Thread James Sofra
Sorry for the noise, this is working now. Really not sure what the problem was. Either I am misunderstanding something or the compilation process is a bit flaky. Cheers, James -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group,

Re: Help me improve and/or simplify this code

2012-02-22 Thread Softaddicts
& love ? > 2012/2/22 Cedric Greevey > > > If I may venture an opinion here: aren't some people over-thinking and > > maybe even gold-plating this? My own version is succinct, and moreover > > when the requirements were changed/clarified it required only changing > > a single "constants" to "[]"

Re: Help me improve and/or simplify this code

2012-02-22 Thread Laurent PETIT
2012/2/22 Softaddicts > & love ? > I will always love you, Luc :-D > > > > 2012/2/22 Cedric Greevey > > > > > If I may venture an opinion here: aren't some people over-thinking and > > > maybe even gold-plating this? My own version is succinct, and moreover > > > when the requirements were ch

Re: Help me improve and/or simplify this code

2012-02-22 Thread Aaron Cohen
On Wed, Feb 22, 2012 at 6:51 AM, Laurent PETIT wrote: > > > 2012/2/22 Cedric Greevey >> >> If I may venture an opinion here: aren't some people over-thinking and >> maybe even gold-plating this? My own version is succinct, and moreover >> when the requirements were changed/clarified it required o

Re: clojure thesis opportunity

2012-02-22 Thread Raju Bitter
This might interest you, it's not Clojure, but Lisp. Do you know the online game Vendetta? They  have used Lisp extensively for non-player character behavior, and have a REPL integrated into the game. http://www.vendetta-online.com "Vendetta Online has a Lisp environment (using SBCL) which controls

Re: Help me improve and/or simplify this code

2012-02-22 Thread Cedric Greevey
You're welcome. -- 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 unsubscribe from this group, sen

Re: clojure thesis opportunity

2012-02-22 Thread Cedric Greevey
Erlang's actor model seems like a perfect fit to MMORPG development -- maybe even more so than Lisp. On the other hand, Lisp letting you update things on the fly is also of obvious value to an MMORPG, which tends to involve adding and tweaking stuff from time to time but you really don't want to t

Re: clojure thesis opportunity

2012-02-22 Thread Timothy Baldridge
> On the other hand, Lisp letting you update things on the fly is also > of obvious value to an MMORPG, which tends to involve adding and > tweaking stuff from time to time but you really don't want to take the > game servers down, ever, if you can avoid it. That's also a major feature of Erlang.

Re: clojure thesis opportunity

2012-02-22 Thread Andy Fingerhut
I haven't written such code myself, but one motivation for creating Erlang was software for telecommunications systems, where they have very high uptime requirements and needed the ability to update code on a running system. It can replace definitions of functions in place as well as any Lisp.

Re: clojure thesis opportunity

2012-02-22 Thread Cedric Greevey
On Wed, Feb 22, 2012 at 11:40 AM, Timothy Baldridge wrote: >> On the other hand, Lisp letting you update things on the fly is also >> of obvious value to an MMORPG, which tends to involve adding and >> tweaking stuff from time to time but you really don't want to take the >> game servers down, eve

Re: clojure thesis opportunity

2012-02-22 Thread Adam
Have you looked at Akka at all? ~Adam~ -- 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

Re: clojure thesis opportunity

2012-02-22 Thread Cedric Greevey
On Wed, Feb 22, 2012 at 12:08 PM, Adam wrote: > Have you looked at Akka at all? Looks like it's a Java library. Using it apparently involves a fair amount of subclassing, so we'd probably want to write at least a partial clojure wrapper instead of users having to write proxy this, reify that all

Re: ANN travis-ci.org, a hosted CI service for the open source community with first class Clojure support

2012-02-22 Thread Chas Emerick
On Feb 21, 2012, at 5:44 PM, Phil Hagelberg wrote: > Michael Klishin writes: > >> travis-ci.org is a hosted continuous integration system for the open >> source community. It started in the Ruby community in 2011; since >> then, it has grown to support Erlang, Clojure, Node.js, PHP, Java, >> Gr

Clojure training in Europe/UK??

2012-02-22 Thread Urckle
I'm interested in taking some hands-on, training in Clojure. Is there anyone in Europe that offers such public training courses? thanks in advance. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegro

Re: clojure thesis opportunity

2012-02-22 Thread Eduardo Bellani
Perhaps SXML could help the writer a bit http://en.wikipedia.org/wiki/SXML On 02/21/2012 02:55 PM, Paolo Negri wrote: > Dear list, > > In the company where I work [1] we have an opening for a thesis > project involving clojure, I’m posting the abstract proposal on > this list since some reader

Re: Clojure training in Europe/UK??

2012-02-22 Thread Stuart Sierra
Yes! Luke VanderHart and I will be teaching a 3-day Clojure course at EuroClojure in May. http://euroclojure.com/2012/3-day-clojure-training/ -Stuart Sierra clojure.com -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send em

options for a function

2012-02-22 Thread Michael
clojure.data.csv has options for the following: (defn write-csv "Writes data to writer in CSV-format. Valid options are :separator (Default \\,) :quote (Default \\\") :guote? (A predicate function which determines if a string should be quoted. Defaults to quoting only when nec

Re: options for a function

2012-02-22 Thread Mark Rathwell
I don't know that there is necessarily a recommended way to offer options. Sometimes people want keyword options, sometime the want to take options as a map, sometimes they need to do it one way or another for various reasons, sometime they do it one way and later learn of a better way. To take o

Re: Help me improve and/or simplify this code

2012-02-22 Thread Cedric Greevey
It occurs to me that a simpler no-library-needed way to get something like actors in Clojure would be to just send forms over the network to other nodes. The simplest thing would be to send forms to *eval*. But that requires some serious security precautions. Like, say, authentication plus encrypt

Re: clojure thesis opportunity

2012-02-22 Thread Paolo Negri
On Feb 22, 6:00 pm, Cedric Greevey wrote: > On Wed, Feb 22, 2012 at 11:40 AM, Timothy Baldridge > > wrote: > >> On the other hand, Lisp letting you update things on the fly is also > >> of obvious value to an MMORPG, which tends to involve adding and > >> tweaking stuff from time to time but you

Re: options for a function

2012-02-22 Thread Sean Corfield
This seems like a bug in clojure.data.csv and someone should create a JIRA ticket for it, perhaps with a patch? http://dev.clojure.org/jira/browse/DCSV This once again makes me question why this CSV library ended up in contrib (without any discussion) rather than the more actively maintained and

clojure.java.jmx "0.1" - problem getiing java.lang:type=Threading :AllThreadIds attribute

2012-02-22 Thread zoka
I was trying to convert result of JMX attributes query to JSON, and encountered problem while reading one particular attribute value of java.lang:type=Threading. Here is the REPL transcript: demo.server=> (require '[clojure.java.jmx :as jmx]) nil demo.server=> (jmx/read "java.lang:type=Threading

Re: options for a function

2012-02-22 Thread Jonas
I'll fix this today. Thanks, Jonas -- 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 unsubscribe

Re: options for a function

2012-02-22 Thread Jonas
I just pushed the fix to github and released version 0.1.2. Sorry for the inconvenience. I'm not really happy with the write part of data.csv. In the clojure spirit of simplicity it "complects" quoting of values with writing to disk. There might be different policies for when an api-user wants