Re: Contributors needed for Rouge (Clojure on Ruby)

2014-01-05 Thread Glen Mailer
Have you looked into running clojurescript on Node.js? This should be a reasonable environment for command line scripting -- -- 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 pos

Re: Sorting Nested Vectors and filter out some

2014-01-05 Thread Jeff Angle
Hi Cedric, Thanksvery insightful! On Sunday, January 5, 2014 1:30:07 AM UTC+3, Cedric Greevey wrote: > > You might wish to consider a different data structure. For example, the > inner objects might be better off as maps with named keys, so your lookup > keys would be things like :amount rat

Re: Require namespace

2014-01-05 Thread Tim Visher
Hi juanghui, If you're working out your stuff, more power to you, but I do want to say that you sound quite far off the beaten path of Clojure usage, so just be aware that you may be accomplishing your goal in a non-standard, hard to support way. :) On Sat, Jan 4, 2014 at 6:12 AM, jianghui wrote

Re: Require namespace

2014-01-05 Thread Justin Smith
Agreed, sticking with require scales better than load-file, and require is actually the right way to use functionality in another ns. load-file is a clumsy tool and you will hit its limits quickly. On Sunday, January 5, 2014 8:54:18 AM UTC-8, Tim Visher wrote: > > Hi juanghui, > > If you're wor

Re: Contributors needed for Rouge (Clojure on Ruby)

2014-01-05 Thread John Gabriele
On Saturday, January 4, 2014 1:12:12 PM UTC-5, Michael Gardner wrote: > > > Hopefully the landscape for alternative Clojure hosts will improve with > the completion of CinC [2]. > > [2] https://github.com/Bronsa/CinC Looks like CinC is now: * https://github.com/clojure/tools.analyzer * ht

Re: [ANN] Component: dependency injection and state management

2014-01-05 Thread Korny Sietsma
Hi - I've been playing with this and I'm a little confused. I can understand how you use the library to pass around stateful components, and to start/stop them and wire them up etc. But I'm not sure I see how it should be used for more general dependency injection. I'll pick a concrete example -

Re: [ANN] Component: dependency injection and state management

2014-01-05 Thread Stuart Sierra
Hi Korny, Components implementing protocols can provide different implementations. In the Database example, both the "real" component and the "stub" component would have to implement some common protocol that defines the "primitive" capabilities needed by the application. Traditional update-in-pl

Re: Contributors needed for Rouge (Clojure on Ruby)

2014-01-05 Thread Timothy Baldridge
Sure, anyone can go and write an emitter using these tools, but this doesn't solve the issues of a good type system, GC, JIT, etc. These tools make it easier to make any Clojure implementation self hosting, but those impls still need a good foundation to build on, and that's the hard part. Timothy

Re: [ANN] Component: dependency injection and state management

2014-01-05 Thread Korny Sietsma
Thanks - I'd kind-of worked that out after posting (with the aid of a walk outside, and a beer!) but it's nice to know I'm on the right track. On 5 Jan 2014 19:05, "Stuart Sierra" wrote: > Hi Korny, > > Components implementing protocols can provide different implementations. > In the Database exa

ClojureScript integration with Emacs/Cider ?

2014-01-05 Thread Alexandru Nedelcu
Hi, 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? I managed to get nRepl working by using the awesome com.cemerick/austin

Re: Contributors needed for Rouge (Clojure on Ruby)

2014-01-05 Thread Mikera
On Sunday, 5 January 2014 18:18:22 UTC, John Gabriele wrote: > > On Saturday, January 4, 2014 1:12:12 PM UTC-5, Michael Gardner wrote: > >> >> > Hopefully the landscape for alternative Clojure hosts will improve with >> the completion of CinC [2]. >> >> [2] https://github.com/Bronsa/CinC > > > Lo

Re: Contributors needed for Rouge (Clojure on Ruby)

2014-01-05 Thread Joel Holdbrooks
As one of the original contributors to Rouge I will definitely agree that it does need a lot of work. That being said, if there's interest and pull requests are submitted the original author or myself typically chime in. Both of us have been busy with other projects/life and haven't done much w

Re: Contributors needed for Rouge (Clojure on Ruby)

2014-01-05 Thread Joel Holdbrooks
As a suffix to my last reply; if Hy were capable of delivering acceptable truthy semantics and persistent data structures, I might recommend it. On Saturday, January 4, 2014 9:44:08 AM UTC-8, g vim wrote: > > On 04/01/2014 17:28, gaz jones wrote: > > Why not just use Ruby or (my preference) Pyth

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

2014-01-05 Thread Brandon Bloom
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 instead of -1? -- -- You received this message because

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

2014-01-05 Thread Mikera
On Sunday, 5 January 2014 23:33:41 UTC, 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:

Re: Contributors needed for Rouge (Clojure on Ruby)

2014-01-05 Thread Russell Christopher
I wonder if Go could be a good substrate for native-compiled Clojure. On Sun, Jan 5, 2014 at 5:27 PM, Mikera wrote: > On Sunday, 5 January 2014 18:18:22 UTC, John Gabriele wrote: >> >> On Saturday, January 4, 2014 1:12:12 PM UTC-5, Michael Gardner wrote: >> >>> >>> > Hopefully the landscape for

Re: Contributors needed for Rouge (Clojure on Ruby)

2014-01-05 Thread john walker
If boot time is your primary concern, this can help. The jvm is still there, though :/ https://github.com/technomancy/grenchman On Saturday, January 4, 2014 9:43:22 AM UTC-5, g vim wrote: > > I have recently moved most of my work to Clojure and Clojurescript but > neither of these implementat

Cute Clojure tricks

2014-01-05 Thread Cedric Greevey
How many states can the US have and keep a flag with a reasonably close to square arrangement of stars like it currently has? (take-while #(<= % 100) (sort (distinct (for [m (range 3 20) n (range (int (* m 3/4)) (inc m))] (- (* 2 m n) m n -1) (8 13 18 23 25 32

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

2014-01-05 Thread David Pidcock
Ha! Just saw your Sortable example popup in Git! Very cool. On Thursday, January 2, 2014 4:00:45 PM UTC-8, David Pidcock wrote: > Very nice. Relatively easy to follow.  Basically it's re-implementing the > drag-list behaviour  in React.  I had thought to re-use some existing code, > provide

how to packge lein project in a maven-style?

2014-01-05 Thread Qiu Xiafei
Using maven, we usually package the project in a directory with sub dirs like: bin/ # bash/python scripts lib/ # all jars conf/ # resources/configuration files And, we often use the *maven-dependency-plugin* to copy dependency jars and use the *maven-resources-plugin* to copy scripts an

Advice for dealing with CSV data set

2014-01-05 Thread Kyle Sexton
I am new to clojure and working on a small jabber bot as a starter project. One of the things I am adding is a simple weather lookup, but in doing so I need to convert zip code to lat/long. I've found a suitable CSV from http://www.boutell.com/zipcodes/ and am wondering the best way to deal with

Re: Advice for dealing with CSV data set

2014-01-05 Thread Shantanu Kumar
If you are only going to read the CSV files, you can put the CSV file in `resources` directory (so that it is part of the jar/uberjar), and use https://github.com/clojure/data.csv with http://clojuredocs.org/clojure_core/clojure.java.io/resource to read the data. If you need to make some change

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

2014-01-05 Thread Shantanu Kumar
There's Clojure Maven plugin if that can help: https://github.com/talios/clojure-maven-plugin Shantanu On Monday, 6 January 2014 11:03:45 UTC+5:30, Qiu Xiafei wrote: > > > > Using maven, we usually package the project in a directory with sub dirs > like: > bin/ # bash/python scripts > lib/