: 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 (fi
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
wrote:
> : 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
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. Resul
Fluid Dynamics 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 10 year o
Alex Miller 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 detail. I go
with t
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 edu
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 to
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 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
> good
> results
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 wrote:
>
> Yeller (yellerapp.com) (which I maintain) has a comprehensive benchmark suite
> (using criterium
> On Apr 2, 2015, at 4:09 AM, Tassilo Horn 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 collection, and
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
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' wo
Alex Miller 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 transducer vers
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 > wrote:
>
>> Hi frien
> 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 y
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 gathe
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
Do you have any references to OSGi and Clojure?
On 2 April 2015 at 15:11, Alex Miller 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 or 8 years ago!)
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 c.l.IReduce
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 the
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.
Bu
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
refactori
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:
https://github.com/ztellman/potemk
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 the
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
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 seconds
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
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
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
(emacspea
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 b
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 exa
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 wrote:
> This is lovely. Am now inspired to get around to learning PostGIS over the
> easter break!
>
>
> Jony
>
>
> On Wednesday, 1 April 2
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 mast
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 [clojure
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 math.
Alex Miller 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 better and I saw t
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
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
Great, thanks Artur, very interesting. Very nice work!
On 2 April 2015 at 21:02, Artur Malabarba 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 with C-u C-M-x, and
>
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.
Sim
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
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
>
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
workfl
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
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
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
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
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 h
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 because
49 matches
Mail list logo