Re: IntelliJ / ClojureScript Integration...

2014-08-05 Thread Colin Fleming
Hi John, I'm the developer of Cursive. I haven't done this myself, but here are details from a Cursive user detailing how he got it working. Others have since tried it and it's worked for them too. I'm planning to add a built-in CLJS REPL but haven't got to it yet. Here's what Wilker Lúcio wrote:

ANN: Auckland, NZ Clojure Meetup

2014-08-05 Thread Daniel Compton
I'm pleased to re-announce the Auckland Clojure Meetup. After a dormant period it has been restarted. We've had a great couple of nights so far and I realised I hadn't let the list know about it. The goal is to do a mix of practical session so, as well as talks and presentations from speakers. W

Re: how do I clojure.string/replace regex characters? Escaping gives me StringIndexOutOfBoundsException

2014-08-05 Thread Daniel Compton
Hi Larry >From the scheme you described you will run into problems if your field name >actually contains a *. When you go to reconvert the string, it would replace >genuine *'s with $'s that aren't there. Daniel. > On 5/08/2014, at 6:50 pm, Andy Fingerhut wrote: > > Or even more simply, si

[ANN] modular 0.5.1 with cylon 0.4.0

2014-08-05 Thread Malcolm Sparks
Hi, As a follow-up to my talk at EuroClojure 2014, I have deployed the latest modular and cylon releases to clojars. Both of these projects contain pre-built components to get up-and-running quickly with a component-based application as described by Stuart Sierra :- [1] https://github.com/stua

Re: [ANN] modular 0.5.1 with cylon 0.4.0

2014-08-05 Thread Michael Klishin
 On 5 August 2014 at 15:54:58, Malcolm Sparks (malc...@juxt.pro) wrote: > > As I mentioned in my talk, we have a Google discussion group called > 'modularity' for discussion about this and other component-related > topics, all welcome. Looks like non-members cannot even view group content. Is

Re: [ANN] modular 0.5.1 with cylon 0.4.0

2014-08-05 Thread Malcolm Sparks
Hi Michael. No, it wasn't intentional. I think I've fixed it now, let me know if you still can't see the content. Regards, Malcolm On Tuesday, August 5, 2014 1:01:11 PM UTC+1, Michael Klishin wrote: > > On 5 August 2014 at 15:54:58, Malcolm Sparks (mal...@juxt.pro > ) wrote: > > > As I mention

Re: [ANN] System

2014-08-05 Thread Malcolm Sparks
Michael is right, but I'll expand a bit. Jig is based on Stuart's tools.namespace and workflow-reloaded pattern, and I released it before I was really aware of Stuart's component library. Neale Swinnerton introduced me to 'component' and persuaded me of the strengths of Stuart's approach, in pa

Re: [ANN] System

2014-08-05 Thread Timothy Washington
Well this is interesting. Leiningen has a list of 3rd party plugins . I see a use for a similar list of 3rd party components . Or maybe it already exists? I already have 1 or 2 that might be useful.

[ANN] CIDER 0.7 is out!

2014-08-05 Thread Bozhidar Batsov
Hi everyone, CIDER 0.7.0 is finally out! I wrote a short blog post about it, as the release is quite massive and important: http://batsov.com/articles/2014/08/05/cider-0-dot-7/ Enjoy! --  Cheers, Bozhidar -- You received this message because you are subscribed to the Google Groups "Clojure"

[ANN] test.check 0.5.9

2014-08-05 Thread Reid Draper
I'm happy to announce the 0.5.9 release of clojure.test.check, a QuickCheck inspired property-based testing library [1]. As usual, you can view the release notes [2]. The biggest change is an improvement to writing recursive generators, which is documented here [3]. Happy testing, Reid [1] htt

Re: [ANN] CIDER 0.7 is out!

2014-08-05 Thread Bruce Durling
Congrats and thanks Bozhidar and everyone else who contributed and tested! cheers, Bruce On Tue, Aug 5, 2014 at 3:03 PM, Bozhidar Batsov wrote: > Hi everyone, > > CIDER 0.7.0 is finally out! I wrote a short blog post about it, as the > release is quite massive and important: > > http://batsov.co

Re: [ANN] System

2014-08-05 Thread Daniel Szmulewicz
Thank you for explaining, Malcolm. And +1 for the positive mindset. My idea with 'system' is to provide a repository for ready-made components, much like 'modular'. Everyone is invited to contribute their components to either projects, or both. And Malcolm is right, corresponding components sho

Why does this not give output

2014-08-05 Thread Cecil Westerhof
I wanted to play again with Clojure. ;-) I wanted to test the random generator. For this I wrote: (def intArr (make-array Integer 10)) (for [i (range 10)] (aset intArr i (int 0))) (for [i (range 1)] (let [index (rand-int 10)] (aset intArr index (int (inc (aget intArr index)) (for

Why a Long class instead of integer class

2014-08-05 Thread Cecil Westerhof
I have the following code: (def intArr (make-array Integer 10)) (for [i (range 10)] (aset intArr i (int 0))) (for [i (range 1)] (let [index (rand-int 10)] (aset intArr index (int (inc (aget intArr index)) (for [i (range 10)] (println (aget intArr i))) I need to use (int 0)

Re: Why does this not give output

2014-08-05 Thread Michael Klishin
On 5 August 2014 at 19:41:03, Cecil Westerhof (cldwester...@gmail.com) wrote: > > ​When run in the REPL it gives the output I expect, but when executed > as a program, it does not give any output at all. What is going on > here? Because `for` is lazy. In the REPL the result has to be computed

Re: Why a Long class instead of integer class

2014-08-05 Thread Michael Klishin
On 5 August 2014 at 19:43:21, Cecil Westerhof (cldwester...@gmail.com) wrote: > > Because of the class of those values is Long. Why are those not > Integer? To avoid the performance penalty of automatic promotion. In dynamically typed languages with auto-promotion of integers you have to perfor

Re: [ANN] test.check 0.5.9

2014-08-05 Thread Colin Fleming
This looks awesome - thanks for the fix, Reid! Cheers, Colin On 5 August 2014 16:24, Reid Draper wrote: > I'm happy to announce the 0.5.9 release of clojure.test.check, a > QuickCheck inspired property-based testing library [1]. As usual, you can > view the release notes [2]. The biggest chang

Re: Why does this not give output

2014-08-05 Thread Thomas Heller
If you don't need the result of the for loop (which you don't in your example) use doseq. Same syntax as "for" but not lazy and no return value (well, nil to be exact) (doseq [i (range 10)] (aset intArr i (int 0))) ... On Tuesday, August 5, 2014 5:41:08 PM UTC+2, Cecil Westerhof wrote: > >

Clojure Inspector navigation error

2014-08-05 Thread Dan Campbell
In 1.6.0, If you create a mixed nested object, such as ( def nst ( vec '( ( 3 7 22 ) 99 ( 123 18 225 437 ) ) ) ) , and then you inspect the tree representing the object ( inspect-tree nst ) Most of the navigation with the keyboard proceeds fine. However

Friend authentication with static files

2014-08-05 Thread Jonathon McKitrick
I'm working on a singe-page web app, and each page comes from a file in "public" rather than being generated by a compojure route/handler. I use (wrap-resource "public") to do this, and it works fine. How can I wrap this type of handler in Friend authentication? -- You received this message be

Re: Is clojars down?

2014-08-05 Thread Alan Thompson
I'm getting flakey problems from clojars right now. I can access any other websites, from multiple computers. I can access the homepage, and download any files from clojars, delete ~/.m2 and restore via 'lein deps', but I cannot upload any changes via "lein deploy clojars'. I keep getting failur

Re: Why does this not give output

2014-08-05 Thread Cecil Westerhof
2014-08-05 19:04 GMT+02:00 Thomas Heller : > If you don't need the result of the for loop (which you don't in your > example) use doseq. > > Same syntax as "for" but not lazy and no return value (well, nil to be > exact) > ​I already use dotimes, or is doseq better?​ -- Cecil Westerhof -- Yo

Re: IntelliJ / ClojureScript Integration...

2014-08-05 Thread John Szakmeister
On Tue, Aug 5, 2014 at 3:08 AM, Colin Fleming wrote: > Hi John, > [snip] > Here's what Wilker Lúcio wrote: > >> This is how I got it done (and I'm using it on node-webkit project): >> >> Add this plugin to your project (plugins, not dependencies): >> >> [jarohen/simple-brepl "0.1.0"] >> >> On your

[ANN] Leiningen 2.4.3

2014-08-05 Thread Phil Hagelberg
Hello everyone. I'm happy to announce the release of Leiningen 2.4.3. This release includes a number of small fixes and one big fix: access to the Central repository now occurs over HTTPS since Sonatype opened up public SSL access to Central yesterday[1]. Please upgrade your copy of Leiningen to g

Re: Why a Long class instead of integer class

2014-08-05 Thread Alex Miller
I don't know that I agree with that reason. Clojure numerics start from an assumption of a 64-bit world, so numbers default to 64-bit types: long and double, instead of 32-bit int and float. Java interop is one of the places where this default can create a mismatch, since Java tends to use 32-bi

Re: Why a Long class instead of integer class

2014-08-05 Thread Cecil Westerhof
2014-08-06 1:59 GMT+02:00 Alex Miller : > And in general it really is Long (not long) - by default all Clojure > values are objects, unless you have taken steps to use primitives. > ​You are right: (class 0) gives: java.lang.Long​ > > > On Tuesday, August 5, 2014 10:47:57 AM UTC-5, Mich

Re: [ANN] Silk, an isomorphic routing library for Clojure and ClojureScript

2014-08-05 Thread Joel Holdbrooks
Awesome work. It's fantastic to see a library that's interested in targeting both the front-end and the back-end. This is the type of attitude I would love to see more often in the Clojure community. OTOH, it would have been awesome to have heard your thoughts WRT the concept of isomorphic rout

Re: [ANN] Silk, an isomorphic routing library for Clojure and ClojureScript

2014-08-05 Thread Joel Holdbrooks
Edit: s/\(routers in the Clojure\)Script/\1 -- 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 uns

Cursive Plugin java integration

2014-08-05 Thread Bryan Hoyle
Hey, y'all, I'm working on a project that's 99% java at the moment, and I'm trying to convert bits of it to clojure, one step at a time, but, a problem I seem to be running into is that the IDE doesn't seem to recognize (:gen-class) directives from the java side. Maven compiles it fine, so the

GPU computing on core.matrix implementation

2014-08-05 Thread Miki Nobuhiro
Hello, everyone. I want to calculate matrix operations by GPU compuring, and here is my code. https://github.com/bobuhiro11/aparapi-matrix https://clojars.org/aparapi-matrix Now, I have some questions. 1. aparapi-matrix uses Aparapi(https://code.google.com/p/aparapi/). Is this choice correct? A

[ANN] core.cache 0.6.4

2014-08-05 Thread Ambrose Bonnaire-Sergeant
Hi, core.cache 0.6.4 is released with various bug fixes and improvements. [org.clojure/core.cache "0.6.4"] Readme Changelog - Release 0.6.4 on 2014.08.06 - Thanks to Paul Stadig and Nicola Momet

Re: [ANN] core.cache 0.6.4

2014-08-05 Thread Yehonathan Sharvit
Does core.cache supports Clojurescript? On Wednesday, 6 August 2014 06:48:31 UTC+3, Ambrose Bonnaire-Sergeant wrote: > > Hi, > > core.cache 0.6.4 is released with various bug fixes and improvements. > > [org.clojure/core.cache "0.6.4"] > > Readme > Changelog

Re: [ANN] core.cache 0.6.4

2014-08-05 Thread Ambrose Bonnaire-Sergeant
Not yet. On Wed, Aug 6, 2014 at 12:18 PM, Yehonathan Sharvit wrote: > Does core.cache supports Clojurescript? > > > On Wednesday, 6 August 2014 06:48:31 UTC+3, Ambrose Bonnaire-Sergeant > wrote: >> >> Hi, >> >> core.cache 0.6.4 is released with various bug fixes and improvements. >> >> [org.clo

Re: [ANN] core.cache 0.6.4

2014-08-05 Thread Yehonathan Sharvit
Do you intend to support clojurescript? Do you need help? On Wed, Aug 6, 2014 at 7:36 AM, Ambrose Bonnaire-Sergeant < abonnaireserge...@gmail.com> wrote: > Not yet. > > > On Wed, Aug 6, 2014 at 12:18 PM, Yehonathan Sharvit > wrote: > >> Does core.cache supports Clojurescript? >> >> >> On Wednes