Re: Destructure Date Object

2016-08-10 Thread Mayank Jain
Nice! I didn't know you could that!

On Wed, Aug 10, 2016 at 5:29 PM, Toby Crawley  wrote:

> clojure.core/bean (https://clojuredocs.org/clojure.core/bean) is what you
> want:
>
> (let [{:keys [day month year]} (bean some-date)]
>  ...)
>
> On Wed, Aug 10, 2016 at 12:41 PM, Jacob Strength 
> wrote:
> > I'm just curious if it is possible to destructure a date object in say a
> let
> > form?
> > For example can I do something like this:
> > (let [{:keys [day month year]} some-date]
> >  ...)
> >
> > --
> > 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, send email to
> > clojure+unsubscr...@googlegroups.com
> > For more options, visit this group at
> > http://groups.google.com/group/clojure?hl=en
> > ---
> > You received this message because you are subscribed to the Google Groups
> > "Clojure" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> > email to clojure+unsubscr...@googlegroups.com.
> > For more options, visit https://groups.google.com/d/optout.
>
> --
> 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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Simple memory usage tuning for clojure

2016-05-04 Thread Mayank Jain
+1 for Pivotshare videos: how to use YourKit efficiently
On May 4, 2016 03:56, "Colin Fleming"  wrote:

> As would I - I've used YourKit a bit but the results can often be pretty
> impenetrable. Also, knowing how to interpret results specifically for
> Clojure would be great too.
>
> Jonathon, if you're specifically interested in memory, check out Eclipse
> MAT - it's a great, free tool for analysing heap dumps and there are some
> good tutorials out there for how to use it.
>
> On 4 May 2016 at 10:04, Patrick Kristiansen  wrote:
>
>> Well, Tim, there's an idea for material for your Pivotshare videos: how
>> to use YourKit efficiently. I'd watch.
>>
>> --
>> 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, send email to
>> clojure+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Clojure" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to clojure+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> 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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: New Clojars feature: atomic deploys

2016-03-08 Thread Mayank Jain
Thank you so much for this! I've personally faced this issue before. So I
know how helpful this change is. Great job! :)
On Mar 8, 2016 7:39 PM, "Toby Crawley"  wrote:

> We just pushed a new release of Clojars that includes a new
> implementation of our internal deploy logic. The big change there is
> deployments are now atomic - if the deployment fails (due to a network
> interruption/corruption or invalid artifacts), then we no longer write
> it to the repository.
>
> We verify the deployment by applying a set of validations (see
> https://github.com/clojars/clojars-web/wiki/Pushing#validations) after
> all of the artifacts have been uploaded, but before we send back a
> response to the final PUT. This allows us to return a (hopefully
> helpful) error message if any of the validations fail.
>
> From a user perspective, deployment should behave the same for the
> most part - the only thing that would be different is we now validate
> after all of the artifacts are uploaded instead of applying some
> validations for each artifact. This means that if you try to redeploy
> a non-SNAPSHOT version, for example, it used to fail on the first
> artifact, but will now fail after the /last/ artifact has been
> uploaded.
>
> As part of this change, we repaired any invalid non-SNAPSHOT
> maven-metadata.xml files that had resulted from partial deploys
> (likely from network interruptions) in the past.
>
> Since this is a big internal change, please let us know if you see any
> issues or oddness with deployment. You can file an issue
> (https://github.com/clojars/clojars-web/issues), or find us in
> #clojars on either the Clojurians slack or Freenode.
>
> - Toby
>
> --
> 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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Is there a function in clojure.test like future fact in midje?

2016-02-29 Thread Mayank Jain
Hi,

I have a deftest but its output fails currently and I would like to mark it 
as TODO.
Currently I comment it out. 

Is there a function in clojure.test which says this test is not ready yet, 
log the output but don't test it.
Similar to future fact in midje[1]?

Thanks.

[1] : https://github.com/marick/Midje/wiki/Future-facts

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Is it possible to print log statements on clojure repl as well?

2015-12-16 Thread Mayank Jain
I tried both the solutions, neither worked.

Solution #1 - Use only clojure.tools.logging

My Dependencies
[[org.clojure/clojure "1.7.0"]
 [org.clojure/tools.logging "0.3.1"]]

Repl Output
> (require '[clojure.tools.logging :as ctl])
nil
> (ctl/error "hi")
nil
> (ctl/info "hi")
nil

Console Output
$ lein repl :headless :port 4005
nREPL server started on port 4005 on host 127.0.0.1 - nrepl://127.0.0.1:4005
Dec 17, 2015 12:07:16 PM clojure.tools.logging$eval406$fn__410 invoke
SEVERE: hi
Dec 17, 2015 12:07:22 PM clojure.tools.logging$eval406$fn__410 invoke
INFO: hi


Solution #2 - Add suggested dependencies

My Dependencies
[[org.clojure/clojure "1.7.0"]
 [org.clojure/tools.logging "0.3.1"]
 [org.slf4j/slf4j-log4j12 "1.7.13"]
 [org.slf4j/slf4j-api "1.7.13"]
 [log4j/log4j "1.2.17"]]

Repl Output
> (require '[clojure.tools.logging :as ctl])
nil
> (ctl/error "hi")
nil

Console Output
$ lein repl :headless :port 4005
nREPL server started on port 4005 on host 127.0.0.1 - nrepl://127.0.0.1:4005
2015-12-17 12:11:50 ERROR user:288 - hi

Am I missing something?

Other infomation:
$ java -version
java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)

$ lein -v
Leiningen 2.5.3 on Java 1.8.0_45 Java HotSpot(TM) 64-Bit Server VM

Emacs 24.5
OS: Mac OS 10.10.5 


On Thursday, December 17, 2015 at 7:58:37 AM UTC+5:30, Shantanu Kumar wrote:
>
> Below is the order in which c.t.l picks up loggers:
> 1. SLF4j (which also includes Logback, since it natively implements the 
> SLF4j API)
> 2. Apache Commons-logging
> 3. Log4j
> 4. java.util.logging
>
> Reference: 
> https://github.com/clojure/tools.logging/blob/master/src/main/clojure/clojure/tools/logging/impl.clj#L214
>
> Both #1 and #2 are merely logger facade, incapable of logging anywhere 
> except to the console by themselves. They need an underlying logger for 
> real-world logging.
>
> Your dependencies only include the SLF4j-log4j bridge (without the log4j 
> dependency), which I am not sure is supposed to be picked up by c.t.l. I 
> would suggest either remove slf4j-log4j dependency altogether (allowing 
> j.u.l to be chosen) or add the slf4j [org.slf4j/slf4j-api "1.7.13"]
>  and log4j [log4j/log4j "1.2.17"] dependencies to your current config.
>
> Hope this helps.
>
> Shantanu
>
> On Wednesday, 16 December 2015 23:47:39 UTC+5:30, Mayank Jain wrote:
>>
>> Thanks Shantanu for your reply,
>>
>> It still didn't work.
>>
>> Here's my project.clj
>> (defproject log "0.1.0-SNAPSHOT"
>>   :description "FIXME: write description"
>>   :url "http://example.com/FIXME";
>>   :license {:name "Eclipse Public License"
>> :url "http://www.eclipse.org/legal/epl-v10.html"}
>>   :dependencies [[org.clojure/clojure "1.7.0"]
>>  [org.clojure/tools.logging "0.3.1"]
>>  [org.slf4j/slf4j-log4j12 "1.7.13"]])
>>
>>
>> And here's my resources/log4j.properties file
>> # Root logger option
>> log4j.rootLogger=INFO, stdout
>>
>> # Direct log messages to stdout
>> log4j.appender.stdout=org.apache.log4j.ConsoleAppender
>> log4j.appender.stdout.Target=System.out
>> log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
>> log4j.appender.stdout.layout.ConversionPattern=%d{-MM-dd HH:mm:ss} 
>> %-5p %c{1}:%L - %m%n
>>
>> And here's my the output from my Clojure repl in Emacs:
>> user> (require '[clojure.tools.logging :as ctl])
>> nil
>> user> (ctl/error "Fail!")
>> nil
>>
>> And here's what I get on my console
>> $ lein repl :headless :port 4005
>> nREPL server started on port 4005 on host 127.0.0.1 - nrepl://
>> 127.0.0.1:4005
>> 2015-12-16 23:44:50 ERROR user:288 - Fail!
>>
>> I would like it to print the same on both Emacs repl and on console (and 
>> add to a file).
>>
>> I can get it to write on console and file but not on repl.
>>
>> On Wednesday, December 16, 2015 at 10:13:12 PM UTC+5:30, Shantanu Kumar 
>> wrote:
>>>
>>> If you enabled Log4j console logger, the logs should appear in the REPL 
>>> too.
>>>
>>> See example at 
>>> http://www.mkyong.com/logging/log4j-log4j-properties-examples/
>>>
>>> You do not necessarily need log4j to log to the REPL via 
>>> clojure.tools.logging - you can just use c.t.l. without any logging library 
>>> and it

Re: Is it possible to print log statements on clojure repl as well?

2015-12-16 Thread Mayank Jain
Thanks Shantanu for your reply,

It still didn't work.

Here's my project.clj
(defproject log "0.1.0-SNAPSHOT"
  :description "FIXME: write description"
  :url "http://example.com/FIXME";
  :license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
  :dependencies [[org.clojure/clojure "1.7.0"]
 [org.clojure/tools.logging "0.3.1"]
 [org.slf4j/slf4j-log4j12 "1.7.13"]])


And here's my resources/log4j.properties file
# Root logger option
log4j.rootLogger=INFO, stdout

# Direct log messages to stdout
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Target=System.out
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{-MM-dd HH:mm:ss} %-5p 
%c{1}:%L - %m%n

And here's my the output from my Clojure repl in Emacs:
user> (require '[clojure.tools.logging :as ctl])
nil
user> (ctl/error "Fail!")
nil

And here's what I get on my console
$ lein repl :headless :port 4005
nREPL server started on port 4005 on host 127.0.0.1 - nrepl://127.0.0.1:4005
2015-12-16 23:44:50 ERROR user:288 - Fail!

I would like it to print the same on both Emacs repl and on console (and 
add to a file).

I can get it to write on console and file but not on repl.

On Wednesday, December 16, 2015 at 10:13:12 PM UTC+5:30, Shantanu Kumar 
wrote:
>
> If you enabled Log4j console logger, the logs should appear in the REPL 
> too.
>
> See example at 
> http://www.mkyong.com/logging/log4j-log4j-properties-examples/
>
> You do not necessarily need log4j to log to the REPL via 
> clojure.tools.logging - you can just use c.t.l. without any logging library 
> and it will fall back to java.util.logging using STDOUT.
>
> Shantanu
>
> On Wednesday, 16 December 2015 21:58:40 UTC+5:30, Mayank Jain wrote:
>>
>> Hi,
>>
>> I would like to be able to print log statements via clojure.tools.logging 
>> to print on clojure repl as well.
>> I am using log4j logging framework for configurations.
>> Is this possible? I am unable to figure it out. 
>> I am open to any other logging framework if that solves this.
>>
>> Thanks.
>>
>

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Is it possible to print log statements on clojure repl as well?

2015-12-16 Thread Mayank Jain
Hi,

I would like to be able to print log statements via clojure.tools.logging 
to print on clojure repl as well.
I am using log4j logging framework for configurations.
Is this possible? I am unable to figure it out. 
I am open to any other logging framework if that solves this.

Thanks.

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How do I print each test name in clojure.test?

2015-09-02 Thread Mayank Jain
Thank you so much, that worked! :)

On Wed, Sep 2, 2015 at 2:36 AM, James Reeves  wrote:

> On 1 September 2015 at 17:34, Mayank Jain  wrote:
>>
>> It throws Stackoverflow error
>>
>> StackOverflowError
>>> clojure.lang.Util.equiv (Util.java:33)
>>> clojure.core/isa? (core.clj:5115)
>>> clojure.lang.Var.invoke (Var.java:388)
>>> clojure.lang.MultiFn.isA (MultiFn.java:123)
>>> clojure.lang.MultiFn.findAndCacheBestMethod (MultiFn.java:177)
>>> clojure.lang.MultiFn.getMethod (MultiFn.java:150)
>>> clojure.lang.MultiFn.getFn (MultiFn.java:158)
>>> clojure.lang.MultiFn.invoke (MultiFn.java:227)
>>
>>
>> Any idea why this could be happening?
>>
>> My mistake, sorry. We need to assign another var to hold the version that
> hasn't been overridden:
>
>   (def old-report clojure.test/report)
>
>   (defmethod custom-report :default [m]
> (old-report m))
>
> That should now work.
>
> - James
>
> --
> 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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How do I print each test name in clojure.test?

2015-09-01 Thread Mayank Jain
Hey thanks for the reply.

If I use only this, it works well.


>   (defmethod clojure.test/report :begin-test-var [m]
> (println (-> m :var meta :name)))
>

But if I use the following code instead,


>   (defmulti custom-report :type)
>
>   (defmethod custom-report :default [m]
> (clojure.test/report m))
>
>   (defmethod custom-report :begin-test-var [m]
> (println (-> m :var meta :name)))
>
>   (binding [clojure.test/report custom-report]
> (clojure.test/run-all-tests))
>

It throws Stackoverflow error

StackOverflowError
> clojure.lang.Util.equiv (Util.java:33)
> clojure.core/isa? (core.clj:5115)
> clojure.lang.Var.invoke (Var.java:388)
> clojure.lang.MultiFn.isA (MultiFn.java:123)
> clojure.lang.MultiFn.findAndCacheBestMethod (MultiFn.java:177)
> clojure.lang.MultiFn.getMethod (MultiFn.java:150)
> clojure.lang.MultiFn.getFn (MultiFn.java:158)
> clojure.lang.MultiFn.invoke (MultiFn.java:227)


Any idea why this could be happening?

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How do I print each test name in clojure.test?

2015-08-31 Thread Mayank Jain
Hi,

I would like clojure.test to print name of each test as it runs. Currently 
it only prints on failure.
I would like it to print even when it passes.
Is there a way to do this? Maybe through writing some each fixture?

Currently I have written this function

(defn print-test
  []
  (println (last (map #(:name (meta %)) *testing-vars*

And I add this print-test to each test at the top.

(deftest valid-test
  (print-test)
  (let []
   ))


Is there a better way?

Thanks.

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Is any place to share articles about Clojure?

2015-08-24 Thread Mayank Jain
Check http://planet.clojure.in/

On Mon, Aug 24, 2015 at 5:49 PM, Krzysztof Władyka 
wrote:

> Hello,
>
> From time to time i am writing article on http://clojure.wladyka.eu/, but
> the problem is nobody know about this site, because i didn't share it :)
> Subjectively i am writing there things what some Clojure coders will want
> to read.
>
> Is any place where can i share Clojure articles? Anyway maybe i will find
> there something for me also :)
>
> Best,
> Krzysztof Władyka
>
> --
> 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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Need suggestions on how to write rand-interleave test.check generator.

2015-08-16 Thread Mayank Jain
Interesting idea. Will look into how shuffle works and see if I can adapt
that instead.
Thanks :)

On Sat, Aug 15, 2015 at 7:56 AM, Gary Fredericks 
wrote:

> Another kind of approach that would be worth trying is adapting
> test.check's own shuffle generator
> <https://github.com/clojure/test.check/blob/e3256cbaa3a98b1d688475fe190aa97ad255e08b/src/main/clojure/clojure/test/check/generators.clj#L447-465>.
> It generates a sequence of pairs of indexes and then swaps the elements at
> those indexes. The benefits are that you avoid the stack issues and also
> other disadvantages that come with using bind.
>
> I tried one that only did adjacent swaps, and only when they didn't
> violate the constraint, but it took a lot of swaps for it to get really
> mixed up. I think something more clever could be better.
>
> Gary
>
> On Friday, August 14, 2015 at 9:43:52 AM UTC-5, Carlo wrote:
>>
>> Hey Mayank!
>>
>> Similarly to your attempt last time, you need to use gen/bind to get the
>> result of a generator which you can then use to make a new generator.
>>
>> (defn- rand-interleave* [coll acc]
>>   (if (seq coll)
>> (gen/bind (gen/choose 0 (dec (count coll)))
>>   (fn [index]
>> (let [value (first (get coll index))
>>   coll (->> (update-in coll [index] next)
>> (remove empty?)
>> vec)]
>>   (rand-interleave* coll (conj acc value)
>> (gen/return acc)))
>>
>> (defn rand-interleave [& colls]
>>   (rand-interleave* (vec colls) []))
>>
>> The (gen/choose 0 (dec (count coll))) is similar to your rand-count
>> function, then the generated number is passed to the function as result.
>> Writing it this way will shrink towards the (apply concat args) (ie. as
>> it shrinks it will move towards just concatenating the arguments).
>>
>> In terms of the recursion: this will eventually overflow the stack. I
>> don't know of a way to trampoline generators, so I don't know how to avoid
>> that. (This is a bit of a recurring problem with monadic code in Clojure, I
>> feel, as algo.monads had a similar problem last time I checked.) For the
>> moment I'm just ignoring this theoretical problem until it becomes a
>> practical problem.
>>
>> I hope that helps!
>>
>> Carlo
>>
>> On 14 August 2015 at 23:39, Mayank Jain  wrote:
>>
>>> Hi Everyone,
>>>
>>> Here's the problem I am facing,
>>> I need to write a generator which takes any number of sequences,
>>> interleaves them but maintains the order within each sequence.
>>> Assume each sequence has at least one element.
>>>
>>> For example:
>>>
>>> (rand-interleave [1 2 3 4] [:a :b] [:A :B :C :D :E])
>>>> => [:a 1 2 :b :A :B :C 3 :D 4 :E]
>>>
>>>
>>> (rand-interleave [1 2 3 4])
>>>> => [1 2 3 4]
>>>
>>>
>>> (rand-interleave [1])
>>>> => [1]
>>>
>>>
>>> (rand-interleave [1] [:a] [:A])
>>>> => [:a 1 :A]
>>>
>>>
>>> I have been able to write this down as clojure functions.
>>> But I am unable to convert this into a test.check generator.
>>>
>>> Specifically:
>>>
>>>- How to pass random index count without using rand-int i.e. use
>>>gen/choose
>>>- How do I write recursive functions which play well with test.check
>>>
>>> Here's my take on it (without the generators).
>>>
>>> (defn- first-nth
>>>>   "(first-nth [[1 2 3 4] [:a :b :c :d]]
>>>>   1)
>>>>=> :a"
>>>>   [coll n]
>>>>   (first (nth coll n)))
>>>
>>>
>>>
>>> (defn- next-nth
>>>>   "(next-nth [[1 2 3 4] [:a :b :c :d]]
>>>>   1)
>>>>=> [[1 2 3 4] (:b :c :d)]"
>>>>   [coll n]
>>>>   (->> n
>>>>(nth coll)
>>>>next
>>>>(assoc coll n)
>>>>(remove nil?)
>>>>vec))
>>>
>>>
>>>
>>> (defn- rand-count
>>>>   [coll]
>>>>   (rand-int (count coll)))
>>>
>>>
>>>
>>> (defn- rand-interleave*
>>>>   [coll acc]
>>>>   (let [n (rand-count coll)]
>>>> (if (not-empty coll)
>>>

Re: [ANN] test.check 0.8.0

2015-08-16 Thread Mayank Jain
Hi Gary,

Thanks a lot for this new update.
Was waiting for it :)

On Sun, Aug 16, 2015 at 7:26 AM, Laurens Van Houtven <_...@lvh.cc> wrote:

> Hi Gary
>
>
> Thanks a lot for your hard work; I'm a big fan of test.check and have been
> tracking the RCs :)
>
> Could you help me understand  the difference between scale and fmap?
>
>
> thanks
> lvh
>
> Sent from my iPhone
>
> On Aug 15, 2015, at 13:08, Gary Fredericks 
> wrote:
>
> I'm happy to announce the release today of version 0.8.0 of test.check
> , the QuickCheck-inspired
> property-based testing library. The release is light on new features, but
> has a couple important changes:
>
>- The generators now use an immutable random number generator under
>the hood, which makes the determinism a lot less brittle and enables
>various extensions and new features
>- The ClojureScript namespaces have been renamed – all occurrences of
>`cljs` have been changed to `clojure` so that the clj and cljs namespaces
>are consistent. This is an internal improvement since it means we can
>upgrade the codebase to use .cljc files, but it also makes things easier
>for writing portable tools & tests for/with test.check.
>
> Additionally there are two new generator functions:
>
>- scale: a function that lets you tweak the size of a given generator,
>e.g. (gen/scale #(* % 1000) gen/nat)
>- generate: an alternative to sample that returns a single generated
>object, defaulting to a larger size to give you an idea of what non-trivial
>values look like for the generator
>
> There are a handful of new features planned for upcoming releases:
>
>- running tests in parallel (on the jvm)
>- generating specifically-sized collections of distinct elements
>- better options for integration with other testing frameworks
>
> As always I welcome any feedback, ideas, or experience reports.
>
>
> Gary
>
> --
> 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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
> --
> 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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Need suggestions on how to write rand-interleave test.check generator.

2015-08-14 Thread Mayank Jain
Oh okay. So if a value given to gen/return function is coming via a
generator will shrink because that generator will shrink.
But say (gen/return [1 2 3 4]) will never shrink because it is saying just
return it as it is and never shrink this.
Got it! :)

On Fri, Aug 14, 2015 at 10:34 PM, Carlo Zancanaro 
wrote:

> What it means is that the value returned by gen/return can't be shrunk.
>
> Shrinking is done by constructing a (lazily evaluated) tree of "smaller"
> forms of the same thing. So a number, let's say 4, contains a tree of
> smaller numbers (0, 1, 2, and 3) which specify how to shrink it. (The tree
> is constructed in an intelligent way to make shrinking more efficient than
> "try everything".) When you use gen/return you don't have any of that
> context, so the returned value cannot be shrunk.
>
> This situation is a bit more complex when you use gen/bind, though,
> because the result of the gen/bind call "inherits" a shrink tree from the
> generator given to gen/bind. That's why my function can shrink despite
> using gen/return for its final value. The gen/return isn't shrinking, but
> the gen/bind is.
>
> Carlo
>
> On 15 August 2015 at 02:49, Mayank Jain  wrote:
>
>> Ah right! I knew I had to use gen/choose for this,
>> I am still grokking bind :)
>>
>> Thanks for your help!
>> That indeed did the trick for me :)
>>
>> One thing I am clear about is,
>> If I use gen/return it says it'll not shrink.
>> Does that mean when a test fails for a certain order, it won't try to
>> shrink that order of collection?
>> Because I have used a gen/return at the end of the generator?
>>
>> Thanks again for your help! :)
>>
>> On Fri, Aug 14, 2015 at 8:13 PM, Carlo Zancanaro <
>> carlozancan...@gmail.com> wrote:
>>
>>> Hey Mayank!
>>>
>>> Similarly to your attempt last time, you need to use gen/bind to get
>>> the result of a generator which you can then use to make a new generator.
>>>
>>> (defn- rand-interleave* [coll acc]
>>>   (if (seq coll)
>>> (gen/bind (gen/choose 0 (dec (count coll)))
>>>   (fn [index]
>>> (let [value (first (get coll index))
>>>   coll (->> (update-in coll [index] next)
>>> (remove empty?)
>>> vec)]
>>>   (rand-interleave* coll (conj acc value)
>>> (gen/return acc)))
>>>
>>> (defn rand-interleave [& colls]
>>>   (rand-interleave* (vec colls) []))
>>>
>>> The (gen/choose 0 (dec (count coll))) is similar to your rand-count
>>> function, then the generated number is passed to the function as result.
>>> Writing it this way will shrink towards the (apply concat args) (ie. as
>>> it shrinks it will move towards just concatenating the arguments).
>>>
>>> In terms of the recursion: this will eventually overflow the stack. I
>>> don't know of a way to trampoline generators, so I don't know how to avoid
>>> that. (This is a bit of a recurring problem with monadic code in Clojure, I
>>> feel, as algo.monads had a similar problem last time I checked.) For the
>>> moment I'm just ignoring this theoretical problem until it becomes a
>>> practical problem.
>>>
>>> I hope that helps!
>>>
>>> Carlo
>>>
>>> On 14 August 2015 at 23:39, Mayank Jain  wrote:
>>>
>>>> Hi Everyone,
>>>>
>>>> Here's the problem I am facing,
>>>> I need to write a generator which takes any number of sequences,
>>>> interleaves them but maintains the order within each sequence.
>>>> Assume each sequence has at least one element.
>>>>
>>>> For example:
>>>>
>>>> (rand-interleave [1 2 3 4] [:a :b] [:A :B :C :D :E])
>>>>> => [:a 1 2 :b :A :B :C 3 :D 4 :E]
>>>>
>>>>
>>>> (rand-interleave [1 2 3 4])
>>>>> => [1 2 3 4]
>>>>
>>>>
>>>> (rand-interleave [1])
>>>>> => [1]
>>>>
>>>>
>>>> (rand-interleave [1] [:a] [:A])
>>>>> => [:a 1 :A]
>>>>
>>>>
>>>> I have been able to write this down as clojure functions.
>>>> But I am unable to convert this into a test.check generator.
>>>>
>>>> Specifically:
>>>>
>>>>

Re: Need suggestions on how to write rand-interleave test.check generator.

2015-08-14 Thread Mayank Jain
Ah right! I knew I had to use gen/choose for this,
I am still grokking bind :)

Thanks for your help!
That indeed did the trick for me :)

One thing I am clear about is,
If I use gen/return it says it'll not shrink.
Does that mean when a test fails for a certain order, it won't try to
shrink that order of collection?
Because I have used a gen/return at the end of the generator?

Thanks again for your help! :)

On Fri, Aug 14, 2015 at 8:13 PM, Carlo Zancanaro 
wrote:

> Hey Mayank!
>
> Similarly to your attempt last time, you need to use gen/bind to get the
> result of a generator which you can then use to make a new generator.
>
> (defn- rand-interleave* [coll acc]
>   (if (seq coll)
> (gen/bind (gen/choose 0 (dec (count coll)))
>   (fn [index]
> (let [value (first (get coll index))
>   coll (->> (update-in coll [index] next)
> (remove empty?)
> vec)]
>   (rand-interleave* coll (conj acc value)
> (gen/return acc)))
>
> (defn rand-interleave [& colls]
>   (rand-interleave* (vec colls) []))
>
> The (gen/choose 0 (dec (count coll))) is similar to your rand-count
> function, then the generated number is passed to the function as result.
> Writing it this way will shrink towards the (apply concat args) (ie. as
> it shrinks it will move towards just concatenating the arguments).
>
> In terms of the recursion: this will eventually overflow the stack. I
> don't know of a way to trampoline generators, so I don't know how to avoid
> that. (This is a bit of a recurring problem with monadic code in Clojure, I
> feel, as algo.monads had a similar problem last time I checked.) For the
> moment I'm just ignoring this theoretical problem until it becomes a
> practical problem.
>
> I hope that helps!
>
> Carlo
>
> On 14 August 2015 at 23:39, Mayank Jain  wrote:
>
>> Hi Everyone,
>>
>> Here's the problem I am facing,
>> I need to write a generator which takes any number of sequences,
>> interleaves them but maintains the order within each sequence.
>> Assume each sequence has at least one element.
>>
>> For example:
>>
>> (rand-interleave [1 2 3 4] [:a :b] [:A :B :C :D :E])
>>> => [:a 1 2 :b :A :B :C 3 :D 4 :E]
>>
>>
>> (rand-interleave [1 2 3 4])
>>> => [1 2 3 4]
>>
>>
>> (rand-interleave [1])
>>> => [1]
>>
>>
>> (rand-interleave [1] [:a] [:A])
>>> => [:a 1 :A]
>>
>>
>> I have been able to write this down as clojure functions.
>> But I am unable to convert this into a test.check generator.
>>
>> Specifically:
>>
>>- How to pass random index count without using rand-int i.e. use
>>gen/choose
>>- How do I write recursive functions which play well with test.check
>>
>> Here's my take on it (without the generators).
>>
>> (defn- first-nth
>>>   "(first-nth [[1 2 3 4] [:a :b :c :d]]
>>>   1)
>>>=> :a"
>>>   [coll n]
>>>   (first (nth coll n)))
>>
>>
>>
>> (defn- next-nth
>>>   "(next-nth [[1 2 3 4] [:a :b :c :d]]
>>>   1)
>>>=> [[1 2 3 4] (:b :c :d)]"
>>>   [coll n]
>>>   (->> n
>>>(nth coll)
>>>next
>>>(assoc coll n)
>>>(remove nil?)
>>>vec))
>>
>>
>>
>> (defn- rand-count
>>>   [coll]
>>>   (rand-int (count coll)))
>>
>>
>>
>> (defn- rand-interleave*
>>>   [coll acc]
>>>   (let [n (rand-count coll)]
>>> (if (not-empty coll)
>>>   (rand-interleave* (next-nth coll n)
>>>   (conj acc
>>>   (first-nth coll n)))
>>>   acc)))
>>
>>
>>
>> (defn rand-interleave
>>>   [& args]
>>>   ;; Make args a vector as I would like to
>>>   ;; look up elements by their index values.
>>>   (rand-interleave* (vec args) []))
>>
>>
>> Looking forward to any suggestions on how to solve it :)
>>
>> Thanks,
>> Mayank.
>>
>> --
>> 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

Need suggestions on how to write rand-interleave test.check generator.

2015-08-14 Thread Mayank Jain
Hi Everyone,

Here's the problem I am facing,
I need to write a generator which takes any number of sequences,
interleaves them but maintains the order within each sequence.
Assume each sequence has at least one element.

For example:

(rand-interleave [1 2 3 4] [:a :b] [:A :B :C :D :E])
> => [:a 1 2 :b :A :B :C 3 :D 4 :E]


(rand-interleave [1 2 3 4])
> => [1 2 3 4]


(rand-interleave [1])
> => [1]


(rand-interleave [1] [:a] [:A])
> => [:a 1 :A]


I have been able to write this down as clojure functions.
But I am unable to convert this into a test.check generator.

Specifically:

   - How to pass random index count without using rand-int i.e. use 
   gen/choose
   - How do I write recursive functions which play well with test.check

Here's my take on it (without the generators).

(defn- first-nth
>   "(first-nth [[1 2 3 4] [:a :b :c :d]]
>   1)
>=> :a"
>   [coll n]
>   (first (nth coll n))) 

 

(defn- next-nth
>   "(next-nth [[1 2 3 4] [:a :b :c :d]]
>   1)
>=> [[1 2 3 4] (:b :c :d)]"
>   [coll n]
>   (->> n
>(nth coll)
>next
>(assoc coll n)
>(remove nil?)
>vec)) 

 

(defn- rand-count
>   [coll]
>   (rand-int (count coll))) 

 

(defn- rand-interleave*
>   [coll acc]
>   (let [n (rand-count coll)]
> (if (not-empty coll)
>   (rand-interleave* (next-nth coll n)
>   (conj acc
>   (first-nth coll n)))
>   acc))) 

 

(defn rand-interleave
>   [& args]
>   ;; Make args a vector as I would like to
>   ;; look up elements by their index values.
>   (rand-interleave* (vec args) []))


Looking forward to any suggestions on how to solve it :)

Thanks,
Mayank.

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ANN] stateful-check 0.3.0 - test stateful systems with test.check

2015-07-30 Thread Mayank Jain
Thanks this looks useful. Will try it out.
On Jul 31, 2015 9:36 AM, "Carlo Zancanaro"  wrote:

> Hey everyone!
>
> I've just released a new version of my library for testing stateful
> systems with test.check!
>
>   [org.clojars.czan/stateful-check "0.3.0"]
>
>   https://github.com/czan/stateful-check
>   https://clojars.org/org.clojars.czan/stateful-check
>
> Important changes in this version:
>
>   + Updated to test.check 0.7.0
>
>   + *Breaking: *Postconditions now take two states: the prior and the
> next states. This means that any postconditions being used with 0.2.0 need
> to be changed:
>
> (fn [state args result]
> arbitrary-logic-for-postcondition)
>   ;; needs to change to
>   (fn [prev-state next-state args result]
> arbitrary-logic-for-postcondition)
>
>   + *Breaking: *The old `reality-matches-model?` function has been both
> renamed (to remove the '?', which implied it was a predicate when it's not)
> and deprecated. The `specification-correct?` form below is the preferred
> form now.
>
>   + Add a new function, `specification-correct?`, which runs a
> stateful-test specification using test.check. If used within a clojure.test
> `is` assertion it will also print helpful output:
>
>   (is (specification-correct? queue-spec {:seed 1417059242645}))
>   ;;
>   ;; FAIL in clojure.lang.PersistentList$EmptyList@1
> (form-init1067629020891437332.clj:1)
>   ;;#<0> = (:new) => # clojure.lang.PersistentQueue@1>>
>   ;;#<2> = (:push #<0> 0) => nil
>   ;;#<3> = (:pop #<0>)=> # clojure.lang.PersistentQueue@1>
>   ;; Error while checking postcondition
>   ;; Seed:  1417059242645
>   ;;
>   ;; expected: :pass
>   ;;   actual: :fail
>
> I hope somebody finds this useful!
>
> Carlo
>
> --
> 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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Controlling growth rates of generators with test.check

2015-07-29 Thread Mayank Jain
Thanks. That looks useful.
On Jul 30, 2015 6:14 AM, "Mikera"  wrote:

> See:
>
> https://github.com/clojure/test.check/commit/d4883873df73717629272d0ab71619d7e58c9c9e
>
> On Wednesday, 29 July 2015 23:31:14 UTC+8, Mayank Jain wrote:
>>
>> Nice. Any updates on this?
>> Is this a good idea?
>>
>> On Friday, May 15, 2015 at 12:13:06 PM UTC+5:30, Mikera wrote:
>>>
>>> Hi all,
>>>
>>> I am doing some generative testing with test.check and need a way to
>>> control the growth rate of data structures (the regular linear growth
>>> quickly makes the computations too large for meaningful testing usage). I
>>> came up with the following solution to do this:
>>>
>>> (defn gen-resize
>>>   "Creates a generator that pre-modifies the 'size' pramater with the
>>> function f. Use if you want to
>>>have the size grow at a different rate from the normal linear
>>> scaling."
>>>   ([f gen]
>>> (let [gf (or (:gen gen) "gen paramter must be a test.check
>>> generator")
>>>   new-gf (fn [rnd size]
>>>(gf rnd (f size)))]
>>>   (clojure.test.check.generators.Generator. new-gf
>>>
>>> Normal O(n) growth:
>>>
>>> (gen/sample gen/s-pos-int 30)
>>> => (1 2 3 2 4 5 4 7 6 3 3 7 10 4 8 11 14 12 6 10 9 1 8 21 12 16 25 25 21
>>> 6)
>>>
>>> Controlled O(sqrt(n)) growth:
>>>
>>> (gen/sample (gen-resize sqrt gen/s-pos-int) 30)
>>> => (1 2 2 2 2 4 3 3 3 3 4 3 5 1 2 3 2 4 4 2 2 3 6 6 2 5 5 4 6 3)
>>>
>>> So it seems to work, but is this a sane / recommended approach? Am I
>>> relying too much on test.check internals?
>>>
>>>   mikera
>>>
>>

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Controlling growth rates of generators with test.check

2015-07-29 Thread Mayank Jain
Nice. Any updates on this?
Is this a good idea?

On Friday, May 15, 2015 at 12:13:06 PM UTC+5:30, Mikera wrote:
>
> Hi all,
>
> I am doing some generative testing with test.check and need a way to 
> control the growth rate of data structures (the regular linear growth 
> quickly makes the computations too large for meaningful testing usage). I 
> came up with the following solution to do this:
>
> (defn gen-resize 
>   "Creates a generator that pre-modifies the 'size' pramater with the 
> function f. Use if you want to 
>have the size grow at a different rate from the normal linear scaling."
>   ([f gen]
> (let [gf (or (:gen gen) "gen paramter must be a test.check generator")
>   new-gf (fn [rnd size]
>(gf rnd (f size)))]
>   (clojure.test.check.generators.Generator. new-gf
>
> Normal O(n) growth:
>
> (gen/sample gen/s-pos-int 30)
> => (1 2 3 2 4 5 4 7 6 3 3 7 10 4 8 11 14 12 6 10 9 1 8 21 12 16 25 25 21 6)
>
> Controlled O(sqrt(n)) growth:
>
> (gen/sample (gen-resize sqrt gen/s-pos-int) 30)
> => (1 2 2 2 2 4 3 3 3 3 4 3 5 1 2 3 2 4 4 2 2 3 6 6 2 5 5 4 6 3)
>
> So it seems to work, but is this a sane / recommended approach? Am I 
> relying too much on test.check internals?
>
>   mikera
>

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Generating varying sized map using test.check

2015-07-27 Thread Mayank Jain
>
> On 27 July 2015 at 18:10, Carlo Zancanaro 
> wrote:
>
>> You're generating two random things: the map, and the subset of the keys.
>> You can't generate the subset of the keys without first knowing the full
>> set of keys, so bind lets you make the subset generator depend on the
>> result of the map generator.
>>
> Thanks. That makes sense.

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Generating varying sized map using test.check

2015-07-27 Thread Mayank Jain


> It also might be helpful to know that there is already a subset generator 
> available in this library 
> .
>

Thanks, this looks good, will check it out.
 

> What you've done here might appear to work, but it will get you into 
>> trouble when test.check starts to shrink your inputs. When test.check runs 
>> your generators it relies you you using it as your only source of 
>> randomness, and so your use of `rand-int` will cause some problems.
>>
>>
Ah yes, I didn't think of shrinking.
Thanks a lot for your help! :)
 
 

> The trick is to use the `bind` function to make a generator which depends 
>> on the value of another generator (in this case, to capture the generated 
>> map so you can call rand-subset with the correct set of keys):
>>
>

 I didn't get why I had to use a bind here. What if I had only used fmap?

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Generating varying sized map using test.check

2015-07-25 Thread Mayank Jain
Hi,

I would like to generate variable sized map using test.check i.e.
given any generator which generates a map, it should randomly select-keys 
from it.

Here's what I've come up with so far:
 

> (ns proj.util
  (:require [clojure.test.check.generators :as gen]
[clojure.math.combinatorics :as combo]))

(defn rand-subset
  "Given a collection coll,
   it'll generate a random subset."
  [coll]
  (->> coll
   combo/count-subsets
   rand-int
   (combo/nth-subset coll)))

(defn gen-varying-map
  "Given a generator which generates a map,
   it'll randomly select keys from it thus making it
   varying-sized map.
   Note: It can return empty maps as well."
  [map-gen]
  (gen/fmap (fn [m]
  (let [ks (rand-subset (keys m))]
(select-keys m ks)))
map-gen))

Here's an example output,
(gen/sample (gen-varying-map (gen/hash-map
  "user" (gen/such-that not-empty
gen/string-alphanumeric)
  "level" gen/nat
  "timezone" gen/pos-int)))
=> 
({"user" "1"}
 {"user" "l8", "level" 0, "timezone" 1}
 {"level" 1}
 {"user" "oA", "timezone" 0}
 {"level" 2, "timezone" 1}
 {"level" 5}
 {"user" "8aP", "level" 5, "timezone" 6}
 {"user" "035rqi", "level" 7}
 {"timezone" 4}
 {"timezone" 2})

My question is, is this the right way? Or is there a better way to do it?

Thanks :)

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: class file too large

2014-10-05 Thread Mayank Jain
I faced the same problem when I had written several midje tests under one
facts
which had several fact defined in it.

One way around is to break your ns into several smaller logical namespaces.
That helped.

On Sun, Oct 5, 2014 at 9:26 PM, Sunil S Nandihalli <
sunil.nandiha...@gmail.com> wrote:

> Hi Michael,
>  Thanks for the response. You are likely right about that. While none of
> them actually look very large, The function is built-up using macros. I
> will cross check if I can split it. I am using PigPen which makes heavy use
> of macros and due to some of the semantics of how it is able to handle
> closures, I am forced to use Macros to build my functions. I was clearly
> able to identify the change I made which triggered the above error. The
> change I made seems very benign(the change can't explain the byte-code
> bloat).  I will try to split the functions as much as I can and see if it
> makes the difference.
>
> Thanks,
> Sunil.
>
>
> On Sun, Oct 5, 2014 at 5:18 PM, Michael Klishin <
> michael.s.klis...@gmail.com> wrote:
>
>>
>>
>> On 5 October 2014 at 15:20:36, Sunil S Nandihalli (
>> sunil.nandiha...@gmail.com) wrote:
>> > I am getting class file too-large errors when I compile the clojure
>> > file. Do you have pointers as to how one can identify the offending
>> > piece of code?
>>
>> You likely have a giant function somewhere. Split it into multiple small
>> ones.
>> --
>> @michaelklishin, github.com/michaelklishin
>>
>
>  --
> 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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ANN] rmap - define lazy, recursive maps

2014-10-04 Thread Mayank Jain
This looks amazing!
Could you write a blog post explaining in detail your thought process,
what inspired you, and walking through what you have written?

Thanks! This is beautiful! :D

On Sat, Oct 4, 2014 at 8:57 PM, Arnout Roemers <
goo...@company.romeinszoon.nl> wrote:

> I would like to announce a very little utility library for defining
> recursive maps in Clojure, called rmap.
>
> For example:
>
> (def m
>   (rmap X
> {:what "awesome!"
>  :clj (str "Clojure is " (:what X))})
> (:clj m)
> ;=> "Clojure is awesome!"
>
> An object of type IFn + ILookup + Seqable is currently returned, which
> means it can be used with the core get function, as a function itself
> (taking one or two arguments), with keyword lookups, and all functions
> using seq, such as into. Please let me know (or send a pull request) when
> you need another protocol or interface implemented.
>
> On Clojars: [functionalbytes/rmap "0.1.2"]
> On Github: https://github.com/aroemers/rmap
>
>  --
> 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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Feeding a list of clauses to core.match/match

2014-09-23 Thread Mayank Jain
Not sure but are you looking for something like this?
https://github.com/killme2008/defun

On Tue, Sep 23, 2014 at 8:19 PM, Jony Hudson  wrote:

> OK, this is probably simple, but I can't seem to figure it out. Maybe
> someone who understands macros better than me can help :-)
>
> I'd like to be able to write something like the following:
>
> (def some-clauses
>   '[[false _] :f
> [true _] :t])
>
> (match-clauses [[false 3]] some-clauses)
>
> but I can't figure out how to write `match-clauses`. If `core.match/match`
> were a function it would be easy, but it isn't. Can someone give me a push
> in the right direction?
>
> Thanks,
>
>
> Jony
>
> --
> 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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Productivity tip for code transformations with cider

2014-09-14 Thread Mayank Jain
Nice! Thanks for sharing!

On Mon, Sep 15, 2014 at 1:40 AM, Jony Hudson  wrote:

> Why did I never think of using that! Nice :-)
>
>
> Jony
>
>
> On Sunday, 14 September 2014 08:35:16 UTC+1, Stathis Sideris wrote:
>>
>> Hello all,
>>
>> There is some functionality in cider (C-c C-w) that can potentially save
>> you a lot of typing when transforming Clojure code and I haven't seen many
>> people using it, so I made a screencast to demonstrate:
>>
>> http://www.youtube.com/watch?v=LXhWW1Yqpt0
>>
>> Hopefully you'll find it useful.
>>
>> Thanks,
>>
>> Stathis
>>
>>  --
> 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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ANN] core.async (and more) video tutorials

2014-05-26 Thread Mayank Jain
Hi Tim,

Thanks for the wonderful Logic intro video.
Any idea if you'll be doing more of Logic tutorials?

Your video was actually quite helpful.
I never really understood it, but getting a sense of it.
Looking forward to more of Logic videos :).

Btw When I click on the download video button, nothing gets downloaded.
Tried on Firefox/Chrome - Mac. Is that a known issue?

Also, I had sent you this email via support on that site but didn't get any
reply,
so resending it on this thread.

Thanks a lot.


On Mon, May 26, 2014 at 7:54 PM, Juan Manuel Gimeno Illa  wrote:

> Will there be a forum to ask questions about the videos?
>
> And will the code be available (although I think rewriting it may reforce
> learning sometimes I won't have the time)?
>
> Thanks !!
>
> Juan Manuel
>
> El jueves, 22 de mayo de 2014 00:32:55 UTC+2, tbc++ escribió:
>
>> From time to time I get asked to do more writing on core.async, and I've
>> come to the realization that try as I might, I'm not a writer. However I
>> recently started a set of video tutorials I'm making available today.
>>
>> The videos average about 12min in length and focus on a single topic.
>> Currently I have 5 videos on core.async completed and two on logic
>> programming. I plan on expanding both series over time. My plans are to
>> release 2-3 videos a week but that may change over time.
>>
>> At any rate, the videos are available here (https://tbaldridge.
>> pivotshare.com/). Yes, there is a small charge for the majority of the
>> videos, but think of it as a way to prod me to make more tutorials.
>>
>> Thanks! And hopefully this will be useful to some.
>>
>> Timothy Baldridge
>>
>  --
> 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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: wally: a alternative way to discover functions

2013-09-05 Thread Mayank Jain
Looks pretty interesting. Thanks for sharing


On Fri, Sep 6, 2013 at 2:53 AM, Islon Scherer wrote:

> Hey guys,
>
> I don't know about you but when I was a beginner in Clojure (and it still
> happens every now and then) I had a hard time finding functions using `doc`
> or `find-doc`,
> normally because I didn't remember the name of the function or because my
> only clue was a generic name so find-doc would return too much results. But
> one
> thing I knew: what to expect of the function, I knew the inputs and the
> outputs. That's why I decided to create wally, because sometimes you don't
> know the name of the function you want but you know how it should behave.
>
> With wally you can tell the inputs and the output and it'll search for
> functions that match those inputs/outputs.
>
> Ex:
>
> user=> (find-by-sample {1 1, 2 3, 3 1, 4 2} [1 2 3 4 4 2 
> 2])-clojure.core/frequencies([coll])
>>   Returns a map from distinct items in coll to the number of times
>>   they appear.
>>
>>
> user=> (find-by-sample '((1 2 3) (4 5)) (partial < 3) [1 2 3 4 5])
>> -
>> clojure.core/partition-by
>> ([f coll])
>>   Applies f to each value in coll, splitting it each time f returns
>>a new value.  Returns a lazy seq of partitions.
>>
>
>  https://github.com/stackoverflow/wally
>
> --
> --
> 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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Regards,
Mayank.

-- 
-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [ANN] verily, non-magic testing lib

2013-07-25 Thread Mayank Jain
Thanks for sharing.
Will check it out.


On Fri, Jul 26, 2013 at 1:17 AM, Steven Degutis  wrote:

> - Renamed project to "Nevermore"
> - Moved repo to https://github.com/evanescence/nevermore
> - Test functions are required to return all assertions as a seq
> - Added "around-each" fixtures
>
> The way fixtures and test-suites work (and work together) makes me think
> of Datomic.
>
> -Steven
>
>
> On Wed, Jul 24, 2013 at 10:22 AM, Steven Degutis wrote:
>
>> Also, I came up with a solution for simple around-each fixtures. It would
>> use a declarative style just like (defn ^:test ...), but it would be (defn
>> ^:around-each ...). And its metadata would contain a matcher-fn that
>> matches against a test-fn's metadata.
>>
>> This way you could define a bunch of tests marked ^:db, and have an
>> around-each fixture with :db as its matcher.
>>
>> The de-coupling means you don't need grouping or nesting to have multiple
>> fixtures applied to multiple tests. It also means you can specify both
>> tests and fixtures on a per-feature level.
>>
>> Unfortunately this solution does't carry over to around-all fixtures,
>> because if several tests belong to multiple around-all fixtures, and not
>> the same ones either, they would have to be run multiple times.
>>
>>
>> On Wed, Jul 24, 2013 at 10:17 AM, Steven Degutis wrote:
>>
>>> The vast majority of my tests look like: do some setup, do some action,
>>> make a half-dozen assertions. Almost always in that order.
>>>
>>> The only reason I can think of that I would need to have assertions in
>>> the middle is if I plan to do more setup and action and assertions
>>> afterwards.
>>>
>>> And in that case, I'm really just writing a second test that should
>>> probably be its own test-fn. And if it relies on the setup from the first
>>> test, I should probably just extract it out into a function with common
>>> setup.
>>>
>>> I think I'm almost sold on this idea now.
>>>
>>>
>>> On Wed, Jul 24, 2013 at 10:07 AM, John D. Hume >> > wrote:
>>>
 I've never tried it, but I like the idea of test fns returning their
 results.

 On Jul 24, 2013 8:30 AM, "Steven Degutis"  wrote:
 >
 > Also, I've been considering having a non-side-effecty way of
 returning test results. What do people think? It would get rid of the last
 bit of magic in the lib.
 >
 >
 > ;; current style (side-effecty)
 >
 > (defn test-1 []
 >   (let [foo (get-foo)]
 > (expect empty? foo)
 > (expect awesome? foo)))
 >
 > ;; proposed style (more functional)
 >
 > (defn test-1 []
 >   (let [foo (get-foo)]
 > [(expect empty? foo)
 >  (expect awesome? foo)]))
 >

 --
 --
 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, send email to
 clojure+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en
 ---
 You received this message because you are subscribed to the Google
 Groups "Clojure" group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to clojure+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.



>>>
>>>
>>
>  --
> --
> 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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
Regards,
Mayank.

-- 
-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Interest in a Full Featured Clojure Blog Engine

2013-07-18 Thread Mayank Jain
+1.
I also have been thinking about the same. Would be interesting to see how
you do it.



On Thu, Jul 18, 2013 at 8:14 PM, Timothy Washington wrote:

> Ah, by *composable*, I meant you could choose to only use a core server
> component, posting txt entries, let's say with an in-memory data store (
> who knows.. it's your blog :). And if you want a little more, you can
> choose to add a DB adapter out to Datomic, and Import / Export support.
> This is all still within a running Clojure repl. So additionally, you might
> choose to add a Web UI (or tablet or smartphone UI), and so on.
>
>
> Tim Washington
> Interruptsoftware.ca / Bkeeping.com
>
>
> On Thu, Jul 18, 2013 at 10:36 AM, Michael Fogus  wrote:
>
>> Quick answer: Yes.  I'd love to see a legitimate, maintained
>> Clojure-based blogging engine.  I have one question: what does
>> "composable blogging engine" mean?
>>
>>
>> On Thu, Jul 18, 2013 at 10:24 AM, Timothy Washington 
>> wrote:
>> > Hello,
>> >
>> > I'm thinking of how to build a composable blogging engine in Clojure.
>> There
>> > have been a few attempts at this, with cow-blog and my-blog. But these
>> seem
>> > to be abandoned, and not heavily used. Vijay Kiran, last year, even
>> wrote a
>> > series of blog posts (see here) about building a blog engine. As far as
>> a
>> > list of posts goes, the data structure for each record was simple:
>> >
>> > title
>> > content
>> > status
>> > created-date
>> > published-date
>> > author
>> >
>>
>  --
> --
> 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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
Regards,
Mayank.

-- 
-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [ANN] Pedestal-app Tutorial has been released

2013-07-09 Thread Mayank Jain
Thanks. Will check it out and share my feedback.
On Jul 9, 2013 9:34 PM, "Ryan Neufeld"  wrote:

> Hey there, Clojurians/Pedestallions!
>
> I'm pleased to announce the release of a comprehensive tutorial for
> pedestal-app: http://bit.ly/pedestal-app-tutorial. In this tutorial we
> finally *dive deep* into the guts of pedestal-app and build a distributed
> multiplayer game using pedestal-app.
>
> Major kudos to @brentonashworth for all his hard work on the pedestal-app
> tutorial.
>
> Enjoy!
>
> -- Ryan Neufeld
>
>
> -- Ryan Neufeld
>
>  --
> --
> 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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [ANN] Pedestal 0.1.9 has been released

2013-07-03 Thread Mayank Jain
Sure :)


On Wed, Jul 3, 2013 at 4:55 PM, Ryan Neufeld wrote:

> Docs first, videos in a bit. I don't want this to be like that Christmas
> where you thought you were going to get *all* the presents and you were all
> disappointed but had to put on a brave face to seem like you still
> appreciated it.
>
> -- Ryan Neufeld
>
> On Jul 3, 2013, at 7:20 AM, Mayank Jain  wrote:
>
> Looking forward to an elaborate docs/video tuts on pedestal.
> Cheers
>
>
> On Wed, Jul 3, 2013 at 4:38 PM, Ryan Neufeld wrote:
>
>> It's so close I can almost taste it. Most Relevance Pedestallions are
>> going to be doing what I think is a final review on Friday.
>>
>> I really think you folks are going to enjoy it.
>>
>> -- Ryan Neufeld
>>
>> On Jul 3, 2013, at 6:47 AM, Leon Talbot  wrote:
>>
>> Brenton has been working hard at preparing a full tutorial of
>> pedestal-app.
>> We're expecting to release that in just under a month or so.
>>
>>
>> Great news!
>>
>> --
>> --
>> 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, send email to
>> clojure+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>> ---
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Clojure" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/clojure/gHAxWvNleGg/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> clojure+unsubscr...@googlegroups.com.
>>
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>>
>> --
>> --
>> 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, send email to
>> clojure+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Clojure" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to clojure+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
>
>
> --
> Regards,
> Mayank.
>
> --
> --
> 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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "Clojure" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/clojure/gHAxWvNleGg/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
>
>  --
> --
> 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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
Regards,
Mayank.

-- 
-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [ANN] Pedestal 0.1.9 has been released

2013-07-03 Thread Mayank Jain
Looking forward to an elaborate docs/video tuts on pedestal.
Cheers


On Wed, Jul 3, 2013 at 4:38 PM, Ryan Neufeld wrote:

> It's so close I can almost taste it. Most Relevance Pedestallions are
> going to be doing what I think is a final review on Friday.
>
> I really think you folks are going to enjoy it.
>
> -- Ryan Neufeld
>
> On Jul 3, 2013, at 6:47 AM, Leon Talbot  wrote:
>
> Brenton has been working hard at preparing a full tutorial of
> pedestal-app.
> We're expecting to release that in just under a month or so.
>
>
> Great news!
>
> --
> --
> 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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "Clojure" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/clojure/gHAxWvNleGg/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> clojure+unsubscr...@googlegroups.com.
>
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
>  --
> --
> 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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
Regards,
Mayank.

-- 
-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: cannot import namespace reducers

2013-06-16 Thread Mayank Jain
Try

(:require '[clojure.core.reducers :as r])


i.e. :require


On Mon, Jun 17, 2013 at 1:38 AM, Johannes  wrote:

> Hi,
>
> trying
> (require '[clojure.core.reducers :as r])
> at the repl prompt the error message
> CompilerException java.lang.ClassNotFoundException: jsr166y.ForkJoinPool,
> compiling:(clojure/core/reducers.clj:56:21)
>
> What is going wrong?
>
> Johannes
>
>
>  --
> --
> 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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
Regards,
Mayank.

-- 
-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: In what OS do you code?

2013-06-14 Thread Mayank Jain
Linux/Mac both at work and home.


On Fri, Jun 14, 2013 at 8:29 PM, Giacomo Cosenza wrote:

> personally, I code on mac os x. in my company anyone is free to choose the
> preferred OS (most of our devs are using linux, few of them windows).
> mimmo
>
>
> On Jun 14, 2013, at 3:46 PM, Erlis Vidal wrote:
>
> Hi,
>
> I'm a bit curious to know in what OS do you code. Do you prefer iOS,
> Linux, Windows? Why is that? Because the tools? The environment?
>
> Thanks!
>
> --
> --
> 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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
>
>  --
> --
> 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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
Regards,
Mayank.

-- 
-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: core.logic: Database context monad

2013-04-05 Thread Mayank Jain
Thanks for the link.


On Fri, Apr 5, 2013 at 8:08 PM, David Nolen  wrote:

> Oops, thanks for the proper link!
>
>
> On Fri, Apr 5, 2013 at 10:28 AM, Rostislav Svoboda <
> rostislav.svob...@gmail.com> wrote:
>
>> I found this http://gradworks.umi.com/3380156.pdf on
>> http://www.cs.indiana.edu/~webyrd/
>>
>> --
>> --
>> 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, send email to
>> clojure+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Clojure" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to clojure+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>  --
> --
> 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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
Regards,
Mayank.

-- 
-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: core.logic: Database context monad

2013-04-05 Thread Mayank Jain
@DNolen
The link to the pdf looks broken. Any other link?


On Fri, Apr 5, 2013 at 6:30 PM, David Nolen  wrote:

> I would read Will's dissertation
> http://scholarworks.iu.edu/dspace/bitstream/handle/2022/8777/Byrd_indiana_0093A_10344.pdf.
> This will give you an idea how the basics work. I recommend getting on the
> miniKanren mailing list if you would like to ask specific questions about
> core.logic's implementation.
>
> http://groups.google.com/group/minikanren
>
>
> On Thu, Apr 4, 2013 at 10:49 PM, JvJ  wrote:
>
>> I'm actually very interested in getting involved with core.logic, but I'm
>> having a hard time finding a comprehensive guide to the implementation of
>> the systems.  I've gathered some bits and pieces about how goals work, but
>> I'm not sure I totally understand the system.  Do you know any good places
>> to start with that?
>>
>>
>> On Thursday, 4 April 2013 22:08:38 UTC-4, David Nolen wrote:
>>
>>> Sounds interesting. I've seen nothing like this in the Prolog
>>> literature, but I may not have looked hard enough. Probably worth
>>> investigating, might turn up some other interesting ideas even if you can't
>>> make assertion/retraction relational.
>>>
>>>
>>> On Thu, Apr 4, 2013 at 9:21 PM, JvJ  wrote:
>>>
  I've been working a lot with core.logic and pldb (https://github.com/*
 *threatgrid/pldb ), and I've been
 troubled by the lack of an assertion operation that would allow addition of
 facts to a database as a relational operation.  I've been thinking that
 this could be solved by creating some kind of monad that could carry a
 database context along with variable substitutions when executing a logic
 program

 Is anybody working on anything like this, and does it seem like the
 kind of thing that may be useful/feasible to implement?

 Thanks.

 --
 --
 You received this message because you are subscribed to the Google
 Groups "Clojure" group.
 To post to this group, send email to clo...@googlegroups.com

 Note that posts from new members are moderated - please be patient with
 your first post.
 To unsubscribe from this group, send email to
 clojure+u...@**googlegroups.com

 For more options, visit this group at
 http://groups.google.com/**group/clojure?hl=en
 ---
 You received this message because you are subscribed to the Google
 Groups "Clojure" group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to clojure+u...@**googlegroups.com.

 For more options, visit 
 https://groups.google.com/**groups/opt_out
 .



>>>
>>>  --
>> --
>> 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, send email to
>> clojure+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Clojure" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to clojure+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
>  --
> --
> 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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
Regards,
Mayank.

-- 
-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.go

Re: Clojure 1.5.0 fails on sample project

2013-03-23 Thread Mayank Jain
Cool. Thanks.


On Sat, Mar 23, 2013 at 12:26 PM, Michael Klishin <
michael.s.klis...@gmail.com> wrote:

>
> 2013/3/23 Mayank Jain 
>
>> Note: Sample app works on 1.4.0 but fails on 1.5.1 as well with same
>> error output.
>
>
> lein-swank is no longer maintained and hasn't been updated for 1.5. Please
> switch to nrepl.el,
> you will like it.
> --
> MK
>
> http://github.com/michaelklishin
> http://twitter.com/michaelklishin
>
> --
> --
> 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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
Regards,
Mayank.

-- 
-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Coding while running the program

2013-03-23 Thread Mayank Jain
Nice. Thanks for sharing.


On Sat, Mar 23, 2013 at 9:15 PM, George Oliver wrote:

>
>
> On Saturday, March 23, 2013 7:22:14 AM UTC-7, Oskar Kvist wrote:
>>
>> Hi!
>>
>> I saw this video 
>> http://www.youtube.com/**watch?v=BES9EKK4Aw4of
>>  Notch coding on Minecraft while the game was running, and of course
>> seeing the changes in the running program. He used some kind of debug mode
>> in his IDE (I don't really know which IDE). I want to make a game, and I
>> want to to also be able to code while the program is running.
>>
>
> I think Notch uses Eclipse, which allows you to hot load (reload) code on
> the fly (and I believe tweak state in the debugger but I haven't done
> that). Funny you should post this, I just watched a video yesterday that
> you might like to see,
>
> http://vimeo.com/14709925
>
> He's using Emacs in that video. Eclipse has the Counterclockwise plugin
> for Clojure if you prefer. I definitely would recommend using something
> like those over a plain REPL. See also this SO answer,
> http://stackoverflow.com/a/5119355/216798 .
>
> You shouldn't have to mess with JVM settings but there are a few things to
> keep in mind doing interactive development. However it's probably best to
> get started with the links above and then come back here with specific
> questions.
>
>
>
>
>
> --
> --
> 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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
Regards,
Mayank.

-- 
-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Clojure 1.5.0 fails on sample project

2013-03-22 Thread Mayank Jain
Hi,
I created a sample project by doing

$ lein new temp

And I switched the version of clojure from 1.5.1 to 1.5.0.

:dependencies [[org.clojure/clojure "1.5.0"]]


The project fails to load. No other changes.

More info:
$  lein version
Leiningen 2.1.1 on Java 1.6.0_43 Java HotSpot(TM) 64-Bit Server VM

OS: OSX 10.8.2

Note: Sample app works on 1.4.0 but fails on 1.5.1 as well with same error
output.

Error output:

 $  lein swank

Listening for transport dt_socket at address: 52101
>
> Exception in thread "main" java.lang.IllegalArgumentException: No matching
>> ctor found for class clojure.lang.Compiler$CompilerException,
>> compiling:(swank/commands/basic.clj:182:24)
>
>  at clojure.lang.Compiler.analyzeSeq(Compiler.java:6567)
>
>  at clojure.lang.Compiler.analyze(Compiler.java:6361)
>
>  at clojure.lang.Compiler.analyzeSeq(Compiler.java:6548)
>
>  at clojure.lang.Compiler.analyze(Compiler.java:6361)
>
>  at clojure.lang.Compiler.analyze(Compiler.java:6322)
>
>  at clojure.lang.Compiler$ThrowExpr$Parser.parse(Compiler.java:2304)
>
>  at clojure.lang.Compiler.analyzeSeq(Compiler.java:6560)
>
>  at clojure.lang.Compiler.analyze(Compiler.java:6361)
>
>  at clojure.lang.Compiler.analyze(Compiler.java:6322)
>
>  at clojure.lang.Compiler$BodyExpr$Parser.parse(Compiler.java:5708)
>
>  at clojure.lang.Compiler.analyzeSeq(Compiler.java:6560)
>
>  at clojure.lang.Compiler.analyze(Compiler.java:6361)
>
>  at clojure.lang.Compiler.analyze(Compiler.java:6322)
>
>  at clojure.lang.Compiler$IfExpr$Parser.parse(Compiler.java:2677)
>
>  at clojure.lang.Compiler.analyzeSeq(Compiler.java:6560)
>
>  at clojure.lang.Compiler.analyze(Compiler.java:6361)
>
>  at clojure.lang.Compiler.analyzeSeq(Compiler.java:6548)
>
>  at clojure.lang.Compiler.analyze(Compiler.java:6361)
>
>  at clojure.lang.Compiler.analyze(Compiler.java:6322)
>
>  at clojure.lang.Compiler$BodyExpr$Parser.parse(Compiler.java:5708)
>
>  at clojure.lang.Compiler$TryExpr$Parser.parse(Compiler.java:2156)
>
>  at clojure.lang.Compiler.analyzeSeq(Compiler.java:6560)
>
>  at clojure.lang.Compiler.analyze(Compiler.java:6361)
>
>  at clojure.lang.Compiler.analyze(Compiler.java:6322)
>
>  at clojure.lang.Compiler$BodyExpr$Parser.parse(Compiler.java:5708)
>
>  at clojure.lang.Compiler$FnMethod.parse(Compiler.java:5139)
>
>  at clojure.lang.Compiler$FnExpr.parse(Compiler.java:3751)
>
>  at clojure.lang.Compiler.analyzeSeq(Compiler.java:6558)
>
>  at clojure.lang.Compiler.analyze(Compiler.java:6361)
>
>  at clojure.lang.Compiler.analyze(Compiler.java:6322)
>
>  at clojure.lang.Compiler$InvokeExpr.parse(Compiler.java:3573)
>
>  at clojure.lang.Compiler.analyzeSeq(Compiler.java:6562)
>
>  at clojure.lang.Compiler.analyze(Compiler.java:6361)
>
>  at clojure.lang.Compiler.analyze(Compiler.java:6322)
>
>  at clojure.lang.Compiler$TryExpr$Parser.parse(Compiler.java:2127)
>
>  at clojure.lang.Compiler.analyzeSeq(Compiler.java:6560)
>
>  at clojure.lang.Compiler.analyze(Compiler.java:6361)
>
>  at clojure.lang.Compiler.analyze(Compiler.java:6322)
>
>  at clojure.lang.Compiler$BodyExpr$Parser.parse(Compiler.java:5708)
>
>  at clojure.lang.Compiler$LetExpr$Parser.parse(Compiler.java:6009)
>
>  at clojure.lang.Compiler.analyzeSeq(Compiler.java:6560)
>
>  at clojure.lang.Compiler.analyze(Compiler.java:6361)
>
>  at clojure.lang.Compiler.analyzeSeq(Compiler.java:6548)
>
>  at clojure.lang.Compiler.analyze(Compiler.java:6361)
>
>  at clojure.lang.Compiler.analyzeSeq(Compiler.java:6548)
>
>  at clojure.lang.Compiler.analyze(Compiler.java:6361)
>
>  at clojure.lang.Compiler.analyzeSeq(Compiler.java:6548)
>
>  at clojure.lang.Compiler.analyze(Compiler.java:6361)
>
>  at clojure.lang.Compiler.access$100(Compiler.java:37)
>
>  at clojure.lang.Compiler$LetExpr$Parser.parse(Compiler.java:5973)
>
>  at clojure.lang.Compiler.analyzeSeq(Compiler.java:6560)
>
>  at clojure.lang.Compiler.analyze(Compiler.java:6361)
>
>  at clojure.lang.Compiler.analyzeSeq(Compiler.java:6548)
>
>  at clojure.lang.Compiler.analyze(Compiler.java:6361)
>
>  at clojure.lang.Compiler.analyze(Compiler.java:6322)
>
>  at clojure.lang.Compiler$BodyExpr$Parser.parse(Compiler.java:5708)
>
>  at clojure.lang.Compiler$FnMethod.parse(Compiler.java:5139)
>
>  at clojure.lang.Compiler$FnExpr.parse(Compiler.java:3751)
>
>  at clojure.lang.Compiler.analyzeSeq(Compiler.java:6558)
>
>  at clojure.lang.Compiler.analyze(Compiler.java:6361)
>
>  at clojure.lang.Compiler.analyzeSeq(Compiler.java:6548)
>
>  at clojure.lang.Compiler.analyze(Compiler.java:6361)
>
>  at clojure.lang.Compiler.access$100(Compiler.java:37)
>
>  at clojure.lang.Compiler$DefExpr$Parser.parse(Compiler.java:529)
>
>  at clojure.lang.Compiler.analyzeSeq(Compiler.java:6560)
>
>  at clojure.lang.Compiler.analyze(Compiler.java:6361)
>
>  at clojure.lang.Compiler.analyzeSeq(Compiler.java:6548)
>
>  at clojure.lang.Compiler.analyze(Compiler.java:6361)
>
>  at clojure.lang.Compiler.analyze(Compiler.java:6322)
>
>  at clojure.lang.Compiler$InvokeExpr.parse(Compiler.java

Re: ANN: Seesaw 1.4.3 release

2013-03-03 Thread Mayank Jain
What did you use to create this presentation[1]?
It's so beautiful!

[1] : http://darevay.com/talks/clojurewest2012/#/title-slide


On Sun, Mar 3, 2013 at 12:34 PM, Dave Ray  wrote:

> Hi,
>
> Since it's been a while, thought I'd mention that Seesaw 1.4.3 was
> just released. You can find release notes here:
>
>   https://github.com/daveray/seesaw/wiki/Release-Notes
>
> Mostly just small maintenance issues.
>
> The one good reason to upgrade is if you're planning on using Clojure
> 1.5 and don't feel like being confused by the horrors of Maven
> dependency resolution. More information here [1] and here [2].
>
> Cheers,
>
> Dave
>
> [1] https://github.com/daveray/seesaw/issues/102
> [2]
> https://groups.google.com/forum/?fromgroups=#!topic/clojure/kzF5O0Yfdhc
>
> --
> --
> 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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>


-- 
Regards,
Mayank.

-- 
-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Listing more intuitive install options on the Clojure Downloads page

2013-03-01 Thread Mayank Jain
You don't need to install clojure. Lein does that for you as much as I know.


On Fri, Mar 1, 2013 at 11:28 PM, MC Andre wrote:

> I'm sure that Clojure users, especially novices, would appreciate these
> being listed as well-supported options on the official downloads 
> page
> :
>
> * Windows "chocolatey install clojure"
> * Mac OS X "brew install clojure"
> * Ubuntu "apt-get install clojure"
>
> --
> --
> 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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
Regards,
Mayank.

-- 
-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Why is this so difficult?

2013-02-17 Thread Mayank Jain
It's been around for quite some time actually but not known to many people
still.


On Sun, Feb 17, 2013 at 4:43 PM, Jim - FooBar(); wrote:

>  "clojure-doc.org" ??
> OMG, is this new? it seems to have some gorgeous tutorials for
> newcomers...LIke Bizics, i had no idea this site existed! How come google
> is not showing this in the first page when typing "Clojure docs" or
> something like that? I'm definately bookmarking this...
>
> Jim
>
>
>
> On 17/02/13 04:57, Bizics wrote:
>
> @Andy: Talk about unfortunate naming !!
> clojuredocs.org vs. clojure-doc.org
> There is a site called "clojure-doc.org" ??
> And it has some excellent documentation?
> I just read their CCW guide - it is excellent and would have saved me so
> much frustration but I had no idea the site existed.
>
>  "clojuredocs.org" is the goto site for example usage of clojure
> functions.
> And it is referenced from clojure.org under Documentation.
>
>  Any idea why clojure-doc.org is not mentioned under Documentation on
> clojure.org?
>
>  Maybe clojure-guides.org might be a better name?
>
>
> On Saturday, February 16, 2013 5:48:13 AM UTC-8, Jules wrote:
>>
>> @Andy: I hadn't seen that page before, and it is excellent. It explains
>> everything step-by-step and also gives key information, for example that it
>> is not necessary to install leiningen manually because it comes with CCW.
>> If possible, that guide should be featured prominently on
>> http://code.google.com/p/**counterclockwise/and
>>  perhaps on
>> clojure.org. That would solve 90% of the difficulty of installation I
>> think. Even following that guide, CCW still won't run leiningen on my
>> windows 7 system, but maybe that's an anomaly possibly caused by me messing
>> up something during previous installation attempts.
>>
>--
> --
> 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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
>
>  --
> --
> 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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
Regards,
Mayank.

-- 
-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: how to automatically and idiomatically add newlines to clojure code in emacs

2013-02-14 Thread Mayank Jain
@Feng
It doesn't clean up the way John is looking to clean some code like this:

(defun func1 [a b c d] (func5 (let [f (func3 c)] (func2 a b f)) (let
> [e 5] (func4 c d e
>



On Tue, Feb 12, 2013 at 9:11 AM, Feng Shen  wrote:

>
> (defun indent-buffer ()
>   (interactive)
>   (indent-region (point-min) (point-max)))
> (defun cleanup-buffer ()
>   (interactive)
>   (indent-buffer)
>   (untabify-buffer)
>   (delete-trailing-whitespace))
> ;; bind to other key if you like(global-set-key (kbd "M-q") 'cleanup-buffer)
>
>
> cleanup-buffer is very fast, I hit it all the time.
>
>
>
> On Tuesday, February 12, 2013 10:28:43 AM UTC+8, John Fries wrote:
>>
>> Clojure Users,
>>
>> I'm relatively new to clojure and wanted to get some workflow advice.
>>
>> I often find myself staring at something like this:
>> (defun func1 [a b c d] (func5 (let [f (func3 c)] (func2 a b f)) (let
>> [e 5] (func4 c d e
>>
>> and wishing for a function to automatically and idiomatically break it
>> up into multiple lines and indent it:
>> (defun func1 [a b c d]
>>   (func5
>>   (let [f (func3 c)]
>> (func2 a b f))
>>   (let [e 5]
>>  (func4 c d e
>>
>> I find the latter form more readable, but inserting the newlines by
>> hand is getting repetitive (also, I am not always confident in my
>> choice of idiomatic breakpoints). Once I insert the newlines, I can
>> trigger auto-indentation by hitting M-q (which on my system is mapped
>> to paredit-reindent-defun) or by highlighting the region and hitting
>> M-C-\ (which on my system is indent-region).
>>
>> My question(s) is:
>> How are people currently handling this situation? Is it part of most
>> people's clojure/emacs workflow to
>> 1) Just insert the newlines by hand? (perhaps I'm the only one finding
>> this repetitive)
>> 2) Do people have some accepted pretty printing function they are
>> using within emacs?
>> 3) Is there some larger issue I'm not seeing that maybe makes this
>> whole idea irrelevant?
>>
>> I've seen this document:
>> http://richhickey.github.com/**clojure/doc/clojure/pprint/**
>> PrettyPrinting.html
>> But I haven't found any guide to using that function *within emacs*.
>> If this is not a common thing to do, then why is it not common?
>>
>> Thanks,
>> John
>>
>> caveat: My init.el is an amalgam of ideas from ESK, prelude and emacs
>> live, so it could be the case that this functionality is provided out
>> of the box, if only I were configured properly. If people have some
>> way of doing this in their emacs environment, a clue as to the kit or
>> configuration you are using would be very much appreciated.
>>
>  --
> --
> 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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
Regards,
Mayank.

-- 
-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Clojure mug templates

2012-12-29 Thread Mayank Jain
So nice :)
Good stuff!

On Sat, Dec 29, 2012 at 7:24 PM, Nikita Beloglazov
 wrote:
> Hi
>
> I taught small clojure class at my university this semester. At the end of
> the class I printed "clojure" mugs for my students with their names.
> Here I want to share small javascript/html page I used to generate templates
> for mugs. I hope someone find it useful.
>
> Page:
> http://nbeloglazov.github.com/clojure-mug-template/
>
> GitHub repo:
> https://github.com/nbeloglazov/clojure-mug-template/
>
> You can clone repo and open index.html from local copy.
>
> Thank you,
> Nikita Beloglazov
>
> --
> 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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en



-- 
Regards,
Mayank.

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Searching for a picture

2012-12-28 Thread Mayank Jain
Nice :)

On Fri, Dec 28, 2012 at 3:26 PM, Sébastien Wagener
 wrote:
> Hi, you probably mean this:
> http://machinegestalt.posterous.com/if-programming-languages-were-cars
>
>
> 2012/12/28 Qiu Xiafei 
>>
>> I'am preparing an introduce of clojure to my colleague.
>> I remember that there's a picture showing that clojure = java + lisp, the
>> picture must be a good example in my keynote, I think I should refer to it.
>> In that picture, java is like a powful SUV with very big wheels, lisp is
>> like a cool sedan with two "wings", and clojur is like a monster car with
>> big wheels and wings.
>> So forget where i saw the picture last time, it seems in some one's
>> lecture.
>> I will be very priciate if u knonw it, Thanks!
>>
>> --
>> 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, send email to
>> clojure+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>
>
> --
> 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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en



-- 
Regards,
Mayank.

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: [ANN] Carica 1.0.0 -- A flexible project configuration library

2012-11-16 Thread Mayank Jain
Thanks. This will be very useful to me. :)
I was thinking about having something like this for the project I am
working on right now :)


On Fri, Nov 16, 2012 at 10:51 PM, David Leatherman wrote:

> Hello everyone,
>
> I'm happy to announce the release of Carica, a flexible configuration
> library for your Clojure projects.
>
> It offers:
>  - a simple lookup syntax
>  - support for both Clojure and JSON config files
>  - config file merging (if you have more than one config file)
>- Even if one is a Clojure file and the other is JSON
>  - code evaluation in Clojure files
>  - runtime override capabilities for testing
>  - easy default config file names (config.clj and config.json)
>- ability to override the defaults
>
> This project is in active use at Sonian and was extracted from our
> server. Hopefully, it is the first of many libraries to be extracted
> and released.
>
> You can find Carica along with docs and examples at
> https://github.com/sonian/carica
>
> Feedback welcome.  Enjoy!
>
> -The Sonain Team
>
> --
> 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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en




-- 
Regards,
Mayank.

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: Quil equivalent for ClojureScript ?

2012-11-14 Thread Mayank Jain
On Thu, Nov 15, 2012 at 3:35 AM, Laurent PETIT wrote:

> Hello,
>
> Is there (or what is) the equivalent of Quil for ClojureScript?
>
> +1

-- 
Regards,
Mayank.

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: [ANN] moderns-cljs tutorial 6

2012-11-14 Thread Mayank Jain
Keep sharing. Looking forward to more :)

On Tue, Nov 13, 2012 at 10:11 PM, Giacomo Cosenza
wrote:

> Hi all,
> I'm always a little bit afraid in announcing my small results  as a
> clojure/cljurescript newbie to such a smart community of programmers.
>
> I just published on github my learning efforts in the 6th tutorial on
> clojurescript
>
> https://github.com/magomimmo/modern-cljs
>
> Hope it can help other newbies like me.
>
> Mimmo
>
>
>  --
> 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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en




-- 
Regards,
Mayank.

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: [ANN] new book: "ClojureScript: Up and Running"

2012-11-08 Thread Mayank Jain
Try this code : MBBGS
It should give you 50% off on the book. Hopefully. :)


On Fri, Nov 9, 2012 at 4:00 AM, Sean Corfield wrote:

> On Wed, Nov 7, 2012 at 4:23 PM, Stuart Sierra
>  wrote:
> > Not to toot our own horn, but people have been asking about getting
> started
> > with ClojureScript, so here's our contribution, just released in book
> form:
> ...
> > http://shop.oreilly.com/product/0636920025139.do
>
> Nice. $15 and already sync'd to my DropBox on all my devices - some
> light reading for the train in/out of SF tonight to listen to Rich
> Hickey speak at the Bay Area Clojure Meetup!
> --
> Sean A Corfield -- (904) 302-SEAN
> An Architect's View -- http://corfield.org/
> World Singles, LLC. -- http://worldsingles.com/
>
> "Perfection is the enemy of the good."
> -- Gustave Flaubert, French realist novelist (1821-1880)
>
> --
> 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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
>



-- 
Regards,
Mayank.

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: Could not locate clojure/data/json__init.class or clojure/data/json.clj on classpath

2012-10-25 Thread Mayank Jain
To clean do
$ lein clean

Sent from phone. Please excuse brevity.
On Oct 25, 2012 10:36 PM, "Jim foo.bar"  wrote:

> On 25/10/12 18:01, larry google groups wrote:
>
>> (:require clojure.string clojure.java.io who-is-logged-in.memory_**
>> display
>> [clojure.data.json :as json])
>>
>
> I don't like this line...
>
> try:
>
> (:require [clojure.string :as st]
> [clojure.java.io :as io]
> [clojure.data.json :as json]
> [who-is-logged-in.memory_**display :as who]) ;;assuming this
> is an ns you can reach
>
> also try deleting all your class files and recompile...keep your eye on
> the mailing list cos I think something changed with data.json...there is a
> discussion currently going on...
>
> Jim
>
> --
> 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, send email to
> clojure+unsubscribe@**googlegroups.com
> For more options, visit this group at
> http://groups.google.com/**group/clojure?hl=en
>

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: Smarter code reloading with tools.namespace 0.2.0

2012-10-05 Thread Mayank Jain
This will be very helpful to me. Writing selenium tests on repl then
restarting is a pain. Will share my views on it.

Thank you for your time :)

Sent from phone. Please excuse brevity.
On Oct 5, 2012 7:26 PM, "Stuart Sierra"  wrote:

> Announcing... tools.namespace 0.2.0. Just released, it will reach
> Maven Central in a few hours.
>
> Short summary: reload code in the REPL with greater accuracy and
> awareness of dependencies.
>
> Full documentation in the README:
> https://github.com/clojure/tools.namespace
>
> This is my latest attempt at making REPL development more convenient,
> building on work that reaches back to Lazytest and some of my earliest
> contribs.
>
> It is hopefully a step towards "Never Close a REPL":
> http://dev.clojure.org/display/design/Never+Close+a+REPL
>
> Have fun, let me know how it goes!
> -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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
>

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: ANN: a Clojure docs site, and github organization

2012-10-05 Thread Mayank Jain
On Fri, Oct 5, 2012 at 6:54 PM, Michael Klishin  wrote:

>
>
> 2012/10/5 Michael Fogus 
>
>> You say that as if it's a bad thing.  I'm of the opinion that these
>> kinds of efforts should have a low barrier to contribution and be fun.
>>
>
> My apologies, I did not imply that it is a bad thing, only that it is not
> entirely clear what direction the project
> will take. While for CDS it is pretty clear (at least to people who have
> started it).
>
> While we are at this fun stuff, can we also make the CA submission process
> fun?
>
+1

>
> --
> MK
>
> http://github.com/michaelklishin
> http://twitter.com/michaelklishin
>
>  --
> 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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
>



-- 
Regards,
Mayank.

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: Regarding Starting Clojure

2012-10-04 Thread Mayank Jain
On Fri, Oct 5, 2012 at 12:58 AM, Michael Fogus  wrote:

> > Here's one approach: Make a github of the code and content that runs the
> site. People fork and make pull requests.
>
> You talked me into it.
>
> https://github.com/fogus/www-readevalprintlove-org
>

Awesome! So beautiful! I can just keep staring at it :)

Can you share what all exactly do we need to add to this site for now?
And how do you think we can go about it?
Thanks :)


>
> --
> 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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
>



-- 
Regards,
Mayank.

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: interleave

2012-10-04 Thread Mayank Jain
On Thu, Oct 4, 2012 at 4:28 PM, Stathis Sideris  wrote:

> Maybe performance is the reason:
>
> > (time (dotimes [_ 100] (apply mapcat list [[1 2 3] [7 7 7]])))
> "Elapsed time: 1853.904337 msecs"
> > (time (dotimes [_ 100] (interleave [1 2 3] [7 7 7])))
> "Elapsed time: 81.000798 msecs"
>

Wow! That is a huge difference.


>
>
> On Wednesday, 3 October 2012 19:21:37 UTC+1, Marc Dzaebel wrote:
>>
>> Thanks for the link! I proposed the change there.
>>
>> Am Mittwoch, 3. Oktober 2012 20:06:42 UTC+2 schrieb Andy Fingerhut:
>>>
>>> I don't know the reason for the current implementation rather than your
>>> suggested one, but at least on the comment about 0 or 1 arguments has a
>>> ticket for it:
>>>
>>> http://dev.clojure.org/jira/**browse/CLJ-863
>>>
>>  --
> 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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
>



-- 
Regards,
Mayank.

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: Questions about using error-kit

2012-09-30 Thread Mayank Jain
As far as I know contrib is deprecated[1].

Perhaps others can shed more light on your problem.

[1] : dev.clojure.org/display/design/Where+Did+Clojure.Contrib+Go

Sent from phone. Please excuse brevity.
On Oct 1, 2012 2:04 AM, "Thomas Hicks"  wrote:

> I'm trying to learn something about error-kit and encountering some
> unexpected responses, as follows:
>
> Clojure 1.3.0
> user=> (use 'clojure.contrib.error-kit)
> Warning: *handler-stack* not declared dynamic and thus is not dynamically
> rebindable, but its name suggests otherwise. Please either indicate
> ^:dynamic *handler-stack* or change the name.
> Warning: *continues* not declared dynamic and thus is not dynamically
> rebindable, but its name suggests otherwise. Please either indicate
> ^:dynamic *continues* or change the name.
> nil
> user=> (def tm (throw-msg java.lang.IllegalArgumentException))
> #'user/tm
> user=> (tm "hi")
> IllegalArgumentException
> sun.reflect.NativeConstructorAccessorImpl.newInstance0
> (NativeConstructorAccessorImpl.java:-2)
>
> First, note the dynamic variable warnings upon use...(might this possibly
> indicate an out-of-date version of error-kit (I'm using using
> clojure-contrib.jar from 1.2.0)?).
>
> I'm just starting with error-kit but I would have expected that the last
> call (involving a previous throw-msg function) would have returned
> something like this:
>
> -> java.lang.IllegalArgumentException: hi
>
> and would not have included the additional junk from
> 'sun.reflect.NativeConstructor'. Is this some OSX Java bug or does this
> also happen on other JDKs?
> Any help or suggestions appreciated.
> -t
>
>
>  --
> 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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: how do we go about promoting new clojure libraries?

2012-09-26 Thread Mayank Jain
While I don't mind sending a document via mail, but saying, Pay 50$ (Approx
2500 Indian Rupees) for "Hi, I want to help organize the library
documentation for clojure" sounds unreasonable to me.

This maybe valid for US citizens, But you can't ask people who don't stay
in US for such a procedure.

As for the quality of people who are trying to help, The fact that they put
the effort to learn Clojure, call out and say "I want to help", Fill the
form and validate themselves (in future electronically), and actually go
and contribute should be enough to let them. And of course not everyone is
expert on things from start. That's where the community comes in.

My 2 Cents.

On Thu, Sep 27, 2012 at 1:33 AM, Wes Freeman  wrote:

> For what it's worth, I've organically discovered several of Clojurewerkz's
> projects just via google search, so I think Michael's methods work,
> although there is indeed a fair amount of effort involved in maintaining
> the promotion.
>
> I like the https://twitter.com/nodenpm for node.js npm package updates.
> It's high noise, but I sometimes discover something that looks interesting.
> Clojars could do something similar--I'd follow.
>
> Wes
>
> On Wed, Sep 26, 2012 at 3:52 PM, Michael Klishin <
> michael.s.klis...@gmail.com> wrote:
>
>> zcaudate:
>>
>> is there some sort of categorised list/wiki that we can add to for new
>>> libraries?
>>
>>
>> There are clojuresphere.com, clojure-toolbox.com and some groups of
>> people have their
>> own sites for their stuff: clojurewerkz.org, http://flatland.org.
>>
>> If you want to make your library more visible, post release announcements
>> to the mailing list,
>> create a blog for announcements, get it added to planet.clojure.in and
>> maybe have a twitter
>> account for folks who prefer twitter to rss aggregators.
>>
>> Simply putting your library's name on a wiki somewhere does not make it
>> visible, unfortunately.
>> Periodically "making noise" with announcements makes people notice it
>> and, hopefully, recall
>> it later when they need your library.
>>
>> MK
>>
>> --
>> 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, send email to
>> clojure+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>>
>
>  --
> 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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
>

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: how do we go about promoting new clojure libraries?

2012-09-26 Thread Mayank Jain
@Stuart
Thanks. But it says "Send your signed agreement via postal mail to:"
Do I need to send it via postal mail? (I stay in India)

On Thu, Sep 27, 2012 at 12:38 AM, Stuart Sierra  wrote:

> On Wednesday, September 26, 2012 3:05:08 PM UTC-4, Mayank Jain wrote:
>>
>> I am interested in keeping the clojure libraries up to date. Can you give
>> me some ideas what are the tasks that needs to be done? So that I have some
>> idea about it.
>>
>
> 1. Send in a signed Clojure Contributor Agreement:
> http://clojure.org/contributing
>
> 2. You will receive an editor account on http://dev.clojure.org/
>
> 3. Start editing!
>
> Thanks!
> -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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
>

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: how do we go about promoting new clojure libraries?

2012-09-26 Thread Mayank Jain
On Thu, Sep 27, 2012 at 12:31 AM, Stuart Sierra  wrote:

> http://dev.clojure.org/display/community/Libraries is unorganized and out
> of date - volunteers welcome.
>
>
I am interested in keeping the clojure libraries up to date. Can you give
me some ideas what are the tasks that needs to be done? So that I have some
idea about it.

Thanks.


> James Reeves created http://www.clojure-toolbox.com/
>
> -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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
>

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: [ANN] clj-ns-browser 1.3.0 - the "cool button-row widget" release

2012-09-18 Thread Mayank Jain
This is really nice to learn and play with clojure :)
Thanks!

On Sun, Sep 16, 2012 at 10:02 PM, Denis Labaye wrote:

>
>
> On Fri, Sep 14, 2012 at 7:53 PM, Frank Siebenlist <
> frank.siebenl...@gmail.com> wrote:
>
>> We're happy to announce the new clj-ns-browser 1.3.0 - the "cool
>> button-row widget" - release.
>>
>> The Clojure Namespace Browser is a GUI-based, Smalltalk-like development
>> tool that makes it easy to see, inspect, search, and browse the different
>> namespaces, classes/types, and vars of your live Clojure environment. It
>> allows you to see the online docs, the source code, the associated
>> clojuredocs comments/examples/see-alsos, as well as the var's meta-data and
>> values.
>>
>> Installation is achieved by adding a single line to your project.clj:
>>
>> ;; Leiningen version 1
>> :dev-dependencies [[clj-ns-browser "1.3.0"]]
>>
>> ;; Leiningen version 2
>> :profiles {:dev {:dependencies [[clj-ns-browser "1.3.0"]]}}
>>
>> After (use 'clj-ns-browser.sdoc), the browser can be invoked at the REPL
>> with for example: (sdoc map)
>> where "sdoc" is a macro equivalent to and compatible with the venerable
>> "clojure.repl/doc" one, but give you just a "little" more info. After the
>> browser's GUI is invoked, you can point&click to your heart's content.
>>
>> A few of the highlights of the new release are:
>>
>> • upgraded dependencies to latest&greatest (clojure 1.4, seesaw 1.4.2,
>> etc.)
>>
>> • Andy concocted a cool, new, button-row widget that allows for a more
>> flexible display of var/class/namespace information.
>>
>> • syntax highlighting of source code thru use of rsyntaxtextarea
>>
>> • improved invocation of external web-browser
>>
>> • many invisible improvements...
>>
>> There are too many other great features to mention here - please take a
>> look at:
>> "https://github.com/franks42/clj-ns-browser";
>>
>> Enjoy,
>> Frank Siebenlist
>> Andy Fingerhut
>>
>
> Congrats !
>
> That's really great, especially for newcomers, the combo: REPL (to modify
> the environment) + ns-browser (to view/explore the environment) makes
> working with Clojure really comfortable.
>
>
>
>>
>> --
>> 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, send email to
>> clojure+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>>
>
>  --
> 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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
>

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: [ANN] Immutant 0.3.0 released

2012-09-14 Thread Mayank Jain
On Fri, Sep 14, 2012 at 1:09 PM, Rogier Peters wrote:

> No offense, but could you next time provide a one line description of
> what your project is?
>
>
+1
For others here it is,

What is Immutant?
Immutant is an application server for Clojure. It's an integrated platform
built on JBoss AS7 that aims to reduce the incidental complexity that comes
along with real world applications.

>
> On Tue, Sep 11, 2012 at 9:30 PM, Jim Crossley 
> wrote:
> > We released our third official version of Immutant today!
> >
> > With this release we now publish the Immutant namespaces to Clojars. They
> > are of limited use when run outside of Immutant, of course, but they'll
> at
> > least compile so you can mock/stub/redefine them in your unit tests. You
> can
> > render some of them mostly functional by adding the relevant jars to your
> > project.clj, e.g. Infinispan, HornetQ, etc, and we expect to add more
> > "container-less" functionality in future releases.
> >
> > Obviously, they're completely functional *inside* an Immutant container,
> so
> > we've published a library to facilitate integration testing, and
> continued
> > to improve our nrepl/swank support so you can now add dependencies to
> your
> > project on the fly without having to redeploy it.
> >
> > Here's the announcement: http://bit.ly/immutant030
> >
> > Enjoy and thanks,
> > Jim
> >
> > --
> > 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, send email to
> > clojure+unsubscr...@googlegroups.com
> > For more options, visit this group at
> > http://groups.google.com/group/clojure?hl=en
>
>
>
> --
> http://about.me/rogier
>
> --
> 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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
>

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

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:pom:0.1.0 in clojars (
> https://clojars.org/repo/)
> Could not find artifact org.clojure:data.dependency:jar:0.1.0 in central (
> http://repo1.maven.org/maven2)
> Could not find artifact org.clojure:data.dependency:jar:0.1.0 in clojars (
> https://clojars.org/repo/)
> Check :dependencies and :repositories for typos.
> It's possible the specified jar is not in any repository.
> If so, see "Free-floating Jars" under http://j.mp/repeatability
> Could not resolve dependencies
>


Project.clj

> (defproject testproject "0.1.0-SNAPSHOT"
>   :description "FIXME: write description"
>   :url "http://example.com/FIXME";
>   :license {:name "Eclipse Public License"
> :url "http://www.eclipse.org/legal/epl-v10.html"}
>   :dependencies [[org.clojure/clojure "1.4.0"]
> * [org.clojure/data.dependency "0.1.0"]*])
>


On Mon, Sep 10, 2012 at 7:43 PM, Karsten Schmidt  wrote:

> 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 the
> > Clojure Contributor Agreement.
>
> Hi Stuart,
>
> is this library available in any public repo? I can't find it
> anywhere, neither central, sonatype oss or Clojars. Would you be able
> to publish it to any of them or mind if I push it to Clojars?
>
> Thanks, K.
>
> --
> 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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
>

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

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
>> 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, send email to
>> clojure+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>
>
>  --
> 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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
>

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

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
>> 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, send email to
>> clojure+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>
>
>  --
> 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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
>

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: Could strint be variadic?

2012-09-07 Thread Mayank Jain
Interesting. Didn't know something like this existed. :)

On Fri, Sep 7, 2012 at 5:06 PM, Chas Emerick  wrote:

> On Sep 7, 2012, at 6:20 AM, Marko Topolnik wrote:
>
> > clojure.core.strint is a nice tool to have, but for longer strings the
> limitation of << to a single argument becomes a problem. If I want to wrap
> my code to fit maximum line length, I cannot split the string argument into
> several string literals. Is there an existing way to deal with this, or
> could the << macro be extended to receive more than one string argument?
>
> Good idea; I've occasionally had long << strings as well, but never took
> the time to make the small tweak to allow such things to be split up.
>
> This is now on master —
> https://github.com/clojure/core.incubator/commit/9f2590f2cf22c37ba66010983bf6eaf21a90084c—
>  and 0.1.2-SNAPSHOT is available from Sonatype's OSS snapshots repo.
>
> Assuming no one shrieks about some serious problem, I'll cut a 0.1.2
> release containing this enhancement later today.
>
> Cheers,
>
> - 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 from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
>

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: Expanding the Community Through Online Courses

2012-09-06 Thread Mayank Jain
On Thu, Sep 6, 2012 at 11:53 PM, Jorge Fiallega wrote:

>
> I am kindly asking Rich Hickey, Stuart Halloway or some other big name to
> create a course like this in Clojure.
>
>
That would be great! :)

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

[Video] The Generative Generation

2012-09-06 Thread Mayank Jain
*Summary*
Aaron Bedra shows code samples for writing Clojure tests using the
test.generative framework, explaining why this framework and testing are
useful.

*Bio*
Aaron Bedra is a senior software engineer at Groupon. He is a frequent
contributor to the Clojure language and its supporting libraries as well as
an active member of the Clojure community. Aaron has led the development of
several commercial Clojure projects and is the co-author of Programming
Clojure, 2nd Edition

*About the conference*
Clojure/West is a new conference bringing the Clojure community together to
discuss techniques, tools, and the state of the Clojure ecosystem March
16-17th for three tracks of sessions. Prior to the conference, register for
three days of training by the Clojure experts.

Link : http://www.infoq.com/presentations/Clojure-Generative-Testing

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: Routing HTTP/ JSON in clojure

2012-09-05 Thread Mayank Jain
On Wed, Sep 5, 2012 at 1:35 PM, abp  wrote:

> For a decent intro to ring and compojure you probably want to watch
> http://skillsmatter.com/podcast/home/functional-web
> It's an introduction to the libraries by their author/maintainer, James
> Reeves.
>
> Thanks for the link.

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: Found bug in contains? used with vectors.

2012-09-03 Thread Mayank Jain
>From the book Clojure Programming , Page 101 :

*"It is a common mistake for Clojure programmers to initially believe that
> contains? always searches for the presence of a value in a collection, that
> is, that it would be appropriate to use to determine if the vector [0 1 2
> 3] contained a particular numeric value. This misconception can lead to
> some very confusing results:*
>
> *(contains? [1 2 3] 3)*
> *;= false*
>
> *(contains? [1 2 3] 2)*
> *;= true*
>
> *(contains? [1 2 3] 0)*
> *;= true*
>
> *Of course, the results above are correct, since contains? is only
> checking to see if any mapping exists for the provided key—in this case,
> the indices 3, 2, and 0. To check for the existence of a particular value
> in a collection, it is typical to use some*
>

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: anonymous functions with names

2012-09-03 Thread Mayank Jain
@dmirylenka
Thanks. That is useful to know.

On Mon, Sep 3, 2012 at 3:00 PM, dmirylenka wrote:

> Just 2 cents:
>
> A name you give to the anonymous function also appears in the stack traces
> instead of the things like fn_123_4532,
> which is very convenient for debugging.
>
> On Friday, August 31, 2012 5:52:55 PM UTC+2, Erlis Vidal wrote:
>>
>> Hi guys,
>>
>> I've been reading but I'm still confused about the difference between an
>> anonymous function with name vs a defn function
>>
>> (fn my-func1[x] x)
>>
>> (defn my-func2[x] x)
>>
>> Thanks,
>> Erlis
>>
>  --
> 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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
>

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: screencast corruption

2012-09-03 Thread Mayank Jain
@Ben
Thank you for uploading. Will check it out.

On Mon, Sep 3, 2012 at 1:13 AM, Ben Smith-Mannschott
wrote:

> You should be able to download it from here for the next few days:
>
> https://dl.dropbox.com/u/8238674/clojure-sequences.mov
>
> // Ben
>
> On Sun, Sep 2, 2012 at 6:56 PM, Andrew Rafas 
> wrote:
> > I would appreciate,
> > Thank you very much,
> > Andrew
> >
> >
> > On Sunday, September 2, 2012 4:19:10 PM UTC+1, bsmith.occs wrote:
> >>
> >> I can't fix the version posted on blip.tv, but I downloaded it over a
> >> year ago when it was still working.
> >>
> >> It's a 107 MB quicktime file encoded using H.264. Running time is 1
> >> hour 14 minutes.
> >>
> >> I could make it available somewhere, if that would help.
> >>
> >> // Ben
> >>
> >> On Sun, Sep 2, 2012 at 12:37 PM, Mayank Jain 
> wrote:
> >> > Confirmed. The video is indeed broken.
> >> >
> >> >
> >> > On Sun, Sep 2, 2012 at 3:34 PM, Andrew Rafas 
> >> > wrote:
> >> >>
> >> >> Hi!
> >> >>
> >> >> I just wanted to watch this screencast (Clojure Sequences) as I
> really
> >> >> need that little table which compares C#, Java and Clojure sequences.
> >> >> However the video on this link seems to be like 5 seconds long
> instead
> >> >> of
> >> >> more than an hour. Can you fix it? Or do you have the slides
> somewhere?
> >> >> http://blip.tv/clojure/clojure-sequences-740581
> >> >>
> >> >> Thanks,
> >> >> Andrew
> >> >>
> >> >> --
> >> >> You received this message because you are subscribed to the Google
> >> >> Groups "Clojure" group.
> >> >> To post to this group, send email to clo...@googlegroups.com
> >> >> Note that posts from new members are moderated - please be patient
> with
> >> >> your first post.
> >> >> To unsubscribe from this group, send email to
> >> >> clojure+u...@googlegroups.com
> >> >> For more options, visit this group at
> >> >> http://groups.google.com/group/clojure?hl=en
> >> >
> >> >
> >> > --
> >> > You received this message because you are subscribed to the Google
> >> > Groups "Clojure" group.
> >> > To post to this group, send email to clo...@googlegroups.com
> >> > Note that posts from new members are moderated - please be patient
> with
> >> > your
> >> > first post.
> >> > To unsubscribe from this group, send email to
> >> > clojure+u...@googlegroups.com
> >> > For more options, visit this group at
> >> > http://groups.google.com/group/clojure?hl=en
> >
> > --
> > 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, send email to
> > clojure+unsubscr...@googlegroups.com
> > For more options, visit this group at
> > http://groups.google.com/group/clojure?hl=en
>
> --
> 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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
>

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: screencast corruption

2012-09-02 Thread Mayank Jain
Confirmed. The video is indeed broken.

On Sun, Sep 2, 2012 at 3:34 PM, Andrew Rafas  wrote:

> Hi!
>
> I just wanted to watch this screencast (Clojure Sequences) as I really
> need that little table which compares C#, Java and Clojure sequences.
> However the video on this link seems to be like 5 seconds long instead of
> more than an hour. Can you fix it? Or do you have the slides somewhere?
> http://blip.tv/clojure/clojure-sequences-740581
>
> Thanks,
> Andrew
>
> --
> 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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Where can I find Selenium, Meets clojure talk?

2012-08-29 Thread Mayank Jain
Hi,
I am looking for the video for this talk : Selenium, Meets clojure.
By Andy Kriger 

Clojure is a general-purpose LISP dialect that targets the Java Virtual 
Machine (JVM), the Common Language Runtime (CLR), and JavaScript (via 
ClojureScript) . Using the clj-webdriver library and the Read-Eval-Print 
loop (REPL), we can rapidly build browser tests for web applications. We 
will explore this vibrant space, looking at how to use clj-webdriver, how 
to combine the power of Clojure and the power of Selenium, and how to setup 
a Clojure/Selenium testing workflow.
Link : http://www.seleniumconf.org/speakers/

Unable to find this talk online. It'll be helpful to see how others use 
clj-webdriver. Any ideas? Thanks.

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: clojure.org down

2012-08-27 Thread Mayank Jain
Working fine for me.

On Tue, Aug 28, 2012 at 12:58 AM, Chris Ford wrote:

> Hi,
>
> clojure.org seems to be down. I've mailed h...@wikispaces.com.
>
> Cheers,
>
> Chris
>
> --
> 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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: How to get unit test failure details

2012-08-27 Thread Mayank Jain
correction :
("a" != "b") I mean (b has "" around it i..e)

On Mon, Aug 27, 2012 at 10:31 PM, Mayank Jain  wrote:

>
>
> On Mon, Aug 27, 2012 at 10:17 PM, Erlis Vidal wrote:
>
>> Hi Mayank,
>>
>> I'm still unable to see why the test failed!
>>
>
> The test failed because "a" is not equal to "b" ! Is that part confusing
> you? or is the question something else?
>
> Total tests = 1 (deftest declaration i.e.)
> How many passed? = 1 (1 == 1)
> How many failed? = 1 ("a" != b)
>
>
>> Anyone knows why I'm getting this?
>>
>> [image: Inline image 1]
>>
>>
>> On Mon, Aug 27, 2012 at 7:22 AM, Erlis Vidal wrote:
>>
>>> I'm expecting the expected & actual detail. Maybe my problem is due to
>>> I'm executing this from lighttable insta repl.
>>> Running this code in the web repl give me the same result.
>>>
>>> http://tryclj.com/
>>>
>>> Enter some Clojure code to be evaluated.
>>>
>>> Clojure> (use 'clojure.test)
>>> nil
>>> Clojure> (is (= "a" "b"))
>>> false
>>> Clojure>
>>>
>>>
>>> On Sun, Aug 26, 2012 at 9:20 PM, Matthew Boston <
>>> matthew.bos...@gmail.com> wrote:
>>>
>>>> Here's my output using the repl from leiningen 2 (nREPL)
>>>>
>>>> user=> (use 'clojure.test)
>>>> nil
>>>> user=> (is (= "a" "b"))
>>>>
>>>> FAIL in clojure.lang.PersistentList$EmptyList@1 (NO_SOURCE_FILE:1)
>>>> expected: (= "a" "b")
>>>>   actual: (not (= "a" "b"))
>>>> false
>>>> user=>
>>>>
>>>> It tells me both the expected and actual. What else are you expecting?
>>>>
>>>> On Sunday, August 26, 2012 7:40:48 PM UTC-4, Erlis Vidal wrote:
>>>>>
>>>>> Hi guys,
>>>>>
>>>>> I'm starting to use clojure.test but when I got a failing test I don't
>>>>> get any information why the error failed.
>>>>>
>>>>> for example if I evaluate this in the repl I just get *false* back
>>>>>
>>>>> (is (= "a" "b"))
>>>>>
>>>>> running the tests with (run-tests) give me this result back:
>>>>>
>>>>> {:type :summary, :pass 2, :test 1, :error 0, :fail 1}
>>>>>
>>>>> I would like to know if I'm missing something or maybe this is because
>>>>> I'm using the lightable playground.
>>>>>
>>>>> Thanks,
>>>>> Erlis
>>>>>
>>>>  --
>>>> 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, send email to
>>>> clojure+unsubscr...@googlegroups.com
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/clojure?hl=en
>>>
>>>
>>>
>>  --
>> 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, send email to
>> clojure+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>>
>
>

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en<>

Re: How to get unit test failure details

2012-08-27 Thread Mayank Jain
On Mon, Aug 27, 2012 at 10:17 PM, Erlis Vidal  wrote:

> Hi Mayank,
>
> I'm still unable to see why the test failed!
>

The test failed because "a" is not equal to "b" ! Is that part confusing
you? or is the question something else?

Total tests = 1 (deftest declaration i.e.)
How many passed? = 1 (1 == 1)
How many failed? = 1 ("a" != b)


> Anyone knows why I'm getting this?
>
> [image: Inline image 1]
>
>
> On Mon, Aug 27, 2012 at 7:22 AM, Erlis Vidal  wrote:
>
>> I'm expecting the expected & actual detail. Maybe my problem is due to
>> I'm executing this from lighttable insta repl.
>> Running this code in the web repl give me the same result.
>>
>> http://tryclj.com/
>>
>> Enter some Clojure code to be evaluated.
>>
>> Clojure> (use 'clojure.test)
>> nil
>> Clojure> (is (= "a" "b"))
>> false
>> Clojure>
>>
>>
>> On Sun, Aug 26, 2012 at 9:20 PM, Matthew Boston > > wrote:
>>
>>> Here's my output using the repl from leiningen 2 (nREPL)
>>>
>>> user=> (use 'clojure.test)
>>> nil
>>> user=> (is (= "a" "b"))
>>>
>>> FAIL in clojure.lang.PersistentList$EmptyList@1 (NO_SOURCE_FILE:1)
>>> expected: (= "a" "b")
>>>   actual: (not (= "a" "b"))
>>> false
>>> user=>
>>>
>>> It tells me both the expected and actual. What else are you expecting?
>>>
>>> On Sunday, August 26, 2012 7:40:48 PM UTC-4, Erlis Vidal wrote:

 Hi guys,

 I'm starting to use clojure.test but when I got a failing test I don't
 get any information why the error failed.

 for example if I evaluate this in the repl I just get *false* back

 (is (= "a" "b"))

 running the tests with (run-tests) give me this result back:

 {:type :summary, :pass 2, :test 1, :error 0, :fail 1}

 I would like to know if I'm missing something or maybe this is because
 I'm using the lightable playground.

 Thanks,
 Erlis

>>>  --
>>> 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, send email to
>>> clojure+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/clojure?hl=en
>>
>>
>>
>  --
> 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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
>

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en<>

Re: How to get unit test failure details

2012-08-27 Thread Mayank Jain
Try calling with-test-out :-

user> (use 'clojure.test)
*nil*

user> (deftest test1
(is (= "a" "b"))
(is (= "1" "1")))
*#'user/test1*

user> (with-test-out
(run-tests))

*Testing user

FAIL in (test1) (NO_SOURCE_FILE:1)
expected: (= "a" "b")
  actual: (not (= "a" "b"))

Ran 1 tests containing 2 assertions.
1 failures, 0 errors.
{:type :summary, :pass 1, :test 1, :error 0, :fail 1}*

user> (run-tests)

*Testing user

FAIL in (test1) (NO_SOURCE_FILE:1)
expected: (= "a" "b")
  actual: (not (= "a" "b"))

Ran 1 tests containing 2 assertions.
1 failures, 0 errors.
{:type :summary, :pass 1, :test 1, :error 0, :fail 1}*




Refer to this link:
http://richhickey.github.com/clojure/clojure.test-api.html

SAVING TEST OUTPUT TO A FILE

All the test reporting functions write to the var *test-out*.  By
default, this is the same as *out*, but you can rebind it to any
PrintWriter.  For example, it could be a file opened withclojure.java.io/writer.

Check with-test-out also.

Hope that helps.
Cheers.


On Mon, Aug 27, 2012 at 6:50 AM, Matthew Boston wrote:

> Here's my output using the repl from leiningen 2 (nREPL)
>
> user=> (use 'clojure.test)
> nil
> user=> (is (= "a" "b"))
>
>


> FAIL in clojure.lang.PersistentList$EmptyList@1 (NO_SOURCE_FILE:1)
> expected: (= "a" "b")
>   actual: (not (= "a" "b"))
> false
> user=>
>
> It tells me both the expected and actual. What else are you expecting?
>
> On Sunday, August 26, 2012 7:40:48 PM UTC-4, Erlis Vidal wrote:
>>
>> Hi guys,
>>
>> I'm starting to use clojure.test but when I got a failing test I don't
>> get any information why the error failed.
>>
>> for example if I evaluate this in the repl I just get *false* back
>>
>> (is (= "a" "b"))
>>
>> running the tests with (run-tests) give me this result back:
>>
>> {:type :summary, :pass 2, :test 1, :error 0, :fail 1}
>>
>> I would like to know if I'm missing something or maybe this is because
>> I'm using the lightable playground.
>>
>> Thanks,
>> Erlis
>>
>  --
> 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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
>

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: Particle system with Quil

2012-08-26 Thread Mayank Jain
So beautiful! May I know what are the use-cases for this?
Thanks for sharing.

On Sun, Aug 26, 2012 at 8:47 AM, meteorfox wrote:

> I've been working in a particle system using Quil for rendering, which I'm
> calling Newtonian for now ;) , just to practice some of the concepts of
> protocols and defrecords. The project is still WIP. Any feedback will be
> appreciate it.
>
> github.com:
> https://github.com/meteorfox/newtonian
>
> Vimeo: (Warning: Looks choppy in the video, because the frame rate I used
> when I recorded it)
> https://vimeo.com/48222827
>
> Thanks!
>
> --
> 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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: problem 58 on 4clojure

2012-08-25 Thread Mayank Jain
On Sat, Aug 25, 2012 at 10:54 PM, Erlis Vidal  wrote:

> How can I find the problem # 58?
>

http://www.4clojure.com/problem/58
Just modify the parameter to the problem number you want to see.


> This is something I was looking right now. What's the best order to
> follow?


Start with the first problem and continue in that order. I find that the
best way to do as lot of problems are build up on previous set of problems.
Cheers.

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: The Value of Values

2012-08-25 Thread Mayank Jain
Here you go :-
https://groups.google.com/d/topic/clojure/XMbo15-gk6M/discussion

On Sat, Aug 25, 2012 at 8:08 PM, Balint Erdi  wrote:

> I'd like to read that thread, can you provide a url?
>
> Thank you,
> Balint
>
>
> On Saturday, August 25, 2012 2:41:40 AM UTC+2, Bost wrote:
>>
>> See the thread "The Value of Values" started by Conrad Barski
>>
>  --
> 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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
>

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: labrepl + tryclojure

2012-08-21 Thread Mayank Jain
One more thing, Where is the "Toggle REPL" link? I didn't see any. Using
Firefox 14, Ubuntu 12.04. Tested it on Chrome as well, didn't see anything.
Am I missing something?

On Wed, Aug 22, 2012 at 2:11 AM, Mayank Jain  wrote:

> Few Things:
>
> 1) intro
>
> This doesn't work:
>
> *To learn about a function, you can examine its docstring. Print the
> docstring for println using the form*
> *(doc println)*
> *
> *
> Unable to resolve symbol: doc in this context
>   [Thrown class java.lang.RuntimeException]
>
> (and other similar functions)
>
> 2) names-and-places : doc did not work either
>
> Note : 1 and 2 would require
> user> (use 'clojure.repl)
> to make them work. I already had emacs setup so I just jumped to the end
> of setup so maybe I have some differences. Hence it would be nice if you
> mention this.
>
> 3) names-and-places :
> difference between refer and use is not clear.
>
>
> Only tried the first two levels. Looks great to me. Though I am not sure
> if a total newbie would be able to pick this up. I knew a lot of stuff
> already from before so I had some idea what it was saying.
>
> But great for someone who has some idea about clojure and wants to get
> better at it.
>
> Will share full review once I am done.
> Cheers!
>
>
>
> On Tue, Aug 21, 2012 at 10:23 PM, semperos wrote:
>
>> I wanted to share a new tutorial resource that combines two excellent
>> projects: Relevance's labrepl with tryclojure's web-based REPL. Here is a
>> first, very rough cut of try-labrepl:
>>
>> http://bit.ly/O1Q8B8
>>
>> Just run "lein cljsbuild once" and then "lein run" to get the app running
>> locally on port 8080.
>>
>> New features:
>>  * A new "Toggle REPL" link is available on each lab page, which opens up
>> a Clojure REPL on the right-hand side of the page
>>  * All code examples in the labs can be clicked, which inserts the code
>> directly into the Clojure REPL and auto-focuses it
>>  * All the custom client-side code is written in ClojureScript (large
>> portions of which are just labrepl's and tryclojure's JavaScript ported to
>> ClojureScript)
>>  * The labrepl backend has been rewritten to use Noir instead of Compojure
>>
>> A couple of things that aren't perfect:
>>  * The jquery-console library is supposed to keep the REPL scrolled to
>> the bottom as content flows down, but this isn't currently working (after
>> trying a few different things, I've added a "Reset REPL" link as a sad,
>> temporary workaround)
>>  * Some multi-line code samples, when clicked, have space issues that
>> cause a compiler error in the REPL session
>>  * I've only made a few cursory edits to the content of the labs in light
>> of the new Noir backend (specifically the mini-browser lab)
>>  * This has only been tested in the latest Chrome and Firefox on a Mac
>>
>> This began with a friendly fork of labrepl, but enough of the underlying
>> code was changed that I felt a fresh project would be more conducive to
>> developing the proof of concept. I'm happy to port any of these features as
>> legitimate pull requests against the labrepl project, if that would be
>> desirable.
>>
>> Feedback, additions and fixes welcome.
>>
>> -Daniel Gregoire
>>
>> --
>> 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, send email to
>> clojure+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>
>
>

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: labrepl + tryclojure

2012-08-21 Thread Mayank Jain
Few Things:

1) intro

This doesn't work:

*To learn about a function, you can examine its docstring. Print the
docstring for println using the form*
*(doc println)*
*
*
Unable to resolve symbol: doc in this context
  [Thrown class java.lang.RuntimeException]

(and other similar functions)

2) names-and-places : doc did not work either

Note : 1 and 2 would require
user> (use 'clojure.repl)
to make them work. I already had emacs setup so I just jumped to the end of
setup so maybe I have some differences. Hence it would be nice if you
mention this.

3) names-and-places :
difference between refer and use is not clear.


Only tried the first two levels. Looks great to me. Though I am not sure if
a total newbie would be able to pick this up. I knew a lot of stuff already
from before so I had some idea what it was saying.

But great for someone who has some idea about clojure and wants to get
better at it.

Will share full review once I am done.
Cheers!


On Tue, Aug 21, 2012 at 10:23 PM, semperos wrote:

> I wanted to share a new tutorial resource that combines two excellent
> projects: Relevance's labrepl with tryclojure's web-based REPL. Here is a
> first, very rough cut of try-labrepl:
>
> http://bit.ly/O1Q8B8
>
> Just run "lein cljsbuild once" and then "lein run" to get the app running
> locally on port 8080.
>
> New features:
>  * A new "Toggle REPL" link is available on each lab page, which opens up
> a Clojure REPL on the right-hand side of the page
>  * All code examples in the labs can be clicked, which inserts the code
> directly into the Clojure REPL and auto-focuses it
>  * All the custom client-side code is written in ClojureScript (large
> portions of which are just labrepl's and tryclojure's JavaScript ported to
> ClojureScript)
>  * The labrepl backend has been rewritten to use Noir instead of Compojure
>
> A couple of things that aren't perfect:
>  * The jquery-console library is supposed to keep the REPL scrolled to the
> bottom as content flows down, but this isn't currently working (after
> trying a few different things, I've added a "Reset REPL" link as a sad,
> temporary workaround)
>  * Some multi-line code samples, when clicked, have space issues that
> cause a compiler error in the REPL session
>  * I've only made a few cursory edits to the content of the labs in light
> of the new Noir backend (specifically the mini-browser lab)
>  * This has only been tested in the latest Chrome and Firefox on a Mac
>
> This began with a friendly fork of labrepl, but enough of the underlying
> code was changed that I felt a fresh project would be more conducive to
> developing the proof of concept. I'm happy to port any of these features as
> legitimate pull requests against the labrepl project, if that would be
> desirable.
>
> Feedback, additions and fixes welcome.
>
> -Daniel Gregoire
>
> --
> 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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: Follow-up questions on Stuart's InfoQ interview

2012-08-20 Thread Mayank Jain
@semperos
Thanks for sharing.

On Mon, Aug 20, 2012 at 7:10 PM, semperos wrote:

> With regards to reducers, I think it's worth watching one of Rich's own
> talks on this as well:
>
> http://vimeo.com/45561411
>
>
> On Friday, August 17, 2012 6:29:29 PM UTC-4, Ben Mabey wrote:
>>
>> On 8/17/12 3:03 PM, Rich Morin wrote:
>> > I took a break from reading "Programming Clojure, 2e" to watch Stuart's
>> > InfoQ interview:
>> >
>> >Stuart Halloway on Datomic, Clojure, Reducers> *interviews/halloway-datomic>
>>
>> >
>> > http://www.infoq.com/**interviews/halloway-datomic
>> >
>> > I have a couple of questions which I hope folks can answer...
>> >
>> > Q: Is there an extended treatment of Clojure "data literals"?
>> >
>> > Stuart discussed these, saying that they hit a sweet spot between XML
>> and
>> > JSON. I'd like to see an extended discussion of this topic, but Google
>> is
>> > letting me down. Any suggestions?
>> >
>> >
>>
>> I haven't listened to the interview, but he was most likely referring to
>> the new "Reader Literals" (a.k.a. tagged literals) support in 1.4.  The
>> best place to read about this new feature is in the changes.md of
>> clojure:
>>
>> https://github.com/clojure/**clojure/blob/master/changes.md
>>
>> I've been using the tagged literal support in my current app and it has
>> been very useful.  I've been exporting streams of events as clojure data
>> structures that I have been replaying in the system at later times
>> (event sourcing).  Being able to represent any arbitrarily object as my
>> own custom literal and have it be read in automatically in a language
>> supported way makes my life a lot easier. :)
>>
>> -Ben
>>
>  --
> 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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
>

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: Having issues installing clj-http

2012-08-19 Thread Mayank Jain
Tried again. It worked. Guess it was a networking issue.
Thanks :)

On Mon, Aug 20, 2012 at 11:36 AM, Baishampayan Ghose wrote:

> It worked for me. Could be a temporary network issue.
>
> Regards,
> BG
>
> On Sat, Aug 18, 2012 at 11:11 PM, Mayank Jain 
> wrote:
> > Hi,
> > I am trying to install clj-http but having issues. Here's the gist :
> > https://gist.github.com/3388644
> >
> > Am I missing something?
> > Environment : Ubuntu 12.04, 64Bit, Emacs-snapshot, lein2.
> > Thanks.
> >
> > --
> > 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, send email to
> > clojure+unsubscr...@googlegroups.com
> > For more options, visit this group at
> > http://groups.google.com/group/clojure?hl=en
>
>
>
> --
> Baishampayan Ghose
> b.ghose at gmail.com
>
> --
> 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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
>

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Having issues installing clj-http

2012-08-19 Thread Mayank Jain
Hi,
I am trying to install clj-http but having issues. Here's the gist : 
https://gist.github.com/3388644

Am I missing something?
Environment : Ubuntu 12.04, 64Bit, Emacs-snapshot, lein2.
Thanks.

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en