Re: A large Clojure deployment

2009-04-08 Thread Baishampayan Ghose
e my ignorance, but which one is the first famous Clojure app? Regards, BG -- Baishampayan Ghose oCricket.com http://oCricket.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to t

Re: Possible contrib contribution: clojure.contrib.timing

2009-04-15 Thread Baishampayan Ghose
called ``create-timing-map'' ? Regards, BG -- Baishampayan Ghose oCricket.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@

Re: Monads tutorial

2009-04-15 Thread Baishampayan Ghose
misspellings, > errors, etc., post 'em here. Comments as well. The code page http://intensivesystems.net/tutorials/code/monads_101.clj is giving a 404 :) Regards, BG -- Baishampayan Ghose oCricket.com --~--~-~--~~~---~--~~ You received this message b

Re: PeepCode screencast

2009-04-25 Thread Baishampayan Ghose
Phil Hagelberg wrote: > I'm proud to announce that the "Functional Programming with Clojure" > PeepCode screencast has just been published: Wow! This is awesome. I bought it right-away! Thanks. Regards, BG -- Baishampayan Ghose --~--~-~--~~

Getting slime-edit-definition to work with Clojure

2009-04-26 Thread Baishampayan Ghose
something completely wrong? TIA. Regards, BG -- Baishampayan Ghose oCricket.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroup

Re: Getting slime-edit-definition to work with Clojure

2009-04-27 Thread Baishampayan Ghose
or Clojure" t) (add-to-list 'auto-mode-alist '("\\.clj$" . clojure-mode)) (defun lisp-enable-paredit-hook () (paredit-mode 1)) (add-hook 'clojure-mode-hook 'lisp-enable-paredit-hook) (defun sbcl () "Starts sbcl in Slime" (interactive) (sl

Re: Getting slime-edit-definition to work with Clojure

2009-04-28 Thread Baishampayan Ghose
me :) Regards, BG -- Baishampayan Ghose oCricket.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 To unsubscribe from this group, sen

Re: Getting slime-edit-definition to work with Clojure

2009-04-28 Thread Baishampayan Ghose
d) > > > I don't know what your clojure binary looks like, but is the code for > these functions on your Java classpath? Yes they are in the classpath. I can 'use' clojure.contrib fine. But when I do a M-. on any of the functions, I get an error on the mini-buffe

Re: Getting slime-edit-definition to work with Clojure

2009-04-28 Thread Baishampayan Ghose
de) (eval-after-load 'clojure-mode '(clojure-slime-config)) (autoload 'clojure-mode "clojure-mode" "A major mode for Clojure" t) (add-to-list 'auto-mode-alist '("\\.clj$" . clojure-mode)) (defun lisp-enable-paredit-hook

Re: regex replace all?

2009-04-29 Thread Baishampayan Ghose
)) There is re-gsub in clojure-contrib.str-utils. Regards, BG -- Baishampayan Ghose oCricket.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojur

Re: Getting slime-edit-definition to work with Clojure

2009-05-02 Thread Baishampayan Ghose
.contrib functions work fine. But it still doesn't work for Clojure's internal functions in, say, core.clj Any idea how to get that to work? Regards, BG -- Baishampayan Ghose oCricket.com --~--~-~--~~~---~--~~ You received this message because you are subs

Re: Clojure 1.0

2009-05-04 Thread Baishampayan Ghose
nity. Cheers! BG -- Baishampayan Ghose oCricket.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 To unsubscribe from this group, send

Re: Getting slime-edit-definition to work with Clojure

2009-05-07 Thread Baishampayan Ghose
ar file with both .class & .clj files? Regards, BG -- Baishampayan Ghose oCricket.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@google

Re: Getting slime-edit-definition to work with Clojure

2009-05-07 Thread Baishampayan Ghose
load-path)) (require 'clojure-mode) (setq clojure-src-root clj-root) (eval-after-load 'clojure-mode '(clojure-slime-config)) (autoload 'clojure-mode "clojure-mode" "A major mode for Clojure" t) (add-to-list 'auto-mode-alist '("\\.c

Re: Getting slime-edit-definition to work with Clojure

2009-05-08 Thread Baishampayan Ghose
ot;." . utf-8)) Yes. That line screwed up everything for me. I removed it and everything is working fine now. Now I need to find out why that line was causing the problem. Thanks a lot Stephen & Phil. You guys (as well as the Clojure community) made my day. Regards, BG -- Baishampayan

Re: Getting slime-edit-definition to work with Clojure

2009-05-08 Thread Baishampayan Ghose
" way of doing > this in a slime setup where swank-clojure sets up the classpath? You can append you classpath to swank-clojure-extra-classpaths after clojure-slime-config has been called. Regards, BG -- Baishampayan Ghose oCricket.com --~--~-~--~~~---~--

Re: Launching apps

2009-05-09 Thread Baishampayan Ghose
Chris Dean wrote: > For now I'm using hand written scripts that launch under screen. And > that works for us. Would be great if you share those scripts with us. Regards, BG -- Baishampayan Ghose oCricket.com signature.asc Description: OpenPGP digital signature

Swank broken at r1369

2009-05-25 Thread Baishampayan Ghose
finally{ -Var.popThreadBindings(); -} } }); } Any clues? Regards, BG -- Baishampayan Ghose oCricket.com signature.asc Description: OpenPGP digital signature

Re: Swank broken at r1369

2009-05-25 Thread Baishampayan Ghose
y's swank-clojure fixed the problem. For the time being I will stick to his swank-clojure, with switch back when it gets merged upstream. Regards, BG -- Baishampayan Ghose oCricket.com signature.asc Description: OpenPGP digital signature

Re: Exit from clojure box?

2009-05-27 Thread Baishampayan Ghose
r > is there a more sensible one? In the SLIME REPL, press , (comma) and then type 'quit' and press Enter. That'd close your REPL gracefully after which you can exit Emacs by pressing C-x C-c. Regards, BG -- Baishampayan Ghose oCricket.com signature.asc Description: OpenPGP digital signature

Re: a question about the definiton of the variable arity function in "Clojure: A Dynamic Programming Language for the JVM," by Rich Hickey

2009-05-28 Thread Baishampayan Ghose
nd doesn't exist anymore. Regards, BG -- Baishampayan Ghose oCricket.com signature.asc Description: OpenPGP digital signature

Re: Is oracle going to make the jvm part proprietary?

2009-05-30 Thread Baishampayan Ghose
> http://tech.slashdot.org/story/09/05/29/1711203/Java-Gets-New-Garbage-Collector-But-Only-If-You-Buy-Support?from=rss Who cares? There are many classy JVM implementations from third parties like IBM. BG -- Baishampayan Ghose oCricket.com http://oCricket.

Re: Spider with clojure

2009-06-02 Thread Baishampayan Ghose
oing this with Ruby right now, but no in parallel. This seems to be an ideal use-case for Clojure Agents http://clojure.org/agents Try it out and share the code :) Regards, BG -- Baishampayan Ghose oCricket.com signature.asc Description: OpenPGP digital signature

Re: Clojure at LispNYC tonight 7pm

2009-06-10 Thread Baishampayan Ghose
Stuart Sierra wrote: > Join us Tuesday, June 9 from 7:00-9:00 for Stuart Sierra's > presentation: Will there be any video recording? Regards, BG -- Baishampayan Ghose oCricket.com signature.asc Description: OpenPGP digital signature

Re: Clojure at LispNYC tonight 7pm

2009-06-11 Thread Baishampayan Ghose
-meetings > We'll try to get something lighter than a 3GB mpeg soon. Watched the video. Highly impressive! Thanks. BG -- Baishampayan Ghose oCricket.com signature.asc Description: OpenPGP digital signature

[OT] Convincing others about Clojure

2009-06-24 Thread Baishampayan Ghose
r me and any help will be appreciated. Regards, BG -- Baishampayan Ghose oCricket.com signature.asc Description: OpenPGP digital signature

Re: [OT] Convincing others about Clojure

2009-06-24 Thread Baishampayan Ghose
Regards, BG -- Baishampayan Ghose oCricket.com signature.asc Description: OpenPGP digital signature

Re: [OT] Convincing others about Clojure

2009-06-26 Thread Baishampayan Ghose
unity rocks. Now to get down to implementing the plan. Regards, BG -- Baishampayan Ghose oCricket.com signature.asc Description: OpenPGP digital signature

Re: [OT] Convincing others about Clojure

2009-06-26 Thread Baishampayan Ghose
t that Clojure runs on the JVM and has direct access to Java libs helped the case. He, being a fairly intelligent and pragmatic man, accepted my logic. Thanks a bunch guys. Regards, BG -- Baishampayan Ghose oCricket.com signature.asc Description: OpenPGP digital signature

Re: [OT] Convincing others about Clojure

2009-06-26 Thread Baishampayan Ghose
ce! :-) > > (so, you hiring?) We are hiring; but do you live in Mumbai, India? :) Regards, BG -- Baishampayan Ghose oCricket.com signature.asc Description: OpenPGP digital signature

Re: Problem with clojure code on .net.

2009-07-02 Thread Baishampayan Ghose
tting used to > this syntax. Use a parenthesis aware editor and let the editor manage those for you. You will be in deep trouble if you are counting and managing the parenthesis manually :) Otherwise, Clojure (like all Lisps) has very minimal syntax. Regards, BG -- Baishampayan Ghose

Using Clojure for complex database driven applications

2009-07-08 Thread Baishampayan Ghose
make Hibernate less verbose). I would like to know how you have solved similar problems. Is Hibernate useful? Is managing a bunch of XML config files a necessary evil? Any help will be appreciated. Regards, BG -- Baishampayan Ghose oCricket.com signature.asc Description: OpenPGP digital signature

Re: Using Clojure for complex database driven applications

2009-07-08 Thread Baishampayan Ghose
t; http://github.com/duelinmarkers/clj-record/tree/master > > which is inspired by rail's ActiveRecord. How mature are they? Do they work well with PostgreSQL? Apparently, ClojureQL doesn't. Regards, BG -- Baishampayan Ghose oCricket.com signature.asc Description: OpenPGP digital signature

Re: Emacs clojure mode: how to set current directory & classpath

2009-07-20 Thread Baishampayan Ghose
g out the code, dependencies are concerned? A sample directory structure would help. Regards, BG -- Baishampayan Ghose oCricket.com signature.asc Description: OpenPGP digital signature

Re: Emacs clojure mode: how to set current directory & classpath

2009-07-21 Thread Baishampayan Ghose
esh Emacs, it bails out because swank-clojure-extra-vm-args is not defined at that stage. I fixed that by running the SLIME repl once before running the clojure-project function. 2. After that, it still fails to work as it remains stuck at the "Polling /tmp/slime.634..." stage. Any point

Re: Emacs clojure mode: how to set current directory & classpath

2009-07-21 Thread Baishampayan Ghose
* Dependencies all unpacked together under target/dependency/ > > Since I use the same conventions for every single project, I never have > to change my classpath. Another question. Where do I put the clojure & clojure-contrib JAR files? Regards, BG -- Baishampayan Ghose oCricket.com signature.asc Description: OpenPGP digital signature

Re: Emacs clojure mode: how to set current directory & classpath

2009-07-28 Thread Baishampayan Ghose
me to just put the JAR files somewhere and get them added to the classpath? Thanks in advance. Regards, BG -- Baishampayan Ghose oCricket.com signature.asc Description: OpenPGP digital signature

Re: Emacs clojure mode: how to set current directory & classpath

2009-07-28 Thread Baishampayan Ghose
; (require 'clojure-mode) I was not talking about the Clojure JAR. I wanted a nice way to use external library JARs along with the clojure-project function which Phil has written. Regards, BG -- Baishampayan Ghose oCricket.com signature.asc Description: OpenPGP digital signature

Re: Emacs clojure mode: how to set current directory & classpath

2009-07-28 Thread Baishampayan Ghose
gain. Regards, BG -- Baishampayan Ghose oCricket.com signature.asc Description: OpenPGP digital signature

Re: fibonacci sequence using lazy-cat

2009-07-29 Thread Baishampayan Ghose
anged to the latest known value of fibs. In case of (take 5 fibs), these are the steps in which the values are calculated: [0 1] -> [0 1] [0 1] + (map + [0 1] [1]) -> [0 1 1] [0 1] + (map + [0 1 1] [1 1]) -> [0 1 1 2] [0 1] + (map + [0 1 1 2] [1 1 2]) -> [0 1 1 2 3] And so on. This is

New JDK 7 Feature: Support for Dynamically Typed Languages in the JVM

2009-07-29 Thread Baishampayan Ghose
-- Baishampayan Ghose oCricket.com signature.asc Description: OpenPGP digital signature

Re: Clojure performance degraded

2009-07-29 Thread Baishampayan Ghose
) (44 30) (23 37) (21 23) (23 > 25) (25 39) (27 25) (46 32) (25 39) (28 30) (30 44) (34 32) (31 33) (44 > 46) (46 32) (33 31) (38 24)) > user=> Can you kindly attach the code that you used to test? Regards, BG -- Baishampayan Ghose oCricket.com signature.asc Description: OpenPGP digital signature

Re: Idiomatic parsing of objects from several lines of a text file

2009-07-31 Thread Baishampayan Ghose
g to solve the Github Contest problem - http://contest.github.com/ and not really trying to write a Git client in Clojure :) Regards, BG -- Baishampayan Ghose oCricket.com signature.asc Description: OpenPGP digital signature

Re: Commenting Code (Was: Re: Clojure as a First Language)

2009-08-11 Thread Baishampayan Ghose
ter which re-indents the code nicely (while conforming to some spec); something similar to GNU Indent[1]? Regards, BG [1] http://www.gnu.org/software/indent/ -- Baishampayan Ghose oCricket.com signature.asc Description: OpenPGP digital signature

Re: How about write clojure code like python mode?

2009-08-25 Thread Baishampayan Ghose
ty to Clojure and other Lisps. Moreover, when you use a decent Lisp-aware editor parentheses usually vanish in thin air. All you care about then is the indentation. Regards, BG -- Baishampayan Ghose oCricket.com signature.asc Description: OpenPGP digital signature

Re: Anyone else working on a Common Lisp style "loop"?

2009-09-07 Thread Baishampayan Ghose
more seriously on it... I think I can keep the conciseness of loop (in > typical cases) while also having the extensibility and power of > iterate. +1 for a Clojure port of Iterate; it's a fantastic library. Regards, BG -- Baishampayan Ghose oCricket.com signature.asc Description: OpenPGP digital signature

Re: Issue with casting integers with clojure.lang.ifn's

2009-09-14 Thread Baishampayan Ghose
ne for me: (def vect1 [1 2 3 4]) (count vect1) (* (count vect1) 5) Are you sure you used def and now defn while defining vect1? Regards, BG -- Baishampayan Ghose oCricket.com signature.asc Description: OpenPGP digital signature

Re: loop-recur for string handling

2009-09-17 Thread Baishampayan Ghose
anguage where mutation is discouraged. Whenever you see yourself mutating things, you should double check the code. def is for top-level variable declarations only. You can use let for lexical bindings, that too when required. Have fun :) Regards, BG -- Baishampayan Ghose oCricket.com signature.asc Description: OpenPGP digital signature

Re: loop-recur for string handling

2009-09-17 Thread Baishampayan Ghose
ncrete example. Just the inputs and the output would do. Regards, BG -- Baishampayan Ghose oCricket.com signature.asc Description: OpenPGP digital signature

[OT] Re: Unable to use contrib

2009-10-07 Thread Baishampayan Ghose
Abhishek Reddy wrote: > The semicolon character opens a single-line comment in Clojure (as is > traditional in lisp languages). It's like // in Java. Off topic: Abhishek, so have you switched from CL to Clojure now? ;) Anyway, have loads of fun. I am. Regards, BG -- Baisham

Re: Basic questions

2009-10-07 Thread Baishampayan Ghose
s. Regards, BG -- Baishampayan Ghose oCricket.com signature.asc Description: OpenPGP digital signature

Re: clj-xpath

2009-10-09 Thread Baishampayan Ghose
to the community. > > Any feedback, pointers to other libraries or suggestions will be > greatly appreciated. Very good work, Kyle! I haven't looked at the code yet, but the docs indicate that it's a very nice library indeed. It will be very useful for us. Thanks. Regards, BG

Dealing with StringTemplate template paths

2009-10-11 Thread Baishampayan Ghose
ntime will also be appreciated. Regards, BG -- Baishampayan Ghose oCricket.com signature.asc Description: OpenPGP digital signature

Re: Dealing with StringTemplate template paths

2009-10-12 Thread Baishampayan Ghose
rked! Many thanks Stu. Regards, BG -- Baishampayan Ghose oCricket.com signature.asc Description: OpenPGP digital signature

Clojure's 2nd Birthday!

2009-10-15 Thread Baishampayan Ghose
d the community. Clojure has proved to be an awesome programming environment already, and I am sure it will only get better this year :) Regards, BG Baishampayan Ghose oCricket.com signature.asc Description: OpenPGP digital signature

Writing binary data using http.agent and duck-streams

2009-10-23 Thread Baishampayan Ghose
? I looked at the code but I am not sure about the exact way to do it. I can probably use straight Java interop, but I would rather use the contrib lib. Thanks in advance. Regards, BG -- Baishampayan Ghose oCricket.com signature.asc Description: OpenPGP digital signature

Re: [ANN] Clojars - a Clojure community jar repository

2009-11-19 Thread Baishampayan Ghose
. Regards, BG -- Baishampayan Ghose oCricket.com signature.asc Description: OpenPGP digital signature

Re: Clojure newbie question regarding compile time type checking.

2009-12-15 Thread Baishampayan Ghose
king", I think it's prudent to mention now that Clojure is a dynamically typed programming language where types are checked at run-time and not compile time. Regards, BG -- Baishampayan Ghose oCricket.com -- You received this message because you are subscribed to the Google Groups

Re: Clojure newbie question regarding compile time type checking.

2009-12-15 Thread Baishampayan Ghose
Even though Clojure is hosted on the JVM, it has a completely different ancestry; it is more different that similar to Java. Regards, BG -- Baishampayan Ghose oCricket.com -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to thi

Re: Clojure 1.1 release candidate 1

2009-12-18 Thread Baishampayan Ghose
here. > > Is there a place where I can get a list of all new features and > changes compared to 1.0? http://github.com/richhickey/clojure/blob/1.1.x/changes.txt Regards, BG -- Baishampayan Ghose oCricket.com -- You received this message because you are subscribed to the Google Groups

Re: Renaming 1.1.0-alpha-SNAPSHOT is causing problems with projects on Clojars

2009-12-22 Thread Baishampayan Ghose
e speak up if you've noticed otherwise, but that's my understanding. Well, the jars never existed for me since I started using Leiningen recently. I want to migrate our project to Leiningen but I can't since Compojure still depends on a non-existent clojure package. Is it too hard to

ANN: Planet Clojure

2009-12-28 Thread Baishampayan Ghose
and want your blog to be syndicated on Plane Clojure please send me the link to your blog's Atom/RSS feed and I will happily put you on the Planet. If you have any suggestion/objection/bug report, feel free to contact me. Regards, BG -- Baishampayan Ghose oCricket.com -- You received

Re: ANN: Planet Clojure

2009-12-29 Thread Baishampayan Ghose
Phil, > Would be even better if it were implemented in Clojure though. =) That's on the anvil. I will do it when I get some time. For now, we will have to do with Python :) Regards, BG -- Baishampayan Ghose oCricket.com -- You received this message because you are subscribed to th

Re: Clojure/SLIME/Emacs questions

2009-12-31 Thread Baishampayan Ghose
th Common Lisp. I would appreciate a solution to this too. Regards, BG -- Baishampayan Ghose oCricket.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 n

Using/configuring c.c.logging

2010-01-09 Thread Baishampayan Ghose
to stdout on a case by case basis (using the repl). Unfortunately I am not familiar with Java logging facilities and would appreciate some help with this. Regards, BG -- Baishampayan Ghose oCricket.com -- You received this message because you are subscribed to the Google Groups "Clojure&

Re: Log4j not detected when using recent jars

2010-01-12 Thread Baishampayan Ghose
and 1.3 has been made obsolete. I tried using 1.2.14 because 1.2.15 was bringing in a truck load of dependencies. Regards, BG -- Baishampayan Ghose oCricket.com -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, sen

Promise/Deliver use cases

2010-01-21 Thread Baishampayan Ghose
ample usage of promise/deliver. Regards, BG -- Baishampayan Ghose -- 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 w

Clojure ad on StackOverflow.com

2010-02-07 Thread Baishampayan Ghose
-- Baishampayan Ghose oCricket.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 unsubs

Re: Common Lisp's append

2010-02-19 Thread Baishampayan Ghose
Mike, Finally, can anyone recommend a good free common lisp implementation that runs well with slime / emacs under Windows? SBCL is excellent. So is Clozure CL. Regards, BG -- Baishampayan Ghose -- You received this message because you are subscribed to the Google Groups "Clojure&q

Re: clojure slides

2010-03-04 Thread Baishampayan Ghose
Wilson MacGyver wrote: Looks like I'll be doing a talk on clojure next week at the local java user group. Any recommendations on slides I can steal? :) Feel free to use mine - http://www.slideshare.net/zaph0d/introduction-to-clojure Regards, BG -- Baishampayan Ghose oCricket.com -

Re: clojure slides

2010-03-07 Thread Baishampayan Ghose
nd, docs, > etc? > - Same for par-edit Macro-expand, evaluation, M-. etc. all work like a charm. The debugger is not as advanced as in CL, but does the job fine. I use Clojure + SLIME + Paredit daily and it's a charm. Regards, BG -- Baishampayan Ghose oCricket.com http://oCricket.

Re: [ANN] German Clojure Book

2010-03-11 Thread Baishampayan Ghose
gratulations! I hope there will be an English translation one day. The book cover is awesome; really like the design and the main font. Keep it up! Regards, BG -- Baishampayan Ghose oCricket.com -- You received this message because you are subscribed to the Google Groups "Clojure" grou

Re: Why I have chosen not to employ clojure

2010-03-22 Thread Baishampayan Ghose
t documentation starting from getting started with Clojure to examples of different library functions. We could use content from the Wikibooks project to get started, but we will need to organise and maintain the content a bit better. What do you people think? Regards, BG -- Baishampayan

Re: Trying to set emacs for some clojure coding

2010-03-31 Thread Baishampayan Ghose
and have included a notice with a link to the canonical instructions. Thanks, BG -- Baishampayan Ghose oCricket.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

Re: Clojure Concurrency Screencast Available

2010-04-12 Thread Baishampayan Ghose
week. Feedback welcome! Nice work! By the way, which Emacs mode do you have installed which shows the WPM count? Regards, BG -- Baishampayan Ghose oCricket.com -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this gro

Interesting Facebook blog post on Concurrency (mentions Clojure)

2010-04-13 Thread Baishampayan Ghose
ent on how that affects the Clojure STM (if at all)? Regards, BG -- Baishampayan Ghose -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated

Re: Problem with Destructuring in A Function Call

2010-04-16 Thread Baishampayan Ghose
value of :body is supposed to be a vector, we can destructure it further into head and body. You can do the same kind of destructuring in a let form too. I hope I was able to explain it to you. I agree, the examples were pretty lame :) Regards, BG -- Baishampayan Ghose -- You received this messa

Re: How to: reduce boolean operations?

2013-05-21 Thread Baishampayan Ghose
ups.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

Re: core.async

2013-06-29 Thread Baishampayan Ghose
On Sat, Jun 29, 2013 at 4:37 PM, Peter Taoussanis wrote: > I honestly feel like I'm witnessing history being made. We all are. -BG -- Baishampayan Ghose b.ghose at gmail.com -- -- You received this message because you are subscribed to the Google Groups "Clojure" grou

Re: Suggested 'server' for hosting clojure web app

2013-06-29 Thread Baishampayan Ghose
Pick http-kit, create a uberjar with lein and deploy via Upstart etc. It works like a charm. Jetty is quite good too. ~BG Sent from phone. Please excuse brevity. On 29 Jun 2013 20:17, "Ravindra Jaju" wrote: > I want to deploy a small web app - serving mostly static content. I'm > using Luminus (

Re: Help deciphering ArityException message

2013-06-29 Thread Baishampayan Ghose
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. > > -- Baishampayan Ghose b.ghose at gmail.com -- -- You received this message because you are subscribed

Re: UnreadableForm exception trying to read an EDN file

2013-06-29 Thread Baishampayan Ghose
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: Help deciphering ArityException message

2013-06-29 Thread Baishampayan Ghose
{:header (update-in metadata [:headers] reformat-headers) :payload > (String. payload)}) >dest)) > > > On Saturday, June 29, 2013 8:12:26 PM UTC-5, Baishampayan Ghose wrote: >> >> This should work. What does headers look like? Sometimes the #(...) >> reader form can

Re: UnreadableForm exception trying to read an EDN file

2013-06-29 Thread Baishampayan Ghose
t; {:header metadata :payload (String. payload)}) >dest)) > > but it still prints it out to the file with #. > Did I miss something? > > On Saturday, June 29, 2013 8:14:49 PM UTC-5, Baishampayan Ghose wrote: >> >> Adding a method to the `print-dup` multim

Re: UnreadableForm exception trying to read an EDN file

2013-06-29 Thread Baishampayan Ghose
ur version I get: > > :headers >#=(java.util.HashMap. {"pluginKey" > #=(com.rabbitmq.client.impl.LongStringHelper$ByteArrayLongString. > "PLUGIN2")}) > > what I think I needs to be able to read it back in is: > > :headers {"pluginKey" "PLU

Re: UnreadableForm exception trying to read an EDN file

2013-06-29 Thread Baishampayan Ghose
uot;)}) > > what I think I needs to be able to read it back in is: > > :headers {"pluginKey" "PLUGIN2"} > > On Saturday, June 29, 2013 8:41:16 PM UTC-5, Baishampayan Ghose wrote: >> >> Does this work? >> >> ;; do the defmethod e

Re: UnreadableForm exception trying to read an EDN file

2013-06-29 Thread Baishampayan Ghose
> > > On Saturday, June 29, 2013 8:57:31 PM UTC-5, Baishampayan Ghose wrote: >> >> This form, by the way is readable. Not sure why the print-dup >> extension is not working though... ~BG >> >> On Sun, Jun 30, 2013 at 7:18 AM, Dave Kincaid wrote: >> &

Re: UnreadableForm exception trying to read an EDN file

2013-06-29 Thread Baishampayan Ghose
Cool! ~BG On Sun, Jun 30, 2013 at 7:49 AM, Dave Kincaid wrote: > That works perfectly! Thank you again very much. > > > On Saturday, June 29, 2013 9:01:32 PM UTC-5, Baishampayan Ghose wrote: >> >> By the way, there is also the print-method multimethod which might >

Re: Sharing result of macro's calculation with the body

2013-07-01 Thread Baishampayan Ghose
ure@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: Sharing result of macro's calculation with the body

2013-07-01 Thread Baishampayan Ghose
ess > surprising. > > > On Mon, Jul 1, 2013 at 11:21 AM, Baishampayan Ghose wrote: > >> Hi, >> >> What you need is called an anaphoric macro (via symbol capture). >> Clojure makes it hard to do a symbol capture in macros since it >> qualifies all symbols aut

Re: anaphoric macro?

2013-07-23 Thread Baishampayan Ghose
p/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 opti

Re: futures - The Joy Of Clojure book question

2013-07-23 Thread Baishampayan Ghose
ot; 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. > > -- Baishampayan Ghose b.ghose at gmail.com -- -- You received this mess

Re: Can we please deprecate the :use directive ?

2013-07-23 Thread Baishampayan Ghose
nt 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

Re: Idiomatic use of records?

2013-07-25 Thread Baishampayan Ghose
s 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: Wrong documentation of contains?

2013-08-07 Thread Baishampayan Ghose
e 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. > > -- Baishampayan Ghose b.ghose at gmai

Re: ANN Introducing Route One

2013-08-13 Thread Baishampayan Ghose
t; 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. > > -- Baishampayan Ghose b.ghose at gmail.com -- -- You received this message

Re: ANN Introducing Route One

2013-08-13 Thread Baishampayan Ghose
ition (URL => route), while Route > One does only URL generation (route => URL) > > Thanks! > > > On Tue, Aug 13, 2013 at 7:12 PM, Baishampayan Ghose > wrote: >> >> Curious, how does it differ from Clout? ~BG >> >> On Tue, Aug 13, 2013 at 9:38 PM

Re: Selecting subsets of maps

2013-08-31 Thread Baishampayan Ghose
gan: https://github.com/clojurewerkz/balagan > > Basically, you can run predicate-based queries on your data and apply > transformations. > Check it out, maybe it helps > > On Tuesday, May 29, 2012 2:23:30 PM UTC+2, Baishampayan Ghose wrote: >> >> Great feedb

Re: Get anonymous function's(which is parameter to function) body in called function

2015-05-29 Thread Baishampayan Ghose
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/d/optout. >>> >> >> >> >> -- >> -Mohit Thatte &g

Re: Get anonymous function's(which is parameter to function) body in called function

2015-05-29 Thread Baishampayan Ghose
andle it then will go with `metadata` approach :) > > On Friday, May 29, 2015 at 8:53:11 PM UTC+5:30, Baishampayan Ghose wrote: >> >> Shalaka, >> >> This is a really interesting conversation :-) However, I'd insist that >> you ditch eval or any sort of

  1   2   3   4   5   >