Re: No transducer variant of partition?

2016-10-12 Thread Mars0i
Thanks Christophe. Very nice. I may use partition, or something else as the need arises. -- 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 -

Re: Should I switch to Clojure after 3 years of learning another full stack ?

2016-10-12 Thread James Gatannah
On Thursday, October 6, 2016 at 4:39:43 PM UTC-5, Xman wrote: > > It's been many years of postponing learning programming, because I > considered the popular languages of that time not right. > It's been my experience that there are no "right languages." They all have major flaws. No matter

Re: Clojure with Tensorflow, Torch etc (call for participation, brainstorming etc)

2016-10-12 Thread kovas boguta
This is amazing!! Thanks so much for releasing it. Very excited to dig in. On Wed, Oct 12, 2016 at 7:44 PM, wrote: > Hi, > We've made cortex public: > > https://github.com/thinktopic/cortex > > Fork away, and we hope that this contributes to a growing ML

Re: Clojure with Tensorflow, Torch etc (call for participation, brainstorming etc)

2016-10-12 Thread jeff
Hi, We've made cortex public: https://github.com/thinktopic/cortex Fork away, and we hope that this contributes to a growing ML community in Clojure. Thoughts, ideas, feedback are welcome! Cheers, Jeff On Saturday, October 8, 2016 at 6:00:21 PM UTC-6, je...@thinktopic.com

Re: AOT classes with clj files on classpath causing ClassNotFoundException

2016-10-12 Thread Luc
We AOT often dependent projects. We are very careful meeting the exclusions suggestions reported by lein deps :tree. Luc P. -- 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

Re: AOT classes with clj files on classpath causing ClassNotFoundException

2016-10-12 Thread Gary Trakhman
It's possible to do a mixed AOT (your code) non-aot (third-party code) setup, but it's a huge pain. The particular issue you're seeing is probably the result of multiple versions of a class existing across jars and classloaders. Unfortunately there is no consistent way to get this right, but the

Re: AOT classes with clj files on classpath causing ClassNotFoundException

2016-10-12 Thread Stuart Halloway
Hi Piotr, Yes, the limitation is how the Java classpath works. If you AOT your app, you need to AOT compile other Clojure code your app uses. See e.g.

AOT classes with clj files on classpath causing ClassNotFoundException

2016-10-12 Thread Piotr Bzdyl
Hello, I am trying to solve an issue in my project where I have the following setup. My application modules are AOT-compiled into several jars and then packaged with their 3rd party dependencies into an uberjar. As a result my uberjar contains my project's namespaces compiled to class files

Re: [ANN] permissions - role & permission based access control

2016-10-12 Thread Torsten Uhlmann
I see to add that feature over the weekend @larry. I'm using this role model together with the excellent buddy-auth library. larry google groups schrieb am Mi., 12. Okt. 2016 um 19:12 Uhr: > >That would only get 64 states into a 64 bit Long, but was always enough. > >

Re: Data Transformation Question

2016-10-12 Thread tmountain
Thanks all. Much appreciated! On Wednesday, October 12, 2016 at 11:26:09 AM UTC-4, tmountain wrote: > > Hi, I'm trying to transform a sequence of data to a map, and I'm using the > following pattern. > > (def data [ {:id 1, :name "foo"}, {:id 2, :name "bar"}]) > > (zipmap (map #(:id %) data)

Re: [ANN] permissions - role & permission based access control

2016-10-12 Thread larry google groups
>That would only get 64 states into a 64 bit Long, but was always enough. The bitmask idea is good. I agree there are always tradeoffs. A number is less readable, but more efficient. I would be happy if there was a small library that did just (roles/permissions), and which I could compose with

RE: Data Transformation Question

2016-10-12 Thread Aaron Cummings
You may also want to consider clojure.set/index, though that may not exactly be what you are looking for.  Original message From: tmountain Date: 2016/10/12 11:26 (GMT-05:00) To: Clojure Subject: Data Transformation

Re: Data Transformation Question

2016-10-12 Thread Timothy Baldridge
group-by is slightly different in that it wraps every value in a vector, and those vectors will contain multiple items if there is an id collision. So that may be what the OP wanted, but it also is a change in semantics. I we can simplify the code a bit to (zipmap (map :id data) data) which is

Data Transformation Question

2016-10-12 Thread tmountain
Hi, I'm trying to transform a sequence of data to a map, and I'm using the following pattern. (def data [ {:id 1, :name "foo"}, {:id 2, :name "bar"}]) (zipmap (map #(:id %) data) data) ; result: {1 {:id 1, :name "foo"}, 2 {:id 2, :name "bar"}} Is this the most idiomatic way to accomplish this

Re: Data Transformation Question

2016-10-12 Thread lvh
> On Oct 12, 2016, at 10:26 AM, tmountain wrote: > > Hi, I'm trying to transform a sequence of data to a map, and I'm using the > following pattern. > > (def data [ {:id 1, :name "foo"}, {:id 2, :name "bar"}]) > > (zipmap (map #(:id %) data) data) > > ; result: {1

Re: Is Pallet abandoned? Alternatives?

2016-10-12 Thread Miroslav Kubíček
Thanks guys for your suggestions, looks like Ansible is a winner :) Cheers Miro On Monday, October 3, 2016 at 8:10:30 PM UTC+2, Karel Miarka wrote: > > I'm very happy with Ansible https://github.com/ansible/ansible (it is not > Ansible Tower = their commercial product). You need only ssh server

Re: No transducer variant of partition?

2016-10-12 Thread Christophe Grand
Not a rational for why there's no partition transducer in core but I have a partition transducer in this lib (https://github.com/cgrand/xforms). => (sequence (x/partition 3) (range 8)) ([0 1 2] [3 4 5]) => (sequence (x/partition 3 2) (range 8)) ([0 1 2] [2 3 4] [4 5 6]) => (sequence (x/partition