Re: clojure.lang.Atom cannot be cast to a java.lang.Num

2014-05-28 Thread Dylan Gleason
Thank you, Ambrose. It appears I forgot to dereference both index and offset when trying to read the values associated with the atoms. Thanks Phillippe -- I went with your recursive solution and bypassed mutation via atoms altogether -- a much cleaner solution. On Tue, May 27, 2014 at 2:15 AM,

Re: deftest and var's metadata

2014-05-28 Thread Nahuel Greco
ok, just for the record, I fixed it. Instead of (resolve 'a) you must use (ns-resolve 'test-namespace 'a), because lein test runs the tests in namespace 'userinstead of the one that defined the test (as I wrongly assumed). Also the first test for the existence of the var is wrong, I assumed

Re: how to define a variable of type collection to keep other functions.

2014-05-28 Thread sorin cristea
Thanks Sean, indeed this help me a lot .. one question, beside that it's not indicated to define def inside of a defn, as you pointed before, if I have the bellow code: *( defn some-method[arg] (def thred (. Thread currentThred) (println on current thread thread use variable

Re: how to define a variable of type collection to keep other functions.

2014-05-28 Thread Carlo Zancanaro
On Wed, May 28, 2014 at 12:56:43AM -0700, sorin cristea wrote: *( defn some-method[arg] (def thred (. Thread currentThred) (println on current thread thread use variable arg))* 'thred' - is only visible inside of some-methd, because is a little confuse for me your statement -

Re: [RFC] Roundtripping namespaced xml documents for data.xml

2014-05-28 Thread Christophe Grand
On Tue, May 27, 2014 at 2:05 AM, Herwig Hochleitner hhochleit...@gmail.comwrote: My use case is parsing and generating webdav and I'd much rather work with model tier than just looking at tag names and assuming that the prefixes are set up correctly. Yes, that might exclude clients, that

Re: core.match incorrect docstring?

2014-05-28 Thread David Nolen
Thanks for the report, docstring updated. David On Tue, May 27, 2014 at 5:16 PM, Dom Kiva-Meyer li...@domkm.com wrote: The clojure.core.match/match docstring states that it takes ...a vector of occurrences, vars. Clause question-answer syntax is like `cond`. Questions must be wrapped in a

[ANN] PolyConf 14 / CFP / June 20th

2014-05-28 Thread Zaiste
PolyConf is a two-day, single track, multi-disciplinary conference on advanced technologies for programmers interested in polyglot approach to software development. It's the 1st edition of a conference that succeeds RuPy. PolyConf 2014 will take place October 30-31 in POZnan, Poland. The Call

load-file for lein main function

2014-05-28 Thread Glen Rubin
I am doing text processing on an OCR text file using clojure. Basically, I (slurp) in the ocr text file and then use regular expressions to extract and (def) the bits of data I am interested in. This script to do this is complete, it prompts user for the file to slurp using seesaw.chooser

Re: core.match incorrect docstring?

2014-05-28 Thread Dom Kiva-Meyer
No worries and thanks. On Wed, May 28, 2014 at 7:19 AM, David Nolen dnolen.li...@gmail.com wrote: Thanks for the report, docstring updated. David On Tue, May 27, 2014 at 5:16 PM, Dom Kiva-Meyer li...@domkm.com wrote: The clojure.core.match/match docstring states that it takes ...a vector

Lein-Midje-Doc missing some :sections

2014-05-28 Thread Timothy Washington
Hey, I'm using lein-midje-doc http://docs.caudate.me/lein-midje-doc/, mostly to success. But I'm having a case where my documentation inside of a *against-background* block, is being ignored. I'm looking for lein-midje-doc examples that demonstrate this. But, say

ANN: [prismatic/plumbing 0.3.0] release adds ClojureScript support

2014-05-28 Thread Jason Wolfe
We’re excited to announce that Prismatic’s Plumbing and Graph library is now supported in ClojureScript, via cljx! We’ve also added an experimental parallel, asynchronous Graph compilation strategy using core.async that works in both Clojure and ClojureScript, and made a number of smaller

Re: [ANN] core.async (and more) video tutorials

2014-05-28 Thread Devin Walters
Forgive me if I just missed it, but do you have the code from the videos somewhere? I was toying with the pipeline example and kept feeling like it'd be nice to just grab the source. Thanks, '(Devin Walters) On May 27, 2014, at 12:55, Timothy Baldridge tbaldri...@gmail.com wrote: Thanks

Re: ANN: [prismatic/plumbing 0.3.0] release adds ClojureScript support

2014-05-28 Thread Atamert Ölçgen
Whoever thought it would be a good idea to farm emails (possibly from GitHub) and spam people is hurting your brand. She (or he) is a bad hire especially if she thinks she can pull something like that off with programmers. On Wed, May 28, 2014 at 11:15 PM, Jason Wolfe ja...@w01fe.com wrote:

Registering commands in a command language

2014-05-28 Thread Will Duquette
If there's a better place to ask this kind of question, please point me in the right direction! I'm learning Clojure, and part of the project I'm making is a command language: the user can type commands at the application in something like a REPL, and have a dialog with the application. I