Re: Newbie re-implement 'interleave' found type conversion error

2015-04-02 Thread Stephen Wakely
Instead of : (if (s1) You just want : (if s1 s1 is a Long, not a function. On Thu, Apr 2, 2015 at 8:56 AM michael zhuang zhuangdeyouxi...@gmail.com wrote: : i'm new to clojure, when I try to implementation 'interleave', get error from type convertion java.lang。Long cannot be cast to

Newbie re-implement 'interleave' found type conversion error

2015-04-02 Thread michael zhuang
: i'm new to clojure, when I try to implementation 'interleave', get error from type convertion java.lang。Long cannot be cast to clojure.lang.IFN. ; Now im reading stack trace, try to figure out what's going on.. (defn myIL [col1 col2] (loop [m [] s1 (first col1) s2

Re: [ANN] Clojure 1.7.0-alpha6 released

2015-04-02 Thread tcrayford
Yeller (yellerapp.com) (which I maintain) has a comprehensive benchmark suite (using criterium, with a heck of a lot of work put into getting real and good results). I've run Yeller's benchmark suite against clojure 1.7 alpha6 - it's pretty comprehensive, and covers a wide range of things.

Re: Transducers: sequence versus eduction

2015-04-02 Thread Tassilo Horn
Alex Miller a...@puredanger.com writes: Ok. But to me, if I can call `seq` on a thing and iterate it using `first` and `rest`, that's a sequable thing to me. :-) Fair enough. I just meant it no longer implements Seqable. :) Yes, I got that. But I think that's an implementation

Re: clojure, not the go to for data science

2015-04-02 Thread Phillip Lord
Fluid Dynamics a2093...@trbvm.com writes: On Tuesday, March 31, 2015 at 8:45:31 AM UTC-4, Phillip Lord wrote: The benefit is that Emacs is that its not constantly changing, and it gives you some stability over the years. I like latex, for instance, for the same reason. I can still access a

I put a site with usable JavaDoc for Clojure.

2015-04-02 Thread Ivan Pierre
https://github.com/PoleKilroySoft/ClojureJavadoc There are the package level Javadocs for latest versions of Clojure, now from Clojure 1.3.0 to 1.7.0-alpha6. Link to the Javadoc site, corresponding release sources and zipped sites for a local usage... I'll try to go until the version 1.0 for

Re: clojure, not the go to for data science

2015-04-02 Thread Jony Hudson
I think the credit here has to go to RStudio for doing such a good job of making an easy to install complete development environment. I'd say just comparing base Clojure to base R, it's a wash. Install java and either download the Clojure jar, or the leiningen script, and you're good to go.

Re: clojure, not the go to for data science

2015-04-02 Thread Fluid Dynamics
On Thursday, April 2, 2015 at 5:54:34 PM UTC-4, Jony Hudson wrote: I think the credit here has to go to RStudio for doing such a good job of making an easy to install complete development environment. I'd say just comparing base Clojure to base R, it's a wash. Install java and either

Re: clojure, not the go to for data science

2015-04-02 Thread Sayth Renshaw
You appear to have vastly misinterpreted my intention regards Emacs. My mention of Emacs (I use emacs with prelude) was not based on my usage but as a perception of those who might be attracted to Clojure For Purely Data Science And wishes to get installed and moving quickly. R offers to get you

Re: clojure, not the go to for data science

2015-04-02 Thread Jony Hudson
On Monday, 30 March 2015 14:46:53 UTC+1, Christian Weilbach wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I have started working on R integration with the help of rinancanter (1) and it was nice to have dedicated R code cells with at least syntax highlighting that I can mix with

Re: clojure, not the go to for data science

2015-04-02 Thread Sayth Renshaw
Agree Chris, I think Clojure has a lot of advantage. I never intended to knock Clojure just question as a person returning to look at the project at the potential roadblocks whether real or perceived that were potentially limiting its adoption. Sayth On Fri, 3 Apr 2015 at 10:07 Christopher Small

Re: clojure, not the go to for data science

2015-04-02 Thread Jeff Heon
RStudio is really nice! I'm taking some Coursera classes using R, and RStudio is great. Maybe that's because I'm an IDE kind of guy: using Cursive for Clojure, PyCharm for Python, RStudio for R, etc. On Thursday, April 2, 2015 at 5:54:34 PM UTC-4, Jony Hudson wrote: I think the credit here

Re: [ANN] Clojure 1.7.0-alpha6 released

2015-04-02 Thread Nicola Mometto
The recent changes to iterate come with an interesting consequence: reducing an iterate multiple times will cause the entire chain of x, (f x), (f (f x)) .. to be recalculated every time. I'd argue that this is not desiderable and a regression (even though probably one considered by design), and

Re: clojure, not the go to for data science

2015-04-02 Thread Christopher Small
Sure. I wasn't under the impression you were knocking it. On the contrary, I appreciate the reflection. As someone who uses (and loves) Clojure for data science, I'm keen to consider what can be done to broaden its adoption in this area. Chris Sent via phone -- You received this message

Re: clojure, not the go to for data science

2015-04-02 Thread Christopher Small
Editors as they apply to data science adoption is certainly relevant, particularly as relates to ease of adoption for beginners. It's easy for an experienced developer to dismiss the difference of ease in adopting something like RStudio vs R by itself; Those with experience already have

Re: [ANN] Clojure 1.7.0-alpha6 released

2015-04-02 Thread Nicola Mometto
Actaully caching makes a difference even with inc and a sequence of just 1000 elements: Clojure 1.7.0-alpha5 user= (def a (iterate inc 0)) #'user/a user= (time (reduce (fn [_ x]) nil (take 1000 a))) Elapsed time: 4.170778 msecs nil user= (time (reduce (fn [_ x]) nil (take 1000 a))) Elapsed time:

Re: [ANN] leaflet-gorilla 0.1.2 released with GeoJSON support

2015-04-02 Thread Gary Johnson
I've been using PostGIS extensively at work for the past year or so and used it intermittently before then. To really get the most out of the system, I would strongly recommend grabbing a copy of PostGIS in Action, 2nd Edition by Regina O. Obe. I feel like I went from a casual user to a power

Any chance of a module system being added to the language?

2015-04-02 Thread Lars Andersen
I'd love a module system solving the following problems: 1. Dependency isolation 2. Being able to export vars without having to think about namespace layout in the project 1. Is a serious problem where transitive dependencies on the classpath put consumers in jar hell and force library and

Re: Transducers: sequence versus eduction

2015-04-02 Thread Alex Miller
On Apr 2, 2015, at 4:09 AM, Tassilo Horn t...@gnu.org wrote: So we can agree on eduction not being a Sequable but still being sequable. :-) Agreed. :) I think my prime use-case is deeply nested mapcatting where the mapcatted function gets an object and returns a java

Re: [ANN] Clojure 1.7.0-alpha6 released

2015-04-02 Thread Nicola Mometto
Not a bug imho, you're invoking reduce with no init arg so you're forcing the realization of at least two elements in the coll, one for init and one for step -- the step one causes the exception. Ambrose Bonnaire-Sergeant writes: Here's some weird behaviour I found from 1.6. user= (take 1

Re: [ANN] Clojure 1.7.0-alpha6 released

2015-04-02 Thread Alex Miller
Great to hear feedback like this! I'd be particularly interested if you had any suspicions about the characteristics of the ones that are slower. On Apr 2, 2015, at 3:22 AM, tcrayford tcrayf...@gmail.com wrote: Yeller (yellerapp.com) (which I maintain) has a comprehensive benchmark suite

Fwd: [ANN] Clojure 1.7.0-alpha6 released

2015-04-02 Thread Ambrose Bonnaire-Sergeant
core.typed 0.2.86 should be 1.7.0-alpha6 compatible now. Thanks, Ambrose On Thu, Apr 2, 2015 at 4:22 AM, tcrayford tcrayf...@gmail.com wrote: Yeller (yellerapp.com) (which I maintain) has a comprehensive benchmark suite (using criterium, with a heck of a lot of work put into getting real and

Re: Transducers: sequence versus eduction

2015-04-02 Thread Tassilo Horn
Alex Miller a...@puredanger.com writes: Hi Alex, Just for fun, I ran the (dorun (sequence (comp (mapcat #(range %)) (mapcat # (range %))) (range 1000))) and eduction version with the CLJ-1515 patch. I saw ~ 20 seconds before and 15 seconds after. But the new version also makes pure seqs

Re: Transducers: sequence versus eduction

2015-04-02 Thread Alex Miller
Just for fun, I ran the (dorun (sequence (comp (mapcat #(range %)) (mapcat #(range %))) (range 1000))) and eduction version with the CLJ-1515 patch. I saw ~20 seconds before and 15 seconds after. But the new version also makes pure seqs better and I saw the full (dorun ...) drop from 6

Re: [ANN] leaflet-gorilla 0.1.2 released with GeoJSON support

2015-04-02 Thread Gary Johnson
Absolutely awesome! Finally, an easy-to-use renderer for PostGIS queries. Well done! -- 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

Re: Transducers: sequence versus eduction

2015-04-02 Thread Tassilo Horn
Alex Miller a...@puredanger.com writes: Hi Alex, If you're going to use expanding transformations and not realize all of the results then I think sequences are likely a better choice for you. Ok, I see. However, at least I had expected that in the case where all elements are realized the

Re: Any chance of a module system being added to the language?

2015-04-02 Thread Lars Andersen
I'm not really in a position to say which implementation is superior. We tried both source re-writing and an isolated classloader for refactor-nrepl and I couldn't get the classpath to work right (we want our own deps isolated, but also access to the project's deps, resources etc for

Re: Any chance of a module system being added to the language?

2015-04-02 Thread Lars Andersen
I agree that it's important to think about how you should organize your namespaces, but it would be nice present a clean outward API without disturbing the implementation too much. I think the rational for import-vars in the potemkin readme makes a good case:

[ANN] clj-amp 0.9.0

2015-04-02 Thread Tristan Seligmann
I am pleased to announce the release of clj-amp 0.9.0[1][2], a Clojure implementation of the AMP[3] protocol (the reference implementation of which is found in the Twisted networking framework for Python). clj-amp is implemented on top of Aleph/Manifold/Gloss; Special thanks to Zach Tellman for

Re: Any chance of a module system being added to the language?

2015-04-02 Thread Phillip Lord
I did it with protege-nrepl. Protege is a tool build on eclipse, which is build on OSGi. protege-nrepl embed clojure inside Protege, and enables it to put up an NREPL server. I found it to be a bit of a nightmare to be honest. The key problem was was that for protege-nrepl to be useful, I need

Re: clojure, not the go to for data science

2015-04-02 Thread Gary Johnson
Please stop. The amount of misinformation you are spreading about Emacs on this mailing list is deeply irresponsible and belies a very clear lack of understanding about how this software works. All of your concerns about internationalization (supported), accessibility to text readers

Re: clojure, not the go to for data science

2015-04-02 Thread Christopher Small
Dear lord... May I please echo the imploration that folks take the editor flame war else where. And while I'm at it, Vim FTW... On the note of DATA SCIENCE... I agree that Clojure has some catching up to do, both in tooling and awareness/perception. But it also has some major strengths in this

Re: Any chance of a module system being added to the language?

2015-04-02 Thread Andy Fingerhut
Dependency isolation without isolated class loaders or source rewriting would be interesting, but how would you propose to achieve dependency isolation without using either of those techniques? Or perhaps a solution where the module system did the source level rewriting for you 'under the hood'

Re: Debugging in CIDER

2015-04-02 Thread Artur Malabarba
From a look at how it works, is it fair to say that this is mostly designed for debugging a function at a time You can instrument as many functions as you want with C-u C-M-x, and debugger will seamlessly jump between them as they're getting executed. -- You received this message because

Re: Any chance of a module system being added to the language?

2015-04-02 Thread Alex Miller
It's possible we could make use of Java's module system if it ever actually gets released in Java 9. While I followed it pretty extensively when they first started discussing it (7 or 8 years ago!) I have not been keeping up on it lately. Some people have used OSGi with Clojure but I don't

Re: Transducers: sequence versus eduction

2015-04-02 Thread Michał Marczyk
It may be worth noting that while the return value of range is wrapped in lazy-seq and thus isn't itself a clojure.lang.IChunkedSeq, what you get when you realize it is indeed chunked: (contains? (ancestors (class (seq (range 128 clojure.lang.IChunkedSeq) true It doesn't implement

Re: Any chance of a module system being added to the language?

2015-04-02 Thread Laurent PETIT
Counterclockwise is an eclipse plugin, and thus an Osgi bundle. There has been some effort to try to fill the gap between Osgi and clojure ( search github for the work of aav on clojure-osgi). I have tried hard to follow these steps of purity by separating things in different eclipse plugins.

Re: Immutant survey

2015-04-02 Thread Jim Crossley
Here are the results: http://immutant.org/news/2015/04/02/survey-results/ Thanks! Jim On Thursday, March 12, 2015 at 12:11:27 PM UTC-4, jaju wrote: Very curious to know - how's the response been? A happy user, jaju On Fri, Mar 6, 2015 at 8:01 PM, Jim Crossley jcros...@gmail.com

Re: Any chance of a module system being added to the language?

2015-04-02 Thread Colin Yates
Do you have any references to OSGi and Clojure? On 2 April 2015 at 15:11, Alex Miller a...@puredanger.com wrote: It's possible we could make use of Java's module system if it ever actually gets released in Java 9. While I followed it pretty extensively when they first started discussing it (7

Re: clojure, not the go to for data science

2015-04-02 Thread Justin Smith
Emacs can use the native windowing system on every major platform. It still *looks* like a terminal app, but doesn't have to be one. Pretty much everything you are saying here doesn't apply to Emacs at all, and you would know it's all false if you knew anything about Emacs. On Wednesday, April

Re: Immutant survey

2015-04-02 Thread Paul deGrandis
Thanks for the summary! I just want to publicly say thanks for Immutant and the hard work you, Toby, and others put into it. It's a fantastic set of tools and libraries and deserves more recognition than it receives. Cheers, Paul -- You received this message because you are subscribed to

Re: clojure, not the go to for data science

2015-04-02 Thread A
Clojure is an Amazing tool for data science. If people are slow to realize this, that is their disadvantage. The premise that Clojure hasn't developed as a go to for data science simply doesn't ring true to me at all. There are numerous examples of Clojure use for data science, there are

Re: [ANN] leaflet-gorilla 0.1.2 released with GeoJSON support

2015-04-02 Thread Jony Hudson
This is lovely. Am now inspired to get around to learning PostGIS over the easter break! Jony On Wednesday, 1 April 2015 23:19:31 UTC+1, John Wiseman wrote: I've add GeoJSON support to leaflet-gorilla, which makes it easy to use with PostGIS. Example worksheet online (the PostGIS example

Re: Debugging in CIDER

2015-04-02 Thread Avi Avicenna
Kudos to Bozhidar and all CIDER contributors! I am hyped for CIDER 0.9 On Sunday, 29 March 2015 00:46:33 UTC+7, Bozhidar Batsov wrote: Hey everyone, Just wanted to let you know that the most requested feature for CIDER (a debugger, in case you're wondering) has just landed in the master

Re: [ANN] leaflet-gorilla 0.1.2 released with GeoJSON support

2015-04-02 Thread John Wiseman
FYI I only first used PostGIS a few days ago, so it's not hard to at least get started with the basics. John On Thu, Apr 2, 2015 at 9:39 AM, Jony Hudson jonyepsi...@gmail.com wrote: This is lovely. Am now inspired to get around to learning PostGIS over the easter break! Jony On

Re: [ANN] Clojure 1.7.0-alpha6 released

2015-04-02 Thread Alex Miller
Yup. Fixed. On Thursday, April 2, 2015 at 1:24:46 PM UTC-5, Leon Grapenthin wrote: http://dev.clojure.org/display/design/Reader+Conditionals First use-case Platform-specific require/import: Shouldn't the reader conditional example be: (ns cemerick.pprng #?(:cljs (:require

Re: [ANN] Clojure 1.7.0-alpha6 released

2015-04-02 Thread Leon Grapenthin
http://dev.clojure.org/display/design/Reader+Conditionals First use-case Platform-specific require/import: Shouldn't the reader conditional example be: (ns cemerick.pprng #?(:cljs (:require math.seedrandom [cljs.core :as lang])) #?@(:clj [ (:require

Re: Debugging in CIDER

2015-04-02 Thread Colin Fleming
Great, thanks Artur, very interesting. Very nice work! On 2 April 2015 at 21:02, Artur Malabarba arturmalaba...@gmail.com wrote: From a look at how it works, is it fair to say that this is mostly designed for debugging a function at a time You can instrument as many functions as you want

Re: clojure, not the go to for data science

2015-04-02 Thread Sayth Renshaw
For python notebooks there is an ein plugin which integrates notebooks in emacs. Giving features of both. Doesn't address Rstudio ease but it may allow greater features for gorilla for relatively smaller effort. On Fri, 3 Apr 2015 8:54 AM Jony Hudson wrote: I think the credit here has to go to