Re: How to configure a library from a file in the project that has it as a dependency?

2016-04-19 Thread Shantanu Kumar
How about accepting a fn as argument to provide the config required? In that case the user is free to use whichever library/hand-rolled code to read config from a file. Shantanu On Tuesday, 19 April 2016 22:15:22 UTC+5:30, Facundo Olano wrote: > > Hi! I started to use clojure a couple of months

Re: Validation Benchmark

2016-04-19 Thread Jason Wolfe
On Wed, Apr 20, 2016 at 12:31 AM, Atamert Ölçgen wrote: > Hi Jason, > > Thank you for the PR. I've just merged it. > > For now I have added this to the blog post: > > Results below and the comments about Schema being slow is no longer true. > See this pull request for the results Jason got with qu

Re: lein project cross-reference tools

2016-04-19 Thread Dave Tenny
I'll take a look at that clj-refactor. Re: IntelliJ. I vaguely (possibly incorrectly) recall there was someone who used the eclipse capabilities for java source code analysis and cross referencing and packaged it up as some kind of emacs extension. I wonder if anybody has done that with IntelliJ.

Re: How to configure a library from a file in the project that has it as a dependency?

2016-04-19 Thread Stephen Gilardi
If you end up using a separate config file rather than project.clj, you might find Carica https://github.com/sonian/carica useful. It allows merging config files on the classpath into one effective config hierarchy with predictable overriding behavior. Sample

Re: lein project cross-reference tools

2016-04-19 Thread Colin Yates
Have you tried the 'find usages' functionality of https://github.com/clojure-emacs/clj-refactor.el? Also - you might want to download IntelliJ and give cursive a try - cursive is fantastic for this sort of stuff ... and yes, I too feel a bit of despair that my suggestions is 'try this other to

Re: lein project cross-reference tools

2016-04-19 Thread Dave Tenny
Still looking for basic slime-like who-calls in cider. Is it there and I'm just missing it? On Tue, Apr 19, 2016 at 9:57 AM, Dave Tenny wrote: > Tags aside, a transtive closure who-calls report for a definition would > still be appreciated. > > On Tue, Apr 19, 2016 at 9:53 AM, Dave Tenny wrote

Re: Validation Benchmark

2016-04-19 Thread Atamert Ölçgen
Hi Jason, Thank you for the PR. I've just merged it. For now I have added this to the blog post: Results below and the comments about Schema being slow is no longer true. See this pull request for the results Jason got with quick mode benchm

[ANN] clojure.java.jdbc 0.6.0 Alpha 2

2016-04-19 Thread Sean Corfield
What? Clojure contrib JDBC wrapper https://github.com/clojure/java.jdbc Another minor step towards 0.6.0 Changes? Release 0.6.0-alpha2 on 2016-04-18 -- BREAKING RELEASE! ALL DEPRECATED FUNCTIONALITY HAS BEEN REMOVED! JDBC-118. • This removes deprecated func

How to configure a library from a file in the project that has it as a dependency?

2016-04-19 Thread Facundo Olano
Hi! I started to use clojure a couple of months ago and now I'm struggling to extract a little library from a larger project I'm working on. The lib is a gettext-like tool that allows translating strings based on a translations dictionary. I'd like to be able to include the lib as a dependency

Re: Recur in an overloaded function does not work?

2016-04-19 Thread James Elliott
But recur does not do that. Recur does not call a function at all. It is the opposite of calling a function, it says “I want to loop, without the overhead of calling a function and creating a stack frame.” Recur is even used outside of functions entirely; it is how you iterate using the (loop .

Re: ^:const changes data type

2016-04-19 Thread Nicola Mometto
Using `^:const` can lead to some funky behaviour, like the one you're seeing. AFAIK The only official documentation about it can be found in the clojure 1.3 changelog, https://github.com/clojure/clojure/blob/master/changes.md#215-const-defs where it is described as "^:const lets you name primiti

Re: Recur in an overloaded function does not work?

2016-04-19 Thread andmed
Thank you. That the point. If "recur" binds to fn, why it can not know the binding point as the function method based on the number of arguments passed to it? I mean it is clear that Clojure can't do that, but I can see no reason why it could or should not if we choose to implement such syntact

^:const changes data type

2016-04-19 Thread Michael Stalker
Adding ^:const to a var seems to change the data type sometimes: user> (def ^:const time1 (java.sql.Timestamp. 1) #'user/time1 user> (def time2 (java.sql.Timestamp. 1) #'user/time2 user> (type time1) java.util.Date user> (type time2) java.sql.Timestamp The upshot is that while (=

Subject: Functional Art, Music, Modelling and Design 2016: 2nd Call For Papers

2016-04-19 Thread Michael Sperber
4th ACM SIGPLAN International Workshop on Functional Art, Music, Modelling and Design http://functional-art.org/2016/ Co-located with ICFP Nara, Japan, 24 September, 2016 Call for Papers and Demos The ACM SIGPLAN International Workshop on Functional Art, Music, Modelling and Design (FARM) gathe

Re: lein project cross-reference tools

2016-04-19 Thread Dave Tenny
Tags aside, a transtive closure who-calls report for a definition would still be appreciated. On Tue, Apr 19, 2016 at 9:53 AM, Dave Tenny wrote: > Hmm, okay, trying etags, certainly plenty of google hits there as opposed > to googling "cross reference". FYI, in terms of emacs compatibility, I >

Re: lein project cross-reference tools

2016-04-19 Thread Dave Tenny
Hmm, okay, trying etags, certainly plenty of google hits there as opposed to googling "cross reference". FYI, in terms of emacs compatibility, I generally use CIDER if anybody has suggestoins for how to search without a live repl or with a live repl but across projects or uberjars. On Tue, Apr 19

Re: [ANN] components.md

2016-04-19 Thread Francis Avila
I believe by "several different mem-dbs" he means different instances, not implementations, i.e. they differ by name and (maybe) config, but share an implementation. There are two ways this can happen: two system graphs in the same clojure runtime, or one system graph that uses the same service

Re: lein project cross-reference tools

2016-04-19 Thread Dave Tenny
Oh, if crossclj DOES do what I'm asking, please let me know, I found the pages I visited a bit confusing as to how I might analyze my (private) projects. On Tue, Apr 19, 2016 at 9:30 AM, Dave Tenny wrote: > I'm tired of doing 'find-grep' type operations (including that command in > emacs). > > A

lein project cross-reference tools

2016-04-19 Thread Dave Tenny
I'm tired of doing 'find-grep' type operations (including that command in emacs). Are there any decent tools for producing cross reference reports and emacs who-calls data in some useful form? A search on the topic mostly points to 'crossclj', which doesn't seem to be what I want (I don't ne

Re: [ANN] components.md

2016-04-19 Thread Brian Platz
Jeroen, Happy to talk more about it on Slack. No matter what you are `def`-ing something somewhere. For Component I’d `def` a big config map, and I do the same with Mount. My advantage with Mount in the REPL is that I can have local vars for ‘components’ that are easy to reference (but still

Re: [ANN] components.md

2016-04-19 Thread Jeroen van Dijk
Hi Brian, When looking at the Readme of Mount (I think) I already see global state backed in. (defstate ^{:on-reload :noop} mem-db :start (connect config) :stop (disconnect mem-db)) Do I misunderstand this or do we just disagree on what global state is? What if I want