Re: Newbie: adding items to a global vector in doseq

2014-08-15 Thread Tassilo Horn
phi...@free.fr writes: I have read up on atoms and used swap! to set the urls2 vector atom in my code. Thanks. One problem remains though: I can't retrieve the atom vector's items *(nth urls 10)* throws the following exception java.lang.UnsupportedOperationException: nth not supported

Re: FYI: for Clojure people stuck with some Java, use DCEVM

2014-08-15 Thread Sean Corfield
On Wed, Aug 13, 2014 at 7:59 PM, Colin Fleming colin.mailingl...@gmail.com wrote: This looks really great. Due to limitations in Clojure's interop I'm forced to use much more Java than I'd like in Cursive itself Could you elaborate on this Colin? -- Sean A Corfield -- (904) 302-SEAN An

Re: [ANN] Sente - Clojure(Script) + core.async + WebSockets/Ajax

2014-08-15 Thread keeds
Peter, Just wanted to say thanks for Sente. Just dropped it into an existing application. Going to make improving the UI alongside Om a breeze. Thanks, Andrew On Wednesday, 26 February 2014 13:57:24 UTC, Peter Taoussanis wrote: Hi folks, Quick post to announce a new lib release:

Re: [ANN] Sente - Clojure(Script) + core.async + WebSockets/Ajax

2014-08-15 Thread Peter Taoussanis
You're very welcome Andrew, thanks for saying so! Cheers! :-) -- *Peter Taoussanis* taoensso.com https://www.taoensso.com -- 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

Re: [ANN] Sente - Clojure(Script) + core.async + WebSockets/Ajax

2014-08-15 Thread Henrik Eneroth
Yes, thanks for Sente, Peter! Will Sente eventually use/support Transit? :-) On Friday, August 15, 2014 11:30:56 AM UTC+2, Peter Taoussanis wrote: You're very welcome Andrew, thanks for saying so! Cheers! :-) -- *Peter Taoussanis* taoensso.com https://www.taoensso.com -- You

Compilation failure to reject arguments matching formal parameters

2014-08-15 Thread Dave Tenny
This is getting old. Any suggestions or plans to fix it? Do I need to use some other common declaration style for functions? ; CIDER 0.5.0 (Clojure 1.6.0, nREPL 0.2.3) user (defn foo [ {:keys [bar]}] bar) #'user/foo user (foo :baz 1) nil In my opinion the compilation of the call to foo

Re: Strange behavior with alts! and :default in core async

2014-08-15 Thread Daniel Solano Gómez
On Thu Aug 14 19:04 2014, dgrnbrg wrote: You're all right--that was a cut paste error. I meant that I see this behavior with alt!!, not alts! With alt!!, it should probably be something like: (let [result (alt!! [[inner-chan e]] ([v] (if v

Re: Compilation failure to reject arguments matching formal parameters

2014-08-15 Thread Jonah Benton
Hi Dave, Somewhat related: I've been looking at Prismatic's Schema [1] along with ordinary pre and post conditions to apply stricter runtime controls on suites of functions that take and return maps: user= (require '[schema.core :as sc]) nil user= (def FooIn FooIn must have a string at :bar, a

complex numbers in clojure

2014-08-15 Thread Maik Schünemann
Hi, is there a recommended way to do complex arithmetic in clojure ? I am interested to see clojure going forward for scientific computing purposes. There is already considerable effort going on with core.matrix, incanter, expresso etc. But something thad is oddly lacking is support for

[ANN] Nomad 0.7.0 and Frodo 0.4.1 - configuration made simple

2014-08-15 Thread James Henderson
Hi all, I've just released Nomad 0.7.0, a configuration management library that makes it simple to configure instances of your applications on multiple machines; and Frodo 0.4.1 - a web server that is configured using Nomad and uses Stuart Sierra's 'Reloaded' pattern. Github repos are at

Re: complex numbers in clojure

2014-08-15 Thread Reid McKenzie
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 The best way to build a complex arithmetic package is probably to work atop `clojure.algo.generic`. I've done a pair of libraries (https://github.com/arrdem/imprecise, https://github.com/arrdem/meajure) based around extending algo.generic with custom

Re: Compilation failure to reject arguments matching formal parameters

2014-08-15 Thread Reid McKenzie
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Comments inline On 08/15/2014 06:47 AM, Dave Tenny wrote: This is getting old. Any suggestions or plans to fix it? Do I need to use some other common declaration style for functions? ; CIDER 0.5.0 (Clojure 1.6.0, nREPL 0.2.3) user (defn foo

Re: Compilation failure to reject arguments matching formal parameters

2014-08-15 Thread Andy Fingerhut
I don't know how hard or easy it might be to implement a check like this in a lint tool like Eastwood, but I've created a Github issue for it with the idea, linking to this discussion, in case someone thinks of a way. https://github.com/jonase/eastwood/issues/83 Andy On Fri, Aug 15, 2014

Re: complex numbers in clojure

2014-08-15 Thread Maik Schünemann
Hi, On Fri, Aug 15, 2014 at 7:00 PM, Reid McKenzie rmckenzi...@gmail.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 The best way to build a complex arithmetic package is probably to work atop `clojure.algo.generic`. I've done a pair of libraries (

Re: [ANN] Envvar 1.1.0 — a library for handling environment variables

2014-08-15 Thread James Reeves
On 14 August 2014 17:31, Constantine Vetoshev gepar...@gmail.com wrote: On Thursday, August 14, 2014 6:46:56 AM UTC-7, James Reeves wrote: You can do this with Environ. Leiningen checks for a profiles.clj in your project directory, as well as then one in $HOME/.lein. If you add profiles.clj

Re: [ANN] Envvar 1.1.0 — a library for handling environment variables

2014-08-15 Thread James Reeves
On 14 August 2014 17:36, Constantine Vetoshev gepar...@gmail.com wrote: 2. Loading env files in the REPL, and modifying the environment at runtime in general. Environ only handles loading variables when it loads itself, and has no provision for modifying them except by restarting the Clojure

Re: Strange behavior with alts! and :default in core async

2014-08-15 Thread dgrnbrg
So, if a list whose first element is a vector is provided after a get or a put in alt!, then that's treated as the binding form/code to be executed if that succeeds, but if a non-list is provided, then that is treated as a value to return if that action was taken (and that value is evaluated

Re: Strange behavior with alts! and :default in core async

2014-08-15 Thread Eric Normand
So, if a list whose first element is a vector is provided after a get or a put in alt!, then that's treated as the binding form/code to be executed if that succeeds, but if a non-list is provided, then that is treated as a value to return if that action was taken (and that value is

[ANN] nio.file 0.1.0 - A clojure wrapper for java.nio.file.*

2014-08-15 Thread tobereplaced
Announcing an initial release of a wrapper for java.nio.file's classes and methods. It's hard to use java.nio.file.* from clojure, and this library makes that easier. Instead of rehashing the documentation, I'll just point you at the repository: https://github.com/ToBeReplaced/nio.file In