Re: how to packge lein project in a maven-style?

2014-01-06 Thread Chris Jeris
https://github.com/djpowell/lein-libdir may do what you want for assembling dependencies. peace, Chris Jeris On Mon, Jan 6, 2014 at 12:33 AM, Qiu Xiafei wrote: > > > Using maven, we usually package the project in a directory with sub dirs > like: > bin/ # bash/python scripts > lib/ #

Possible heisenbug in test suite (not in individual test runs) with memoization

2014-01-06 Thread David James
I've got a Clojure test suite that fails when run as whole but passes when run piecemeal. This just started happening. I've tested the code thoroughly. The bug pops up in a part of the code that I did not change. So, at present, it feels like a heisenbug! These may be some relevant pieces: * I'm u

Re: Possible heisenbug in test suite (not in individual test runs) with memoization

2014-01-06 Thread Justin Kramer
Shot in the dark: check that arguments passed to your memoized functions use consistent typing. A BigDecimal such as 1M does not necessarily equal 1 (a Long): > (= 1 1M) false > (== 1 1M) true Your memoized functions could be recomputing values unnecessarily if you're giving them different typ

Re: Namespaces in waiting

2014-01-06 Thread Stephen C. Gilardi
On Jan 1, 2014, at 3:26 PM, Dave Tenny wrote: > When I use 'lein repl' in some project context and get to the REPL prompt, > there's an available but as yet not ... present ... namespace, i.e. (all-ns) > won't list the namespace(s) created in the lein project directory tree. > > Is there some

Re: ClojureScript integration with Emacs/Cider ?

2014-01-06 Thread Tim Visher
Hi Alexandru, On Sun, Jan 5, 2014 at 3:30 PM, Alexandru Nedelcu wrote: > I can’t get auto-completion or jumping to the definition of a function in > Emacs, while working with ClojureScript. Is this a limitation of Emacs’ > Cider plugin? IIUC, completing et al does not work for ClojureScript beca

Re: ClojureScript integration with Emacs/Cider ?

2014-01-06 Thread David Nolen
Limitation of tooling. ClojureScript analyzer exposes the necessary information. On Monday, January 6, 2014, Tim Visher wrote: > Hi Alexandru, > > On Sun, Jan 5, 2014 at 3:30 PM, Alexandru Nedelcu > > > wrote: > > I can’t get auto-completion or jumping to the definition of a function in > > Emac

Re: ClojureScript integration with Emacs/Cider ?

2014-01-06 Thread Tim Visher
On Mon, Jan 6, 2014 at 3:01 PM, David Nolen wrote: > Limitation of tooling. ClojureScript analyzer exposes the necessary > information. That is seriously great to hear. I had no idea we were that far along. -- In Christ, Timmy V. http://blog.twonegatives.com/ http://five.sentenc.es/ -- Spend

Re: ClojureScript integration with Emacs/Cider ?

2014-01-06 Thread Colin Fleming
Since Cursive (http://cursiveclojure.com) resolves everything statically from source, ClojureScript completion and navigation works for most symbols. There are still a lot that it doesn't know about since cljs-specific functionality is still pretty low, so js/* symbols have no support, and any func

Re: [ANN] data.avl 0.0.10 -- fast sorted maps and sets with log-time rank queries

2014-01-06 Thread Michał Marczyk
On 6 January 2014 00:33, Brandon Bloom wrote: > Michał: This is awesome. Thanks for the continued awesome work on data > structures! > >> >> ;; if the key is not present in the collection, -1 is returned: >> (avl/rank-of (avl/sorted-set 3 4 5) 0) >> ;= -1 > > > Curious: Why not return nil in

Re: ANN: Om, a ClojureScript binding to Facebook's React

2014-01-06 Thread Curtis Gagliardi
I watched a few talks from facebook people about React and was impressed, lots of talk about the simplicity of just rerendering everything and pure functions. I think this is the first time I've been excited about a javascript framework, looking forward to trying it out with Om. On Sunday, Ja

Re: Possible heisenbug in test suite (not in individual test runs) with memoization

2014-01-06 Thread Cedric Greevey
It's possibly an interaction between memoization and dynamic vars; more specifically, a result might be being memoized with one with-precision context active, and then recalled with a different one active, with arguments that compare equal despite the different precisions (say, because those argume

Re: how to packge lein project in a maven-style?

2014-01-06 Thread Qiu Xiafei
yes, lein-libdir help copy depencencies, maybe i have to copy other resource files by hand. On Tue, Jan 7, 2014 at 12:34 AM, Chris Jeris wrote: > https://github.com/djpowell/lein-libdir may do what you want for > assembling dependencies. > > peace, Chris Jeris > > > On Mon, Jan 6, 2014 at 12:33

Re: Cute Clojure tricks

2014-01-06 Thread curiousGuy
This is extremely disappointing, that the flag must change when the U.S. takes over all of North America. I suspect that this issue on flag design will be the likely reason that this never happens. On Monday, January 6, 2014 1:02:29 PM UTC+8, Cedric Greevey wrote: > > How many states can the US

Re: ANN: Om, a ClojureScript binding to Facebook's React

2014-01-06 Thread David Nolen
The sortable example in the repo is now relatively baked. I'm happy to see React can handle interactive UIs so well. On Monday, January 6, 2014, David Pidcock wrote: > Ha! Just saw your Sortable example popup in Git! > > Very cool. > > > > On Thursday, January 2, 2014 4:00:45 PM UTC-8, David Pidc

Perl Regexp::Grammars in Clojure?

2014-01-06 Thread gvim
I'm fairly new to Clojure, having spent many years working with Perl. One area where Perl has always shone is regular expressions and text parsing. Perl 6 took this one step further with grammars and the genius that is Damian Conway managed to port Perl 6 grammars to Perl 5: http://search.cpan

Re: Perl Regexp::Grammars in Clojure?

2014-01-06 Thread Andy Fingerhut
Mark Engelberg's Instaparse most likely does not have the same feature set as Regexp::Grammars (I haven't checked in enough detail to learn the differences), but they do likely have features in common: https://github.com/Engelberg/instaparse Andy On Mon, Jan 6, 2014 at 9:04 PM, gvim wrote:

Re: ClojureScript integration with Emacs/Cider ?

2014-01-06 Thread Bozhidar Batsov
I'm cider's maintainer. The problem with code completion for ClojureScript is that the default mechanism is based on the Clojure-only library https://github.com/ninjudd/clojure-complete. As I don't use ClojureScript I haven't paid much attention to it so far. If there is a similar library for C