Re: ANN Drip: A fast JVM launcher

2012-09-10 Thread Haim Ashkenazi
Hi I seem to have a problem running it with leiningen: After setting LEIN_JAVA_CMD I run 'lein test' 3 times and 'lein repl' 2 times. Here's the output of 'drip ps': 37826 org.flatland.drip.Main clojure.main /Users/haim/.drip/0.1.4/7f5d7985a3c16a2f30c1614767d09d71c419b13e/37801-1 -XX:+TieredComp

Re: Request to create new contrib: data.dependency

2012-09-10 Thread Karsten Schmidt
Thanks, Sean! I have tried it out & love it! :) I was actually about to publish a new library which is having data.dependency as dependency, but I guess I will have to either wait or include/bundle the dependency.clj file (with added credits & links to Stuart's git repo) in my project. Is the latte

Re: Request to create new contrib: data.dependency

2012-09-10 Thread Sean Corfield
On Mon, Sep 10, 2012 at 7:30 AM, Mayank Jain wrote: > I tried to include this library in an empty project to see if it works. It's not part of org.clojure yet. If you want to try it out, you'll need to clone Stuart's github repo and install it locally. -- Sean A Corfield -- (904) 302-SEAN An Ar

Re: ClojureScript and development workflow

2012-09-10 Thread Paul deGrandis
Hi Laurent, I've been putting a few ClojureScript apps into production throughout this year with much success. Because of earlier limitations/sensitivities in the browser-repl, my workflow is a little different than those described above. Typically I: - have cljsbuild-auto running - use the C

Re: ClojureScript and development workflow

2012-09-10 Thread Takahiro Hozumi
Hi, I refresh browser every time I change cljs files. > "Using the REPL as the main way to deliver code to the browser means never having to refresh the page. One could theoretically build an entire application without a single page refresh. If you find yourself refreshing the page after every

Re: ClojureScript and development workflow

2012-09-10 Thread Denis Labaye
On Mon, Sep 10, 2012 at 8:50 PM, Laurent PETIT wrote: > > > 2012/9/10 Laurent PETIT > >> 2012/9/10 Denis Labaye >> >>> >>> >>> On Mon, Sep 10, 2012 at 6:28 PM, Laurent PETIT >>> wrote: >>> Hello, A "ClojureScript workflow" newbie question. People seem to be using a lot

Re: Lightweight lib/way to strip html from text

2012-09-10 Thread Timo Mihaljov
On 06.09.2012 20:41, jamieorc wrote: > Hey all, I'm looking for a lightweight way to strip html from a long > String of text and leave just the text. I've come across JSoup, but at > over 300kb for the lib, not quite lightweight. > > Suggestions? I've found Jericho HTML Parser to be fast, robust

Re: ClojureScript and development workflow

2012-09-10 Thread Laurent PETIT
2012/9/10 Laurent PETIT > 2012/9/10 Denis Labaye > >> >> >> On Mon, Sep 10, 2012 at 6:28 PM, Laurent PETIT >> wrote: >> >>> Hello, >>> >>> A "ClojureScript workflow" newbie question. >>> >>> People seem to be using a lot lein-cljsbuild to work with their >>> ClojureScript project. >>> >>> From

Re: ClojureScript and development workflow

2012-09-10 Thread Laurent PETIT
2012/9/10 Denis Labaye > > > On Mon, Sep 10, 2012 at 6:28 PM, Laurent PETIT wrote: > >> Hello, >> >> A "ClojureScript workflow" newbie question. >> >> People seem to be using a lot lein-cljsbuild to work with their >> ClojureScript project. >> >> From what I understand, this means they have a wat

Re: algo.monad state-m fetch-val bug and efficiency issue

2012-09-10 Thread Phlex
On 10/09/2012 08:59, Konrad Hinsen wrote: The maintainer is me, and I am indeed not in IRC. Thanks for your suggestions, which I have applied to the source code repository. Konrad. Thanks you. Sacha -- You received this message because you are subscribed to the Google Groups "Clojure" gro

Re: [ANN] data.priority-map 0.0.2 available

2012-09-10 Thread Denis Labaye
On Mon, Sep 10, 2012 at 6:52 PM, John Gabriele wrote: > On Monday, September 10, 2012 7:29:34 AM UTC-4, Denis Labaye wrote: > >> >> >>> >>> (yes, I know the README needs updating to the "official" format...) >>> >> >> What's the "official" format ? >> > > http://dev.clojure.org/display/design/Con

Re: ClojureScript and development workflow

2012-09-10 Thread Denis Labaye
On Mon, Sep 10, 2012 at 6:28 PM, Laurent PETIT wrote: > Hello, > > A "ClojureScript workflow" newbie question. > > People seem to be using a lot lein-cljsbuild to work with their > ClojureScript project. > > From what I understand, this means they have a watcher which recompiles > javascript in th

Re: edn

2012-09-10 Thread Ben Smith-Mannschott
On Mon, Sep 10, 2012 at 5:38 PM, Rich Hickey wrote: > Would you mind taking specific requests for clarification to the issues page, > so I don't lose track of them? > > https://github.com/richhickey/edn/issues > > Thanks, > > Rich sure thing // Ben -- You received this message because you are

Re: ClojureScript and development workflow

2012-09-10 Thread Nelson Morris
I've also been using lein-cljsbuild to compile an initial js for page load, and piggieback for interactive dev. I did need to make a fork of nrepl.el that used an :op "load-file" to be able to C-c C-k a buffer and load it in the background. Working on getting that into master. On Mon, Sep 10, 20

Re: ClojureScript and development workflow

2012-09-10 Thread Chas Emerick
I've been using a combination of lein-cljsbuild to keep the on-disk generated code fresh and piggieback[1] for all of my cljs REPL needs. Cheers, - Chas [1] https://github.com/cemerick/piggieback On Sep 10, 2012, at 12:28 PM, Laurent PETIT wrote: > Hello, > > A "ClojureScript workflow" newb

Re: [ANN] data.priority-map 0.0.2 available

2012-09-10 Thread John Gabriele
On Monday, September 10, 2012 7:29:34 AM UTC-4, Denis Labaye wrote: > > >> >> (yes, I know the README needs updating to the "official" format...) >> > > What's the "official" format ? > http://dev.clojure.org/display/design/Contrib+Library+READMEs ---John -- You received this message becaus

Re: ClojureScript and development workflow

2012-09-10 Thread Robert Marianski
You can use a browser connected repl too: https://github.com/emezeske/lein-cljsbuild/blob/master/doc/REPL.md I've used repl-listen with success. Robert On Mon, Sep 10, 2012 at 06:28:14PM +0200, Laurent PETIT wrote: > Hello, > > A "ClojureScript workflow" newbie question. > > People seem to be

ANN Drip: A fast JVM launcher

2012-09-10 Thread Justin Balthrop
Drip is a drop in replacement for the 'java' command that provides faster startup times. It does this by keeping a fresh JVM spun up in reserve with the correct classpath and other JVM options so you can quickly connect and use it when needed, then throw it away. Drip works with Clojure and Lei

ClojureScript and development workflow

2012-09-10 Thread Laurent PETIT
Hello, A "ClojureScript workflow" newbie question. People seem to be using a lot lein-cljsbuild to work with their ClojureScript project. >From what I understand, this means they have a watcher which recompiles javascript in the background whenever they save changes to clojurescript files to the

ANN: Cascalog = Hadoop + Sanity on 2 October in London

2012-09-10 Thread Bruce Durling
Roll up! Roll up! Another exciting London Clojurian event coming to you. This time we're stealing speakers from Strata London! On 2 October at 18:30 at Skills Matter in London, Stefan Hübner will be telling us how Cascalog = Hadoop + Sanity Cascalog is a data processing library for Clojure. It m

appengine-magic: Argument must not be null.

2012-09-10 Thread Rostislav Svoboda
Hi, I'm trying to execute the multipart/form-data example from https://github.com/gcv/appengine-magic.git but it seems like the blob-key in the (GET "/serve/:blob-key" {{:strs [blob-key]} :params :as req} (blobs/serve req blob-key))) is null. The error is: Problem accessing /serve/15d3f

Re: What does ":resource-paths" in leiningen do?

2012-09-10 Thread Phil Hagelberg
larry google groups writes: > I see this: > > :resource-paths ["src/main/resource"] ; non-code files included in > classpath/jar > > I am confused in 2 ways: > > 1.) is this a break from java conventions? I thought Java projects > tended to put a "resources" folder at the top level of a project,

Re: edn

2012-09-10 Thread Rich Hickey
On Sep 10, 2012, at 8:44 AM, Ben Smith-Mannschott wrote: > On Mon, Sep 10, 2012 at 2:15 PM, Marko Topolnik > wrote: >>> Java has arrays, lists, maps and sets, so does Ruby and Erlang. >>> >>> If they were redundancies in these structures, can't see why these three >>> still >>> maintain this di

Re: edn

2012-09-10 Thread Rich Hickey
Would you mind taking specific requests for clarification to the issues page, so I don't lose track of them? https://github.com/richhickey/edn/issues Thanks, Rich On Sep 9, 2012, at 8:09 AM, Ben Smith-Mannschott wrote: > On Fri, Sep 7, 2012 at 3:01 AM, Rich Hickey wrote: >> I've started to d

Re: atom with metadata

2012-09-10 Thread Herwig Hochleitner
While you have found the solution, note that there are 3 places for metadata in an expression like: (def a (atom [])) - The value inside the atom can have metadata: (meta @a) This will change with a swap! - The atom itself can have metadata: (meta a) This will survive a swap! - The var hold

Re: edn

2012-09-10 Thread Rich Hickey
On Sep 8, 2012, at 9:28 AM, Steven E. Harris wrote: > Michael Fogus writes: > >> Data formats do not exist in a vacuum. They are parsed by languages. >> Some may have a fine-grained distinction between lists, arrays/vectors >> and sets and some may not. > > The concern I have is for someone w

Re: Request to create new contrib: data.dependency

2012-09-10 Thread Mayank Jain
I tried to include this library in an empty project to see if it works. Got the following error : Output : > ~/testproject$ lein deps > Could not find artifact org.clojure:data.dependency:pom:0.1.0 in central ( > http://repo1.maven.org/maven2) > Could not find artifact org.clojure:data.dependency

Re: Request to create new contrib: data.dependency

2012-09-10 Thread Karsten Schmidt
On 16 May 2012 22:59, Stuart Sierra wrote: > As part of my long-delayed effort to get namespace dependency parsing into > Contrib, I offer the clojure.data.dependency library: > > https://github.com/stuartsierra/data.dependency > > This is wholly my own work. I give permission to release it under

Re: edn

2012-09-10 Thread Marko Topolnik
> > Using an explicit tag or not is a minor detail but... > I'd argue that from the Clojure perspective it is not that minor. I think the absence of the distinction would ruin the experience for Clojure users. > If you restrict an exchange format because some language(s) have no > literal

Re: edn

2012-09-10 Thread Ben Smith-Mannschott
On Mon, Sep 10, 2012 at 2:15 PM, Marko Topolnik wrote: >> Java has arrays, lists, maps and sets, so does Ruby and Erlang. >> >> If they were redundancies in these structures, can't see why these three >> still >> maintain this distinction. It's probably a safe bet to say that we need to >> convey

Re: edn

2012-09-10 Thread Softaddicts
My point was about the necessity or not to support both lists and vectors. The original poster did not find any usefulness in supporting both, arguing that they were redundant. He found the idea too Clojure centric. I do not think it's Clojure centric and that the nuances are not worth to carry t

Re: edn

2012-09-10 Thread Marko Topolnik
> > Java has arrays, lists, maps and sets, so does Ruby and Erlang. > > If they were redundancies in these structures, can't see why these three > still > maintain this distinction. It's probably a safe bet to say that we need to > convey these > nuances in edn somehow. > Let's keep this i

Re: [ANN] rubydoc 0.3.0

2012-09-10 Thread Mayank Jain
On Mon, Sep 10, 2012 at 4:54 PM, Denis Labaye wrote: > > By the way the "direct link" to the Clojure / Ruby side by side > comparison: http://langref.org/clojure+ruby/files > > Nice share. > Cheers, > > Denis > > >> >> >> -- >> You received this message because you are subscribed to the Google

Re: [ANN] data.priority-map 0.0.2 available

2012-09-10 Thread Denis Labaye
On Mon, Sep 10, 2012 at 5:47 AM, Sean Corfield wrote: > https://github.com/clojure/data.priority-map Seems interesting, thanks. > > > Fixes: http://dev.clojure.org/jira/browse/DPRIMAP-1 > > Implements Iterable to be compatible with reducers per Alan Malloy. > (yes, I know the README needs up

Re: [ANN] rubydoc 0.3.0

2012-09-10 Thread Mayank Jain
On Mon, Sep 10, 2012 at 4:54 PM, Denis Labaye wrote: > > By the way the "direct link" to the Clojure / Ruby side by side > comparison: http://langref.org/clojure+ruby/files > > Nice share. > Cheers, > > Denis > > >> >> >> -- >> You received this message because you are subscribed to the Google

Re: [ANN] rubydoc 0.3.0

2012-09-10 Thread Denis Labaye
On Mon, Sep 10, 2012 at 4:10 AM, Gabriel Horner wrote: > rubydoc is a project aimed at > helping rubyists find clojure equivalents. There are now over 200+ > ruby-clojure comparisons. 0.3.0 comes with some new features: > > * A comparison is not just limited

Re: Browser as an Evaluation Environment error

2012-09-10 Thread goracio
I solved the problem 1. There was an error in cljs code :) 2. You should open http://localhost:9000 because it opens index.html file and it should be index.html file. As experiment i renamed that to repl.html opened http://localhost:9000/repl.html and got xpc error. So to make things easier i n

Re: Browser as an Evaluation Environment error

2012-09-10 Thread Hubert Iwaniuk
Clue here is file:/// protocol. REPL will not work with mixed protocols, if you go to http://localhost:9000/ it will not refer to file:/// HTH, Hubert. goracio wrote: well manual says Once the REPL has started, you will see the message "Starting server on port 9000". At this point, open the

Re: Browser as an Evaluation Environment error

2012-09-10 Thread goracio
well manual says Once the REPL has started, you will see the message "Starting server on port 9000". At this point, open the html page by going to http://localhost:9000 to complete the connection. Once the page is open and the connection is made, the REPL prompt will be displayed. Any way opene

Re: Browser as an Evaluation Environment error

2012-09-10 Thread Gijs S.
I once ran into this error message when I entered the address "http://localhost:9000/repl"; into the address bar of the browser by mistake. This address should only be used in ClojureScript code. You should open a page in the browser that contains compiled ClojureScript that connects to this

Re: Browser as an Evaluation Environment error

2012-09-10 Thread goracio
i checked script file and problem with this function and in this var temp__3971__auto6287 = clojure.browser.net.xpc_connection.call(null); clojure.browser.net.xpc_connection.call(null) returns null and that's because (new goog.Uri(window.location.href)).getParameterValue("xpc"); returns u

Re: Browser as an Evaluation Environment error

2012-09-10 Thread goracio
i checked script file and problem with this function and in this var temp__3971__auto6287 = clojure.browser.net.xpc_connection.call(null); clojure.browser.net.xpc_connection.call(null) returns null clojure.browser.repl.start_evaluator = function start_evaluator(url) { var temp__3971__auto

Re: Browser as an Evaluation Environment error

2012-09-10 Thread goracio
i checked script file and problem with this function and in this var temp__3971__auto6287 = clojure.browser.net.xpc_connection.call(null); which returns false i guess and then clojure.browser.net.xpc_connection.call(null) returns false. clojure.browser.repl.start_evaluator = function start_