There is a return which splits # and { on the second set definition,
translating it into a map definition:
#
{10710,
After correcting it, I get a new curious error:
*Unknown constant tag 44 in class file user$eval1976*
* [Thrown class java.lang.ClassFormatError]*
On Thu, Aug 16, 2012 at 9:44
Wrapping the huge sets into vars makes it work:
https://gist.github.com/3369040
The first literal set works if it contains just the first 3282 elements (
https://gist.github.com/3369092). One element more and it does not work
anymore (https://gist.github.com/3369101) - throwing a
After correcting it, I get a new curious error:
Unknown constant tag 44 in class file user$eval1976
[Thrown class java.lang.ClassFormatError]
There is a difference between using load (and related functions) to
parse data, and using read (and related functions).
If you use read to parse a
I don't have my own examples, anyway being a daily object-oriented
programmer I'm feeling compelled to say that where function-generating
functions prove their main practical power is in what I'd label man in
the middle functions.
Whenever I need to add behaviour to an existing OO method I have
+1
On Wed, Aug 15, 2012 at 1:05 PM, Bruce Durling b...@otfrom.com wrote:
Sam,
That's amazing. Thanks for posting that. :-D
cheers,
Bruce
On Wed, Aug 15, 2012 at 11:50 AM, Sam Aaron samaa...@gmail.com wrote:
Hey everyone,
sorry, I couldn't resist posting this, but I'm getting real
Fellow Clojurians!
Wow. That was a fun and noisy dojo at Forward last night. Let's do it
again but at ThoughtWorks this time. :-D
Roll up! Roll up!
The London Clojure Dojo will be meeting again on 28 August at
ThoughtWorks in London. Details and sign up here:
typo, I meant ring *middleware*, not ring handlers
On Thu, Aug 16, 2012 at 1:01 PM, Roberto Mannai roberm...@gmail.com wrote:
So if you are searching for practical examples I'd suggest to look for
such use cases, although their best application IMHO has to be found not in
business code but
it happened again...
On Friday, 15 June 2012 05:32:14 UTC+1, Nelson Morris wrote:
On Thu, Jun 14, 2012 at 8:38 AM, Stuart Sierra
the.stua...@gmail.com javascript: wrote:
Is there anyone on the Clojure/core team with a contact among those
who run Central who could get them to
Nice one Sam! This is great, it comes just as I'm starting a small Overtone
project of my own.
Phil
On Wednesday, August 15, 2012 11:50:06 AM UTC+1, Sam Aaron wrote:
Hey everyone,
sorry, I couldn't resist posting this, but I'm getting real close to making
decent music with Overtone
I'm surprised this still hasn't been fixed. I noticed it and raised the issue
(well, told people about it on IRC) about 2 weeks ago. I've been pointed at an
alternate repo as a workaround. :/
---
Joseph Smith
j...@uwcreations.com
On Aug 16, 2012, at 5:27 AM, Paul Lam paul@forward.co.uk
Hey All,
ClojurePY is actually quite amazing. It has none of the complexities with
libraries and projects like Clojure and is suitable for crunching data
(because it's on Python) unlike Node.js/Clojurescript. You can use all the
python libraries. You can even import ipdb and step through your
Dear all ,
Can one store clojure keyword in MongoDB and get it back as keyword. ?
How to store Date type using clojure in MongoDB ?
using monger library.
thanks in advance
Vincent
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this
It also uses less memory and has a faster startup time than Clojure. I'm
not sure how it compares to clojurescript in terms of speed and memory.
On Thu, Aug 16, 2012 at 8:00 AM, Sean Neilan s...@seanneilan.com wrote:
Hey All,
ClojurePY is actually quite amazing. It has none of the
On Thu, Aug 16, 2012 at 1:24 AM, Shantanu Kumar
kumar.shant...@gmail.com wrote:
Hi,
I encountered this when trying to run `read-string` on Clojure
(clojure.core) and ClojureScript (cljs.reader). I noticed when I run
(read-string ), I get the exception message EOF while reading on Clojure
but
You seriously think the lack of Leiningen is an advantage ?
facepalm
On Thursday, August 16, 2012 3:00:50 PM UTC+2, Sean Neilan wrote:
Hey All,
ClojurePY is actually quite amazing. It has none of the complexities with
libraries and projects like Clojure and is suitable for crunching data
On Thu, Aug 16, 2012 at 1:46 PM, Joseph Smith j...@uwcreations.com wrote:
I'm surprised this still hasn't been fixed. I noticed it and raised the
issue (well, told people about it on IRC) about 2 weeks ago. I've been
pointed at an alternate repo as a workaround. :/
Hmm, it is fine here:
On Thursday, 16 August 2012 18:58:26 UTC+5:30, David Nolen wrote:
On Thu, Aug 16, 2012 at 1:24 AM, Shantanu Kumar
kumar.s...@gmail.com javascript: wrote:
Hi,
I encountered this when trying to run `read-string` on Clojure
(clojure.core) and ClojureScript (cljs.reader). I noticed
You seriously think the lack of Leiningen is an advantage ?
facepalm
With pip/easy_install and virtual_env, there's really not much of a point.
Would lein-py be nice? Yeah, but it's hardly a show-stopper.
Timothy
--
You received this message because you are subscribed to the Google
Groups
It is absolutely an advantage. What I want is different from what you want.
I want standalone script files and Clojure will not do that. Tell me, why
do you like having project files for everything? If you're doing bigger
projects, I can understand why you want project files.
On Thu, Aug 16, 2012
Clojure is incredibly complicated.
I'd be careful about going that far. Clojure itself is not really that
complicated. I think it's more the restrictions the JVM puts on it. As an
example, see RestFn.java, AFn.java, etc. Since the python VM supports
first-class functions all that complexity
Yeah, you're right. Clojure itself is just a functional Lisp.
But, Clojure is at least 2 languages: Lisp Java. Lisp by itself isn't
that complicated but adding Java makes it much harder.
ClojurePY is Lisp and Python. Python has a lower barrier to entry than Java.
On Thu, Aug 16, 2012 at 9:11
Just want to make this is clear: no one on the Clojure mailing list (or
IRC) has any direct control over the major public repositories.
The Maven Central Repository (repo1.maven.org) is managed by the Apache
Foundation with help from Sonatype, Inc. See
With pip/easy_install and virtual_env, there's really not much of a point.
Would lein-py be nice? Yeah, but it's hardly a show-stopper.
To me, maintaining / distributing (virtual) python environments, even in a
small (but mixed) organisation, is more of a hassle than plonking in a few
I haven't really investigated clojurescript yet, but I was planning on
looking at it for small scripts where the startup time of the jvm is a
problem. Do you feel that clojurepy fills this need better than
clojurescript for any reasons other than speed? Or is it libraries like
numpy that
Clojure is Clojure, Java and how much of the core of the is written in it
is an implementation detail.
No build tool = pain in the In large projects.
Luc P.
Yeah, you're right. Clojure itself is just a functional Lisp.
But, Clojure is at least 2 languages: Lisp Java. Lisp by itself
On Thu, Aug 16, 2012 at 8:12 AM, Stuart Sierra
the.stuart.sie...@gmail.com wrote:
Just want to make this is clear: no one on the Clojure mailing list (or IRC)
has any direct control over the major public repositories.
You can report issues with Central here:
No build tool = pain in the In large projects.
Why would you need a build tool for a language that isn't compiled?
Remember, Python != Java...there's no compiler in Python. More correctly
there is a bytecode compiler, but it's not really worth talking about. With
the proper hooks in
I'm happy to announce the release of Leiningen version 2.0.0-preview8.
This release fixes issues introduced when Central moved their search
indices as well as offering more convenience around middleware/hook
declaration and nREPL configuration.
## 2.0.0-preview8 / 2012-08-16
* Place SCM
Thanks, Phil,
-S
--
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 with your
first post.
To unsubscribe from this group,
A lot of these implementation details bleed out into everyday language use,
let alone using platform libraries. I agree with Sean on that.
On Thursday, August 16, 2012 7:29:34 PM UTC+2, Luc wrote:
Clojure is Clojure, Java and how much of the core of the is written in it
is an implementation
On Wednesday, August 15, 2012 9:39:21 PM UTC-4, Chas Emerick wrote:
I'd hope to see this change once the final missing pieces fall into place
(in particular, automation of promotion of releases through Nexus' API
corresponding to or surpassing what nexus-maven-plugin provides).
Build tool here means a way to manage dependencies We have a product here
with
70 external dependencies, not convinced I would like to manage these by hand.
Btwy, we AOT our code before deployment for the following reasons
a) avoid shipping source code at a remote site
b) make sure all
Then its the same with the python implementation, read my other post :)
Having lein-py would hide some of these implementation details.
A lot of these implementation details bleed out into everyday language use,
let alone using platform libraries. I agree with Sean on that.
On Thursday,
I should add that Clojure on the JVM compiles to byte code on the fly and
it makes it as dynamic as the python implementation.
It has nothing to do with Java itself aside from Clojure's internal
implementation.
You can write Clojure code never referencing Java directly in your code.
Where the
Hi,
I'm trying to compare dates with ClojureScript like this:
(ns common
(:require [goog.date.Date]))
. . .
(goog.date.Date/compare (js/Date.) (js/Date.))
But it fails with the following error:
Error evaluating: (goog.date.Date/compare (js/Date.) (js/Date.)) :as
goog.date.Date.compare((new
The criticism towards Lein is totally uncalled for, it's small, simple,
lightweight and for the JVM it's a great clojure-centric way to gather and
manage dependencies. Yes, there's lots of options, but for simple projects,
you're done with a few lines of configuration. No-one could say it
On Thu, Aug 16, 2012 at 3:06 PM, D.Bushenko d.bushe...@gmail.com wrote:
Hi,
I'm trying to compare dates with ClojureScript like this:
(ns common
(:require [goog.date.Date]))
. . .
(goog.date.Date/compare (js/Date.) (js/Date.))
Is your Google Closure up to date? You should confirm that
Your comparison of Clojure's internal code is also slightly unfair. Afaik,
clojure-py is based on the Clojurescript codebase.
This seems to be a common misconception (and I'm not exactly sure why).
Clojure-py is a complete from scratch re-implementation of Clojure in
Python. It's more akin to
Clojurepy is nice and all, but with a slow startup time, I really don't
have a use for it. Coming from Clojure, I found clojurepy more complicated
than Clojure itself. Probably due to lack of documentation. What bothered
me the most is that it seems like they've changed things making it
As for the trolley, this is how I see it:
The state of the system is defined by:
1. the (current) number of parts the machines have in their input and
output queues
2. the (current) number of parts in the trolley (may be limited by 1)
3. whether the machine is currently processing a part can
This seems to be a common misconception (and I'm not exactly sure why).
Clojure-py is a complete from scratch re-implementation of Clojure in
Python
Didn't know that, that's pretty cool. You taking the effort to do it is
even more impressive.
I'm going to stop here and say that I
I'm trying to grab 5 lines by their line numbers from a large ( 1GB) file
with Clojure.
So far I've got:
(defn multi-nth [values indices]
(map (partial nth values) indices))
(defn read-lines [file indices]
(with-open [rdr (clojure.java.io/reader file)]
(let [lines (line-seq rdr)]
On Thu, Aug 16, 2012 at 5:47 PM, David Jacobs da...@wit.io wrote:
I'm trying to grab 5 lines by their line numbers from a large ( 1GB) file
with Clojure.
So far I've got:
(defn multi-nth [values indices]
(map (partial nth values) indices))
(defn read-lines [file indices]
(with-open
On Thursday, August 16, 2012 9:00:50 AM UTC-4, Sean Neilan wrote:
Hey All,
ClojurePY is actually quite amazing. It has none of the complexities with
libraries and projects like Clojure and is suitable for crunching data
(because it's on Python) unlike Node.js/Clojurescript. You can use
44 matches
Mail list logo