[ANN] boot-new 0.3.0 -- Templates for Boot!

2016-01-29 Thread Sean Corfield
-in Boot templates (app, default, task, template) generate Boot projects. Coming Soon? Generators: quickly add new pieces of code to existing projects! Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ "Perfection is the enemy of the good." -- Gustave Flaubert, Fren

Re: emacs Expectations Mode - can't make it work

2016-01-25 Thread Sean Corfield
it, C-c C-/ to run it, rinse, repeat). Sean -- 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 with your f

Re: lein: managing versions of common deps / soliciting assistance on PR review

2016-01-24 Thread Sean Corfield
hat invoke code based on them (including building JARs etc). Inside each EDN file, we indicate the fake versions like this: [[org.clojure/clojure "x.y.z"] [org.clojure/core.cache "x.y.z"] [org.clojure/core.memoize "x.y.z"] [org.clojure/data.codec "x.y.z"

Re: Clojure beyond Java 6 ?

2016-01-23 Thread Sean Corfield
with post-Java 6 language/JVM features — and that’s always been one of Clojure’s strengths: the core can run "anywhere" and the ecosystem/community provides libraries to fulfill everyone’s individual needs. Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/

Re: Clojure beyond Java 6 ?

2016-01-21 Thread Sean Corfield
why older versions of the JVM continue to be used. Just because you are not affected by JVM issues doesn’t mean that other people’s reasons for supporting older versions are invalid! Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ "If you're not annoying s

Re: Clojure beyond Java 6 ?

2016-01-21 Thread Sean Corfield
, although for the Java compiler itself to produce bytecode that fails the verifier is… concerning. I suspect Frege’s issues are more in the compiler than the JVM but I just wanted to offer a comparative data point for folks who are so quick to dismiss reasons for a company to want to stick with a

Re: Clojure beyond Java 6 ?

2016-01-21 Thread Sean Corfield
On 1/21/16, 11:55 AM, "Nicola Mometto" wrote: >Do you have a link where we can read about those issues? https://groups.google.com/d/msg/frege-programming-language/MQgmSduKb4M/yW9HvmBRAQAJ -- You received this message because you

Re: [ANN] Clojure 1.8.0 is now available

2016-01-19 Thread Sean Corfield
Awesome news! Is this identical to RC5? Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ "If you're not annoying somebody, you're not really alive." -- Margaret Atwood From: Clojure Mailing List <clojure@googlegroups.com> on behal

Re: [ANN] Clojure 1.8.0 is now available

2016-01-19 Thread Sean Corfield
Is this identical to RC5? Answered my own question by looking at the commits on GitHub: yes. Sean -- 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 n

Re: Clojure beyond Java 6 ?

2016-01-19 Thread Sean Corfield
re is also a lot of software that only supports current plus one version back). Bear in mind that there are many companies still running Windows XP because upgrading is such an expensive business (in time and effort, as well as any actual costs)! Sean Corfield -- (904) 302-SEAN An Archit

[ANN] Boot new -- templates for Boot

2016-01-19 Thread Sean Corfield
that add pieces to existing projects and whatever else the Boot community wants! Thanks? Huge thanks to the Leiningen team who agreed to me borrowing leiningen.new / leiningen.new.templates. Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org -- You received

Re: [ANN] New clojure.org!

2016-01-14 Thread Sean Corfield
Very nice! Also good to see a number of Pull Requests already and some discussion in Issues as well! Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ "If you're not annoying somebody, you're not really alive." -- Margaret Atwood From: Clojure Mailing Lis

Re: Why do map/get and similar return nil if not found?

2016-01-12 Thread Sean Corfield
eep in your call chain and then you still need :no-check annotations (or, worse, have to refactor perfectly idiomatic code to something that satisfies the type checker). **That 10,000 lines also includes a lot of code that tests our REST APIs which are built with a mix of Clojure and non-Clojur

Boot running on Windows (was: [ANN] modern-cljs - 17th tutorial - REPLing with Enlive

2015-12-31 Thread Sean Corfield
know that’s a common sticking point with some tooling on Windows). I do not have a Windows 7 VM to test things on. And, yes, I am a bit of a masochist for having an Emacs / Leiningen / Clojure environment on Windows XP :) Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org

[ANN] CongoMongo 0.4.7 released

2015-12-28 Thread Sean Corfield
What? A Clojure wrapper for MongoDB Where? https://github.com/aboekhoff/congomongo/ Why? Version 0.4.7 – updates Java driver to 2.14.0; tested against MongoDB 3.0 (for the first time). This is intended to help folks migrate to the 3.0 database. We’re still evaluating the 3.0 driver. Sean

Re: [ClojureScript] Re: [ANN] modern-cljs - 17th tutorial - REPLing with Enlive

2015-12-27 Thread Sean Corfield
, Leiningen also treated Windows as a bit of a second-class citizen (the packaged installer made it much better, since you no longer need a third-party curl/wget installed just to use the Leiningen .bat script). Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ "If y

Re: [ClojureScript] Re: [ANN] modern-cljs - 17th tutorial - REPLing with Enlive

2015-12-25 Thread Sean Corfield
complete on dev/QA today). Sean -- 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 with your first post. To u

Re: [ANN] Boot 2.5

2015-12-18 Thread Sean Corfield
and helpful the community is (in the #boot channel on the Clojurians Slack), and how (relatively) easy it is to extend Boot to perform new tasks! Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ "Perfection is the enemy of the good." -- Gustave Flaubert, Fren

[ANN] boot-expectations: run Expectations tests via Boot

2015-12-18 Thread Sean Corfield
pectations with Boot was a prerequisite and a first step! 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: [ANN] boot-expectations: run Expectations tests via Boot

2015-12-18 Thread Sean Corfield
boot-expectations 1.0.0 is available! What? A Boot task to run Expectations tests. Where? https://github.com/seancorfield/boot-expectations Thanks to: Alan Dipert and Micha Niskin for their help and patience as I learned enough of Boot 2.5 to write this! What’s next? Task options to filter /

Re: [ANN] Clojure 1.8.0-RC3

2015-12-10 Thread Sean Corfield
after the holidays so we won’t get direct linking and 1.8.0-RC3 into production until January (by which time I expect 1.8.0 Gold will be available?). Sean -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email

Re: [ANN] Clojure 1.8.0-RC3

2015-12-07 Thread Sean Corfield
. That used the default setting regards direct linking (so, just clojure.core). Sean Corfield -- (904) 302-SEAN World Singles -- http://worldsingles.com/ From: <clojure@googlegroups.com> on behalf of Alex Miller <a...@puredanger.com> Reply-To: <clojure@googlegroups.com> Date: Monday

Re: [ANN] Clojure 1.8.0-RC3

2015-12-07 Thread Sean Grove
It's not super compelling for us (we can upgrade with some work), but we've run into an issue with [org.clojure/clojure-contrib "1.2.0"] when requiring clojure.contrib.math: Exception in thread "main" java.lang.RuntimeException: Unable to resolve symbol: remainder in this context,

Re: Practical ways to deal with 'bag-of-properties' syndrome, AKA dynamic typing?

2015-11-30 Thread Sean Corfield
://github.com/Frege/frege-lein-template if you want to try Haskell (Frege) inside your Clojure app! Sean -- 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 n

Re: San Francisco Meetup at Climate Corp still active?

2015-11-29 Thread Sean Corfield
know what the current status of the meetups is, I’m afraid. Sean -- 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 patie

Re: Largest Clojure codebases?

2015-11-23 Thread Sean Corfield
ortable asserting that a) you do not need objects to make large-scale codebases legible and maintainable and b) an object-based codebase is likely to be larger than the equivalent functional codebase (and a smaller codebase is more legible and maintainable anyway). Sean Corfield -- (904)

Re: JDBC Rollbacks and Exceptions

2015-11-13 Thread Sean Corfield
, what you’re trying to do just isn’t valid without using a separate transaction (or a transaction-less db-spec) for the query. I’d also strongly recommend not use dynamic global variables like that (java.jdbc moved away from that sort of API a long time ago because of the problems it causes). Sean

Re: [ANN] Clojure 1.8.0-RC1 is now available

2015-11-12 Thread Sean Corfield
this would break: (ns foo (:import my.Klass)) (defn foo ^Klass [] (Klass.)) (ns bar (:require foo)) (.method (foo/foo)) Ah, thank you for the explanation! I’d run into that and couldn’t really understand why it was failing! Sean -- You received this message because you are subscribed to the Google

Re: clojure.java.jdbc prepared select statement

2015-11-09 Thread Sean Corfield
be very dependent on your database, your configuration, your driver, and your particular query. Unfortunately. Sean -- 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 post

Re: clojure.java.jdbc prepared select statement

2015-11-09 Thread Sean Corfield
Requests to improve the community-maintained documentation here: http://clojure-doc.org/articles/ecosystem/java_jdbc/home.html Sean (j/with-db-connection [c datasource] (let [ps (j/prepare-statement (j/get-connection c

Re: [ANN][Book] Clojure for the Brave and True published, web site updated

2015-11-03 Thread Sean Corfield
more concurrency than ref-set. That seems to indicate that fun will be called twice: once to set the in-transaction-value of the ref and a second time at the commit point. Or am I misreading the docstring? Sean -- You received this message because you are subscribed to the Google Gr

Re: Right behavior of core/bean

2015-11-02 Thread Sean Corfield
] (seq (bean "test"))) [[:bytes #object["[B" 0x15cb34dd "[B@15cb34dd"]] [:class java.lang.String] [:empty false]] Whether that is "correct" or not, I’ll leave to Clojure/core to comment… Sean -- You received this message because you are subscribed to

Re: is there a community "best practice" for including your co-workers libraries?

2015-11-02 Thread Sean Corfield
Dave Tenny wrote on Monday, November 2, 2015 at 3:59 PM: I'm slightly confused, is there some reason Clojars doesn't work for sharing libraries in this context? Because it’s public and sharing your companies libraries with the world might be frowned upon…? Sean -- You received this message

Re: JDBC Rollbacks and Exceptions

2015-10-30 Thread Sean Corfield
Could you provide a bit more context? We’re using clojure.java.jdbc very heavily in production and we don’t see any problems with exceptions. Sean Andy Chambers wrote on Friday, October 30, 2015 at 3:52 PM: Has anyone found a way to "reset" a connection after a rollback? It seems

Re: is there a community "best practice" for including your co-workers libraries?

2015-10-16 Thread Sean Corfield
We use Apache Archiva to run a Maven-like repo on an internal server for this sort of scenario (then you specify that repo endpoint in project.clj for Leiningen to see). Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ "If you're not annoying somebody, y

Re: recombining results from clojure.data/diff

2015-10-15 Thread Sean Johnson
to get > back to a? > > Merge them: (def a {:a 1 :b 2}) (def b {:b 2 :c 3}) (let [[only-a only-b both] (clojure.data/diff a b)] (println "original a:" a " is the same as " (merge only-a both)) (println "original b:" b " is the same as " (merge only-b bo

Re: How to do functional programming

2015-10-09 Thread Sean Corfield
nd I was still an Eclipse user back then — although I’d also used a number of dynamically typed scripting languages and advanced code editors (rather than IDEs) so I knew there was a world of lightweight freedom out there :) If I hadn’t switched to Clojure in 2011, I’d probably still enjoy doi

Re: How to do functional programming

2015-10-08 Thread Sean Corfield
starts out with Standard ML to teach you about statically typed FP, then it moves on to Racket to teach you about dynamically typed FP, then it wraps up with Ruby to look at how dynamically typed OOP contrasts with the two FP approaches. Sean > >> On 8 Oct 2015, at 21:00, Sean

Re: How to do functional programming

2015-10-08 Thread Sean Corfield
course several years ago and I’ve taken it twice since as a Community TA — that’s how much I like that course! :) It is switching from scheduled to on-demand so it won’t be available for a while yet, but then folks will be able to take it whenever they want, at their own speed. Sean -- You

Re: Clojure Dev Environment

2015-10-05 Thread Sean Corfield
xplaining the "feel" of this? I don’t know, sorry. Sean -- 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

Re: Library suggestions requested for clojure-toolbox.com

2015-10-05 Thread Sean Grove
Talaria https://github.com/dwwoelfel/talaria [client/server messaging] "Messaging library for real-time client/server communication over websockets with fallback to ajax long-polling" On Mon, Oct 5, 2015 at 4:35 PM, Jony Hudson wrote: > Not exactly a library, but Gorilla

Re: cond->: Using of threading expression in tests?

2015-10-04 Thread Sean Corfield
So am I! Sean, can you share code for condp->> too, please. Oh, sorry, I thought it was obvious from condp-> since the only difference is that it uses ->> instead of -> in one place: (defmacro condp->> "Takes an expression and a set of predicate/form pairs. Thr

Re: cond->: Using of threading expression in tests?

2015-10-02 Thread Sean Corfield
pstep (partition 2 clauses)))] ~g))) So (condp-> {:x 1} #(= (:x %) 1) (assoc :x 2)) produces {:x 2} as desired. We have a condp->> version as well. Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ "If you're not annoying somebody, you're not real

Re: can I use varargs in a multimethod?

2015-09-30 Thread Sean Corfield
intent this-users-conversation "Opportunity" "Name") "I got nil plus ({} \"Opportunity\" \"Name\")" user> (intent {:intent "do-something"} "Opportunity" "Name") "WAT? ({:intent \"do-something\"} \&qu

Re: How can find something inside heavily nested data structure ?

2015-09-18 Thread Sean Duckett
If you're using emacs with cider, you might try `cider-repl-clear-buffer`. This has saved my emacs session in situations where I accidentally print a large XML structure. --smd. On 08/20, Dave Tenny wrote: > I'm still in search of tools that let me get a good sense of *what* to > navigate when

[ANN] clojure.java.jdbc 0.4.2 released

2015-09-16 Thread Sean Corfield
and clarify docstrings to improve debugging driver-specific restrictions on SQL. 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 b

Re: Using metadata to specify how calls to a macro should be indented

2015-09-13 Thread Sean Grove
I also love this idea - the more info we give to tools to provide a uniform formatting, the less I have to worry about configuring my local editor to match the project styles. On Sun, Sep 13, 2015 at 3:15 AM, Colin Yates wrote: > My knee-jerk reaction is: > - +10 > -

Re: Why (memoize (fn [_#] (gensym "node")) in rhizome?

2015-09-11 Thread Sean Corfield
es with the same argument, you get back the same string each time: (def f (memoize (fn [_#] (gensym "node" #'user/f user> (f 1) node18056 user> (f 1) node18056 user> (f 2) node18061 user> (f 2) node18061 user> (f 3) node18066 Sean -- You received this message b

[ANN] clojure.tools.cli 0.3.3

2015-08-24 Thread Sean Corfield
-L136 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 group. To post to this group, send

Re: [ANN] Clojure 1.8.0-alpha3

2015-08-24 Thread Sean Corfield
Just to keep everyone informed, we’ve now had enough time back on Clojure 1.7.0 to rule out 1.8.0 as the source of our very slow memory leak. Now we have the fun task of figuring out exactly what has introduced it :) Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org

Re: Unable to write GPL software with clojure?

2015-08-20 Thread Sean Corfield
of any/all Clojure libraries used? [I believe it’s reasonable to say this — I just wanted to check this was your intent] 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: Unable to write GPL software with clojure?

2015-08-18 Thread Sean Corfield
many companies will not use GPL software: it taints everything it touches and requires the whole thing to be GPL. Proponents of GPL will argue a different position (so, be careful, this is almost a religious issue on both sides). Sean Corfield -- (904) 302-SEAN An Architect's View -- http

Re: Unable to write GPL software with clojure?

2015-08-18 Thread Sean Corfield
spread into more companies. (caveat: IANAL but I’ve been through OSS license audits at companies that are large enough to care deeply about this sort of stuff — unfortunately) Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ If you're not annoying somebody, you're

Re: [ANN] Clojure 1.8.0-alpha3

2015-08-17 Thread Sean Corfield
can isolate the leak as coming from our code vs your code), we’ll put one server back on 1.8.0 Alpha 4 and see if we can identify what is actually leaking. Sean Corfield -- (904) 302-SEAN World Singles -- http://worldsingles.com/ -- You received this message because you are subscribed

Re: [ANN] Clojure 1.8.0-alpha3

2015-08-12 Thread Sean Corfield
next production build was based on alpha4 and we have not seen that same memory curve (in a slightly longer period). I looked over the alpha3 / alpha4 change logs and didn’t see anything specific about memory leaks (that would be new in alpha2 compared to 1.7.0 final). Sean Corfield -- (904) 302

Re: 0.1.0 core.async release?

2015-08-08 Thread Sean Corfield
easier to work with than Maven (since I don’t run Eclipse or IntelliJ). Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ If you're not annoying somebody, you're not really alive. -- Margaret Atwood From: clojure@googlegroups.com on behalf of Laurent PETIT Reply

Re: 0.1.0 core.async release?

2015-08-08 Thread Sean Corfield
would support Leiningen fully and use it for the build system and for Sonatype / Maven Central deployments so we didn’t need pom.xml at all. Sean -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure

Re: 0.1.0 core.async release?

2015-08-08 Thread Sean Corfield
/java.jdbc/blob/master/project.clj#L1-L3 And: https://github.com/clojure/java.jdbc/blob/master/project.clj#L15-L19 Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ If you're not annoying somebody, you're not really alive. -- Margaret Atwood -- You received this message

Re: 0.1.0 core.async release?

2015-08-07 Thread Sean Corfield
in sync). Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ If you're not annoying somebody, you're not really alive. -- Margaret Atwood From: clojure@googlegroups.com on behalf of Daniel Compton Reply-To: clojure@googlegroups.com Date: Friday, August 7, 2015 at 3

Re: New version of core.async?

2015-08-07 Thread Sean Johnson
Alex, +1 Glad to hear you're going to get a new core.async out. That's huge. In particular the old tools.analyzer.jvm dependency seems to be causing lots of problems using core.async in bigger projects that use other macro powered libraries. Cheers, Sean On Thursday, August 6, 2015 at 7:43

clj-soap (was: Beginner question

2015-07-30 Thread Sean Corfield
On Jul 29, 2015, at 7:47 PM, Mike m...@thefrederickhome.name wrote: I have done some searching, and there is an old clj-soap library which Sean Corfield has mostly abandoned. Just to clarify: I too had started down the path of trying to find a way to do SOAP via Clojure and came across

Re: [ANN] Clojure 1.8.0-alpha3

2015-07-29 Thread Sean Corfield
-checked — which is breaking my code? (we’re continuing to run tests on Alpha 3 but this is what we tripped over immediately) Sean On Jul 29, 2015, at 4:55 PM, Rangel Spasov raspa...@gmail.com wrote: Hey guys, I'm getting this compiler error after upgrading to alpha3, I assume it has

[ANN] clojure.tools.cli 0.3.2 (was: Next release for clojure.tools.cli? Is it dead?

2015-07-28 Thread Sean Corfield
option; A warning is displayed when unknown options are encountered. 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) On Jul 23, 2015, at 9:33 PM, Keith Irwin ke

[ANN] clojure.java.jdbc 0.4.1

2015-07-27 Thread Sean Corfield
. (if anyone wonders why 0.4.0 and 0.4.1 are the same release, it was finger trouble while trying to run the Maven Release Build on the Clojure build server… sorry!) Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good. -- Gustave Flaubert

Re: Java 8 Lambda Interop

2015-07-27 Thread Sean Corfield
. Besides, your example sounds like something Clojure can already do natively and much more cleanly. Can you perhaps give us more detailed motivation for what you’re trying to achieve? Perhaps there’s a cleaner way altogether…? Sean On Jul 27, 2015, at 6:53 PM, Andrew Oberstar ajobers

Potemkin loading issue solved (was: Clojure 1.8.0-alpha2

2015-07-20 Thread Sean Corfield
projects!). That dated back to when we still had to add JARs to the lib folder due to the way our old Clojure loader used to work — now we load everything dynamically based on `lein classpath`. So, sorry for the noise :( Sean On Sunday, July 19, 2015 at 5:02:13 PM UTC-7, Sean Corfield wrote

Re: [ANN] Clojure 1.8.0-alpha2

2015-07-20 Thread Sean Corfield
it into production soon. Sean On Jul 19, 2015, at 4:47 PM, Sean Corfield s...@corfield.org wrote: On Jul 18, 2015, at 10:33 PM, Sean Corfield s...@corfield.org wrote: Wow, that's a fast timeline. Thank you. We'll upgrade to Alpha 2 this week. We may go to production with it fairly quickly

Re: [ANN] Clojure 1.8.0-alpha2

2015-07-19 Thread Sean Corfield
mailto:blume.m...@gmail.com wrote: Sean, I think that was identified as a bug in Potemkin. The pull was merged but I'm not sure if there's been a release since. Zack? https://github.com/ztellman/potemkin/pull/40 https://github.com/ztellman/potemkin/pull/40 http://dev.clojure.org/jira/browse/CLJ

Re: [ANN] Clojure 1.8.0-alpha2

2015-07-19 Thread Sean Corfield
On Jul 18, 2015, at 10:33 PM, Sean Corfield s...@corfield.org wrote: Wow, that's a fast timeline. Thank you. We'll upgrade to Alpha 2 this week. We may go to production with it fairly quickly. Switched out 1.7.0 for 1.8.0-alpha2 and got the exception below. Posting here in case anyone knows

Re: [ANN] Clojure 1.8.0-alpha2

2015-07-18 Thread Sean Corfield
Wow, that's a fast timeline. Thank you. We'll upgrade to Alpha 2 this week. We may go to production with it fairly quickly. Sean On Sat, Jul 18, 2015 at 6:11 AM, Alex Miller a...@puredanger.com wrote: Clojure 1.8.0-alpha1 and 1.8.0-alpha2 are now available. Try it via - Download: https

Re: Advice on introducing a Java dev to Clojure

2015-07-09 Thread Sean Corfield
to earlier) 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 group. To post to this group

Re: Advice on introducing a Java dev to Clojure

2015-07-09 Thread Sean Corfield
provide an on-ramp. https://pragprog.com/book/mbfpp/functional-programming-patterns-in-scala-and-clojure — Highly recommended! Sean 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: [ANN] Nginx-Clojure v0.4.0 Release!

2015-07-06 Thread Sean Johnson
1.9.2 with the Nginx-Clojure module (see http://nginx-clojure.github.io/installation.html) and it works fine. Cheers, Sean On Sunday, July 5, 2015 at 4:16:49 PM UTC-4, Xfeep wrote: 0.4.0 (2015-07-06) 1. New Feature: Service Side Websocket (issue #73) 2. New Feature: A build

Re: Joda Time version conflict? Initializing JollyDayHoliday for SUTime

2015-07-06 Thread Sean Corfield
that Joda is, in fact, the problem? That’s what lein deps :tree is for — to tell you about conflicts and how to eliminate them. 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: Joda Time version conflict? Initializing JollyDayHoliday for SUTime

2015-06-29 Thread Sean Corfield
version of clj-time (and, hence, the Joda Time 2.6) but clj-time 0.6.0 is pulling in 2.2 (next set of suggested exclusions). The suggestion is to add the exclusions to your Ring dependency: [ring 1.4.0-RC1 :exclusions [clj-time joda-time]] See if that helps. Sean On Jun 29, 2015, at 5

Re: Basic question: what's the difference between require as and use as?

2015-06-22 Thread Sean Corfield
]) is equivalent to (:require [clojure.java.io :as io :refer :all]) so it refers in all of the symbols from that namespace directly into your namespace (i.e., they can be referenced even without the io/ prefix). Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org

Re: Basic question: what's the difference between require as and use as?

2015-06-22 Thread Sean Corfield
. There’s not much point in specifying an alias (with :as) for :use or :require :refer :all since those bring in every symbol directly anyway. Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good. -- Gustave Flaubert, French realist

Re: Basic question: what's the difference between require as and use as?

2015-06-22 Thread Sean Corfield
On Jun 22, 2015, at 2:22 PM, Ritchie Cai ritchie...@gmail.com wrote: You mean (:use [clojure.java.io]) is equivalent to (:require [clojure.java.io :as io :refer :all])? Not quite, (:use [clojure.java.io]) is equivalent to (:require [clojure.java.io :refer :all]) Sean Corfield -- (904) 302

Re: Using core.match in tests?

2015-06-21 Thread Sean Corfield
How about this: (defmacro matches [value pattern] `(is (match ~value ~pattern true :else false) (str (match ~value '~pattern (let [a {:x 2}] (matches a {:y _})) ; = FAIL ; = (match {:x 2} {:y _}) ; = expected: (clojure.core.match/match a {:y

Re: breaking homoiconicity?

2015-06-20 Thread Sean Corfield
On Jun 20, 2015, at 3:58 AM, Joe Corneli holtzerman...@gmail.com wrote: On Saturday, June 20, 2015 at 4:15:30 AM UTC+1, Sean Corfield wrote: (.getTypeName (Class/forName [Ljava.lang.String;)) ;;= java.lang.String[] — that is more readable! Thanks, that's helpful for me

Re: breaking homoiconicity?

2015-06-19 Thread Sean Corfield
of the class, as above. and you can see what it really is like this: (.getTypeName (Class/forName [Ljava.lang.String;)) ;;= java.lang.String[] — that is more readable! Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good

Re: Where should 'if-let-all' macro go?

2015-06-09 Thread Sean Corfield
` expressions have access to the (truthy) values of `a`? There are arguments in favor of (and against) each position and thus no clear consensus on what to choose. Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good. -- Gustave Flaubert

Re: Help with data structure transformation

2015-06-05 Thread Sean Corfield
Page 84 is where it shows that maps are a sequence of pairs. The destructuring in James's code is on vectors -- the pairs in the sequence. Hope that helps? Sean On Fri, Jun 5, 2015 at 8:11 PM, gvim gvi...@gmail.com wrote: Yes, I'm fine with the concept. Just can't remember coming across

Re: Help with data structure transformation

2015-06-05 Thread Sean Corfield
It’s because if you treat a hash map as a sequence — as `for` does — you get a sequence of pairs (key/value — map entries): (seq {:a 1 :b 2}) ;;= ([:a 1] [:b 2]) Does that help? Sean On Jun 5, 2015, at 7:41 PM, gvim gvi...@gmail.com wrote: I must re-read Clojure

Re: namespace :as vs :require

2015-06-05 Thread Sean Corfield
. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Singles, LLC. -- http

Re: [ANN] Clojure 1.7.0-RC1 now available

2015-06-04 Thread Sean Corfield
On Jun 4, 2015, at 2:51 PM, Luc Prefontaine lprefonta...@softaddicts.ca wrote: Still 3 months away from production beta. I get twitchy if we go more than two weeks between production builds — but then it’s the web :) Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org

Re: [ANN] Clojure 1.7.0-RC1 now available

2015-06-04 Thread Sean Corfield
by conversion thread — a big simplification over how we’d done it before). Sean On May 21, 2015, at 9:30 AM, Alex Miller a...@puredanger.com wrote: Clojure 1.7.0-RC1 is now available. Try it via - Download: https://repo1.maven.org/maven2/org/clojure/clojure/1.7.0-RC1/ https://repo1

Re: (slurp nil)

2015-06-02 Thread Sean Corfield
string operations on it, many of which fail when given nil. I would expect passing nil to slurp to be an exceptional situation that you’d either want to explicitly check for beyond hand or handle via try/catch after the fact. Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org

Re: Clojure.data.xml fails when element size reached 33 symbols.

2015-06-01 Thread Sean Corfield
or connection closed errors if you let a lazy sequence escape the open/close logic in your code, since it gets closed after just the first chunk. Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good. -- Gustave Flaubert, French realist

Re: Relational mapping - turning an sql query result into array of hashes (with joins)

2015-05-25 Thread Sean Corfield
worked with a lot of ORMs — and written several of my own — over the last couple of decades and these days I just avoid them. Sean On May 24, 2015, at 3:10 AM, Krzysiek Herod krzysiek.he...@gmail.com wrote: It seems to me that it's a problem that sooner or later appears in any project using

Re: Relational mapping - turning an sql query result into array of hashes (with joins)

2015-05-25 Thread Sean Corfield
On May 25, 2015, at 3:19 PM, Sam Roberton sam.rober...@gmail.com wrote: On Tuesday, 26 May 2015 06:43:18 UTC+10, Krzysiek Herod wrote: Sean, maybe my use case is specific to web applications. In REST API's it's common to respond with something like Example Result here: https

Re: separation of concerns w/o encapsulation

2015-05-14 Thread Sean Corfield
— and leave them all public. That creates a much more reusable, extensible code base. IMO (now — I didn’t think that way five years ago). 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

Re: separation of concerns w/o encapsulation

2015-05-14 Thread Sean Corfield
implementations. A def of immutable data tends to be public too. It’s rare that I feel the need to make things private since immutability means no one can abuse my data or my functions. Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy

Re: separation of concerns w/o encapsulation

2015-05-14 Thread Sean Corfield
and building software for internal use by your own team or other peer teams in your division. 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: load a namespace at repl?

2015-05-12 Thread Sean Corfield
the namespace. Depending on exactly what you want to do, you may want: (require '[overtone.studio.inst :refer :all]) which will load the namespace and import all of its symbols into the user namespace. -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Singles

Re: ANN: ClojureScript 0.0-3255 - pretty printer latest Closure Compiler / Library

2015-05-09 Thread Sean Corfield
to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Singles, LLC. -- http://worldsingles.com/ Perfection is the enemy of the good. -- Gustave Flaubert

Re: clojure.java.jdbc bug?

2015-05-08 Thread Sean Corfield
seriously. Sean On May 7, 2015, at 11:03 PM, Alain Picard al...@gocatch.com wrote: This would be easy if the current connection was known to be held in a special variable, say, *database*. :-) I will fix for my special case in my own code base, but this not seem to me to be a correct

Re: JDK8

2015-05-07 Thread Sean Corfield
(unless a new version appears in the next day or two). We need to schedule an upgrade to 1.8.0_45 for the JDK I guess. 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: clojure.java.jdbc bug?

2015-05-07 Thread Sean Corfield
://groups.google.com/forum/#!forum/clojure-java-jdbc (which I just realized isn’t linked from either the community docs or from Github… I’ll get that fixed this weekend!) Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good. -- Gustave Flaubert, French

Re: clojure.java.jdbc bug?

2015-05-07 Thread Sean Corfield
/clojure/java.jdbc/#developer-information Regards, Sean On May 7, 2015, at 6:44 PM, Alain Picard al...@gocatch.com wrote: Dear fellow clojurians, The following behaviour seems (to me) rather odd. This succeeds: gocatch.job.job (clojure.java.jdbc/query *database* [select * from Job

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