Re: Compilation model

2012-02-23 Thread Meikel Brandmeyer (kotarak)
Hi, Clojure reads a file toplevel expression after toplevel expression and compiles and executes them separately (exception: toplevel "do" is split into its sub-expressions). The fact that things are stored in a file is just a coincidence. You can just as well type everything into the repl man

Re: ClojureScript + Overtone

2012-02-23 Thread Despite
This is great. I'm amazed at how easy you're projects have made it to create web interfaces. One note for anybody else trying to go along with this -- skip the piano portions. It seems we've knocked out the site where Overtone grabs the samples. Now every time I do lein run overtone tries and f

Re: Compilation model

2012-02-23 Thread Cedric Greevey
On Thu, Feb 23, 2012 at 8:23 PM, Andreas Kostler wrote: > Bump...I'm interested in this, too... > > On 21 February 2012 12:29, T.Y Chew wrote: >> >> Hi all, >> >> I had a question about clojure's compilation model, which my co-worker >> suggest to redirect here :-) >> >> I wonder what clojure doe

Re: Compilation model

2012-02-23 Thread Andreas Kostler
Bump...I'm interested in this, too... On 21 February 2012 12:29, T.Y Chew wrote: > > > Hi all, > > I had a question about clojure's compilation model, which my co-worker > suggest to redirect here :-) > > I wonder what clojure does during compilation of a file? Can > side-effects occur (definiti

Re: notes on Mathematica pattern transformation & Clojure predicate dispatch

2012-02-23 Thread Phil Hagelberg
kovas boguta writes: > Is it possible to have something like this as a lein plugin? Sure, you could write an alternate repl that did this fairly easily, though doing it in Swank would be more work. Your best bet would be to build it on reply: https://github.com/trptcolin/reply -Phil -- You

ANN Simple demo how to add JMX data monitoring to Noir web app.

2012-02-23 Thread zoka
Just by adding couple of files to a Noir web application, you can add JMX data monitoring admin page. Code at https://github.com/zoka/noirMon Demo at http://noirmon.herokuapp.com Regards Zoka -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post t

ANN Simple demo how to add JMX data monitoring to Noir web app.

2012-02-23 Thread zoka
Just by adding couple of files to a Noir web application, you can add JMX data monitoring admin page. Code at https://github.com/zoka/noirMon Demo at http://noirmon.herokuapp.com Regards Zoka -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post t

Re: notes on Mathematica pattern transformation & Clojure predicate dispatch

2012-02-23 Thread kovas boguta
Is it possible to have something like this as a lein plugin? On Thu, Feb 23, 2012 at 3:45 PM, kovas boguta wrote: > You could also have 1 file for inputs, and 1 file for outputs. > > One of the most useless things about repl's is when you go back to the > saved sessions, the input and output are

Re: notes on Mathematica pattern transformation & Clojure predicate dispatch

2012-02-23 Thread kovas boguta
You could also have 1 file for inputs, and 1 file for outputs. One of the most useless things about repl's is when you go back to the saved sessions, the input and output are mixed together in an indistinguishable mess. On Thu, Feb 23, 2012 at 3:28 PM, Linus Ericsson wrote: > > > 2012/2/23 Cedr

Re: notes on Mathematica pattern transformation & Clojure predicate dispatch

2012-02-23 Thread Linus Ericsson
2012/2/23 Cedric Greevey > On Thu, Feb 23, 2012 at 2:41 PM, kovas boguta > wrote: > > In general the way repl's handle state is pretty busted. > > > > Ever create a piece of data and then later wonder, how the heck did I > make this? > > One simple thing would be if the repl logged sessions to >

Meaningless Poll Time: Which JVM Language Is On Top?

2012-02-23 Thread Brian
http://java.dzone.com/polls/which-jvm-language-top-0 -- 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

Re: notes on Mathematica pattern transformation & Clojure predicate dispatch

2012-02-23 Thread Cedric Greevey
On Thu, Feb 23, 2012 at 2:41 PM, kovas boguta wrote: > In general the way repl's handle state is pretty busted. > > Ever create a piece of data and then later wonder, how the heck did I make > this? One simple thing would be if the repl logged sessions to sequentially-numbered files. You'd be a

Re: notes on Mathematica pattern transformation & Clojure predicate dispatch

2012-02-23 Thread kovas boguta
In general the way repl's handle state is pretty busted. Ever create a piece of data and then later wonder, how the heck did I make this? On Wed, Feb 22, 2012 at 11:29 PM, Jason Jackson wrote: > "But this exposes a bigger problem: when doing interactive > development, > you will end up with old

Re: clojure.java.jmx "0.1" - problem getiing java.lang:type=Threading :AllThreadIds attribute

2012-02-23 Thread Nick Bailey
I'm not sure that java.jmx should be attempting to do any conversion of the values returned over jmx. I think it should be the application's responsibility to convert types appropriately for how they are needed. On Wed, Feb 22, 2012 at 7:47 PM, zoka wrote: > I was trying to convert result of JMX

Re: options for a function

2012-02-23 Thread Michael
Jonas, Thanks for pushing this out so quickly. We're using it now and it works fine. On Feb 23, 12:32 am, Jonas wrote: > * Quote only when necessary (this is the default) This default is very handy. Michael -- You received this message because you are subscribed to the Google Groups "Cloju

Re: How to be lazy…

2012-02-23 Thread Wolodja Wentland
On Thu, Feb 16, 2012 at 14:06 -0600, Michael Gardner wrote: > On Feb 16, 2012, at 11:08 AM, Wolodja Wentland wrote: > > > Thanks for the explanation. What would be a good way to ensure that the > > subseqeuence are lazy too? > > I can't think of a good way to do this with higher-order functions,

Re: [ANN] Clojure & Android mailing list

2012-02-23 Thread Vinzent
Corrected url (without whitespace) is http://groups.google.com/group/clojure-android -- 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

Re: Browser-connected REPL works with Android 4.0

2012-02-23 Thread Raju Bitter
If someone has an Android 4 tablet, it would be good to test if that works with a real device as well. - Raju -- 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 membe

Browser-connected REPL works with Android 4.0

2012-02-23 Thread Raju Bitter
Here's a screenshot of the browser-connected REPL connected to an instance of ClojureScript One running inside the Android 4.0 emulator. That's going to be a killer feature for developing Android HTML5 apps with ClojureScript! http://www.flickr.com/photos/semanticmemories/6923250197/in/photostream

Re: [ANN] Clojure & Android mailing list

2012-02-23 Thread Raju Bitter
Good idea, Daniel. I joined the group. - Raju -- 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

Re: ClojureScript One: System requirements, Java and Leiningen version

2012-02-23 Thread Raju Bitter
Thanks for the clarification, Chas. -- 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

Re: ClojureScript One: System requirements, Java and Leiningen version

2012-02-23 Thread Chas Emerick
On Feb 23, 2012, at 8:19 AM, Raju Bitter wrote: > Here's what I found on the project pages for the required software: > Clojure.org / Java 1.5 > Shouldn't that be Java 6? Does Clojure 1.3 still work with Java 1.5? I > remember that I read that ClojureScript 1.3 requires Java6. > http://clojure.or

Re: ClojureScript One: System requirements, Java and Leiningen version

2012-02-23 Thread Raju Bitter
One addition: The browser-connected REPL does not work in IE9, and exiting the Clojure/ClojureScript REPL usind Ctrl-d keeps the Jetty server running in memory. - Raju -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email

ClojureScript One: System requirements, Java and Leiningen version

2012-02-23 Thread Raju Bitter
Looking at the project website, there doesn't seem to be any information on the required Java or Leiningen version for ClojureScript One. Here's what I found on the project pages for the required software: Clojure.org / Java 1.5 Shouldn't that be Java 6? Does Clojure 1.3 still work with Java 1.5?

Re: notes on Mathematica pattern transformation & Clojure predicate dispatch

2012-02-23 Thread Jason Jackson
"But this exposes a bigger problem: when doing interactive development, you will end up with old definitions sticking around. You are debugging one case of your function, and change the pattern a little. " Personally, I suffer from interactive development problems even with merely using def/defn.

Re: clojure.java.jmx "0.1" - problem getiing java.lang:type=Threading :AllThreadIds attribute

2012-02-23 Thread Pierre-Yves Ritschard
MBeans will let you store serialized java objects, so you can also find hashmaps, or arbitrary arrays. When you encounter cases like this one, you can extend clojure.data.json's functionnality to get the appropriate behavior (see http://spootnik.org/blog/2011/08/12/a-bit-of-protocol/ for hints) O