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 that one.

-- 
Cecil Westerhof

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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.numeric-tower "0.0.4"]
 [seesaw "1.4.5"]
 [yesql  "0.4.0"]]

Is there a way to get notified about newer (stable) releases? They say:
never change a winning team, but I think it a good idea (most of the time)
to upgrade to a newer version when that is possible.

-- 
Cecil Westerhof

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 is called alpha. But
> when there is a stable 1.9.0 I want to use that one.
>

No - you'll have to specify "1.8.0" as the version if you want the
latest stable release. Maven-style repos support two special versions:
"LATEST" and "RELEASE". LATEST will give you the latest deployment,
either a release or a snapshot. RELEASE ignores snapshots, so you get
the latest release. Since there is no standard around qualifiers
(alpha, beta, final, experimental, etc) other than SNAPSHOT, the repo
has no way to know that 1.9.0-alpha10 has a different stability level
than 1.8.0.

However, I would recommend against using these special versions in
general (even if they did work the way you want), because you will at
some point get a new version with no action on your part. When this
happens, you may end up with test failures or new warning messages,
and have to track down the cause, looking at every dependency you have
set to a special version, with no immediate indication of which ones
may have changed.

- Toby

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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"]
>  [clj-time   "0.8.0"]
>  [com.h2database/h2  "1.3.176"]
>  [instaparse "1.4.2"]
>  [org.clojure/math.numeric-tower "0.0.4"]
>  [seesaw "1.4.5"]
>  [yesql  "0.4.0"]]
>
> Is there a way to get notified about newer (stable) releases? They say:
> never change a winning team, but I think it a good idea (most of the time)
> to upgrade to a newer version when that is possible.
>
> --
> Cecil Westerhof
>
> --
> 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 unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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, but 0.5.0 and higher do not
work. I do not get an error, but it looks like queries are not executed or
give an empty result. I have to look into that.


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.


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"]
> >  [clj-time   "0.8.0"]
> >  [com.h2database/h2  "1.3.176"]
> >  [instaparse "1.4.2"]
> >  [org.clojure/math.numeric-tower "0.0.4"]
> >  [seesaw "1.4.5"]
> >  [yesql  "0.4.0"]]
> >
> > Is there a way to get notified about newer (stable) releases? They say:
> > never change a winning team, but I think it a good idea (most of the
> time)
> > to upgrade to a newer version when that is possible.
>

-- 
Cecil Westerhof

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 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, but 0.5.0 and higher do not 
> work. I do not get an error, but it looks like queries are not executed or 
> give an empty result. I have to look into that.
>
>
> 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.
>
>
> 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"]
>> >  [clj-time   "0.8.0"]
>> >  [com.h2database/h2  "1.3.176"]
>> >  [instaparse "1.4.2"]
>> >  [org.clojure/math.numeric-tower "0.0.4"]
>> >  [seesaw "1.4.5"]
>> >  [yesql  "0.4.0"]]
>> >
>> > Is there a way to get notified about newer (stable) releases? They say:
>> > never change a winning team, but I think it a good idea (most of the 
>> time)
>> > to upgrade to a newer version when that is possible.
>>
>  
> -- 
> Cecil Westerhof
>

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 looked a little further. It can be done with:

lein ancient check-profiles

I would expect that the profiles would be checked when not in a
project, but I can live with this.

-- 
Cecil Westerhof

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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://defn.audio

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 own functions also included when using ‘lein repl’?

-- 
Cecil Westerhof

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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.

-- 
Cecil Westerhof

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 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 own functions also included when using ‘lein repl’?
>
> --
> Cecil Westerhof
>
> --
> 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 unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
“One of the main causes of the fall of the Roman Empire was that–lacking
zero–they had no way to indicate successful termination of their C
programs.”
(Robert Firth)

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 of Clojure have been remarkably stable and this allows us to 
leverage new functionality as soon as it becomes available.

 

In particular, 1.9.0 Alpha 10 is just 1.8.0 + a handful of new predicates in 
core + clojure.spec.

 

The new predicates may cause warnings or errors if you’re using libraries that 
define their own versions but we have already adopted several of them so we 
could simplify our existing code and remove some of our own custom predicates.

 

Otherwise it’s a purely additive release and you can simply ignore clojure.spec 
if you’re not ready to use it (we’re already developing new production code on 
top of it, although that hasn’t been merged to our production branch yet).

 

We have had automated testing against Clojure’s master SNAPSHOT for years so we 
always get an early heads up if an upcoming “RELEASE” change would break 
anything. That’s easy to do with Leiningen profiles or Boot pods (and tasks 
like boot-expectations allow you to specify which version of Clojure to use, so 
multi-version testing is pretty much trivial!).

 

Sean Corfield -- (970) FOR-SEAN -- (904) 302-SEAN
An Architect's View -- http://corfield.org/

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

 

On 7/14/16, 3: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 is called alpha. But when 
there is a stable 1.9.0 I want to use that one.


-- 

Cecil Westerhof

-- 

 

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 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 unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> 
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "Clojure" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/clojure/-A8vLn4Sek8/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> clojure+unsubscr...@googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 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 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 own functions also included when using ‘lein repl’?
>>
>
-- 
Cecil Westerhof

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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/specter "0.11.2"] is available but we use "0.9.1"


I tend to run it every couple of months, or whenever I remember.  Then it
is easy to update project.clj

Alan


On Thu, Jul 14, 2016 at 3: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 is called alpha. But
> when there is a stable 1.9.0 I want to use that one.
>
> --
> Cecil Westerhof
>
> --
> 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 unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 production with 1.9.0 Alpha
> 10. Prerelease builds of Clojure have been remarkably stable and this
> allows us to leverage new functionality as soon as it becomes available.
>
>
>
> In particular, 1.9.0 Alpha 10 is just 1.8.0 + a handful of new predicates
> in core + clojure.spec.
>
>
>
> The new predicates may cause warnings or errors if you’re using libraries
> that define their own versions but we have already adopted several of them
> so we could simplify our existing code and remove some of our own custom
> predicates.
>
>
>
> Otherwise it’s a purely additive release and you can simply ignore
> clojure.spec if you’re not ready to use it (we’re already developing new
> production code on top of it, although that hasn’t been merged to our
> production branch yet).
>
>
>
> We have had automated testing against Clojure’s master SNAPSHOT for years
> so we always get an early heads up if an upcoming “RELEASE” change would
> break anything. That’s easy to do with Leiningen profiles or Boot pods (and
> tasks like boot-expectations allow you to specify which version of Clojure
> to use, so multi-version testing is pretty much trivial!).
>



​Well, I could put in my profiles.clj LATEST and in all my project.clj
1.8.0​
​.

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 a project with the project itself. With
a local user.clj you can check that into git and have it the next time you
share/re-download the project.

On Thu, Jul 14, 2016 at 11:50 AM, Cecil Westerhof 
wrote:

> 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 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 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 own functions also included when using ‘lein repl’?
>>>
>>
> --
> Cecil Westerhof
>
> --
> 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 unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
“One of the main causes of the fall of the Roman Empire was that–lacking
zero–they had no way to indicate successful termination of their C
programs.”
(Robert Firth)

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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"
> [tupelo "0.9.0"] is available but we use "0.1.60"
> [com.rpl/specter "0.11.2"] is available but we use "0.9.1"
>
>
> I tend to run it every couple of months, or whenever I remember.  Then it
> is easy to update project.clj
>

​Yes, in another tread I was pointed to that. Very handy indeed. I could
write a script that I run every week in crontab that would notify me when
something is to old.

Have to take care of a few things:
- Latest of H2 is 1.4.192, but latest stable is 1.3.176.
- Latest of yesql is 0.5.3 ​, but my application does not work with a
version after 0.4.2.

-- 
Cecil Westerhof

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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. IMO, it's better to
> keep all the development tools for a project with the project itself. With
> a local user.clj you can check that into git and have it the next time you
> share/re-download the project
> ​.
>

​It is more for when I am doing lein repl, not for projects. I could make a
dummy project and always do lein repl there, but I find that a bit of a
bother. I will look into it.

> ​
>
> On Thu, Jul 14, 2016 at 11:50 AM, Cecil Westerhof 
> wrote:
>
>>
>> 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 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 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 own functions also included when using ‘lein repl’?

>>>
-- 
Cecil Westerhof

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 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 a project with the project itself.
>> With a local user.clj you can check that into git and have it the next time
>> you share/re-download the project
>> ​.
>>
>
> ​It is more for when I am doing lein repl, not for projects. I could make
> a dummy project and always do lein repl there, but I find that a bit of a
> bother. I will look into it.
>
>> ​
>>
>> On Thu, Jul 14, 2016 at 11:50 AM, Cecil Westerhof > > wrote:
>>
>>>
>>> 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 AM, Cecil Westerhof <
 cldwester...@gmail.com> 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 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 own functions also included when using ‘lein repl’?
>

> --
> Cecil Westerhof
>
> --
> 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 unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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, which will be your root project unless you're in another
clojure project.  I have found this to sometimes lead to surprising
behavior, and no longer do it.

On Thu, Jul 14, 2016 at 2: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 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 a project with the project itself.
>> With a local user.clj you can check that into git and have it the next time
>> you share/re-download the project
>> ​.
>>
>
> ​It is more for when I am doing lein repl, not for projects. I could make
> a dummy project and always do lein repl there, but I find that a bit of a
> bother. I will look into it.
>
>> ​
>>
>> On Thu, Jul 14, 2016 at 11:50 AM, Cecil Westerhof > > wrote:
>>
>>>
>>> 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 AM, Cecil Westerhof <
 cldwester...@gmail.com> 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 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 own functions also included when using ‘lein repl’?
>

> --
> Cecil Westerhof
>
> --
> 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 unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 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 a project with the project itself.
>> With a local user.clj you can check that into git and have it the next time
>> you share/re-download the project
>> ​.
>>
>
> ​It is more for when I am doing lein repl, not for projects. I could make
> a dummy project and always do lein repl there, but I find that a bit of a
> bother. I will look into it.
>
>> ​
>>
>> On Thu, Jul 14, 2016 at 11:50 AM, Cecil Westerhof > > wrote:
>>
>>>
>>> 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 AM, Cecil Westerhof <
 cldwester...@gmail.com> 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 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 own functions also included when using ‘lein repl’?
>

> --
> Cecil Westerhof
>
> --
> 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 unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 Westerhof

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 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 Westerhof
>
> --
> 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 unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 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 Westerhof

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 here?

-- 
Cecil Westerhof

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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
with-profile +scripts -m $@"

Now, say I have a script with namespace 'db.migrate' under
"scripts/db/migrate.clj", calling it is just a matter of doing `bin/scripts
db.migrate arg1 arg2 `.

HTH

On Thu, Jul 14, 2016 at 10:34 PM, Cecil Westerhof 
wrote:

> 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 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 Westerhof
>
> --
> 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 unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 ::columns, those will be combined into the same regex 
> so that's basically the same thing as ::columns. You need to force a new 
> level of regex context and the s/spec will do that.
>
> On Thursday, May 26, 2016 at 4:32:52 AM UTC-5, Sven Richter wrote:
>>
>> Hi,
>>
>> I already asked this in the spec channel on slack, but got no response 
>> yet.
>>
>> I have this simple spec definition:
>>
>> (s/def ::foo string?)
>>
>> ​
>>
>> (s/def ::column (s/keys :req-un [::foo]))
>>
>> ​
>>
>> (s/def ::columns (s/cat :col (s/* (s/spec ::column
>>
>> ;(s/def ::columns (s/cat :col (s/* ::column)))
>>
>> ​
>>
>> (defn remove-autoinc-columns [cols]
>>
>>   (vec (remove #(= true (:autoinc %)) cols)))
>>
>> ​
>>
>> (s/fdef remove-autoinc-columns :args (s/cat :cols ::columns)
>>
>> :ret ::columns)
>>
>> ​
>>
>>
>> $(remove-autoinc-columns [{:foo "some_t"}])
>>
>> ===> ExceptionInfo Call to 
>> #'de.sveri.clospcrud.s-play/remove-autoinc-columns did not conform to spec:
>>
>> At: [:args] val: ([{:foo "some_t"}]) fails predicate: (cat :cols 
>> :de.sveri.clospcrud.s-play/columns),  Extra input
>>
>> :clojure.spec/args  ([{:foo "some_t"}])
>>
>>   clojure.core/ex-info (core.clj:4617)
>>
>>
>> On the other hand, running this:
>> (s/conform ::columns [{:foo "some_t"}])
>> => {:col [{:foo "some_t"}]}
>> works.
>>
>> So something is broken within the fdefs argument definition.
>>
>> I dont see my mistake here, can somone else reproduce / fix this?
>>
>> Thanks,
>> Sven
>>
>

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 Corfield -- (970) FOR-SEAN -- (904) 302-SEAN
An Architect's View -- http://corfield.org/

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

 

On 7/14/16, 2:47 PM, "Cecil Westerhof"  wrote:

 

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 here?


-- 

Cecil Westerhof

 

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 major rewrite with a lot of API changes.
>

​I got it figured out what to do (the link to Migration Guide does not
work), but that makes for a pretty big overhaul of my code. :'-(



> On 7/14/16, 2:47 PM, "Cecil Westerhof"  behalf of cldwester...@gmail.com> wrote:
>
>
>
> 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 here?
>
>

-- 
Cecil Westerhof

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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) 302-SEAN
An Architect's View -- http://corfield.org/

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

 

On 7/14/16, 3:49 PM, "Cecil Westerhof"  wrote:

 

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 major rewrite with a lot of API changes.

 

​I got it figured out what to do (the link to Migration Guide does not work), 
but that makes for a pretty big overhaul of my code. :'-(

 

 

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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* problem in version 2.0.0. It doesn't play
nicely with Overtone. ClojureBridge has one Overtone material, which works
well on night code 1.3.1. I could run (piano),  (piano 48) or other
Overtone functions many times on the REPL window. But, on 2.0.0, if I run
(piano) once, that's it. REPL window acts weirdly.

Are there any links to older versions? For a while, ClojureBridge wants to
stick to version 1.3.x.

- Yoko



On Wed, Jul 13, 2016 at 11:18 PM, Christopher Small 
wrote:

> OMG. Thank you for this brilliant introduction. And of course all your
> hard work, as well :-)
>
>
>
> On Wednesday, July 13, 2016 at 7:35:53 PM UTC-7, Zach Oakes wrote:
>>
>> As I understand it, the Boot.java I linked to basically does that. You
>> just run its main function and it takes care of downloading Boot to the
>> right spot and invoking it.
>>
>> On Wednesday, July 13, 2016 at 10:18:05 PM UTC-4, Colin Fleming wrote:
>>>
>>> What I do for Leiningen in Cursive is basically mimic what the lein
>>> script does, and download the uberjars to .lein/self-installs, and then run
>>> processes with those on the classpath. Would something similar for Boot
>>> work? As I understand it, boot.sh is just a tricky wrapper around an
>>> embedded jar, so hopefully that would work. I'm also selfishly interested
>>> in this because I don't support boot yet but I want to.
>>>
>>> On 14 July 2016 at 14:12, Zach Oakes  wrote:
>>>
 If I get desperate I may do that, but the main users I care about are
 beginners, and they generally have trouble installing CLI tools. I'm hoping
 it is a trivial fix and I'll be able to get Boot working in 2.1.0 :)

 On Wednesday, July 13, 2016 at 9:44:50 PM UTC-4, Mark wrote:
>
> How about, until the issues are resolved, you require boot to be
> installed?
> On Jul 13, 2016 6:52 PM, "Zach Oakes"  wrote:
>
>> That Boot tab is quite a tease ;) I wanted to finish support for it
>> so bad, but technical difficulties prevented me from doing it. I 
>> definitely
>> plan to still do so, and any help would be appreciated.
>>
>> The issue is actually pretty simple: I need to be able to call Boot
>> commands without having Boot installed. I do so for Leiningen by 
>> literally
>> adding it as a dependency and calling its build commands programatically.
>> Boot simply isn't designed to work that way.
>>
>> After talking to the Boot folks, they suggested I add Boot.java
>>  to
>> my project and start a process that calls its main method with the
>> appropriate task names. Easy enough, but that does not actually work. It
>> turns out that AOT compilation causes this java file to not behave
>> correctly.
>>
>> If anyone is interested in investigating this, I created a minimal
>> case for this issue here: https://github.com/oakes/boot-clj-issue
>>
>> Once that is resolved, it will be pretty trivial to enable building
>> Boot projects.I actually would like to make the built-in templates use 
>> Boot
>> by default instead of Leiningen. Boot scripts in particular will be 
>> awesome
>> for beginners.
>>
>> On Wednesday, July 13, 2016 at 6:44:01 PM UTC-4, Sean Corfield wrote:
>>>
>>> I see a Boot tab in the REPL area but looking at the source code,
>>> detecting build.boot is disabled (and, indeed, I can’t get NC to 
>>> recognize
>>> any of my Boot-only projects).
>>>
>>>
>>>
>>> Can you speak to where you are on Boot support?
>>>
>>>
>>>
>>> Thanks,
>>>
>>> Sean Corfield -- (970) FOR-SEAN -- (904) 302-SEAN
>>> An Architect's View -- http://corfield.org/
>>>
>>> "If you're not annoying somebody, you're not really alive."
>>> -- Margaret Atwood
>>>
>>>
>>>
>>> On 7/13/16, 10:58 AM, "Zach Oakes" >> behalf of zso...@gmail.com> wrote:
>>>
>>> TL;DR: Nightcode, a Clojure IDE, just got a makeover:
>>> https://sekao.net/nightcode/
>>>
>>>
>>>
>>>
>>>
>>> --
>> You received this message because you are subscribed to the Google
>> Groups "Clojure" group.
>> To post to this group, send email to clo...@googlegroups.com
>> Note that posts from new members are moderated - please be patient
>> with your first post.
>> To unsubscribe from this group, send email to
>> clojure+u...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>> ---
>> You received this message because you are subscribed to the Google
>> G

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 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* problem in version 2.0.0. It doesn't play 
> nicely with Overtone. ClojureBridge has one Overtone material, which works 
> well on night code 1.3.1. I could run (piano),  (piano 48) or other 
> Overtone functions many times on the REPL window. But, on 2.0.0, if I run 
> (piano) once, that's it. REPL window acts weirdly.
>
> Are there any links to older versions? For a while, ClojureBridge wants to 
> stick to version 1.3.x.
>
> - Yoko
>
>
>
> On Wed, Jul 13, 2016 at 11:18 PM, Christopher Small  > wrote:
>
>> OMG. Thank you for this brilliant introduction. And of course all your 
>> hard work, as well :-)
>>
>>
>>
>> On Wednesday, July 13, 2016 at 7:35:53 PM UTC-7, Zach Oakes wrote:
>>>
>>> As I understand it, the Boot.java I linked to basically does that. You 
>>> just run its main function and it takes care of downloading Boot to the 
>>> right spot and invoking it.
>>>
>>> On Wednesday, July 13, 2016 at 10:18:05 PM UTC-4, Colin Fleming wrote:

 What I do for Leiningen in Cursive is basically mimic what the lein 
 script does, and download the uberjars to .lein/self-installs, and then 
 run 
 processes with those on the classpath. Would something similar for Boot 
 work? As I understand it, boot.sh is just a tricky wrapper around an 
 embedded jar, so hopefully that would work. I'm also selfishly interested 
 in this because I don't support boot yet but I want to.

 On 14 July 2016 at 14:12, Zach Oakes  wrote:

> If I get desperate I may do that, but the main users I care about are 
> beginners, and they generally have trouble installing CLI tools. I'm 
> hoping 
> it is a trivial fix and I'll be able to get Boot working in 2.1.0 :)
>
> On Wednesday, July 13, 2016 at 9:44:50 PM UTC-4, Mark wrote:
>>
>> How about, until the issues are resolved, you require boot to be 
>> installed?
>> On Jul 13, 2016 6:52 PM, "Zach Oakes"  wrote:
>>
>>> That Boot tab is quite a tease ;) I wanted to finish support for it 
>>> so bad, but technical difficulties prevented me from doing it. I 
>>> definitely 
>>> plan to still do so, and any help would be appreciated.
>>>
>>> The issue is actually pretty simple: I need to be able to call Boot 
>>> commands without having Boot installed. I do so for Leiningen by 
>>> literally 
>>> adding it as a dependency and calling its build commands 
>>> programatically. 
>>> Boot simply isn't designed to work that way.
>>>
>>> After talking to the Boot folks, they suggested I add Boot.java 
>>>  to 
>>> my project and start a process that calls its main method with the 
>>> appropriate task names. Easy enough, but that does not actually work. 
>>> It 
>>> turns out that AOT compilation causes this java file to not behave 
>>> correctly.
>>>
>>> If anyone is interested in investigating this, I created a minimal 
>>> case for this issue here: https://github.com/oakes/boot-clj-issue
>>>
>>> Once that is resolved, it will be pretty trivial to enable building 
>>> Boot projects.I actually would like to make the built-in templates use 
>>> Boot 
>>> by default instead of Leiningen. Boot scripts in particular will be 
>>> awesome 
>>> for beginners.
>>>
>>> On Wednesday, July 13, 2016 at 6:44:01 PM UTC-4, Sean Corfield wrote:

 I see a Boot tab in the REPL area but looking at the source code, 
 detecting build.boot is disabled (and, indeed, I can’t get NC to 
 recognize 
 any of my Boot-only projects).

  

 Can you speak to where you are on Boot support?

  

 Thanks,

 Sean Corfield -- (970) FOR-SEAN -- (904) 302-SEAN
 An Architect's View -- http://corfield.org/

 "If you're not annoying somebody, you're not really alive."
 -- Margaret Atwood

  

 On 7/13/16, 10:58 AM, "Zach Oakes" >>> behalf of zso...@gmail.com> wrote:

 TL;DR: Nightcode, a Clojure IDE, just got a makeover: 
 https://sekao.net/nightcode/

  

  

 -- 
>>> You received this message because you are subscribed to the Google
>

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/defcircuitbreaker test-cb {:failure-threshold-ratio [35 50]
:delay-ms 1000})

;; you code within `with-circuit-breaker` will be protected by this
;; circuit breaker `test-cb`
;; if it's open, the block will throw a
;; `net.jodah.failsafe.CircuitBreakerOpenException`
;; and fail fast without blocking.

(diehard/with-circuit-breaker test-cb
  ;; your protected code here
  )

For more information and issue reporting:

https://github.com/sunng87/diehard
https://sunng87.github.io/diehard/


On 07/04/2016 11:32 PM, Ning Sun wrote:
> That's already in progress:
> https://github.com/sunng87/diehard/pull/1
> 
> On 07/03/2016 02:21 AM, Janko Muzykant wrote:
>> Eagerly waiting for circuit-breaker wrapper :)
>>
>> cheers,
>> j.
>>
>>
>> Ning Sun  writes:
>>
>>> Hi all,
>>>
>>> Just to announce the first release of diehard[1], a clojure wrapper over
>>> the Failsafe[2] library, which deals retry stuff for you.
>>>
>>> Diehard allows you to set retry criteria for any block a clojure code, like:
>>>
>>> (diehard/with-retry {:retry-on IOException}
>>>   (http/get "https://google.com";))
>>>
>>> The first release only has retry supported, more to come in next few
>>> versions.
>>>
>>> [1]: https://github.com/sunng87/diehard/
>>> [2]: https://github.com/jhalterman/failsafe
>>
> 

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: OpenPGP digital signature