Re: Libraries and build management hell

2011-08-01 Thread Shantanu Kumar
On Aug 1, 9:59 am, Ken Wesson kwess...@gmail.com wrote: On Mon, Aug 1, 2011 at 12:49 AM, pmbauer paul.michael.ba...@gmail.com wrote: What if you have the JAR on a disk somewhere, for other reasons, but until now it wasn't a dependency of that particular project? Your assertion that

Re: Libraries and build management hell

2011-08-01 Thread pmbauer
I might be able to disprove your scurrilous charge if ... I doubt that since your earlier assertion was factually incorrect. See mvn install:install-file http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html Not relevant. We were discussing use of lein deps. Wrong

Slow static file handing with lein ring server

2011-08-01 Thread sailormoo...@gmail.com
I don't know why, but it seems to have a one second delay getting each static file even in local host testing. :dependencies [[org.clojure/clojure 1.2.1] [org.clojure/clojure-contrib 1.2.0] [compojure 0.6.4] [ring-serve 0.1.0]

Re: Google working on JIT compiler for Dalvik

2011-08-01 Thread Paulo Pinto
There is a JIT in Dalvik since Android 2.2! On Jul 31, 8:40 pm, Fred Concklin fredconck...@gmail.com wrote: DOH!http://developer.android.com/videos/index.html#v=Ls0tM-c4Vfo On Jul 31, 2:38 pm, Fred Concklin fredconck...@gmail.com wrote: Thought it might be of interest to some on the

Re: Libraries and build management hell

2011-08-01 Thread Ken Wesson
On Mon, Aug 1, 2011 at 3:02 AM, pmbauer paul.michael.ba...@gmail.com wrote: I might be able to disprove your scurrilous charge if ... I doubt that since your earlier assertion was factually incorrect. If you have a personal problem with me, sort it out in private email or keep it to yourself

Re: ClojureScript binding problem

2011-08-01 Thread Brian McKenna
For anyone else with the same problem, I just found the nice way to do it: (def iframe (. field (getEditableIframe))) Much better! Thanks, Brian McKenna -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Leiningen, repl-init issue, lein repl vs emacs clojure-jack-in

2011-08-01 Thread kjeldahl
I'm seeing a difference of behaviour. I've got a repl.helper module that I pull in using Leiningen's :repl-init key in project.clj . If the last line in my repl.helper module tries to switch to the repl.helper (or any other I believe), then it works in a lein repl setup, but does not work inside

Where Are Clojure's (Cake') Build Steps Document

2011-08-01 Thread octopusgrabbus
On a production system, I would like to implement less sophisticated build shell scripts without the benefit of having installed cake or its dependencies. I am using cake on my Ubuntu development workstation; it works well. However, when Cake fetches dependencies, all that detail is hidden.

Clojure Group in Singapore

2011-08-01 Thread Jason
Hi All I just moved to Singapore and I'm looking for a Clojure Group which i can join. Anyone know any? -- 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

java.lang.OutOfMemoryError when consuming many whole-numbers

2011-08-01 Thread Ben
Hi, I'm new in the community and new to Clojure and both a really great. A big thanks to Rich Hickey and everyone else involved. I have a question that refers to an example Stuart Halloway used in Programming Clojure. There he defines the whole numbers as fn: (defn whole-numbers [] (iterate inc

character encoding issue in compiled .js

2011-08-01 Thread Jason Hickner
I'm seeing non-utf8 characters in my compiled .js even though my .cljs source file is utf8. Here's a very short example demonstrating the issue: https://gist.github.com/1116419 Notice that the colon at the start of :foo is being munged during compilation. This causes errors when the .js is

Re: novel feedback is always welcome

2011-08-01 Thread James Keats
As an outcome of this thread, I have decided not to invest in clojure, so I believe the following to be purely feedback, as I have no agenda to push. - it seems from some's point of view that I was trolling. Fine, from my point of view though it was akin to drink the kool aid or gtfo. Sorry,

Re: novel feedback is always welcome

2011-08-01 Thread James Keats
As an outcome of this thread, I have decided not to invest in clojure, so I believe the following to be purely feedback, as I have no agenda to push. - it seems from some's point of view that I was trolling. Fine, from my point of view though it was akin to drink the kool aid or gtfo. Sorry,

Re: ClojureScript binding problem

2011-08-01 Thread Dmitry Gutov
On Aug 1, 1:32 pm, Brian McKenna puffnfr...@gmail.com wrote: For anyone else with the same problem, I just found the nice way to do it:     (def iframe (. field (getEditableIframe))) This should be equivalent to (def iframe (.getEditableIframe field)) which is the usual way to do method calls

Re: clojure.contrib.profile crashes

2011-08-01 Thread Stuart Sierra
clojure.contrib.profile (which I wrote) is deprecated. It was a half-baked idea to start with. Use a JVM profiler. -Stuart Sierra clojure.com -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Re: JSON library for clojure 1.3

2011-08-01 Thread Stuart Sierra
clojure.contrib.json has been continued as clojure.data.json: https://github.com/clojure/data.json It should work in 1.3 -Stuart Sierra clojure.com -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Re: java.lang.OutOfMemoryError when consuming many whole-numbers

2011-08-01 Thread Dmitry Gutov
When I do that, the REPL starts printing the sequence, filling screens after screens with numbers. By doing that, it realizes the printed part of the sequence, which will eventually lead to an OOM error, since it probably holds on to the reference to the start of the sequence. Doing (set!

Re: clojurescript interop problems

2011-08-01 Thread Rich Hickey
On Jul 31, 2011, at 11:00 PM, Jack Moffitt wrote: I'm having some trouble attempting to use interop with ClojureScript. I'm trying to translate examples from the Closure book into ClojureScript, and I keep getting stuck on various things. 1) When using goog.testing, it appears that I can't

Re: ClojureScript binding problem

2011-08-01 Thread Chouser
On Mon, Aug 1, 2011 at 8:54 AM, Dmitry Gutov raa...@gmail.com wrote: On Aug 1, 1:32 pm, Brian McKenna puffnfr...@gmail.com wrote: For anyone else with the same problem, I just found the nice way to do it:     (def iframe (. field (getEditableIframe))) This should be equivalent to (def iframe

Re: java.lang.OutOfMemoryError when consuming many whole-numbers

2011-08-01 Thread Alex Osborne
Ben berndhe...@gmx.de writes: (defn whole-numbers [] (iterate inc 1)) If I use it like this at the REPL (take (whole-numbers)) I get: Java heap space [Thrown class java.lang.OutOfMemoryError] This unexpectedly is the same result that I expectedly get when binding whole-numbers

Re: ClojureScript binding problem

2011-08-01 Thread Dmitry Gutov
Oh, thanks for the explanation. I looked at the twitterbuzz code before replying, saw the function calls with arguments written the usual way, and (erroneously) decided it would be the same for the zero-arity calls. But it's there in the wiki. On Aug 1, 5:17 pm, Chouser chou...@gmail.com wrote:

Re: Where Are Clojure's (Cake') Build Steps Document

2011-08-01 Thread Mark Rathwell
I don't know much about cake other than that it is basically lein with a persistent JVM and a defines tasks differently, but: 1. lein uses Maven to fetch dependencies. The documentation for Maven can be found at [1]. 2. I'm not sure what type of setup you are looking for in production, but if

Re: Where Are Clojure's (Cake') Build Steps Document

2011-08-01 Thread octopusgrabbus
Thanks. This information is helpful. cmn On Aug 1, 10:16 am, Mark Rathwell mark.rathw...@gmail.com wrote: I don't know much about cake other than that it is basically lein with a persistent JVM and a defines tasks differently, but: 1. lein uses Maven to fetch dependencies.  The documentation

[ANN] First Get Together of Clojure User Group Berlin, Germany

2011-08-01 Thread sthuebner
We're excited to run our first meetup in Berlin, Germany, on August, 3rd, 2011. Anybody interested is very welcome to join. Send your RSVP to http://www.meetup.com/Clojure-Berlin/events/27199281/ and join us on https://groups.google.com/group/Clojure-User-Group-Berlin. You can also follow us on

Re: clojurescript interop problems

2011-08-01 Thread Arthur Edelstein
One option is (. target :slot), possibly with the not-so-great (.:slot   target) as well. Why not simply (target :slot) and (:slot target) as one means of accessing field values. Then you can still have clojure's traditional (.x target) execute when x is a function object and return x's value

Re: clojurescript interop problems

2011-08-01 Thread Laurent PETIT
2011/8/1 Arthur Edelstein arthuredelst...@gmail.com One option is (. target :slot), possibly with the not-so-great (.:slot target) as well. Why not simply (target :slot) and (:slot target) as one means of (:slot target) would do what, when facing an object which implements the Associative

Re: java.lang.OutOfMemoryError when consuming many whole-numbers

2011-08-01 Thread Lars Heidieker
On Sat, Jul 30, 2011 at 2:25 PM, Ben berndhe...@gmx.de wrote: Hi, I'm new in the community and new to Clojure and both a really great. A big thanks to Rich Hickey and everyone else involved. I have a question that refers to an example Stuart Halloway used in Programming Clojure. There he

Re: clojurescript advanced compile error

2011-08-01 Thread Tero Parviainen
This is a known feature with Closure templates: http://code.google.com/p/closure-templates/issues/detail?id=25 The Closure compiler does name replacement on the template parameters, so that after the compilation the argument names are no longer greeting and year. The JS object constructed in

Re: clojurescript interop problems

2011-08-01 Thread Arthur Edelstein
One option is (. target :slot), possibly with the not-so-great (.:slot target) as well. Why not simply (target :slot) and (:slot target) as one means of (:slot target) would do what, when facing an object which implements the Associative interface ? Here's what I was trying to say.

Re: clojurescript interop problems

2011-08-01 Thread Laurent PETIT
2011/8/1 Arthur Edelstein arthuredelst...@gmail.com One option is (. target :slot), possibly with the not-so-great (.:slot target) as well. Why not simply (target :slot) and (:slot target) as one means of (:slot target) would do what, when facing an object which implements the

Re: Slow static file handing with lein ring server

2011-08-01 Thread James Reeves
On 1 August 2011 08:24, sailormoo...@gmail.com sailormoo...@gmail.com wrote: I don't know why, but it seems to have a one second delay getting each static file even in local host testing. :dependencies [[org.clojure/clojure 1.2.1]                 [org.clojure/clojure-contrib 1.2.0]          

Re: clojurescript interop problems

2011-08-01 Thread Arthur Edelstein
Wasn't Rich trying to come up with a solution which could be retrofitted into Clojure ? I was trying to see how to avoid having to change anything in Clojure proper. In the strategy I'm humbly suggesting, the syntax from Clojure could work as-is. Just use same the dot notation (as in Clojure,

Best Way To Remove vector from vector of vectors?

2011-08-01 Thread octopusgrabbus
I get back a vector of vectors from clojure-csv/parse-csv. I want to remove vectors from that sequence based on the out come of certain tests on individual vector elements. Below, get-parsed-csv-file is called first and returns clean-csv-rows. filter-parsed-csv-rows is called with clean-csv=rows,

Re: clojurescript interop problems

2011-08-01 Thread Arthur Edelstein
On Aug 1, 12:45 pm, Arthur Edelstein arthuredelst...@gmail.com wrote: Wasn't Rich trying to come up with a solution which could be retrofitted into Clojure ? I was trying to see how to avoid having to change anything in Clojure proper. In the strategy I'm humbly suggesting, the syntax

Re: Best Way To Remove vector from vector of vectors?

2011-08-01 Thread Meikel Brandmeyer
Hi, Am 01.08.2011 um 21:55 schrieb octopusgrabbus: I get back a vector of vectors from clojure-csv/parse-csv. I want to remove vectors from that sequence based on the out come of certain tests on individual vector elements. You can't easily slice out elements from the middle of a vector. You

Re: Best Way To Remove vector from vector of vectors?

2011-08-01 Thread Mark Rathwell
A few more things: - I don't know if you want to be passing the start val to reduce in this case ([]), it's not doing anything here - you have the arguments to backwards. ( 0 2) in prefix is (0 2) in infix notation, so this will always return false in your code since the vector count will

Re: JSON library for clojure 1.3

2011-08-01 Thread Arthur Edelstein
Similar question: where is clojure.contrib.string for 1.3? There are a lot of useful functions in clojure.contrib.string that aren't in clojure.string 1.3. Thanks! :) Arthur On Aug 1, 5:57 am, Stuart Sierra the.stuart.sie...@gmail.com wrote: clojure.contrib.json has been continued as

Re: Best Way To Remove vector from vector of vectors?

2011-08-01 Thread octopusgrabbus
Thanks. This does help. On Aug 1, 4:11 pm, Meikel Brandmeyer m...@kotka.de wrote: Hi, Am 01.08.2011 um 21:55 schrieb octopusgrabbus: I get back a vector of vectors from clojure-csv/parse-csv. I want to remove vectors from that sequence based on the out come of certain tests on

Re: Best Way To Remove vector from vector of vectors?

2011-08-01 Thread octopusgrabbus
I'm going to give filter a shot. On Aug 1, 4:27 pm, Mark Rathwell mark.rathw...@gmail.com wrote: A few more things:  -  I don't know if you want to be passing the start val to reduce in this case ([]), it's not doing anything here  - you have the arguments to backwards.  ( 0 2) in prefix

Re: java.lang.OutOfMemoryError when consuming many whole-numbers

2011-08-01 Thread Ben
Limiting *print-length* keeps the OutOfMemoryError away, but I guess it would leave me - when testing more complicated and obscure functions - insecure whether the returned sequence really is a lazy one or will blow up the memory instead. But good to know anyway ... I guess the println function is

clojurescript additional js dependencies

2011-08-01 Thread Sergey Didenko
Are there plans to decrease the amount of js dependencies that ClojureScript makes compared to the raw Google Closure? Currently the difference in final js code size is about 28kb (5kb zipped) in advanced mode for a simple example. -- You received this message because you are subscribed to the

Re: JSON library for clojure 1.3

2011-08-01 Thread OGINO Masanori
Similar question: where is clojure.contrib.string for 1.3? +1 http://dev.clojure.org/display/design/Contrib+Library+Names c.c.string is not included in this list. Is there any plans to go to modular contrib (string.incubator, tools.string, etc.)? -- Name: OGINO Masanori (荻野 雅紀) E-mail:

Re: Published a library for archive handling.

2011-08-01 Thread Eric Lavigne
I like that both its packing and unpacking functions work on either files or streams. I can imagine building a collection of output documents in memory, using this library to pack those documents into one in-memory zip archive, and streaming the result over HTTP without ever touching the file

Re: clojurescript additional js dependencies

2011-08-01 Thread Luc Prefontaine
After compilation through the Google compiler ? On Tue, 2 Aug 2011 01:42:40 +0300 Sergey Didenko sergey.dide...@gmail.com wrote: Are there plans to decrease the amount of js dependencies that ClojureScript makes compared to the raw Google Closure? Currently the difference in final js code

Clojure binding for OrientDB

2011-08-01 Thread Eduardo Julian
I have been working on this library for a little while and I would like to present it to you: https://github.com/eduardoejp/clj-orient I hope this can be of help for the Clojure and OrientDB communities. -- You received this message because you are subscribed to the Google Groups Clojure group.

Re: Minimalist autocompile workflow for ClojureScript

2011-08-01 Thread Tunde Ashafa
I have this working on emacs. On my slicehost VM it works flawlessly, but at my work VM, only the first compilation works. Subsequent calls (on change notification) produces an empty JS file. Just wondering if you or anyone else has come across this issue. Thanks, Tunde. -- You received this

Convert Map to string for use in URL as parameters question

2011-08-01 Thread Brad
I wanted to take a Map and convert it to a string suitable for use as parameters in a URL. I have got it working below two different ways but wondered if there was a better or more idiomatic way to do this. ;; My test input map (def input {:a 1 :b 2 :c 3 :d 4}) ;; What I'd like the input map

Re : Re: novel feedback is always welcome

2011-08-01 Thread Nicolas
y I'am tThe main point for me of this whole discussion is that someone should use clojurescript if he want to use clojure instead of javascript on the browser. Like GWT, JWT, ZK or other, you do not longer develop in the client language. You develop in a different language and compile/generate

Re: JSON library for clojure 1.3

2011-08-01 Thread Vincent
how can i test using clooj ide... will lein deps, then run clooj allow me test in repl window -- 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

Re: Clojure binding for OrientDB

2011-08-01 Thread Base
Thank you for all of your help Eduardo! On Aug 1, 8:17 pm, Eduardo Julian eduardo...@gmail.com wrote: I have been working on this library for a little while and I would like to present it to you:https://github.com/eduardoejp/clj-orient I hope this can be of help for the Clojure and OrientDB

Re: Clojure Group in Singapore

2011-08-01 Thread Liu Zehua
Hi Jason, We have a small and informal Singapore Clojure user group on LinkedIn but we have yet to gather enough ppl to have a meet up. You might want to join the LinkedIn group at http://www.linkedin.com/groups?gid=3877912 . Hope we could meet up soon! Cheers, Zehua On Aug 1, 8:47 pm, Jason

Re: Convert Map to string for use in URL as parameters question

2011-08-01 Thread Sean Corfield
On Mon, Aug 1, 2011 at 3:47 PM, Brad b...@beaconhill.com wrote: ;; My test input map (def input {:a 1 :b 2 :c 3 :d 4}) ... Is there a simpler, better way to do this? How about: (require '[clojure.string :as str]) (defn map-to-query-string [m] (str/join (map (fn [[k v]] (str (name k) = v))

Re: Convert Map to string for use in URL as parameters question

2011-08-01 Thread Matjaz Gregoric
Depending on your input, you might also want to make sure to properly urlencode the keys and values. There is a function in hiccup that does what you want (including urlencoding):

Re: JSON library for clojure 1.3

2011-08-01 Thread Arthur Edelstein
On Aug 1, 7:34 pm, Vincent vincent@gmail.com wrote: how can i test using clooj ide... will lein deps, then run clooj allow me test in repl window Yes, please give it a try. Any jar in the lib directory (as typically deposited by lein or cake) should be available on the classpath. After