Re: Error running clojure file.

2012-08-16 Thread Roberto Mannai
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

Re: Error running clojure file.

2012-08-16 Thread Roberto Mannai
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

Re: Error running clojure file.

2012-08-16 Thread David Powell
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

Re: Attractive examples of function-generating functions

2012-08-16 Thread Roberto Mannai
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

Re: Overtone - Actual Music!

2012-08-16 Thread Roberto Mannai
+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

Late August London Clojure Dojo

2012-08-16 Thread Bruce Durling
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:

Re: Attractive examples of function-generating functions

2012-08-16 Thread Roberto Mannai
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

Re: Central screwup

2012-08-16 Thread Paul Lam
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

Re: Overtone - Actual Music!

2012-08-16 Thread Phil Yeeles
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

Re: Central screwup

2012-08-16 Thread Joseph Smith
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

Just wanted to say how much I like ClojurePY

2012-08-16 Thread Sean Neilan
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

clojure keyword and mongodb

2012-08-16 Thread Vincent
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

Re: Just wanted to say how much I like ClojurePY

2012-08-16 Thread Sean Neilan
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

Re: Exception message in read-string - Clojure vs ClojureScript

2012-08-16 Thread David Nolen
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

Re: Just wanted to say how much I like ClojurePY

2012-08-16 Thread Niels van Klaveren
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

Re: Central screwup

2012-08-16 Thread David Powell
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:

Re: Exception message in read-string - Clojure vs ClojureScript

2012-08-16 Thread Shantanu Kumar
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

Re: Just wanted to say how much I like ClojurePY

2012-08-16 Thread Timothy Baldridge
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

Re: Just wanted to say how much I like ClojurePY

2012-08-16 Thread Sean Neilan
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

Re: Just wanted to say how much I like ClojurePY

2012-08-16 Thread Timothy Baldridge
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

Re: Just wanted to say how much I like ClojurePY

2012-08-16 Thread Sean Neilan
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

Re: Central screwup

2012-08-16 Thread Stuart Sierra
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

Re: Just wanted to say how much I like ClojurePY

2012-08-16 Thread Niels van Klaveren
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

Re: Just wanted to say how much I like ClojurePY

2012-08-16 Thread Curtis Gagliardi
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

Re: Just wanted to say how much I like ClojurePY

2012-08-16 Thread Softaddicts
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

Re: Central screwup

2012-08-16 Thread Phil Hagelberg
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:

Re: Just wanted to say how much I like ClojurePY

2012-08-16 Thread Timothy Baldridge
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

[ANN] Leiningen 2.0.0-preview8 released

2012-08-16 Thread Phil Hagelberg
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

Re: Central screwup

2012-08-16 Thread Stuart Sierra
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,

Re: Just wanted to say how much I like ClojurePY

2012-08-16 Thread Niels van Klaveren
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

Re: clojure.logic project.clj file

2012-08-16 Thread Stuart Sierra
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).

Re: Just wanted to say how much I like ClojurePY

2012-08-16 Thread Softaddicts
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

Re: Just wanted to say how much I like ClojurePY

2012-08-16 Thread Softaddicts
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,

Re: Just wanted to say how much I like ClojurePY

2012-08-16 Thread Softaddicts
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

ClojureScript: comparing dates

2012-08-16 Thread D.Bushenko
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

Re: Just wanted to say how much I like ClojurePY

2012-08-16 Thread Niels van Klaveren
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

Re: ClojureScript: comparing dates

2012-08-16 Thread David Nolen
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

Re: Just wanted to say how much I like ClojurePY

2012-08-16 Thread Timothy Baldridge
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

Re: Just wanted to say how much I like ClojurePY

2012-08-16 Thread Anthony Grimes
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

Re: Ideas for interactive tasks

2012-08-16 Thread dmirylenka
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

Re: Just wanted to say how much I like ClojurePY

2012-08-16 Thread Niels van Klaveren
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

Lazily extract lines from large file

2012-08-16 Thread David Jacobs
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)]

Re: Lazily extract lines from large file

2012-08-16 Thread Lars Nilsson
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

Re: Just wanted to say how much I like ClojurePY

2012-08-16 Thread Warren Lynn
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