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

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: 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,

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: 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

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

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

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

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 (with

Re: Web App structure on server?

2014-01-26 Thread Joshua Ballanco
On Jan 24, 2014, at 11:14 PM, Joshua Ballanco jball...@gmail.com (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, you might consider CLJS + Node.js. That way you can

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

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:

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

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 fetches

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

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: 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

Re: how to securely store parameters in config files

2012-09-30 Thread Joshua Ballanco
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 866.863.7365 F

Re: Evolving the Clojure contribution process and goals

2012-09-24 Thread Joshua Ballanco
import my signature using the web cam). I completely understand and agree 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

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 Ballanco ELC Technologies

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

2012-09-04 Thread Joshua Ballanco
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 140 Portland, OR, 97209 jballa...@elctech.com P +1 866.863.7365 F

Re: 'functional' performance VS 'imperative' complexity

2012-08-26 Thread Joshua Ballanco
, transients could provide improved performance At any rate, it's been very informative watching you hammer on this problem. Cheers, 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

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: Well, feel free to have a look

Re: Folding a reducer inside of a fold

2012-08-22 Thread Joshua Ballanco
is implemented as a macro and therefore cannot be used directly as combinef... - 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.463.2673 T +90 533.085.5773 http

Re: real-world usage of reducers?

2012-08-21 Thread Joshua Ballanco
word given a set of letters) in such a way that it can be used with or without reducers: https://github.com/jballanc/scrabbler Running with reducers cuts runtime to 1/4 the original. - Josh -- Joshua Ballanco ELC Technologies™ 1771 NW Pettygrove Street, Suite 140 Portland, OR, 97209 jballa

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.463.2673 T

Re: deployment

2012-08-18 Thread Joshua Ballanco
list. - 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.463.2673 T +90 533.085.5773 http://www.elctech.com -- You received this message because you are subscribed

Re: Writing code to get the source of a function

2012-08-08 Thread Joshua Ballanco
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 Ballanco ELC Technologies™ 1771 NW Pettygrove Street, Suite 140 Portland, OR, 97209 jballa...@elctech.com P +1

Re: record constructor

2012-08-07 Thread Joshua Ballanco
day find it incorporated into the main language. (After all, even the famous let started as a pattern that was made into a macro that ended up in almost every LISP in use today). Cheers, Josh -- Joshua Ballanco ELC Technologies™ 1771 NW Pettygrove Street, Suite 140 Portland, OR, 97209 jballa

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

2012-07-19 Thread Joshua Ballanco
math doesn't work like that (i.e. RPN instead of infix) * Maybe it's just how my brain works, but I think it might be clearer to introduce fn in isolation first, then link it with def, then introduce defn Overall, I love the design! This is definitely a good start. Cheers, Josh -- Joshua