Re: [ANN] com.walmartlabs/dyn-edn 0.1.0

2018-02-23 Thread Ravindra Jaju
I've had one too on similar lines for quite some time https://github.com/jaju/properties-clj Primarily used for the `properties` format, but it supports EDN too via the `read-edn` function. This library uses the almost-BASH syntax for picking env variables with default ${USER:some-user} would

Re: Any data about just how much loc Clojure shaves off java?

2017-11-19 Thread Ravindra Jaju
Not an apples-and-oranges comparison here. But I was involved in a rewrite of an existing system exceeding 100K lines of Java code. When you rewrite, there's a lot more insight and clarity about the purpose, and the rewrite done in Clojure had the benefit of skipping the useless bits, while

Re: Don't Laugh - How to Get the Name of an Anonymous Function

2017-10-24 Thread Ravindra Jaju
It's a good start. You could next import clojure.lang.Compiler and call the static method demunge like so on the output "cool_func_BANG_" (Compiler/demunge "cool_func_BANG_") ; => "cool-func!" On Tue, Oct 24, 2017 at 11:27 AM, Shantanu Kumar wrote: > Not sure whether

Re: possibly a Clojure question or possibly an AWS question: slow writes to durable-queue

2017-10-13 Thread Ravindra Jaju
I've faced this issue before, and I'd hazard a guess that like me, it could be related to the IOPS settings. AWS' IO performance is highly variable, and you get good performance in bursts, in very low volumes, and generally only initially for long runs. Which kind of makes sense, unless you

Re: SRSLY? (= (true? identity) (false? identity)) => true

2017-09-01 Thread Ravindra Jaju
(= 1 10) => false (= 2 10) => false (= 10 10) => true (= false false) => true (= (= 1 10) (= 2 10)) => true class BoolTest { public static void main(String args[]) { System.out.println(Boolean.TRUE.equals(System.class) == Boolean.FALSE.equals(System.class)); // prints "true",

Re: slackpocalypse?

2017-05-20 Thread Ravindra Jaju
On Sat, May 20, 2017 at 10:51 PM, Mars0i wrote: > Slack is working for me today. There are posts in the Clojure channel, > for example, from just two hours ago. Maybe the end of the world didn't > occur? On the other hand, the Specter channel says only "To see this >

Re: any? in clojure 1.9.0 alpha

2016-11-07 Thread Ravindra Jaju
[Inconsequential email] On Mon, Nov 7, 2016 at 11:46 AM, Mars0i wrote: > "any?" wasn't the only option. I would have gone with something obvious > like "always-true", or "yes", or even something possibly too-clever like > "arg-or-not-arg?" or "or-not-this?" These last

Re: [ClojureScript] ANN: ClojureScript 0.0-3196, Conditional Reading, REPLs, and Code Motion

2015-04-10 Thread Ravindra Jaju
Hi. I need some help here to understand some errors I see after switching to 0.0-3196 Top-level exception message: clojure.lang.ArityException: Wrong number of args (2) passed to: reader/read This was working okay with 0.0-3169 The change commit-id 6d4ee9c0f938ac62147ecda6a2a47fcb2cca69e4 has

Re: [ClojureScript] ANN: ClojureScript 0.0-3196, Conditional Reading, REPLs, and Code Motion

2015-04-10 Thread Ravindra Jaju
is the one coming from ClojureScript. Julien Le vendredi 10 avril 2015 23:42:35 UTC-3, Ravindra Jaju a écrit : Hi. I need some help here to understand some errors I see after switching to 0.0-3196 Top-level exception message: clojure.lang.ArityException: Wrong number of args (2

Re: Anyone Worked with NW.js and ClojureScript

2015-04-07 Thread Ravindra Jaju
You probably want to look at Assistant ( https://github.com/29decibel/assistant) as an example. It uses lein-node-webkit-build ( https://github.com/wilkerlucio/lein-node-webkit-build) - a lein plugin to build a shell app. Probably what you are looking for? Best, jaju On Tue, Apr 7, 2015 at

Re: Immutant survey

2015-03-12 Thread Ravindra Jaju
Very curious to know - how's the response been? A happy user, jaju On Fri, Mar 6, 2015 at 8:01 PM, Jim Crossley jcrossl...@gmail.com wrote: Hi friends, If you have any opinion about Immutant [1], would you please take a few moments to fill out this short survey?

Re: [ANN] Immutant 2.0.0-beta2

2015-02-10 Thread Ravindra Jaju
That's really great! I can vouch for the stability of beta1. Been running for a small app in production, handling filtered twitter stream data. Never have looked at it since it was started some months ago (except for a VM restart once). To be fair, there's no high load on this app, but it handles

Re: Starting a project the right way - tips?

2014-10-29 Thread Ravindra Jaju
I find Potemkin's import-vars [https://github.com/ztellman/potemkin] too a very neat addition to one's toolbox. Allows one to keep a clean code-layout. I haven't used the other parts to comment on them. Best, Ravindra On Thu, Oct 30, 2014 at 5:44 AM, Daniel Szmulewicz

Re: Help a Startup use Clojure!

2014-03-20 Thread Ravindra Jaju
David, While it is a very detailed and good document, my reaction is that it isn't an appropriate one for business to make the switch. I suspect they will not see any value. I'm not sure what background your boss has, but if the boss isn't into code and only cares about managing the team and the

Re: [ANN] Compliment - a completion library you deserve

2013-08-09 Thread Ravindra Jaju
Indeed! Seems to be pretty cool! Thanks for the compliments! :) Best, jaju On Fri, Aug 9, 2013 at 10:38 PM, Andrew Stine illuminati1...@gmail.comwrote: Looks *very* cool. I like the drop-down list in ac-nrepl-compliment. On Friday, August 9, 2013 12:19:40 PM UTC-4, Alexander Yakushev

Suggested 'server' for hosting clojure web app

2013-06-29 Thread Ravindra Jaju
I want to deploy a small web app - serving mostly static content. I'm using Luminus (http://www.luminusweb.net/) - which is quite neat in the way it builds itself from well-known components. I'm having trouble deciding how to deploy it. I want some automation while deploying upgrades, and would

Re: Suggested 'server' for hosting clojure web app

2013-06-29 Thread Ravindra Jaju
Oops - I meant to sent this to our local clojure group. But thankfully, it still went to a relevant group rather than a completely wrong one! On Sat, Jun 29, 2013 at 8:17 PM, Ravindra Jaju ravindra.j...@gmail.comwrote: I want to deploy a small web app - serving mostly static content. I'm

Re: Suggested 'server' for hosting clojure web app

2013-06-29 Thread Ravindra Jaju
of processes, or to cache static content. You could create the standalone app manually, with a -main function that calls run-jetty, or use the lein-ring plugin and the lein ring uberjar command to do it for you. - James On 29 June 2013 15:47, Ravindra Jaju ravindra.j...@gmail.com wrote: I

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

2012-11-09 Thread Ravindra Jaju
I see you guys have kept that margin for updates/fixes already. The copyright notice talks about the year 2013. :) Copyright © 2013 Stuart Sierra, Luke VanderHart. Anyway, looking forward to spending some time with the book! -- jaju On Fri, Nov 9, 2012 at 7:49 PM, Stuart Sierra

Re: Can anyone explain this behavior of clojure.java.shell/sh ?

2012-11-09 Thread Ravindra Jaju
Don't have access right now to check, but guessing that xdg-open waits for the child process to exit. Try detaching/backgrounding? Not sure how you'd do that with the sh function though. Naively, wrap in (future ...)? -- jaju On Sat, Nov 10, 2012 at 6:56 AM, Andy Fingerhut

Re: Short tutorials on ClojureScript

2012-11-07 Thread Ravindra Jaju
Perfect! Had been waiting for some thing like this, and I followed the first two parts - worked flawlessly! Thanks! -- jaju On Mon, Nov 5, 2012 at 8:59 PM, Mimmo Cosenza mimmo.cose...@gmail.comwrote: Hi, I started a short series of tutorials on ClojureScript that I'm writing in my spare

Using 'def' does not create an array-map for small, non-empty maps

2012-05-08 Thread Ravindra Jaju
Sent the following to clojure-dev - but then it turned out to be a closed group for posting. Posting here as well: == user (class {}) clojure.lang.PersistentArrayMap user (class {1 1}) clojure.lang.PersistentArrayMap user (def m {1

Re: Using 'def' does not create an array-map for small, non-empty maps

2012-05-08 Thread Ravindra Jaju
Ah, thanks! I had read it before and misinterpreted the actual process. Looks like I first need to send a signed copy of the CA before being able to make contributions! (That's going to be one long process for me - haven't been to a post office in ages! :-() -- jaju On Tue, May 8, 2012 at

Re: Congomongo or monger ???

2012-04-06 Thread Ravindra Jaju
On Fri, Apr 6, 2012 at 5:10 AM, Simone Mosciatti mweb@gmail.com wrote: Ok, honestly from the readme of github i like better monger, but when i try to run it into the shell swank it doesn't work... It is a new problem ? .(use 'monger.collection) ;= Error *This* is what you will need to