Use latest stable

2016-07-14 Thread Cecil Westerhof
Is there a way to signify latest stable version? Because when you use: :dependencies [[org.clojure/clojure"LATEST"] it wants to work with: clojure-1.9.0-alpha10 I prefer to use clojure-1.8.0. There is a reason it is called alpha. But when there is a stable 1.9.0 I want to use tha

Notification about newer versions

2016-07-14 Thread Cecil Westerhof
In a project.clj I have: :dependencies [[org.clojure/clojure"1.8.0"] [clj-time "0.8.0"] [com.h2database/h2 "1.3.176"] [instaparse "1.4.2"] [org.clojure/math.numer

Re: Use latest stable

2016-07-14 Thread Toby Crawley
On Thu, Jul 14, 2016 at 6:52 AM, Cecil Westerhof wrote: > Is there a way to signify latest stable version? Because when you use: > :dependencies [[org.clojure/clojure"LATEST"] > it wants to work with: > clojure-1.9.0-alpha10 > > I prefer to use clojure-1.8.0. There is a reason it

Re: Notification about newer versions

2016-07-14 Thread Toby Crawley
You can use lein-ancient periodically to see if there are newer versions of your dependencies: https://github.com/xsc/lein-ancient - Toby On Thu, Jul 14, 2016 at 6:56 AM, Cecil Westerhof wrote: > In a project.clj I have: > :dependencies [[org.clojure/clojure"1.8.0"] >

Re: Notification about newer versions

2016-07-14 Thread Cecil Westerhof
2016-07-14 13:05 GMT+02:00 Toby Crawley : > You can use lein-ancient periodically to see if there are newer > versions of your dependencies: https://github.com/xsc/lein-ancient ​I have updated my project. I now use clj-time 0.12.0 instead of 0.8.0. I partly updated yesql: from 0.4.0 to 0.4.2, bu

Re: Notification about newer versions

2016-07-14 Thread Yannick Scherer
To check your profiles using lein-ancient, run: lein ancient check-profiles See the output of lein help ancient for all available tasks. - Yanncik Am Donnerstag, 14. Juli 2016 15:01:38 UTC+2 schrieb Cecil Westerhof: > > 2016-07-14 13:05 GMT+02:00 Toby Crawley > > : > >> You can use l

Re: Notification about newer versions

2016-07-14 Thread Cecil Westerhof
2016-07-14 15:00 GMT+02:00 Cecil Westerhof : > It says you can check your profile also: > ancientCheck your projects and profiles for outdated > dependencies/plugins. > > But that is not true: if I run it in a not project directory, I get: > (warn) not inside of a project. > ​I should have l

[ANN] defn podcast ep.5 : Hoplon Special with Micha Niskin :)

2016-07-14 Thread Vijay Kiran
Hi Everyone, We just published new episode of defn with special guest Micha Niskin discussing Hoplon. It is available for your listening pleasure on SoundCloud: https://soundcloud.com/defn-771544745/05-hoplon-special-with-micha-niskin also available via iTunes. Regards, Vijay & Ray https://d

lein repl and own functions

2016-07-14 Thread Cecil Westerhof
When I first worked with Clojure I used a Bash script with had: rlwrap java -cp "${CP}" clojure.main --init "${CLOJURE_INIT}" --repl In this way I had several of my own functions in the REPL. Now I started again with Clojure I understood I should use ‘lein repl’. Is there a method to get my ow

Re: Notification about newer versions

2016-07-14 Thread Cecil Westerhof
2016-07-14 15:25 GMT+02:00 Yannick Scherer : > To check your profiles using lein-ancient, run: > > lein ancient check-profiles > > See the output of > > lein help ancient > > for all available tasks. > ​I try everything immediately of-course. ;-) I find especially show-versions handy. -

Re: lein repl and own functions

2016-07-14 Thread Timothy Baldridge
Anything found in src/user.clj will be automatically loaded when lein repl starts. On Thu, Jul 14, 2016 at 7:52 AM, Cecil Westerhof wrote: > When I first worked with Clojure I used a Bash script with had: > rlwrap java -cp "${CP}" clojure.main --init "${CLOJURE_INIT}" --repl > > In this way

Re: Preparing a proposal for EuroClojure presentation about Clojure and GPU, high-performance computing - suggestions welcome

2016-07-14 Thread Ashish Negi
Not any specific request.. but i would be highly interested in showing ML in clojure landscape.. showing something end to end.. debugging and optimization tips would be great. I will be waiting.. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To

Re: Use latest stable

2016-07-14 Thread Sean Corfield
Toby gave you a good answer re “LATEST” and “RELEASE” but I’ll comment on stability of Clojure Alpha builds in general: We first went to production with Clojure in 2011 on 1.3.0 Alpha 7 (or 8, I no longer remember which). We’re currently in production with 1.9.0 Alpha 10. Prerelease builds o

Re: Preparing a proposal for EuroClojure presentation about Clojure and GPU, high-performance computing - suggestions welcome

2016-07-14 Thread Dragan Djuric
noted On Thursday, July 14, 2016, Ashish Negi wrote: > Not any specific request.. but > i would be highly interested in showing ML in clojure landscape.. > showing something end to end.. debugging and optimization tips would be > great. > > I will be waiting.. > > -- > You received this message

Re: lein repl and own functions

2016-07-14 Thread Cecil Westerhof
2016-07-14 18:18 GMT+02:00 Timothy Baldridge : > Anything found in src/user.clj will be automatically loaded when lein repl > starts. > ​That works only for that directory. With my Bash script the functions where always included. Is there no way to do it always?​ > On Thu, Jul 14, 2016 at 7:52

Re: Use latest stable

2016-07-14 Thread Alan Thompson
If you haven't seen it yet, lein-ancient ( https://github.com/xsc/lein-ancient) provides an easy way of checking your project for out of date dependencies. For example: > lein ancient [criterium "0.4.4"] is available but we use "0.4.3" [tupelo "0.9.0"] is available but we use "0.1.60" [com.rpl/sp

Re: Use latest stable

2016-07-14 Thread Cecil Westerhof
2016-07-14 18:38 GMT+02:00 Sean Corfield : > Toby gave you a good answer re “LATEST” and “RELEASE” but I’ll comment on > stability of Clojure Alpha builds in general: > > > > We first went to production with Clojure in 2011 on 1.3.0 Alpha 7 (or 8, I > no longer remember which). We’re currently in

Re: lein repl and own functions

2016-07-14 Thread Timothy Baldridge
There probably is, since the user.clj file can exist anywhere on the classpath. So it should be possible to add an entry to profile.clj and add a classpath folder to some global location. However, I'm not sure I would recommend this approach. IMO, it's better to keep all the development tools for

Re: Use latest stable

2016-07-14 Thread Cecil Westerhof
2016-07-14 19:58 GMT+02:00 Alan Thompson : > If you haven't seen it yet, lein-ancient ( > https://github.com/xsc/lein-ancient) provides an easy way of checking > your project for out of date dependencies. For example: > > > lein ancient > [criterium "0.4.4"] is available but we use "0.4.3" > [tup

Re: lein repl and own functions

2016-07-14 Thread Cecil Westerhof
2016-07-14 20:06 GMT+02:00 Timothy Baldridge : > There probably is, since the user.clj file can exist anywhere on the > classpath. So it should be possible to add an entry to profile.clj and add > a classpath folder to some global location. > > However, I'm not sure I would recommend this approach

Re: lein repl and own functions

2016-07-14 Thread Ryan Fowler
you might find success with putting some injections in your ~/.lein/profiles.clj file. {:user {:injections [(defn foo[] (println "foo"))]}} On Thu, Jul 14, 2016 at 1:13 PM, Cecil Westerhof wrote: > 2016-07-14 20:06 GMT+02:00 Timothy Baldridge : > >> There probably is, since the user.clj file c

Re: lein repl and own functions

2016-07-14 Thread Gary Trakhman
One way to abuse lein repl, which may get you what you want for a loose 'lein repl' but is sure to cause some problem down the line is to add a project.clj in your home directory. When you call `lein repl` it'll recurse from current working directory through parent dirs until it finds a project.clj

Re: lein repl and own functions

2016-07-14 Thread Gregg Reynolds
you could also look into boot. nothing says you have to use leiningen. On Jul 14, 2016 1:13 PM, "Cecil Westerhof" wrote: > 2016-07-14 20:06 GMT+02:00 Timothy Baldridge : > >> There probably is, since the user.clj file can exist anywhere on the >> classpath. So it should be possible to add an en

Running a certain function of your project

2016-07-14 Thread Cecil Westerhof
In my project I have some functions I use when calling ‘lein repl’ in the project directory. Would it be possible to use just that function? So use lein to call this function and return? Maybe not very useful because of the time it takes to start the JVM, but I like to experiment. ;-) -- Cecil W

Re: Running a certain function of your project

2016-07-14 Thread Gary Trakhman
Boot and inlein are both more suitable for one-off scripts. On Thu, Jul 14, 2016 at 5:16 PM Cecil Westerhof wrote: > In my project I have some functions I use when calling ‘lein repl’ in the > project directory. Would it be pos

Re: Running a certain function of your project

2016-07-14 Thread Cecil Westerhof
2016-07-14 23:18 GMT+02:00 Gary Trakhman : > Boot and inlein > are both more suitable for one-off scripts. > ​OK, I will look into them.​ > On Thu, Jul 14, 2016 at 5:16 PM Cecil Westerhof > wrote: > >> In my project I have s

Error when upgrading yesql from 0.4.2 to 0.5.0

2016-07-14 Thread Cecil Westerhof
When I upgrade yesql in my project from 0.4.2 to 0.5.0, I get the following error: IllegalStateException Attempting to call unbound fn: #'yesql.named-parameters/reassemble-query clojure.lang.Var$Unbound.throwArity (Var.java:43) With 0.4.2 I get just the result I expect. What could be happening h

Re: Running a certain function of your project

2016-07-14 Thread Thomas Mulvaney
For one-off scripts I typically have a `scripts/` directory in my projects. I also have a scripts profile in my project.clj which includes "src/clj" and "scripts", that way my scripts can call functions from my project. I then have a bash script called `bin/script` which just contains "lein run wit

Re: clojure spec fdef

2016-07-14 Thread Kendall Buchanan
Got bit by this also. On Thursday, 26 May 2016 04:21:15 UTC-6, Alex Miller wrote: > > It's a little tricky but you want: > > (s/fdef remove-autoinc-columns :args (s/cat :cols (s/spec ::columns))) > > Here the args data is ([{:foo "some_t"}]) and while you have an s/cat for > :args and an s/cat in

Re: Error when upgrading yesql from 0.4.2 to 0.5.0

2016-07-14 Thread Sean Corfield
The yesql.named-parameters namespace was removed between 0.4.2 and 0.5.0. You can see all the changes made between 0.4.2 and 0.5.0 here: https://github.com/krisajenkins/yesql/compare/v0.4.2...0.5.0 It looks like 0.5.0 was a pretty major rewrite with a lot of API changes. Sean Corfie

Re: Error when upgrading yesql from 0.4.2 to 0.5.0

2016-07-14 Thread Cecil Westerhof
2016-07-15 0:05 GMT+02:00 Sean Corfield : > The yesql.named-parameters namespace was removed between 0.4.2 and 0.5.0. > > > > You can see all the changes made between 0.4.2 and 0.5.0 here: > > > > https://github.com/krisajenkins/yesql/compare/v0.4.2...0.5.0 > > > > It looks like 0.5.0 was a pretty

Re: Error when upgrading yesql from 0.4.2 to 0.5.0

2016-07-14 Thread Sean Corfield
Google has the Migration Guide cached, if that helps: https://webcache.googleusercontent.com/search?q=cache:zvoaA9nrTaUJ:https://github.com/krisajenkins/yesql/wiki/Migration+&cd=1&hl=en&ct=clnk&gl=us&client=safari And, yes, a LOT of API changes… Sean Corfield -- (970) FOR-SEAN -- (904)

Re: [ANN] Nightcode 2: Total Rewrite

2016-07-14 Thread Yoko Harada
Thanks for the update! A single REPL window on the new version looks nice. It's good to avoid confusion for beginners. Recently, ClojureBridge (clojurebridge.org) officially switched to Nightcode. I think ClojureBridge students will like this easy to use editor. However, there's a really *ouch* pr

Re: [ANN] Nightcode 2: Total Rewrite

2016-07-14 Thread Boris Kourtoukov
Hi Yoko, If all you need is standalone jar versions of Nightcode you can see all the past releases here: https://github.com/oakes/Nightcode/releases The jar should run on any platform. Best, Boris On Thursday, July 14, 2016 at 10:46:17 PM UTC-4, yokolet wrote: > > Thanks for the update! A si

Re: ANN: diehard 0.1.0, a Clojure wrapper for Failsafe

2016-07-14 Thread Ning Sun
Quick update: diehard 0.2.2 released with circuit breaker support. ;; Define a circuit breaker with failure threshold: ;; it will be open when 35 executions in 50 failed ;; and it waits 1000ms to become half-open, and tests 50 executions to ;; see if failure is recovered (diehard/defcircuitbreake