Re: Breaking out of a sequence

2015-03-02 Thread Sean Corfield
Another option to consider: Treat the problem as a `reduce` on the sequence of adjustments where the processing of each adjustment depends on the user input and cancel makes the processing return (reduced nil) to halt the reduction. That will stop automatically when the sequence of adjustments

Re: Is it possible to determine that I did a 'lein repl'

2015-02-27 Thread Sean Corfield
be sufficient for you. Then in our code we test: (System/getProperty lein.profile.repl) This will be true if you’re in a REPL and nil otherwise. Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good. -- Gustave Flaubert, French realist

Re: Is it possible to determine that I did a 'lein repl'

2015-02-27 Thread Sean Corfield
the default JVM options — we do different things on different platforms — it returns a vector of JVM options. So :jvm-opts [-Dlein.profile.repl=true] might be sufficient for you. Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good

Re: How do I depend on clojure 1.7.0-master-SNAPSHOT?

2015-02-27 Thread Sean Corfield
sonatype [exec] Retrieving org/clojure/clojure/1.7.0-master-SNAPSHOT/clojure-1.7.0-master-20150220.180325-29.jar from sonatype Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good. -- Gustave Flaubert, French realist novelist (1821-1880

Re: How do I depend on clojure 1.7.0-master-SNAPSHOT?

2015-02-26 Thread Sean Corfield
between my project.clj (which works) and yours is the trailing / on the repository address: :dependencies [[org.clojure/clojure 1.7.0-master-SNAPSHOT]] :repositories [[snapshots https://oss.sonatype.org/content/repositories/snapshots/;]] Sean Corfield -- (904) 302-SEAN An Architect's

Re: Border cases for doseq

2015-02-25 Thread Sean Corfield
Cecil, Have you looked at the community documentation for java.jdbc? It has some examples of DDL and metadata: http://clojure-doc.org/articles/ecosystem/java_jdbc/using_ddl.html http://clojure-doc.org/articles/ecosystem/java_jdbc/using_ddl.html Sean On Feb 25, 2015, at 10:35 AM, Cecil

Re: Current best-of-breed JDBC libraries?

2015-02-24 Thread Sean Corfield
-by-keys) that encapsulates the identifier/entity mappings and the DB connections we use, but we’re slowly moving away from that toward raw clojure.java.jdbc and leveraging the :row-fn and :result-set-fn keys more. Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection

Re: Current best-of-breed JDBC libraries?

2015-02-24 Thread Sean Corfield
, as I understand it. We're either building SQL from a map of key/value pairs or from composable pieces using HoneySQL (for our complex reports that are all driven by data as well). Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good

Re: No such var during runtime

2015-02-20 Thread Sean Corfield
Could it perhaps be this bug at work? http://dev.clojure.org/jira/browse/CLJ-1604 http://dev.clojure.org/jira/browse/CLJ-1604 Sean On Feb 20, 2015, at 1:31 PM, Sven Richter sver...@googlemail.com wrote: A user reported an error for closp which I cannot make sense of:

Re: OO Programmer trying to move to Clojure: Namespace Organization

2015-02-08 Thread Sean Corfield
, worldsingles.transparensee - search engine, worldsingles.data - our general persistence layer). Our average namespace is about 200 lines long (we have just over 100 namespaces in our main app - they range from 16 lines to 1,266). Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org

[ANN] Frege compiler plugin for Leiningen (Clojure's build tool)

2015-02-08 Thread Sean Corfield
: https://github.com/seancorfield/lein-fregec/tree/master/example Leiningen is available from http://leiningen.org Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good. -- Gustave Flaubert, French realist novelist (1821-1880) -- You

Re: maven error : Could not find metadata XXX/maven-metadata.xml in local

2015-02-04 Thread Sean Corfield
:52 lein-template-0.5.4.pom.sha1 Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ dev.Objective() - Developing Apps, Developing Skills, Developing Community -- May 12-15, 2015 - Bloomington, MN - http://devobjective.com -- You received this message because you

Re: lein discovery issues

2015-01-30 Thread Sean Corfield
probably avoid it. Do you have a specific example that seems like it should be better documented? Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good. -- Gustave Flaubert, French realist novelist (1821-1880) -- You received this message

Re: Help sought on issue with AOT, hadoop, classloaders, and consistency of Clojure fn classes

2015-01-29 Thread Sean Corfield
Which version of Clojure are you using? Does clojure-hadoop or Schema include AOT-compiled versions of other libraries and/or core namespaces? If the answers are 1.7.0 Alpha 5 and yes then you've run into the same problem I and a few others did: the previously undefined behavior of loading

Re: [ANN] Clojure 1.7.0-alpha5 now available

2015-01-20 Thread Sean Corfield
Just FYI, we took 1.7.0-alpha5 into production today. We’ll let you know if we run into any issues. Other than tripping over the AOT/JIT thing with core.typed, it’s been smooth sailing on dev/QA… …and we actually have a transducer in production now! Sean On Jan 10, 2015, at 7:36 AM, Alex

Re: Dynamically creating defrecord

2015-01-17 Thread Sean Corfield
/clojures-macro-define-a-binding-whose-name-is-composed-from-an-argument/4288738#4288738 Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good. -- Gustave Flaubert, French realist novelist (1821-1880) -- You received this message because

Re: AOT Compilation Error on Clojure 1.7.0-alpha5

2015-01-14 Thread Sean Corfield
Do you perhaps have both AOT and JIT versions of that namespace loaded? See the thread that this post is part of: https://groups.google.com/d/msg/clojure/jj87-4yVlWI/UpsYOPZ3FicJ https://groups.google.com/d/msg/clojure/jj87-4yVlWI/UpsYOPZ3FicJ Following Nicola’s suggestion, I built a version

Re: [ANN] Clojure 1.7.0-alpha5 now available

2015-01-12 Thread Sean Corfield
Here’s what I see reproducing this in the REPL - this main project doesn't use core.async (but does use a very small AOT'd library). I'm going to try to cut this down to see if I can repro outside our main project (worldsingles.cache is a thin wrapper over core.cache and core.memoize - moving

Re: [ANN] Clojure 1.7.0-alpha5 now available

2015-01-12 Thread Sean Corfield
) AOT’d library that interfaces with log4j. All our main projects depend on that. We did lein clean on all our projects and rebuilt all of them from scratch on Alpha 5. Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good. -- Gustave

Re: [ANN] Clojure 1.7.0-alpha5 now available

2015-01-12 Thread Sean Corfield
http://dev.clojure.org/jira/browse/CLJ-1639 http://dev.clojure.org/jira/browse/CLJ-1639 On Jan 12, 2015, at 10:37 AM, Alex Miller a...@puredanger.com wrote: I would be helpful to me at this point to have a jira regarding this problem which I will presume for the time being is the same in

Re: [ANN] Clojure 1.7.0-alpha5 now available

2015-01-12 Thread Sean Corfield
On Jan 12, 2015, at 11:32 AM, Sean Corfield s...@corfield.org wrote: http://dev.clojure.org/jira/browse/CLJ-1639 http://dev.clojure.org/jira/browse/CLJ-1639 It turned out to be due to core.typed whose JAR includes AOT’d versions of core.cache and core.memoize amongst others. I’ve left

Re: [ANN] Clojure 1.7.0-alpha5 now available

2015-01-12 Thread Sean Corfield
Oh, and all our apps now pass / work correctly on 1.7.0-alpha5 (I stripped Typed Clojure out of our code base to make it all work). Sean On Jan 12, 2015, at 6:25 PM, Sean Corfield s...@corfield.org wrote: On Jan 12, 2015, at 11:32 AM, Sean Corfield s...@corfield.org mailto:s

Re: [ANN] Clojure 1.7.0-alpha5 now available

2015-01-12 Thread Sean Corfield
and rebuilding and testing our project against that version does still produce that same exception. Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good. -- Gustave Flaubert, French realist novelist (1821-1880) -- You received

Re: [ANN] Clojure 1.7.0-alpha5 now available

2015-01-12 Thread Sean Corfield
hadn't seen this failure last week, it had to be one of the handful of commits made immediately prior to releasing Alpha 5. Sean On Jan 12, 2015, at 8:31 AM, Sean Corfield s...@corfield.org wrote: On Jan 12, 2015, at 8:09 AM, Nicola Mometto brobro...@gmail.com wrote: Can you try a custom

Re: [ANN] Clojure 1.7.0-alpha5 now available

2015-01-11 Thread Sean Corfield
:442) at clojure.lang.Var.invoke(Var.java:388) at clojure.lang.AFn.applyToHelper(AFn.java:160) at clojure.lang.Var.applyTo(Var.java:700) at clojure.lang.Compiler.macroexpand1(Compiler.java:6606) On Jan 11, 2015, at 4:55 PM, Sean Corfield s...@corfield.org wrote

Re: [ANN] Clojure 1.7.0-alpha5 now available

2015-01-11 Thread Sean Corfield
would be nice - they've both had a few updates since the last published releases. Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good. -- Gustave Flaubert, French realist novelist (1821-1880) -- You received this message because you

Re: [ANN] Clojure 1.7.0-alpha5 now available

2015-01-11 Thread Sean Corfield
On Jan 11, 2015, at 6:34 AM, Alex Miller a...@puredanger.com wrote: I would greatly appreciate hearing any feedback about this (or any other) alpha, even if it's just: everything looks ok. I upgraded an app that uses core.async (0.1.346.0-17112a-alpha) and got this exception on the ns that

Re: [ANN] Clojure 1.7.0-alpha5 now available

2015-01-11 Thread Sean Corfield
I tried upgrading a few more apps and ran into this same problem in the absence of core.async - but in the presence of core.cache and core.memoize so I'm trying to create a small test case to isolate the issue. Sean On Jan 11, 2015, at 5:07 PM, Sean Corfield s...@corfield.org wrote

Re: How to handle refactoring with TDD and mocking/stubbing

2015-01-07 Thread Sean Corfield
, because we have a lot of entry points into the Clojure code) but we would like to figure out a cleaner way to separate DB access from our business logic on a per request basis... Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good

Re: Clojure ecommerce

2015-01-05 Thread Sean Corfield
I can't answer the first part but I can say that at World Singles, we're using a combination of Braintree, SBW, Paymentwall, Paypal and a few others, almost all wrapped up in custom Clojure code. Paymentwall is easy to integrate (since it uses a captive UI on the front end and then just pings

Re: Clojure ecommerce

2015-01-05 Thread Sean Corfield
On Jan 5, 2015, at 11:00 AM, gvim gvi...@gmail.com wrote: SBW? https://www.sbw.com -- Secure Billing Worldwide Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good. -- Gustave Flaubert, French realist novelist (1821-1880) -- You

Re: How to handle refactoring with TDD and mocking/stubbing

2014-12-31 Thread Sean Corfield
, but we think carefully about any tests that have to do this. Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good. -- Gustave Flaubert, French realist novelist (1821-1880) -- You received this message because you are subscribed

Re: core async and transducers in Clojure 1.6.0

2014-12-30 Thread Sean Corfield
stable version we’re on as well as the current master snapshot so we pick up any breaking changes before they hit a version we might go to production with. Unlike some other languages, the official Clojure pre-release builds are impressively stable! Sean Corfield -- (904) 302-SEAN An Architect's

Re: Status of lean runtime?

2014-12-11 Thread Sean Corfield
Java 6 has been EOL for nearly two years. Java 7’s EOL is currently just four months away. Given that Clojure 1.7 is not yet gold and 1.8 will likely be a year away (based on previous releases), it seems reasonable to plan to drop Java 6 support three years after it was EOL’d. A quarter of

Re: Status of lean runtime?

2014-12-11 Thread Sean Corfield
updating to reflect what’s really going into 1.7 at this point and what’s going to be 1.8 or later? http://dev.clojure.org/display/design/Release.Next+Planning http://dev.clojure.org/display/design/Release.Next+Planning Sean Corfield -- (904) 302-SEAN An Architect's View -- http

Re: Nightcode problem

2014-12-06 Thread Sean Corfield
Don’t store Nightcode or your projects on a path that has spaces in it. A lot of tools don’t support spaces in paths. Sean On Dec 6, 2014, at 12:06 PM, Julio Berina juliober...@gmail.com wrote: I'm trying to do Android development on a Clojure IDE called Nightcode, and clicked 'Run' in order

CFP dev.Objective() 2015 (mid-May, Minneapolis)

2014-12-06 Thread Sean Corfield
://engage.devobjective.com/index.cfm#me How do I submit a topic? http://engage.devobjective.com/index.cfm#submit How will topics be selected? http://engage.devobjective.com/index.cfm#selected Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy

Re: Bug? with-redefs fails on functions with primitive type hints

2014-11-28 Thread Sean Corfield
): ClassCastException java.lang.String cannot be cast to java.lang.Number user/do-something (form-init1785865955014487522.clj:1) Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good. -- Gustave Flaubert, French realist novelist (1821-1880) -- You

[ANN] java-jdbc/dsl 0.1.1

2014-11-27 Thread Sean Corfield
]) Courtesy of Dmitry Balakhonskiy - thank you! Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good. -- Gustave Flaubert, French realist novelist (1821-1880) -- You received this message because you are subscribed to the Google Groups Clojure

Re: How do you refer to a previous value of a var, within a loop/recur?

2014-11-23 Thread Sean Corfield
Dan, I’m with James here. Your code as presented is really hard to read for folks used to the standard Clojure style - the strange layout of parentheses is very distracting. The use of underscore instead of hyphen is also a bit jarring. I’m guessing your background is C/C++/Java and you think

Re: How do you refer to a previous value of a var, within a loop/recur?

2014-11-23 Thread Sean Corfield
https://github.com/bbatsov/clojure-style-guide Thanks for pointing out the error in the if statement. You're correct. Glad I was able to help. Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good. -- Gustave Flaubert, French realist

Re: style question on tightly coupled functions

2014-11-20 Thread Sean Corfield
is a useful technique in some situations. Would you just outlaw it? Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good. -- Gustave Flaubert, French realist novelist (1821-1880) -- You received this message because you are subscribed

Re: snubbed on clojurescript one

2014-11-18 Thread Sean Corfield
://github.com/caribou/caribou https://github.com/caribou/caribou for example). Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good. -- Gustave Flaubert, French realist novelist (1821-1880) -- You received this message because you are subscribed

Re: snubbed on clojurescript one

2014-11-18 Thread Sean Corfield
? I guess there’s still some confusion about what happened with Pedestal (outside of the pedestal-users mailing list, that is)… :) Sean On Tue, 18 Nov 2014 19:19 Sean Corfield s...@corfield.org mailto:s...@corfield.org wrote: On Nov 18, 2014, at 10:57 AM, Ashton Kemerling ashtonkemerl

Re: About transients no longer being safe in 1.7-alpha2

2014-11-03 Thread Sean Corfield
(future (reduce #(assoc! % :a (+ (:a %) %2)) v (range 10)))] @f1 @f2 ; wait for futures (persistent! @f1)) Which seems to consistently produce {:a 90} on both Clojure 1.7.0 Alpha 2 and Clojure 1.7.0 Alpha 3. Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org

[ANN] org.clojure/java.jdbc 0.3.6 available

2014-10-29 Thread Sean Corfield
result sets as arrrays JDBC-101 https://dev.clojure.org/jira/browse/JDBC-101. Add :timeout argument to prepare-statement JDBC-100 https://dev.clojure.org/jira/browse/JDBC-100. https://github.com/clojure/java.jdbc https://github.com/clojure/java.jdbc Sean Corfield -- (904) 302-SEAN

Re: Demoralising experience trying to install on Win 7

2014-10-27 Thread Sean Corfield
is that the vast majority of Clojure users just don’t have the Windows expertise needed to do much about it :( Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good. -- Gustave Flaubert, French realist novelist (1821-1880) -- You received

java.jdbc - as-arrays? - unique column names

2014-10-16 Thread Sean Corfield
? * Would you want this to be the default behavior (potentially breaking)? Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good. -- Gustave Flaubert, French realist novelist (1821-1880) signature.asc Description: Message signed

Re: Modelling in Clojure

2014-10-16 Thread Sean Corfield
the ability to add fields to maps with no client code changes required, I think it's actually _easier_ in FP, in nearly all _real world_ cases. Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good. -- Gustave Flaubert, French realist

Re: ANN: State of Clojure 2014 Survey - please contribute!!

2014-10-15 Thread Sean Corfield
Asking questions about race and/or gender can be a very sensitive issue and a lot of people would refuse to complete those sections, or may even refuse to complete the survey at all if such questions were included - for a variety of very valid reasons. Sean On Oct 14, 2014, at 9:23 PM, Zack

Re: ANN: State of Clojure 2014 Survey - please contribute!!

2014-10-15 Thread Sean Corfield
objection to collecting such demographic information). As I said, it's a sensitive issue. As Bridget noted, they'll consider the approach for 2015. Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good. -- Gustave Flaubert, French realist

Re: ANN: State of Clojure 2014 Survey - please contribute!!

2014-10-15 Thread Sean Corfield
I'm replying to Ashton and Mars0i off-list - and I'm happy to continue discussing the issue off-list, with anyone who wants to, but I think it's getting off-topic and close to inappropriate for this (technical) list. And, for what it's worth, Atamert, I'm on your side on this. Sean On Oct 15,

Diversity (was: State of Clojure 2014 Survey - please contribute!!

2014-10-13 Thread Sean Corfield
the demographics of our community if we all want to do so. In particular, the demographics of your work environment depend almost entirely on your hiring process and willingness to train your employees so that's definitely an area where you can effect change if you have the will. Sean Corfield -- http

Re: Why is my function faster with eval?

2014-10-10 Thread Sean Corfield
It may be more to do with the difference between `for` and `map`. How do these versions compare in your benchmark: (defn read-to-maps-partial [rows] (let [headers (- rows first (take-while (complement #{})) (map keyword))]

Re: Why is my function faster with eval?

2014-10-10 Thread Sean Corfield
Ah, interesting... I hadn't considered it was running the zipmap at compile-time so it only runs it once as opposed to running it for each row! Sean On Oct 10, 2014, at 1:06 PM, Ben Wolfson wolf...@gmail.com wrote: I believe it's because the `mapper` function is just creating and returning a

Re: Why is my function faster with eval?

2014-10-10 Thread Sean Corfield
the code that eval executes at, er, run-time :) Sean On Fri, Oct 10, 2014 at 1:35 PM, Sean Corfield s...@corfield.org wrote: Ah, interesting... I hadn't considered it was running the zipmap at compile-time so it only runs it once as opposed to running it for each row! Sean On Oct 10, 2014

Re: Seeking Large Companies That Employ Clojure

2014-10-09 Thread Sean Corfield
That's very vague. Can you explain _why_ you want to talk to such users? I'm in your target audience but I would not contact you based on such a vague post. My first reaction is you're trying to sell me something... Sean On Oct 9, 2014, at 12:13 PM, Jan Drake jan.s.dr...@gmail.com wrote: You

Re: [PSA] Clojars scp disabled until further notice

2014-09-26 Thread Sean Corfield
I grumbled about the GPG stuff when it came up but after a chat with Phil I decided this was something I just needed to learn as a developer. Sure, it means you have to read complex security stuff but we have to read lots of complex stuff as developers - that's just part of our job. I switched to

Re: Re: Handling java streams..

2014-09-26 Thread Sean Corfield
On Fri, Sep 26, 2014 at 11:51 AM, José Ricardo zehzi...@gmail.com wrote: Hi, I'm not sure if resurrecting this thread is the right approach, but what about Java 8 Streams (java.util.stream)? Are there any libraries out there for making java 8 streams handling nicer? :) Well, this thread is

Re: transducers and async operations

2014-09-21 Thread Sean Corfield
If you're putting data into a channel, why not just add the transducer to the channel creation so it is applied as you pull values off the channel? Sean On Sep 21, 2014, at 3:01 PM, Wilker wilkerlu...@gmail.com wrote: Hi guys, I'm playing with transducers here, and trying out stuff just

Re: Interop nightmare

2014-09-08 Thread Sean Corfield
to work with Java's JDBC classes, javax.mail, and Java's SOAP implementation - all from Clojure - all I can say is that some Java interop is easier than others, but most of it is somewhat unpleasant :) Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection

Sente 1.0.0 (was: [ANN] Taoensso library updates / 2014 September

2014-09-06 Thread Sean Corfield
Peter, I just upgraded from Sente 0.15.1 to 1.0.0 and it looks like the values that come in ch-recv have changed format? I used to have the following: (go (loop [[op arg] (! ch-recv)] (case op :chsk/recv (do-something-with arg) ...))) But now I get a map back instead of

Re: [ANN] Taoensso library updates / 2014 September

2014-09-06 Thread Sean Corfield
for several user-facing things in production, as opposed to just internal-facing stuff in production. Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good. -- Gustave Flaubert, French realist novelist (1821-1880) signature.asc Description

Re: Sente 1.0.0 (was: [ANN] Taoensso library updates / 2014 September

2014-09-06 Thread Sean Corfield
On Sep 6, 2014, at 3:55 AM, Hugo Duncan duncan.h...@gmail.com wrote: Did you change `start-chsk-router-loop!` to `start-chsk-router!`? I don't use those. I read directly from ch-recv due to some of the stuff I needed to do (when I first started using Sente). I may revisit this now... Sean

Re: Sente 1.0.0 (was: [ANN] Taoensso library updates / 2014 September

2014-09-06 Thread Sean Corfield
be spun off in a thread? I'll go open an issue for this on Sente's Github repo for discussion. Sean On Sep 6, 2014, at 3:48 PM, Sean Corfield s...@corfield.org wrote: On Sep 6, 2014, at 3:55 AM, Hugo Duncan duncan.h...@gmail.com wrote: Did you change `start-chsk-router-loop!` to `start-chsk-router

Re: core.async take behaviour

2014-09-04 Thread Sean Corfield
Define stable. We've had Clojure 1.7.0 Alpha 1 in production since August 12th with no problems. On Sep 4, 2014, at 7:07 PM, Colin Fleming colin.mailingl...@gmail.com wrote: Is there any indication of when transducers are likely to make it to a stable version of Clojure? Given that there's a

Re: [ANN] lein-plz 0.1.1 - Add dependencies quickly

2014-08-25 Thread Sean Corfield
already does something similar: lein try om That figures out the latest version of Om (by searching Clojars and Maven I believe?). Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good. -- Gustave Flaubert, French realist novelist

Re: Is Clojure a language for growth?

2014-08-21 Thread Sean Corfield
, whose been doing a huge amount of data migration via Java said he was just starting to learn Clojure and was looking forward to getting away from objects and Java's verbosity and fussiness! Good luck! Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection

Re: [ANN] lein-plz 0.1.1 - Add dependencies quickly

2014-08-18 Thread Sean Corfield
Just wanted to say thank you! for this. It certainly is useful! A possible enhancement: to try to locate and add dependencies that are not known as abbreviations. For example, `lein plz add om` doesn't do anything (and doesn't tell you!) so you have to edit your .edn file and add {om #{om}}

Re: FYI: for Clojure people stuck with some Java, use DCEVM

2014-08-15 Thread Sean Corfield
On Wed, Aug 13, 2014 at 7:59 PM, Colin Fleming colin.mailingl...@gmail.com wrote: This looks really great. Due to limitations in Clojure's interop I'm forced to use much more Java than I'd like in Cursive itself Could you elaborate on this Colin? -- Sean A Corfield -- (904) 302-SEAN An

Re: [ANN] Clojure 1.7.0-alpha1

2014-08-13 Thread Sean Corfield
FWIW, we took 1.7.0-alpha1 to production yesterday. Despite the supposed keyword/symbol construction performance mentioned below, we actually suspect a slight slowdown compared to 1.6.0 but we don't have concrete numbers yet (and it's only a suspicion - a lot has changed recently in our code

Re: workflow with aot compiling

2014-08-11 Thread Sean Corfield
We've moved to a model where we AOT only those namespaces that need to result in Java classes and we resolve into the main code at runtime for the implementation. We have all the AOT shims in one project and everything in non-AOT projects. That allows us to essentially ignore AOT except for the

Re: setting c3p0 logging

2014-08-10 Thread Sean Corfield
So that's new in 0.9.5? Good to know. We're still on 0.9.2.1. On Aug 9, 2014, at 10:08 AM, Brian Craft craft.br...@gmail.com wrote: In case anyone hits the same problem: strace showed the file being read, but it was having no effect, and c3p0 reported no errors in the config. Checking the

[ANN] clojure.java.jdbc 0.3.5

2014-08-01 Thread Sean Corfield
for readonly transactions via :read-only? JDBC-93. (should be up on Maven soon) Thanks to Brian Craft for highlighting the performance hotspot due to reflection in the executeUpdate code! Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy

Re: Don't understand inline vs extend-type implementation of defprotocol across namespaces

2014-08-01 Thread Sean Corfield
, -Banana #'crecords.trec/-Banana, map-Banana #'crecords.trec/map-Banana, -main #'crecords.trec/-main, f1 #'crecords.trec/f1, map-Apple #'crecords.trec/map-Apple} Hope that helps? Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good

Re: [ANN] Grimoire 0.3.0

2014-08-01 Thread Sean Corfield
This is very cool. Given the URL structure, have you given any thought to how contrib libraries might be integrated into this in future? Sean On Aug 1, 2014, at 2:00 PM, Reid McKenzie rmckenzi...@gmail.com wrote: For those of you who didn't notice the ten minutes of 500 pages as I upgraded,

Re: [ANN] Grimoire 0.3.0

2014-08-01 Thread Sean Corfield
for more extensive, community-maintained documentation that provides guides to using contrib libraries etc. In addition, contrib libraries probably don't lend themselves to isolated examples the way the core Clojure namespaces do. Sean Corfield -- (904) 302-SEAN An Architect's View -- http

Re: Clojure / Core.Async Dependency Issues

2014-07-31 Thread Sean Corfield
I've seen several people report this problem when using vinyasa and I've run into this once myself (I don't remember what caused it, but it was some other plugin that pulled in an old core.cache version). Sean On Jul 31, 2014, at 11:11 AM, Timothy Washington twash...@gmail.com wrote: Ok, I

Re: Redefined 'count' produces no warning

2014-07-30 Thread Sean Corfield
FWIW we have several places where the obvious local name shadows a core function - so the existing behavior is both desirable (IMO) and in existing production usage. I would not want to see that changed :) Eastwood seems like the correct place for this (Eastwood has continued to detect bugs in

Re: Redefined 'count' produces no warning

2014-07-30 Thread Sean Corfield
that globally for our code base. I think Colin's suggestion is solid, if you can do it. I don't think we shadow a core function with a local function anywhere and such attempted calls would almost certainly be bugs - or at least indicate a better function name was needed. Sean Corfield -- (904) 302

Re: timbre logging, java libs

2014-07-24 Thread Sean Corfield
On Jul 23, 2014, at 7:11 PM, Jonah Benton jo...@jonah.com wrote: Sean Corfield has a great example of writing a log4j logging backend in clojure: http://corfield.org/blog/post.cfm/real-world-clojure-logging Thanx for the referral. That made me go back and look at what that code has evolved

Re: Is Korma still a good current choice for DB backend?

2014-07-24 Thread Sean Corfield
/ false (which was my initial concern after being somewhat gunshy of 'OR' in queries due to performance problems that has caused in complex queries). Thank you Brandon! Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good. -- Gustave

Re: Is Korma still a good current choice for DB backend?

2014-07-23 Thread Sean Corfield
Yes, we're using HoneySQL extensively at World Singles for our more complex reporting queries - which was why I asked what Yesql users were doing to handle conditionally built queries. I really like the look of Yesql - and I can see the benefits for some of our more straightforward queries so

Re: subtle om + core.async problems

2014-07-23 Thread Sean Corfield
You'll want to read this thread: https://groups.google.com/forum/#!topic/clojurescript/DHJvcGey8Sc In particular: So if you have code that's like this, those components will want to clean up after themselves in IWillUnmount. That should address your first problem? I'm not sure what to

Re: Is Korma still a good current choice for DB backend?

2014-07-22 Thread Sean Corfield
I'm curious as to how folks using Yesql deal with conditional queries - which is something we seem to run into a lot. For example, we have some business logic that might optionally be passed a date range and maybe some other qualifier so our query would be: (str SELECT ... main query

Re: Unexpected ClassCastException when passing generics

2014-07-17 Thread Sean Corfield
(final MethodArgument... arguments) { need an array passed in. You'll need something like (into-array org.freedesktop.dbus.Message$MethodArgument [app-name]) instead of just app-name in your .addArgument call. Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection

Re: System/getenv can't read env vars?

2014-07-07 Thread Sean Corfield
(! 540)- export MY_VAR=foo Mon Jul 07 12:26:01 (sean)-(jobs:0)-(~/clojure) (! 541)- lein repl nREPL server started on port 56747 on host 127.0.0.1 - nrepl://127.0.0.1:56747 REPL-y 0.3.1 Clojure 1.6.0 Docs: (doc function-name-here) (find-doc part-of-name-here) Source: (source

Re: buggy case macro

2014-07-04 Thread Sean Corfield
The bug is not in `case` but is a result of calling `with-symbol-macros` on it. Normally `case` expands to use a `sorted-map` for the lookup of case values when you have a compact set of test values (as opposed to a sparse set). You can see that here: user= (macroexpand '(case \a (\0 \1 \2 \3

[ANN] clojure.java.jdbc 0.3.4

2014-06-30 Thread Sean Corfield
/java.jdbc 0.3.4] Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good. -- Gustave Flaubert, French realist novelist (1821-1880) signature.asc Description: Message signed with OpenPGP using GPGMail

Re: [Request for Feedback] Clojure Lab: IDE for Clojure in Clojure

2014-06-27 Thread Sean Corfield
Nice piece of work - especially for a school project at any level! Impressive! Sean On Jun 27, 2014, at 8:00 AM, juan.facorro juan.faco...@gmail.com wrote: Hello Clojurians! I wanted to share with you a project called Clojure Lab, an IDE for Clojure in Clojure.

Re: [Request for Feedback] Clojure Lab: IDE for Clojure in Clojure

2014-06-27 Thread Sean Corfield
I've been on Java 8 on my development Mac for ages. The only thing holding us back from going to Java 8 in production is New Relic don't yet support it... We upgraded our entire stack to Java 7 back in October and I thought we were late since Java 6 had been EOL'd for so long :) Sean On Jun

Re: Clojure: Clojure.contrib.sql: How do I update ALL the rows of a database table?

2014-06-26 Thread Sean Corfield
Clojure Contrib libraries are all deprecated and very out of date. For clojure.contrib.sql, you'll want to use clojure.java.jdbc instead. Complete (community-maintained) documentation can be found here: http://clojure-doc.org/articles/ecosystem/java_jdbc/home.html Reference documentation can

Re: Clojure: Clojure.contrib.sql: How do I update ALL the rows of a database table?

2014-06-26 Thread Sean Corfield
/community/Where+Did+Clojure.Contrib+Go which, amongst other things, says: clojure.contrib.sql • Migrated to clojure.java.jdbc What wording would you suggest we add to either/both of these pages? Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection

Re: Leiningen 2.4.2 upgrade causing problems

2014-06-18 Thread Sean Corfield
at 11:05 AM, Sean Corfield s...@corfield.org wrote: works for me... Leiningen 2.4.2; Java build 1.8.0_05-b13; OS X 10.8.5 - lein help new works fine outside of a project and also inside the context of a project that depends on Clojure 1.6.0. Are you running lein inside a project or outside

Re: Leiningen 2.4.2 upgrade causing problems

2014-06-17 Thread Sean Corfield
works for me... Leiningen 2.4.2; Java build 1.8.0_05-b13; OS X 10.8.5 - lein help new works fine outside of a project and also inside the context of a project that depends on Clojure 1.6.0. Are you running lein inside a project or outside? What do you have in your profiles.clj file? Sean On

Re: How to unit test (defn-) functions?

2014-06-12 Thread Sean Corfield
On Thu, Jun 12, 2014 at 7:33 AM, Timothy Baldridge tbaldri...@gmail.com wrote: I say this too many times on this list, but I'll say it again. The best way to test defn- functions is to never use defn- in the first place. Instead move implementation functions into an internal namespace that way

Instaparse - thank you!

2014-06-10 Thread Sean Corfield
a working proof of concept up on QA today - Instaparse is an amazing tool! Sean Corfield -- http://clojurebridge.org ClojureBridge aims to increase diversity within the Clojure community by offering free, beginner-friendly Clojure programming workshops for women. signature.asc Description

Re: A drawback of the less-parentheses approach

2014-06-09 Thread Sean Corfield
On Jun 9, 2014, at 7:07 PM, Taegyoon Kim stelofl...@gmail.com wrote: And you can't do this: user= (let [x 1 (comment y 2)] x) You can, however, do this: user= (let [x 1 #_(y 2)] x) and this: user= (let [x 1 #_y #_2] x) Sean Corfield -- (904) 302-SEAN An Architect's View -- http

Re: Top-down code in namspaces

2014-06-02 Thread Sean Corfield
in the file's ns either. Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good. -- Gustave Flaubert, French realist novelist (1821-1880) signature.asc Description: Message signed with OpenPGP using GPGMail

Re: help with the lawyers?

2014-05-31 Thread Sean Corfield
This might be a good place to start: http://dodcio.defense.gov/OpenSourceSoftwareFAQ.aspx and in particular this section: http://dodcio.defense.gov/OpenSourceSoftwareFAQ.aspx#OSS_Licenses and this section: http://dodcio.defense.gov/OpenSourceSoftwareFAQ.aspx#Using_OSS_in_DoD_systems Having

<    1   2   3   4   5   6   7   8   9   10   >