Re: Padding missing elements in a sequence of identical K/V maps

2013-11-19 Thread Joshua Ballanco
In an attempt to be slightly more "elegant" (whatever that means ;-) ): -8<-8<- (def start [{:key 3 :value 10} {:key 6 :value 30}]) (into [] (map (fn [[k v]] {:key k :value v}) (merge (into {} (for [x (range 6)] {x nil})) (into {} (map (juxt :key :value) start) ;;=> [{:key 6, :

Re: [ClojureCLR] Clojure.Compile.exe

2013-11-19 Thread Joshua Ballanco
…and just yesterday a ticket was opened to address at the very least warning when this happens: http://dev.clojure.org/jira/browse/CLJ-1297 . If you've wasted valuable development hours on this, up votes would be appreciated ;-) - Josh On Tuesday, November 19, 2013 at 10:10 PM, dmiller wrote:

Re: [ANN] projars.com

2013-11-28 Thread Joshua Ballanco
On Thursday, November 28, 2013 at 12:10, Stanislav Yurin wrote: > Hello, Clojure community. > > I have been following the Clojure path for nearly two years now, and have > really great pleasure > using it in my personal and job projects, watching the community delivering a > lot of great things

Re: Am I missing something?

2013-12-04 Thread Joshua Ballanco
On Wednesday, December 4, 2013 at 12:37, James Laver wrote: > Ring is really wonderfully simple. the two combined take up only a handful of > lines. Unfortunately, the tests take up rather a lot of lines (~140) and > since they helped squeeze out the bugs, it would be a poor argument to say > “d

Re: accessing big-resource - what are people doing?

2013-12-07 Thread Joshua Ballanco
On Saturday, December 7, 2013 at 14:06, Jim - FooBar(); wrote: > Hi all, > > Technically speaking this is not a question specific to Clojure. I 'd > like to see how people are generally accessing some big resource (e.g a > massive .csv file). My use case is this: > > I've got code that fetc

Re: Akka-like framework in Clojure ?

2013-12-29 Thread Joshua Ballanco
On Saturday, December 28, 2013 at 6:05, kovas boguta wrote: > The bottom line is that the definitive clojure distributed computing > solution is yet to be invented, but there are a number of things out > there including the aforementioned. > > 1. clojure wrappers for Akka, for instance > > http

Re: Deploying Caribou on Openshift

2014-01-02 Thread Joshua Ballanco
You should be able to deploy with Immutant and then use the Immutant-Openshift-Quickstart (https://github.com/openshift-quickstart/immutant-quickstart) or the Immutant Cart (https://github.com/immutant/openshift-immutant-cart). On Tuesday, December 31, 2013 at 16:04, Leon Talbot wrote: > Wha

Re: Web App structure on server?

2014-01-24 Thread Joshua Ballanco
I just wanted to point out that if you’re looking to write small background processes that are more shell-script-y than server-y, you might consider CLJS + Node.js. That way you can still leverage Clojure without the need to spin up an entire JVM just for a quick cron task. Cheers, Josh On

Re: Web App structure on server?

2014-01-26 Thread Joshua Ballanco
> > Julio > > > > On Jan 24, 2014, at 11:14 PM, Joshua Ballanco > (mailto:jball...@gmail.com)> wrote: > > > > I just wanted to point out that if you’re looking to write small background > > processes that are more shell-script-y than server-y, yo

Re: [ANN]: Buddy 0.1.0-beta3: Authentication, Authorization & Signing library for Clojure.

2014-02-09 Thread Joshua Ballanco
On Sunday, February 9, 2014 at 18:54, Andrey Antukh wrote: > Hi! > > Buddy is an authentication, authorization and signing library for clojure, > designed with simplicity in mind. > > Features / Sub libraries: > * Modular Authentication (implemented using protocols). > * Modular Authorization

A different sort of FizzBuzz

2014-04-07 Thread Joshua Ballanco
My intention is to write up a full blog post explaining how I arrived at this answer, but as I am horribly delinquent in updating my personal site, I figured I would share this directly with the community: https://github.com/jballanc/logicbuzz Comments, questions, and incredulous cock-eyed sta

Re: Clojure cons vs. conj

2014-04-27 Thread Joshua Ballanco
I think you’ve actually answered your own question without realizing it. At least, the way I was taught is that “conj” is always constant time w.r.t. the collection being appended to. Since different collections have different internal storage mechanisms, that means that “conj” will do different

Re: help with the lawyers?

2014-06-01 Thread Joshua Ballanco
When dealing with lawyers, I find it best to keep things simple: Is there no other project in the entire federal government developed with Eclipse or some other EPL licensed code? Somehow, I find that hard to believe. On Friday, May 30, 2014 at 6:31, rcg wrote: > Hello; > > Developing web s

Re: Is Clojure a language for growth?

2014-08-20 Thread Joshua Ballanco
My advice on convincing your boss to use Clojure for a new project: don’t. Projects succeed or fail for any number of different reasons, but I can guarantee you that if you *start* a new project with Clojure, and it does happen to fail, then the choice of Clojure will bear the brunt of the bla

Re: ECHELON: Wrangling messy political data

2014-09-17 Thread Joshua Ballanco
Very interesting project! (and congrats on joining SunlightLabs) As someone who has, on occasion, contributed to various SunlightLabs foundation projects, my only question would be: what do you need help with? I understand completely if this project is not at a point where you’re looking for

Re: Programming Clojure "in the large": libraries, frameworks, oh my

2014-09-19 Thread Joshua Ballanco
I think you’ve missed Immutant: http://immutant.org . I’ve used it on multiple projects for serving HTTP requests, coordinating background jobs, caching, and inter-app communication. It’s also fairly easy to get set up with a clustered configuration. On Friday, September 19, 2014 at 15:52, Dm

Re: Recursive definition in core.logic

2014-09-22 Thread Joshua Ballanco
On Sunday, September 21, 2014 at 21:40, Tassilo Horn wrote: > I think instead of `conde' you can use `conda' here, because when the > first clause succeeds the second one cannot succeed and doesn't need to > Careful with the use of `conde` vs `conda`, as `conda` is an early cut. In other words

Re: Starting a project the right way - tips?

2014-10-27 Thread Joshua Ballanco
Just in case you hadn’t already come across it in your Google-ing, I thought you should know about http://clojure-doc.org . This site is more than just API documentation, it also contains a number of useful guides covering various topics in Clojure. It’s not exactly a collection of prescriptions

Re: talking to machines: Teaching beginners to program with an interactive ClojureScript REPL

2012-07-19 Thread Joshua Ballanco
design! This is definitely a good start. Cheers, Josh -- Joshua Ballanco ELC Technologies™ 1771 NW Pettygrove Street, Suite 140 Portland, OR, 97209 jballanco (mailto:jballa...@elctech.com)@elctech.com (mailto:kmil...@elctech.com) P +1 866.863.7365 F +1 877.658.6313 M +1 646.463.2673 T +90 533.0

Re: record constructor

2012-08-07 Thread Joshua Ballanco
invariably end up wrapped in as much bureaucracy and configuration as actual code. Just my opinion, but I think if you tried something relatively unobtrusive like the above, and it caught on, you might some day find it incorporated into the main language. (After all, even the famous "let&qu

Re: Writing code to get the source of a function

2012-08-08 Thread Joshua Ballanco
efn print-src [] (println (with-out-str (clojure.repl/source my-function The "source" method is designed for the REPL, and so dumps to *out* by default (you can confirm this yourself, appropriately enough, by doing "(source source)") Cheers, Josh -- Joshua Balla

Re: deployment

2012-08-18 Thread Joshua Ballanco
hl=en I can't speak of specific experience, since we're still in the early development phase, but we have had an outstanding experience with Torquebox and so have been looking at it's Clojure cousin Immutant (http://immutant.org/). At the very least, I think it's worth adding

Re: real-world usage of reducers?

2012-08-21 Thread Joshua Ballanco
t; 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 Not sure if you'd consider this "real code", but I recently wrote a scrabble solver (i.e. find

Folding a reducer inside of a fold

2012-08-21 Thread Joshua Ballanco
, but since I also just started looking at reducers, perhaps I'm just not understanding how they work? Any ideas? Thanks, Josh -- Joshua Ballanco ELC Technologies™ 1771 NW Pettygrove Street, Suite 140 Portland, OR, 97209 jballa...@elctech.com P +1 866.863.7365 F +1 877.658.6313 M +1 646.

Re: Folding a reducer inside of a fold

2012-08-22 Thread Joshua Ballanco
ds to be a proper monoid. Is that right? Also, on a related note, it's very annoying that "and" in Clojure is implemented as a macro and therefore cannot be used directly as combinef... - Josh -- Joshua Ballanco ELC Technologies™ 1771 NW Pettygrove Street, Suite 140 Por

Re: 'functional' performance VS 'imperative' complexity

2012-08-26 Thread Joshua Ballanco
k into the details of your specific problem more, but in the absence of time, might I suggest two quick points: 1. Gary Bernhardt has been playing with a "new" approach he calls "Functional Core, Imperative Shell". Essentially, it's another take on the question of how to limi

Re: 'functional' performance VS 'imperative' complexity

2012-08-26 Thread Joshua Ballanco
On Sun, Aug 26, 2012 at 11:16:29AM +0100, Jim - FooBar(); wrote: > On 26/08/12 11:03, Joshua Ballanco wrote: > >I would love to have some time to look into the details of your specific > >problem more, but in the absence of time, might I suggest two quick > >points: > >

Re: when looking for performance, consider 'cheating' !

2012-09-04 Thread Joshua Ballanco
ent amount of pre-processing and data-massaging can go a long way (as well as applying YAGNI to algorithmic evaluations). If you haven't already, I think this would make a good series of blog posts too! Cheers, Josh -- Joshua Ballanco ELC Technologies™ 1771 NW Pettygrove Street, Suite

Re: Evolving the Clojure contribution process and goals

2012-09-24 Thread Joshua Ballanco
with the desire for there to be at least a small barrier before one can become involved with Clojure development, but requiring physical mail seems like a biased barrier that is much larger for some than others. -- Joshua Ballanco ELC Technologies™ 1771 NW Pettygrove Street, Suite 140 Por

Re: Clojure Course on Coursera

2012-09-24 Thread Joshua Ballanco
Zed Shaw's been working on just such a thing (generic online learning environment) over at https://inculcate.me/ . It's still early, so I don't know if he's even accepting third-party courses just yet, but it might be interesting to reach out to him... -- Joshua Ballanc

Re: how to securely store parameters in config files

2012-09-30 Thread Joshua Ballanco
ith Travis have leaked, you can quickly revoke them without any effect on your production machines. - Josh -- Joshua Ballanco ELC Technologies™ 1771 NW Pettygrove Street, Suite 140 Portland, OR, 97209 jballanco (mailto:jballa...@elctech.com)@elctech.com (mailto:kmil...@elctech.com) P +1 86