Re: clojure, not the go to for data science

2015-04-05 Thread Sayth Renshaw
Would be good to get that on a wiki for all so we could update and share as a resourcee. Sayth On Mon, 6 Apr 2015 at 04:47 Christian Weilbach whitesp...@polyc0l0r.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 http://viewer.gorilla-repl.org/view.html?source=github;

Re: [ANN] Clojure 1.7.0-alpha6 released

2015-04-05 Thread Alexander Yakushev
On the other hand, Clojure-Android runtime is largely similar to regular Clojure except for some small differences; so in order to use feature expressions there effectively it might make sense to wait until broader capabilities (feature combinations, feature inheritance etc.) is introduced. --

Re: [ANN] Clojure 1.7.0-alpha6 released

2015-04-05 Thread Alexander Yakushev
Well, I must say I'm even more ignorant in how the feature expansions are implemented. Is the feature a thing that each implementation defines separately? If so, then it will be easy to set our fork's feature as :clja, or whatever else. My request to you would then be: can you please include

Re: Datomic namespaced idents question

2015-04-05 Thread dgrnbrg
Actually, in Datomic, the namespaces don't have any special meaning for the database itself--you can choose to use whatever namespace (or even no namespace)! Using namespaces is a convention to help you keep track of which attributes belong to which entities. We don't use a separate model

Re: Kwargs vs explicit parameter map for APIs?

2015-04-05 Thread n aipmoro
In the blog post, tcrayford gives an example of the difficulties in wrapping a kwargs function: (defn my-wrapper [ kwargs] (let [options (assoc (apply hash-map kwargs) :my-default-arg 1)] (apply (your-api-fn (flatten (into '() options)) Sure, that's convoluted (and I couldn't actually

Re: [ANN] Clojure 1.7.0-alpha6 released

2015-04-05 Thread Alexander Yakushev
Awesome, thanks for the help and the clarification! On Monday, April 6, 2015 at 1:59:21 AM UTC+3, Alex Miller wrote: Yes, each platform defines their own platform feature so it wouldn't be too hard to change the specified platform in the fork. However the key here is that the conditional

Re: Kwargs vs explicit parameter map for APIs?

2015-04-05 Thread tcrayford
Yep: that won't override the arg if the caller passes it to you as well. -- 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

Re: [ANN] Clojure 1.7.0-alpha6 released

2015-04-05 Thread Alex Miller
The reader can be invoked programmatically with any feature set you like now. We did not plan to allow custom features for 1.7. I'm not sure what it would mean to add an android feature? I'll plead ignorance in not knowing how the Clojure Android stuff works or where a feature indicating

Re: clojure, not the go to for data science

2015-04-05 Thread Christopher Small
Yesyesyesyes! Great idea! I'm on it. On Sun, Apr 5, 2015 at 4:15 PM, A aael...@gmail.com wrote: Please feel free to create something like http://www.clojure-toolbox.com/ for data science in Clojure, that would be great. On Sunday, April 5, 2015 at 3:33:11 PM UTC-7, Sayth Renshaw wrote:

Re: Kwargs vs explicit parameter map for APIs?

2015-04-05 Thread n aipmoro
That explains it. In the type of stuff I write, that possibility wouldn't arise: there is no calling code that I can't control, and I definitely want the ability to change my wrapper's default. In any case, I realized the reason your blog code didn't run was an error: you need to change (apply

Re: clojure, not the go to for data science

2015-04-05 Thread A
Please feel free to create something like http://www.clojure-toolbox.com/ for data science in Clojure, that would be great. On Sunday, April 5, 2015 at 3:33:11 PM UTC-7, Sayth Renshaw wrote: Would be good to get that on a wiki for all so we could update and share as a resourcee. Sayth On

Re: [ANN] Clojure 1.7.0-alpha6 released

2015-04-05 Thread Alex Miller
Yes, each platform defines their own platform feature so it wouldn't be too hard to change the specified platform in the fork. However the key here is that the conditional occurs at read time, so you need to ensure that compilation happens with this platform if aot is involved. Maybe that's

Re: Lein repl and Cider repl

2015-04-05 Thread Bozhidar Batsov
Maybe reply interns `clojure.repl/doc` in every namespace. I can tell you for a fact that in CIDER the `clojure.repl` functions are interned only in the user namespace. We can always change this, but it doesn't make a lot of sense. CIDER users normally never use functions like doc as they have

Re: clojure, not the go to for data science

2015-04-05 Thread A
Caveats... there is a lot to explore, things are continually changing and evolving, I haven't made an exhaustive search, but here is what is quickly google-able... YMMV # Books - Eric Rochester: https://www.packtpub.com/big-data-and-business-intelligence/mastering-clojure-data-analysis and

Lein repl and Cider repl

2015-04-05 Thread andrea crotti
Hi guys, one question about the Repl and Cider. When I start the Repl with lein repl, I am in the namespace x.y, and if I do (doc swap!) I see the documentation showing up. If instead I start the repl with Cider, it looks like I'm in the same namespace, however (doc swap!) doesn't work, but if I

Re: Lein repl and Cider repl

2015-04-05 Thread Jony Hudson
Relevant bit of code here: https://github.com/trptcolin/reply/blob/69c4c6ffe0c8903a193c1e127337832e225335b0/src/clj/reply/initialization.clj#L179 Jony On Sunday, 5 April 2015 09:47:04 UTC+1, Bozhidar Batsov wrote: Maybe reply interns `clojure.repl/doc` in every namespace. I can tell you

Re: Lein repl and Cider repl

2015-04-05 Thread andrea crotti
Ah thanks awesome, yes that's true I only have to get used to the Cider. The only thing is not also in Cider then would be find-doc? And in general, what would be the best way to add some extra customization to how the Cider repl works? 2015-04-05 9:46 GMT+01:00 Bozhidar Batsov

Re: Lein repl and Cider repl

2015-04-05 Thread Bozhidar Batsov
find-doc - cider-apropos Go through the CIDER readme - it's full of useful tips. On 5 April 2015 at 12:45, andrea crotti andrea.crott...@gmail.com wrote: Ah thanks awesome, yes that's true I only have to get used to the Cider. The only thing is not also in Cider then would be find-doc? And

Re: clojure, not the go to for data science

2015-04-05 Thread Rafael de F. Ferreira
Thanks, that is an awesome list of resources. On Sun, Apr 5, 2015, 4:20 AM A aael...@gmail.com wrote: Caveats... there is a lot to explore, things are continually changing and evolving, I haven't made an exhaustive search, but here is what is quickly google-able... YMMV # Books - Eric

doseq over atomic collection

2015-04-05 Thread Shahrdad Shadab
Hi folks It may seem silly question but why when I doseq over a vector that is wrapped in an atom and change the vector using swap! while I am inside doseq, the doseq sets to the beginning of the vector intermittently: (def a-data (atom [15 9 8 1 4 11 7 12 13 14 5 3 16 2 10 6])) (defn

Re: doseq over atomic collection

2015-04-05 Thread James Reeves
Dereferencing an atom will give you the value of the atom at the time you dereferenced it. So at the start of the doseq loop, you deref the atom and get back an immutable vector of values. It's the same as writing: (let [data @a-data] (doseq [element data] ...)) You dereference

Re: [ANN] Clojure 1.7.0-alpha6 released

2015-04-05 Thread Alexander Yakushev
Hello Alex, As I've understood from the dev.clojure.org page, additional features and feature combinations will become available later. Can we please get :clj/android (or :clja) still in 1.7? If so, what has to be done by me or Daniel to make it happen? Thanks! On Tuesday, March 31, 2015 at

Re: clojure, not the go to for data science

2015-04-05 Thread Christian Weilbach
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 http://viewer.gorilla-repl.org/view.html?source=githubuser=ghubberrepo=cncpath=rincanter.clj I am not sure whether this fits the design atm. though. I also had a look at renjin, but I think the native plugins mandate an RVM integration atm.

Datomic namespaced idents question

2015-04-05 Thread Stig Brautaset
I have a question regarding using Datomic from Clojure, but I think it's more of a Clojure question than a Datomic question I understand that you must use namespaces in idents for logically distinct types of entities. (Unless you intend them to be lumped together in the same index.) Thus the

Re: doseq over atomic collection

2015-04-05 Thread Shahrdad Shadab
Thanks a lot James. It seems I completely missed the order of let and doseq. On Sun, Apr 5, 2015 at 1:12 PM, James Reeves ja...@booleanknot.com wrote: Dereferencing an atom will give you the value of the atom at the time you dereferenced it. So at the start of the doseq loop, you deref the

Re: [ANN] ednsl-0.2.0: a super-simple DSL for building DSLs

2015-04-05 Thread Atamert Ölçgen
Hi James, Interesting library. I have a few comments on the readme. The simple example is not so simple: (ns my.app (:use [ednsl])) (defn main [ args] (let [r (- config-file.edn read-file ctx-form (= emap (eithery (etuple ekey (eor (- esym eload-sym) eany) {:keys