[ANN] HugSQL 0.4.0 release

2016-02-15 Thread Curtis Summers
of partial SQL statements when constructing complex SQL queries. - has protocol-based adapters supporting multiple database libraries and ships with adapters for clojure.java.jdbc (default) and clojure.jdbc Thanks! Curtis Summers -- You received this message because you are subscrib

Re: [ANN] 0.3.0 HugSQL release

2015-11-12 Thread Curtis Summers
Colin, I've added an issue to explore composable features for a future HugSQL release: https://github.com/layerware/hugsql/issues/12 All ideas welcome! Thanks! On Wed, Nov 11, 2015 at 11:40 PM, Robin Heggelund Hansen < skinney...@gmail.com> wrote: > Fantastic release Curt

Re: [ANN] 0.3.0 HugSQL release

2015-11-11 Thread Curtis Summers
lude something like SQL snippet functions and snippet parameter types. All feedback is welcome! Thanks, Curtis On Wed, Nov 11, 2015 at 8:09 PM, Colin Yates wrote: > Congrats Curtis - this looks great. > > I do have one question: you compare in http://www.hugsql.org/#faq-dsls > HugSQL wit

[ANN] 0.3.0 HugSQL release

2015-11-11 Thread Curtis Summers
bc (default) and clojure.jdbc Thanks! Curtis Summers -- 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

Re: [ANN] a HugSQL adapter for postgres.async

2015-11-04 Thread Curtis Summers
ql.) Stay tuned. I'll announce the next HugSQL release on this list when it is ready. Thanks, Curtis On Wednesday, November 4, 2015 at 5:28:04 PM UTC-6, Robin Heggelund Hansen wrote: > > The author of HugSQL is working on documentation now, and I believe he > will include a decen

[ANN] HugSQL 0.1.1 - Embrace SQL

2015-10-21 Thread Curtis Summers
dges, your particular use cases, etc. See the README for clojar install information: https://github.com/layerware/hugsql Thanks, Curtis Summers -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to cloj

Re: [ClojureScript] Re: ANN: ClojureScript 0.0-2301, Transducers!

2014-08-09 Thread Curtis Summers
The issue is resolved for me also. Thanks! --Curtis On Sat, Aug 9, 2014 at 10:18 AM, Paul Burt wrote: > On Saturday, 9 August 2014 16:03:57 UTC+1, Rick B wrote: > > There was a cache issue for the maven-metadata.xml and the possibly the > jar files for 0.0-2301 and 0.0-2307. We

Re: [ClojureScript] Re: ANN: ClojureScript 0.0-2301, Transducers!

2014-08-09 Thread Curtis Summers
central repo caches, you may be seeing different results (e.g., the index not listing the versions). Anybody know who to contact at central repo? --Curtis On Saturday, August 9, 2014 6:00:47 AM UTC-5, Nicola Mometto wrote: > I can confirm, there seem to be problem fetching clojurescr

Re: Leiningen profile problem

2014-07-28 Thread Curtis Summers
to avoid ;; cross-profile contamination (for instance, uberjar classes interfering ;; with development), it's recommended to include %s in in your custom ;; :target-path, which will splice in names of the currently active profiles. :target-path "target/%s/" --Curtis On

Re: reloading enlive templates

2014-07-03 Thread Curtis Summers
I'm using ring.middleware.force-reload to always reload the namespaces that reference my enlive templates. (only in dev, of course) https://github.com/citizenparker/ring-middleware-force-reload Hope that helps, Curtis On Wednesday, July 2, 2014 3:14:16 PM UTC-5, Sven Richter wrote: &

Re: alternative syntax for Clojure? Haskell?

2014-04-05 Thread Curtis Gagliardi
It's a sincere no from me, but I can tell you I've met plenty of non-clojurites/lispers who sneer at lisp it seems solely due to the parentheses. It seems misguided to me though. On Saturday, April 5, 2014 1:14:36 PM UTC-7, Travis Wellman wrote: > > Francois Rey, > > Yes I've been following tha

Re: Latest web framework for clojure

2014-02-26 Thread Curtis Gagliardi
If you're interested in the url-generation and data-based routing, there are some Compojure competitors like Bidi which have those features without bringing on something as large as Pedestal: https://github.com/juxt/bidi (the readme has a nice comparison chart). On Tuesday, February 25, 2014 1

Re: Refactoring as an nREPL middleware

2014-02-08 Thread Curtis Gagliardi
manipulation tools are likely to need, but > I haven't looked into it. For example, one hassle with > jvm.tools.analyzer (at least the now outdated version I've been using) is > that the reader doesn't provide line and column metadata in many places > where you&#x

Refactoring as an nREPL middleware

2014-02-07 Thread Curtis Gagliardi
g/nrepl-refactor , if anyone has any has any feedback I'd love to hear it, and if anyone has vimscript or lighttable plugin experience and wants to help, that'd be great as well. Curtis -- You received this message because you are subscribed to the Google Groups "

Re: standard indentation tool

2014-01-28 Thread Curtis Gagliardi
It'd be cool to build a frormatter as an nrepl middleware and get consistent indents across editors and not have to hardcode custom indentations for macros. On Monday, January 27, 2014 8:47:31 PM UTC-8, bob wrote: > > Hi All, > > Should clojure have a standard format tool like go lang, it will

Re: [Large File Processing] What am I doing wrong?

2014-01-27 Thread Curtis Gagliardi
If ordering isn't important, I'd just dump them all into a set instead of manually checking whether or or not you already put the url into a set. On Sunday, January 26, 2014 10:46:46 PM UTC-8, danneu wrote: > > I use line-seq, split, and destructuring to parse large CSVs. > > Here's how I'd app

Re: How to handle configuration in Clojure?

2014-01-17 Thread Curtis Gagliardi
I've been using carica (https://github.com/sonian/carica) and have config map like {:dev <...> :prod <...>} and just using a single environmental variable to determine which of those config maps to use. On Friday, January 17, 2014 5:06:31 AM UTC-8, Malcolm Sparks wrote: > > There's also Jig : h

Re: RESTful API Auth with Friend and Liberator

2014-01-17 Thread Curtis Gagliardi
Exactly the kind of article I was going to looking for in a few days, excellent. On Friday, January 17, 2014 1:27:10 PM UTC-8, Sam Ritchie wrote: > > Hey guys, > > Those of you working on webapps might find this interesting: > > > http://sritchie.github.io/2014/01/17/api-authentication-with-libe

Re: Good learning resources for Clojure novice but with a long background i programming, both OO and some Fp?

2014-01-10 Thread Curtis Gagliardi
and it increased both my motivation to the learn the language and my understanding of why it is the way it is. On Friday, January 10, 2014 11:20:47 AM UTC-8, Curtis Gagliardi wrote: > > I really think Clojure Programming is the best Clojure book out there. If > you read that thing most (

Re: Good learning resources for Clojure novice but with a long background i programming, both OO and some Fp?

2014-01-10 Thread Curtis Gagliardi
I really think Clojure Programming is the best Clojure book out there. If you read that thing most (or all) of the way through, you'll have a very solid understanding of Clojure. On Friday, January 10, 2014 4:52:53 AM UTC-8, christian jacobsen wrote: > > I have +10 years experience of OO prog

Re: [ANN] DACOM: A skeleton app, Leiningen template for Datomic, Compojure, and Om

2014-01-10 Thread Curtis Gagliardi
That's my stack right now, I'll have to check this out and take notes, see what we're doing differently. This is all pretty uncharted territory it seems. Thanks for putting this out there. On Thursday, January 9, 2014 9:06:34 PM UTC-8, Kevin Bell wrote: > > A Leiningen template featuring all o

Re: ANN: Om, a ClojureScript binding to Facebook's React

2014-01-06 Thread Curtis Gagliardi
I watched a few talks from facebook people about React and was impressed, lots of talk about the simplicity of just rerendering everything and pure functions. I think this is the first time I've been excited about a javascript framework, looking forward to trying it out with Om. On Sunday, Ja

Re: Seeking remote Clojure work

2014-01-04 Thread Curtis Gagliardi
I'm also interested in Clojure contract work (though local would be fine if it's in SF), do we have any sort of place/list for Clojure jobs or is the supply low enough that this list is the main place? On Saturday, January 4, 2014 9:39:38 AM UTC-8, Iro Wright wrote: > > Thanks for the tip Marcus

Re: How do I serve clojure pages with nginx

2013-12-18 Thread Curtis Gagliardi
main class specified in project.clj and have :gen-class on the right files. Check out the deploy your webapp section: http://clojure-doc.org/articles/tutorials/basic_web_development.html On Wednesday, December 18, 2013 2:35:11 PM UTC-8, Curtis Gagliardi wrote: > > I build an uberjar of a web

Re: How do I serve clojure pages with nginx

2013-12-18 Thread Curtis Gagliardi
I build an uberjar of a web server that uses jetty with compojure and run it on port 3000, then I have nginx configured to proxy it like so: https://gist.github.com/cgag/8031034 -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this gro

Re: Is The Joy if Clojure up to date?

2013-11-30 Thread Curtis Gagliardi
I just want to second the recommendation of Clojure Programming as a first book before you dive into JoC (2nd edition). On Saturday, November 30, 2013 2:43:08 PM UTC-8, Sean Corfield wrote: > > +1 for Manning's MEAP approach - I've bought most of my Manning books > through the early access progr

Re: [ANN] Slamhound 1.5.0 + screencast + Vim plugin

2013-11-30 Thread Curtis Gagliardi
Great screencast, thanks. Will definitely check this release out, I tried it a few months ago and failed to get it to run. Looks really promising though. On Friday, November 29, 2013 8:14:36 PM UTC-8, guns wrote: > > Hello, > > I am happy to announce version 1.5.0 of Slamhound, technomancy'

Re: quick macro review

2013-11-29 Thread Curtis Gagliardi
`(migrate* ~@migration-vars))) > > > On Thu, Nov 28, 2013 at 5:22 PM, juan.facorro > > > wrote: > >> Hi Curtis, >> >> The *apply* is unnecessary if you use *unquote-splice* (*~@*), also >> instead of the *into* and *for* usage you could j

quick macro review

2013-11-28 Thread Curtis Gagliardi
about using (into [] ...). https://www.refheap.com/21335 Basically I'm trying to get from (migrate f g h) to (migrate* (var f) (var g) (var h)), I'm not sure I'm doing it right. Thanks, Curtis. -- -- You received this message because you are subscribed to the Google Groups &qu

Re: How do you configure your Ring apps?

2013-09-08 Thread Curtis Gagliardi
I do basically exactly what Christopher Allen described. On Saturday, September 7, 2013 4:53:25 PM UTC-7, Alexandr Kurilin wrote: > > I'm curious to find out how you folks decided to organize configuration > for your Ring applications, assuming you also use configuration management > like Puppet

Re: Clojure and freelancing

2013-09-08 Thread Curtis Gagliardi
It's definitely suitable for the web. I've been using it for my own personal web projects for a while. I've never done any significant freelancing work, though I'm very interested in it. I'm curious though if clients are open to having their stuff built in a rather niche language where they

Re: Screencast: understanding the thread-first and thread-last macros

2013-09-04 Thread Curtis Gagliardi
This is a pretty good demo of light table as well for people who haven't really been keeping up with it lately. On Wednesday, September 4, 2013 8:42:06 AM UTC-7, Jernau wrote: > > Hi everyone, > > I made a screencast about Clojure's *thead-first* (->) and *thread-last* > (->>) > macros: > > ht

Re: evaluation order in loading file/project (with leiningen)

2013-09-03 Thread Curtis Summers
re.core/declare Curtis On Monday, September 2, 2013 12:04:39 PM UTC-5, Erebus Mons wrote: > > > Is there a (recommended) way of enforcing that a certain function has > already been evaluated when another one is called? > > > -- -- You received this message because you

Re: [Proposal] Simplified 'ns' declaration

2013-08-06 Thread Curtis Summers
lp in this endeavor :( (Again, see the parallel in the Clojure world with so much "getting started/example" code showing :use instead of :require). -Curtis The argument for wildcards is very simple. Go to just about any Java tutorial, for example: > > http://docs.or

Re: map from list of maps

2013-07-25 Thread Curtis Gagliardi
You can use whatever functions you want with juxt: user=> (into {} (map (juxt #(% "a") #(% "b")) [{"a" "blah" "b" "ack"} {"a" "red" "b" "blue"}])) {"blah" "ack", "red" "blue"} On Thursday, July 25, 2013 2:55:18 PM UTC-7, Brian Craft wrote: > > Ah, interesting. Only works for keys that are func

Re: In what OS do you code?

2013-06-17 Thread Curtis Gagliardi
Linux Mint everywhere, but any distro is fine as long as I can run a tiling window manager (i3) and vim on it. People complaining about the hassle really should give Ubuntu/Mint or one of the other really user focused distros a try if they haven't recently, it's really not very difficult anymor

Re: [ANN] lein-pedantic is now deprecated

2013-05-31 Thread Curtis Gagliardi
Another +1 for those features. On Wednesday, May 29, 2013 6:25:22 PM UTC-7, Nelson Morris wrote: > > Good news everybody! As of leiningen 2.2.0 using `lein deps :tree` will > perform version checks and version range detection. Therefore, I have > deprecated lein-pedantic. I appreciate all of th

Re: Why is this code so slow?

2013-02-03 Thread Curtis Gagliardi
Was on clojure 1.4, just tried on 1.5.0-RC4 and its a few hundred miliseconds faster in its own function. 4921.78197 msecs vs 5251.267893 msecs On Sunday, February 3, 2013 11:52:11 AM UTC-6, Curtis Gagliardi wrote: > > >>For some reason, by splitting out the inner loop int

Re: Why is this code so slow?

2013-02-03 Thread Curtis Gagliardi
>>For some reason, by splitting out the inner loop into a function >>shaved 6 more seconds (from 34s to 28s) on my low-config 32-bit >>laptop: Pulling every-d? out into it's own function slowed things down a few seconds for me. Strange stuff. -- -- You received this message because you are

Re: Why is this code so slow?

2013-02-02 Thread Curtis Gagliardi
I took your version Feng and used rem instead of mod and added a type hint and got down from: 23217.321626 => 11398.389942 No idea where to go from here though. I'm surprised there's such a difference even not using any sort of collection. (defn smallest-multiple-of-1-to-n-hinted-rem [^long

Re: Migrate from IDEs to emacs or vim (already experienced with it) ?

2013-02-02 Thread Curtis Gagliardi
I've been using vim pretty exclusively for the last 5 years or so, but in the last few weeks I've been using emacs with evil mode and I couldn't be happier. It's a beautiful thing to have emacs extreme extensibility with vim's vastly superior keybindings. I have my config here if you're inter

Re: screencast: friend and creating a login form

2013-01-30 Thread Curtis Gagliardi
Definitely agree that it'd have helped when I was first starting to use friend. I spent a lot of time reading his source. If you plan on doing more about friend it'd definitely be good to show how to authorize a specific user rather than just at the role level, as well as something about how

Re: Blog Post: "The Magic of Macros: Lighting-Fast Templating in ClojureScript"

2013-01-26 Thread Curtis Gagliardi
Great use of macros, and I found Chris Granger's protocol commit enlightening as well, thanks. On Tuesday, January 22, 2013 12:45:34 PM UTC-6, Aria Haghighi wrote: > > Hi all, > > I've done a follow-up post on the Prismatic blog about our dommy, our > ClojureScript templating library. We added

Re: Clojure Recursion (loop-recur) Questions

2012-11-27 Thread Curtis
ss additional things, or > trampoline, or whatever. Clojure does none of that. Clojure has > pedal to the metal calling conventions that match Java's, so I don't > have tail recursion, because you can't do that unless the JVM does > that. > > Andy > > > &g

Re: Current status of Clojure on Android?

2012-11-27 Thread Curtis Gagliardi
How do you use clojurescript on android? SL4A? How does it compare to a native app? I'm looking to try to write an android app but want to avoid java, but it sounds like clojure isn't really ready for production on android. On Monday, November 26, 2012 8:14:07 PM UTC-6, Herwig Hochleitner wr

Clojure Recursion (loop-recur) Questions

2012-11-19 Thread Curtis
Clojure Koans - Recursion (defn recursive-reverse [coll] (loop [coll coll acc '() ] (if (= (count coll) 0) acc (recur (rest coll) (cons (first coll) acc)) ) ) ) I struggled with this one for a while - I don’t want to admit it, but honestly even though i have

Re: Cdr car

2012-10-20 Thread Curtis
Thank you everyone !! I really appreciate you assistance and am so glad to hear about the diversity of backgrounds.! On Tuesday, October 16, 2012 3:40:24 PM UTC-7, Curtis wrote: > > Hello - I was familar with lisp years ago and am very new to clojure. > > I am having a hard time u

Re: Cdr car

2012-10-20 Thread Curtis
-part-2-1319826 > > There used to a transcript available on the newsgroup until Google decided > to remove all files from newsgroup 8) > > On Wednesday, October 17, 2012 2:16:01 PM UTC-4, Curtis wrote: >> >> Cons seems to be strange >> >> How do i

Re: Cdr car

2012-10-17 Thread Curtis
c. > > Regards, > BG > > On Tue, Oct 16, 2012 at 3:40 PM, Curtis wrote: > > Hello - I was familar with lisp years ago and am very new to clojure. > > > > I am having a hard time understanding how to find 'car' and 'cdr'. > > > > Th

Re: Clojure turns 5

2012-10-17 Thread Curtis
HAPPY BIRTHDAY!! thank you Rich for the fyi! On Tuesday, October 16, 2012 6:53:55 PM UTC-7, Rich Hickey wrote: > > I released Clojure 5 years ago today. It's been a terrific ride so far. > > Thanks to everyone who contributes to making Clojure, and its community, > great. > > Rich -- You r

Re: Cdr car

2012-10-17 Thread Curtis
> among the coworkers. > > > > On Tue, Oct 16, 2012 at 6:40 PM, Curtis wrote: > > Hello - I was familar with lisp years ago and am very new to clojure. > > > > I am having a hard time understanding how to find 'car' and 'cdr'. > > >

Re: Cdr car

2012-10-17 Thread Curtis
On Tuesday, October 16, 2012 5:09:02 PM UTC-7, Andy Fingerhut wrote: > > Curtis: > > You can do this if you want: > > (def car first) > (def cdr rest) > > but most people accustomed to Clojure would be much more familiar with > first and rest. The Content of

Coming from Common Lisp to Clojure

2012-10-17 Thread Curtis
so that I can enjoy the poetry that I may be missing. Could some one help me with this please? Thank you! Curtis -- 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

Re: Cdr car

2012-10-17 Thread Curtis
d oh, `cons` is not exactly the same one from Common Lisp, etc. > > Regards, > BG > > On Tue, Oct 16, 2012 at 3:40 PM, Curtis wrote: > > Hello - I was familar with lisp years ago and am very new to clojure. > > > > I am having a hard time understanding how t

Cdr car

2012-10-16 Thread Curtis
Hello - I was familar with lisp years ago and am very new to clojure. I am having a hard time understanding how to find 'car' and 'cdr'. The nice thing about these functions is they always seem to be a part of lisp. I would like to use the little lisper to teach lisp to my co-workers so that w

Re: Just wanted to say how much I like ClojurePY

2012-08-16 Thread Curtis Gagliardi
I haven't really investigated clojurescript yet, but I was planning on looking at it for small scripts where the startup time of the jvm is a problem. Do you feel that clojurepy fills this need better than clojurescript for any reasons other than speed? Or is it libraries like numpy that make

Re: Is still idiomatic the ant simulation code?

2012-06-11 Thread Curtis Gagliardi
Here's the video: http://blip.tv/clojure/clojure-concurrency-819147 and you can get the code here (ants.clj): http://www.lisptoronto.org/past-meetings/2009-05-clojure-ants-demo or here if you don't want to download it: https://www.refheap.com/paste/3096 On Jun 10, 8:00 am, Alexey Kachayev wrote:

Re: Lambda: A lniux distro for clojurists

2012-05-25 Thread Curtis Gagliardi
I'll have to check this out when I get home, it sounds like exactly what I was looking for. Thanks. On May 25, 11:01 am, Tom Maynard wrote: > On Thursday, May 24, 2012 3:11:21 PM UTC-5, banseljaj wrote: > > Looking forward to all input. > > I suggest bundling Dave Ray's "VimClojure-Easy" > (http

Re: Practical Clojure

2012-04-13 Thread Curtis Gagliardi
I hadn't heard of practical clojure, but while we're praising books, I'd like to say that Clojure Programming is excellent. I've been reading the early access version, and while I haven't finished it, I'm almost done with the first half, which covers the core of the language. It's been incredibly

Re: I'm writing a Tempest clone in ClojureScript

2012-04-09 Thread Curtis Gagliardi
This is some cool stuff, I'll have to poke through the code later. I've never played tempest, so I don't know what's supposed to happen, but it was interesting to just move towards the focal point and let the flippers pile up around the edges. On Mar 22, 7:14 pm, Trevor Bentley wrote: > I'm teach