Re: Tool authors: ClojureScript support in tools.namespace?

2015-07-29 Thread Bozhidar Batsov
Sounds like a plan to me. :-) On 28 July 2015 at 20:35, Stuart Sierra wrote: > Thanks for the responses everyone. > > So far, my general plan is starting to look like this: > > c.t.n.*dependency* and c.t.n.*track* are platform agnostic. > > c.t.n.*file* and c.t.n.*parse* can be extended to suppo

Rethinkdb problem with clojure

2015-07-29 Thread hemant gautam
Hi All-- I am trying to use RethinkDb for the first time. My rethinkDb server available at some IP addr: XYZ. I have made changes into instance configuration file in order to access it through browser on my local machine and I am able to access it at http://XYZ:8080 In order to connect to Reth

Re: Jenkins plugins in clojure

2015-07-29 Thread Dmitrii Balakhonskii
Hi Erlis, Did you succeed in that? It's been a while since the original posting, but still, I'm interested in the topic :) пятница, 29 марта 2013 г., 13:51:23 UTC+1 пользователь Erlis Vidal написал: > > Hi guys, > > I was just wondering if someone in the group have written any jenkins > plugin

Problem while using locally build leiningen jar

2015-07-29 Thread Shalaka Patil
I am trying to build and use leiningen jar locally. Steps I followed to create jar- $ git clone https://github.com/shalu214patil/leiningen.git (I have forked leiningen) $ cd leiningen/leiningen-core $ lein bootstrap $ cd .. $ bin/lein compile $ bin/lein uberjar $ cp target/leiningen-2.5

Re: [ANN] Pink 0.2.0, Score 0.3.0

2015-07-29 Thread Gary Verhaegen
There's http://m.youtube.com/watch?v=wDcN7yoZ6tQ, though I guess it does not cover the latest features in this release. On Wednesday, 29 July 2015, zcaudate wrote: > This is so cool =) > > Can you put up a video? > > -- > You received this message because you are subscribed to the Google > Group

core.logic: Help with insertion sort

2015-07-29 Thread Tassilo Horn
Hi all, I've just implemented insertion sort with core.logic: --8<---cut here---start->8--- (declare inserto) (defn isorto "A relation where sl is a sorted version of the list l." ([l sl] (isorto l () sl)) ([l acc sl] (conde [(== l ()) (== acc s

Re: Rethinkdb problem with clojure

2015-07-29 Thread Daniel Compton
Hemant, it looks like you're using clj-rethinkdb as your driver. Can you open an issue on GitHub and we can help diagnose the issue from there? On Wed, 29 Jul 2015 at 8:36 PM hemant gautam wrote: > Hi All-- > > I am trying to use RethinkDb for the first time. My rethinkDb server > available at so

Re: Controlling growth rates of generators with test.check

2015-07-29 Thread Mayank Jain
Nice. Any updates on this? Is this a good idea? On Friday, May 15, 2015 at 12:13:06 PM UTC+5:30, Mikera wrote: > > Hi all, > > I am doing some generative testing with test.check and need a way to > control the growth rate of data structures (the regular linear growth > quickly makes the computat

[ANN] sniper, emacs assistant for deleting dead code

2015-07-29 Thread Jason Wolfe
Inspired by YAGNI, I made this code analyzer and emacs assistant for deleting dead code (and then used it to delete 10% of our codebase): https://github.com/w01fe/sniper *Motivation:* Over the years we've accumulated lots of dead code mixed into our namespaces, and getting rid of it manually

Re: [ANN] sniper, emacs assistant for deleting dead code

2015-07-29 Thread Raoul Duke
> Inspired by YAGNI, I made this code analyzer and emacs assistant for > deleting dead code (and then used it to delete 10% of our codebase): oh, i thought the punch line was it was either going to delete you, or delete itself ;-) -- You received this message because you are subscribed to the G

Re: a question about Chris Zheng's "Abstract Container Pattern"

2015-07-29 Thread Lawrence Krubner
If I understood your original article, you were saying something that amounted to these 3 assertions: 1.) to future-proof our code against changes, and to avoid being verbose, we need polymorphism. 2.) we need some way to establish constraints (contracts) on that polymorphism, or else it will

[ANN] Clojure 1.8.0-alpha3

2015-07-29 Thread Alex Miller
Clojure 1.8.0-alpha3 is now available. Try it via - Download: https://repo1.maven.org/maven2/org/clojure/clojure/1.8.0-alpha3 - Leiningen: [org.clojure/clojure "1.8.0-alpha3"] Tuples have been disabled after further analysis of performance impacts. This alpha has initial support for direct linki

[ANN] Release 0.32.0 of Counterclockwise

2015-07-29 Thread Laurent PETIT
Counterclockwise, the Eclipse Clojure development tool. Counterclockwise 0.32.0 has been released. Highlights: - Clojure 1.7.0 support - Cider-nrepl support - Clojurescript support - macro-expansion via editor hovers - Embedded User plugins such as : font zoom mode for presentations, ANSI Colors

Re: [ANN] Clojure 1.8.0-alpha3

2015-07-29 Thread Rangel Spasov
Hey guys, I'm getting this compiler error after upgrading to alpha3, I assume it has something to do with the direct linking changes? I think it's related to clj-ssh library, and this method specifically: (defn- ^{:tag (Class/forName "[B")} as-bytes "Return arg as a byte array. arg must be a

Re: [ANN] Clojure 1.8.0-alpha3

2015-07-29 Thread Sean Corfield
Somewhat related, I had this code which "worked" on Alpha 2: (defn ^java.nio.ByteBuffer to-byte-array [^com.eaio.uuid.UUID u] (let [lo (.getClockSeqAndNode u) hi (.getTime u)] (-> (java.nio.ByteBuffer/allocate 16) (.putLong hi) (.putLong lo) (.array (can anyone

Re: Controlling growth rates of generators with test.check

2015-07-29 Thread Mikera
See: https://github.com/clojure/test.check/commit/d4883873df73717629272d0ab71619d7e58c9c9e On Wednesday, 29 July 2015 23:31:14 UTC+8, Mayank Jain wrote: > > Nice. Any updates on this? > Is this a good idea? > > On Friday, May 15, 2015 at 12:13:06 PM UTC+5:30, Mikera wrote: >> >> Hi all, >> >> I am

Re: [ANN] Pink 0.2.0, Score 0.3.0

2015-07-29 Thread Steven Yi
I haven't had much time lately so that's all there is at the moment. The design of Pink hasn't changed much since that presentation, so the contents of the video should still be relevant for understanding the design. I'm hoping to have more time available from October and am planning on develop

Re: [ANN] Clojure 1.8.0-alpha3

2015-07-29 Thread Mikera
Hi Alex, 1.8.0-alpha3 is breaking core.matrix at the moment. Root cause appears to be related to how protocols are being handled when used with Java arrays: e.g. for the protocol implementation: (extend-protocol mp/PImplementation (Class/forName "[Ljava.lang.Object;") (implementation-key

Re: [ANN] Release 0.32.0 of Counterclockwise

2015-07-29 Thread Ed Maphis
Thanks Laurent, looks like an exciting release. > > -- 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 po

Re: a question about Chris Zheng's "Abstract Container Pattern"

2015-07-29 Thread zcaudate
James: For sure. To be honest, I haven’t really thought too much about best practices. The code just naturally evolved in this way. Let me have a think about this over the weekend and come up with something. Lawrence: I see what you are saying… and again, I need some time to think about the

Re: [ANN] Clojure 1.8.0-alpha3

2015-07-29 Thread Daniel Compton
For those wondering like me what "Direct Linking" is, here are a few links I could find. This seems to be a very old possible improvement to Clojure which is being looked at again. http://dev.clojure.org/display/design/Build+Profiles https://groups.google.com/forum/#!msg/clojure-dev/guT3QBEg5w0/

Re: [ANN] Clojure 1.8.0-alpha3

2015-07-29 Thread Alex Miller
Thanks, I forwarded this stuff over to Rich. We appreciate people trying it and reporting stuff! On Wednesday, July 29, 2015 at 8:23:16 PM UTC-5, Mikera wrote: > > Hi Alex, > > 1.8.0-alpha3 is breaking core.matrix at the moment. > > Root cause appears to be related to how protocols are being ha

Beginner question

2015-07-29 Thread Mike
Hello, I have decided what my first Clojure project will be, but I could use some guidiance. I would like to be able to make SOAP calls to a webservice on another machine. I have done some searching, and there is an old clj-soap library which Sean Corfield has mostly abandoned. How are peopl

Re: core.logic: Help with insertion sort

2015-07-29 Thread Nicolás Berger
Hi, Sounds interesting :). I hope I get some time to take a look into it soon. In the meantime, have you tried playing with the log and trace "goals"? I mean log, trace-s and trace-lvar. They might be of help in trying to discover where it's going that makes it hang. El 29/07/2015 11:40, "Tassilo

Re: Controlling growth rates of generators with test.check

2015-07-29 Thread Mayank Jain
Thanks. That looks useful. On Jul 30, 2015 6:14 AM, "Mikera" wrote: > See: > > https://github.com/clojure/test.check/commit/d4883873df73717629272d0ab71619d7e58c9c9e > > On Wednesday, 29 July 2015 23:31:14 UTC+8, Mayank Jain wrote: >> >> Nice. Any updates on this? >> Is this a good idea? >> >> On

Re: Beginner question

2015-07-29 Thread Francis Avila
Note: my knowledge of soap is not very deep, but I have done the following in a production system. If you have a WSDL available, a good approach is to generate the (Java) client code and then use it via Java interop. You can smooth out the rough edges and shed the extra java types by using the

[ANN] sniper, emacs assistant for deleting dead code

2015-07-29 Thread benedek fazekas
hi, I wonder if you tried clj-refactor which has find usages listing all the usages of your symbol *and* its definition. So if you only find the definition and usages in test that symbol might be candidate for deletion... -- You received this message because you are subscribed to the Google Gr

Re: [ANN] sniper, emacs assistant for deleting dead code

2015-07-29 Thread dennis zhuang
Cool work. But missing installation or user guide in readme.md? I don't know how to use it in my project. I want to try it. 2015-07-30 13:26 GMT+08:00 benedek fazekas : > hi, > > I wonder if you tried clj-refactor which has find usages listing all the > usages of your symbol *and* its definitio

Re: [ANN] sniper, emacs assistant for deleting dead code

2015-07-29 Thread Jason Wolfe
Didn't realize that existed, thanks! Looks like it's doing a similar (but more sophisticated) thing to find the references. But it doesn't look like it has the same graph analysis to understand cyclic references, etc, unless I missed it. On Wed, Jul 29, 2015 at 10:26 PM, benedek fazekas wrote:

Re: [ANN] sniper, emacs assistant for deleting dead code

2015-07-29 Thread Jason Wolfe
Thanks for the feedback, I'll update the readme to add that now. On Wed, Jul 29, 2015 at 10:32 PM, dennis zhuang wrote: > Cool work. > > But missing installation or user guide in readme.md? I don't know how to > use it in my project. I want to try it. > > > 2015-07-30 13:26 GMT+08:00 benedek faz

Using go/

2015-07-29 Thread Martin Raison
go blocks tend to spread in Clojure programs just like async/await in C#/Hack/Python, etc. The problem is that they aren't cheap. I was curious to know what you guys think of the following workaround: http://blog.martinraison.com/clojure/2015/07/27/clojure-core-async-go-blocks-everywhere.html (T