Re: cond- variant?

2014-02-12 Thread Sean Corfield
it isn't really a variant of cond- but between that and the source of cond- I suspect I will just end up rolling my own... 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: cond- variant?

2014-02-12 Thread Sean Corfield
] (assert (even? (count clauses))) (let [g (gensym) pstep (fn [[pred step]] `(if (~pred ~g) (- ~g ~step) ~g))] `(let [~g ~expr ~@(interleave (repeat g) (map pstep (partition 2 clauses)))] ~g))) On Feb 12, 2014, at 2:34 PM, Sean Corfield s...@corfield.org wrote

cond- variant?

2014-02-11 Thread sean
screams for something like: (condp- accounts empty? (conj “stuff”)) Then you could thread the predicates: (condp- a p1 (f1 args) p2 (f2 args)) which would be: (let [x (if (p1 a) (f1 a args) a)] (if (p2 x) (f2 x args) x)) Suggestions? Sean Corfield -- (904) 302-SEAN

Re: unconditional append to end

2014-02-10 Thread Sean Corfield
... Sean On Feb 9, 2014, at 8:45 PM, Alan Thompson thompson2...@gmail.com wrote: Holy cow! Where have these been hiding! They don't show up on ClojureDocs.org at all!!! I was about to write my own macro vmap to implement (vec (map(...)) for just the use cases outlined above. I just

Re: Handy clojure function to transform prepared statement queries

2014-02-09 Thread Sean Corfield
As maintainer of java.jdbc I'd say this is a more appropriate feature for a DSL library like SQLingvo or HoneySQL (which may already support something like this - I haven't checked). Sean On Sun, Feb 9, 2014 at 12:40 PM, Jan Herich jan.her...@gmail.com wrote: Hello folks, In the last days, i

Re: map semantics

2014-02-08 Thread Sean Corfield
On Feb 8, 2014, at 7:59 AM, Andy C andy.coolw...@gmail.com wrote: Your assertion that I am misunderstanding something is wrong. Now that you've seen everyone else's responses, perhaps you understand my assertion was correct? :) Sean Corfield -- (904) 302-SEAN An Architect's View -- http

[ANN] Framework One for Clojure 0.2.4 released (MVC mini-framework for web apps)

2014-02-07 Thread Sean Corfield
• Added verb support to routes • Ensure UTF-8 output • Add :middleware support • Fix JSON MIME type • Update dependencies The simplest way to get up and running: lein new fw1 myapp cd myapp PORT= lein run Sean Corfield -- (904) 302-SEAN

Re: map semantics

2014-02-07 Thread Sean Corfield
operations, and that's its choice. But it's not how Clojure is defined - Clojure operates on abstractions above the concrete types. Sean On Fri, Feb 7, 2014 at 10:43 PM, Andy C andy.coolw...@gmail.com wrote: Following your intuition, what would you expect from the following? (map + [1 3 5] '(2 4 6

Re: range-sum

2014-02-06 Thread Sean Corfield
) for arbitrary series of data values. 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: Lessons Learned from Adopting Clojure

2014-02-06 Thread Sean Corfield
On Feb 6, 2014, at 4:49 AM, Jay Fields j...@jayfields.com wrote: I'm glad it works well for you Sean; hopefully your team is just as happy. =) Yup, they love Expectations. Whenever we have to work on our WebDriver tests we always grumble because they are much more imperative and side-effecty

Re: Lessons Learned from Adopting Clojure

2014-02-05 Thread Sean Corfield
the benefit of the REPL and fast feedback without needing a separate REPL buffer. 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: Lessons Learned from Adopting Clojure

2014-02-05 Thread Sean Corfield
FWIW, I find the language of Expectations to be much better suited to describing the desired behaviors of a system I want to build than the assertion-based language of clojure.test - so for me it's about test-before, not test-after. Sean On Wed, Feb 5, 2014 at 2:52 PM, Jay Fields j

Re: Lessons Learned from Adopting Clojure

2014-02-05 Thread Sean Corfield
that way. The objection was voiced (about LightTable) that it's not a natural REPL-based workflow to have code in a source file and send it to be evaluated. -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Singles, LLC. -- http://worldsingles.com/ Perfection

Re: Lessons Learned from Adopting Clojure

2014-02-04 Thread Sean Corfield
expectations to clarify how to design APIs in the small (and APIs in the large as needed), but most of the red-green-refactor loop of TDD/BDD now comes from the REPL experiments for me. Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good

Re: Why do I get stackoverflow error?

2014-02-04 Thread Sean Corfield
a vector back. Sean On Feb 4, 2014, at 2:39 AM, Andy Smith the4thamig...@googlemail.com wrote: Ok thanks, thats really helpful. The second link suggests using doall, which seems to do the trick : ((fn pascal ([n] (pascal n [1M])) ([n row] (if (= n 1) row (recur (dec n) (map (partial reduce

Re: How to transform one data structure to another data structure?

2014-02-04 Thread Sean Grove
One way: user (reduce (fn [s [k v]] (merge-with concat s {k [v]})) {} [[:a 123] [:b 124] [:a 125] [:c 126] [:b 127] [:a 100]]) = {:c [126], :b (124 127), :a (123 125 100)} On

LightTable (for the Emacs guy) was: Lessons Learned from Adopting Clojure

2014-02-04 Thread Sean Corfield
editor (that works cross-platform) and can act as a live evaluation target for .cljs and .js files (and .css and .html and so on). I still keep Emacs open as my Git client and as my IRC client, but I don't edit anything with it. Sean Corfield -- (904) 302-SEAN An Architect's View -- http

Re: Lessons Learned from Adopting Clojure

2014-02-04 Thread Sean Corfield
before because it's so much easier to turn the experiments into code - or tests - in place. -- 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, French realist novelist

[ANN] clojure.java.jdbc 0.3.3 released

2014-01-31 Thread Sean Corfield
/value configuration from URI (Phil Hagelberg). 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: [ANN] clojure.java.jdbc 0.3.3 released

2014-01-31 Thread Sean Corfield
what you need As for documentation, as mynomoto said: http://clojure-doc.org/articles/ecosystem/java_jdbc/home.html which is community editable without requiring a CA etc! If anything is missing, you can open an issue https://github.com/clojuredocs/guides or submit a PR! -- Sean A Corfield

Re: soft question: should remote channels appear like local channels

2014-01-31 Thread Sean Corfield
over the wire), that's the same as any other consumer failing to take data from a channel that you supply. Sean On Fri, Jan 31, 2014 at 7:59 AM, Timothy Baldridge tbaldri...@gmail.com wrote: A quick thought...there really isn't much of a difference between a failing network connection and a (chan

When should I use non-blocking ! / threads and blocking !! / goroutines with clojure core.async

2014-01-30 Thread Sean Pietz
I'm writing a an ETL process to read event level data from a product database, transform / aggregate it and write to to an analytics data warehouse. I'm using clojure's core.async library to separate these process into concurrently executing components. Here's what the main part of my code

Re: soft question: should remote channels appear like local channels

2014-01-30 Thread sean
? Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org World Singles, LLC - http://worldsingles.com From: t x Sent: ‎Thursday‎, ‎January‎ ‎30‎, ‎2014 ‎9‎:‎43‎ ‎PM To: clojure@googlegroups.com Hi, With apologies for a soft question: This question is NOT: I'm

Re: A question for TDD practitioners

2014-01-29 Thread Sean Johnson
I'm a bit more TDD inclined than the average Clojurian (having come over most recently from Ruby/Rails) and I have to say speed is king in TDD. I agree that source maps are life savers when you need to debug an issue in browser, but I don't really see how they'd be all that useful in the

Re: core.typed

2014-01-28 Thread Sean Corfield
I can confirm that I can evaluate namespaces that use core.typed 0.2.26 inside LightTable - and run check-ns, which failed inside LightTable with 0.2.25! Sean On Jan 28, 2014, at 5:34 AM, Ambrose Bonnaire-Sergeant abonnaireserge...@gmail.com wrote: 0.2.26 contains a workaround by disabling

MODERATION? (was: Informatica Online Training By Highly Experienced Certified Trainers

2014-01-27 Thread Sean Corfield
SunitLabs has been spamming a lot of technical lists lately. Do we need a first post moderation policy in place for this group? That seems to stop spam in other groups I use ( moderate) although it does place more of a burden on moderators. Sean On Jan 27, 2014, at 1:29 AM, Sairam Shankar

Re: need help reading blob column from oracle

2014-01-27 Thread Sean Corfield
I would expect that you can extend one of the protocols to do this more easily? http://clojure-doc.org/articles/ecosystem/java_jdbc/using_sql.html#protocol-extensions-for-transforming-values Sean On Jan 27, 2014, at 12:08 AM, Niels van Klaveren niels.vanklave...@gmail.com wrote: For reading

Re: MODERATION? (was: Informatica Online Training By Highly Experienced Certified Trainers

2014-01-27 Thread Sean Corfield
Thanks for the clarification Andy. Maybe someone accidentally clicked the approve button instead of the spam button... Sean On Jan 27, 2014, at 12:03 PM, Andy Fingerhut andy.finger...@gmail.com wrote: There *is* a first post moderation policy in place for this group -- it has been in place

Re: Issues with the keyword :as aliasing

2014-01-26 Thread Sean Corfield
Your code works fine for me in the REPL. Can you provide a bit more detail about exactly how you are trying to execute your code? Sean On Jan 26, 2014, at 6:15 AM, Paul Smith paulaaronsmit...@gmail.com wrote: I am requiring clojure.java.io as such (ns sample-project.core (:require

Re: Clojure memory usage

2014-01-25 Thread Sean Corfield
collector in production would not support that. However, the G1 collector certainly evens out the sawtooth memory usage patterns you often see with the JVM (prior to G1 / Java 7) which makes for smoother response times etc. Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org

Re: [core.async] New put api

2014-01-25 Thread Sean Corfield
), and the callback will be dispatched with true since the put succeeded. Excellent! That's exactly what I _hoped_ the new semantics were and it clarifies for me what happens when you close a channel that has data pending (enqueued). Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org

Re: core.async over websocket + cljs + clojure

2014-01-25 Thread Sean Corfield
, multiple transports. 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: core.async over websocket + cljs + clojure

2014-01-23 Thread Sean Corfield
://www.infoq.com/presentations/pushy-data 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: Informatica Online Training By Experienced Trainers in Australia, USA, Canada

2014-01-23 Thread Sean Corfield
This company has been spamming various technical lists lately with this same generic promotion. Can a moderator please report them for spam and ban them? Thank you! Sean On Jan 23, 2014, at 2:04 AM, Online Training onlinetrainin...@gmail.com wrote: SunItLabs provides the best Software’s

Re: [core.async] New put api

2014-01-23 Thread Sean Corfield
not be called? Just trying to make sure I understand this properly. I think it's a good change (even tho' it breaks any code that uses put! and expects it to throw an exception). Sean On Jan 23, 2014, at 6:05 AM, Timothy Baldridge tbaldri...@gmail.com wrote: I'm looking for some feedback on recent

Re: core.async over websocket + cljs + clojure

2014-01-22 Thread Sean Corfield
that I plan to figure out and address. There are several others (including actually GC'ing closed channels on the other side of the address space divide). Sean On Jan 22, 2014, at 11:39 PM, t x txrev...@gmail.com wrote: Hi, I apologize for my vague question. Does anyone have a good

Re: Ragtime w/ Korma

2014-01-14 Thread Sean Corfield
to the Google Groups Clojure group. 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/groups/opt_out. -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org

Eastwood lint tools - some Qs

2014-01-13 Thread Sean Corfield (Clojure)
, if anything, can be done in the source of java.jdbc and/or congomongo to alleviate the problem? Thanx, 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

Re: Eastwood lint tools - some Qs

2014-01-13 Thread Sean Corfield
anyway). Sean On Jan 13, 2014, at 11:49 AM, Nicola Mometto brobro...@gmail.com wrote: Sean, it looks like the issue is caused by arglists like this one: https://github.com/clojure/java.jdbc/blob/master/src/main/clojure/clojure/java/jdbc.clj#L782-L783 tools.analyzer.jvm uses :arglists to detect

Re: Eastwood lint tools - some Qs

2014-01-13 Thread Sean Corfield
arglists-specific data to Eastwood which would also be a good place to add a way to exclude specific linters on a per-fn basis? It found three bugs in our code on the first run so I'm figuring out a way to integrate it into our build as an additional QA step now :) Sean Corfield -- (904) 302-SEAN

Re: Eastwood lint tools - some Qs

2014-01-13 Thread Sean Corfield
page (but they silently work). Perhaps if Eastwood finds invalid / suspicious metadata in :arglists, it could use a different linter warning? 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: Good learning resources for Clojure novice but with a long background i programming, both OO and some Fp?

2014-01-11 Thread Sean Corfield
edition coming: http://manning.com/rathore2/ 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: How can I improve this?

2014-01-10 Thread Sean Corfield
java.jdbc does this for column names (in joins): https://github.com/clojure/java.jdbc/blob/master/src/main/clojure/clojure/java/jdbc.clj#L257 Sean On Jan 10, 2014, at 6:59 AM, Colin Yates colin.ya...@gmail.com wrote: I have a sequence of file names and I want to make them unique. (uniquify

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

2014-01-10 Thread Sean Corfield
- but I had plenty of background in FP (albeit a bit rusty). 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

Re: How can I improve this?

2014-01-10 Thread Sean Corfield
): https://www.dropbox.com/s/sxccqvy9qgipzo8/Screenshot%202014-01-10%2016.18.55.png Sean On Jan 10, 2014, at 11:16 AM, Guru Devanla grd...@gmail.com wrote: Actually, you might have meant line 267? On Fri, Jan 10, 2014 at 11:03 AM, Sean Corfield s...@corfield.org wrote: java.jdbc does

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

2014-01-10 Thread Sean Corfield
/book/shcloj2/programming-clojure 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: Clojure/Luminus memory footprint

2014-01-09 Thread Sean Corfield
into thrashing GC. We upgraded to Tomcat 7 / Railo 4 (same Clojure) and run with 8GB heaps now on Java 7 with the G1 collector and it has been wonderful :) The JVM is a wonderful beast if you're not memory constrained. Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection

Re: New release of Light Table (which is now open source!)

2014-01-08 Thread Sean Corfield
canvas is very useful since you can sketch out multiple pieces of related code side-by-side. I guess I don't understand why your view of what LT provides is so negative? Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good. -- Gustave

Re: New release of Light Table (which is now open source!)

2014-01-08 Thread Sean Corfield
to behave normally I suspect the majority of users think the default behavior is normal - and desirable :) 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: New release of Light Table (which is now open source!)

2014-01-08 Thread Sean Corfield
On Jan 8, 2014, at 1:35 PM, Mark Engelberg mark.engelb...@gmail.com wrote: You still need to create and manage projects from a command line with lein, right? Correct. Until someone builds a plugin for that :) Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org

Re: Clojure deployment questions w.r.t. jars, clojure source files, compiled class files

2014-01-07 Thread Sean Corfield
) and then: ... (@the-symbol arg1 arg2) ... Our AOT-compiled layer is deliberately minimal and serves only to provide the Java-callable API so the rest of our code can be developed and tested in our normal interactive, incremental way. -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http

Re: Storing data on web server with Clojure

2014-01-02 Thread Sean Johnson
Keep in mind that the Heroku file system is a little funky. Writing things there is not like you're used to with your local system or with a VPS or dedicated server. It's ephemeral and those files will disappear during certain events. I agree with the other Sean, that if the data is small

Re: Storing data on web server with Clojure

2014-01-01 Thread Sean Corfield
platform so I'm pretty comfortable using databases with Clojure. Disclosure: I maintain Clojure's java.jdbc contrib library and I'm the primary committer on CongoMongo, a Clojure wrapper for MongoDB, so I'm probably more inclined toward those solutions than other Clojurians might be :) Sean On Wed

Re: Auto updating Leiningen dependencies?

2014-01-01 Thread Sean Corfield
https://groups.google.com/groups/opt_out. -- 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, French realist novelist (1821-1880) -- -- You received

[ANN] clojure.java.jdbc 0.3.1 released

2013-12-30 Thread Sean Corfield
protocol for setting parameters in prepared statements JDBC-86. * Fix parens in two deprecated tests JDBC-85. * Made create-table-ddl less aggressive about applying as-sql-name so only first name in a column spec is affected. -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http

Re: [ANN] clojure.java.jdbc 0.3.1 released

2013-12-30 Thread Sean Corfield
Just found a showstopping bug in 0.3.1 - 0.3.2 will be along shortly. TIL: protocols need implementations for both Object _and_ nil to work properly in the real world... :( Sean On Mon, Dec 30, 2013 at 8:46 AM, Sean Corfield seancorfi...@gmail.com wrote: Clojure contrib wrapper for JDBC

Re: [ANN] clojure.java.jdbc 0.3.1 released

2013-12-30 Thread Sean Corfield
The tests have been updated to included nil cases now so I shouldn't make the same mistake again. On Mon, Dec 30, 2013 at 8:57 AM, Sean Corfield seancorfi...@gmail.com wrote: Just found a showstopping bug in 0.3.1 - 0.3.2 will be along shortly. TIL: protocols need implementations for both

[ANN] clojure.java.jdbc 0.3.2 released

2013-12-30 Thread Sean Corfield
and should not be used) -- 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, French realist novelist (1821-1880) -- -- You received this message because you

Re: protocols and overloading

2013-12-30 Thread Sean Corfield
, of course, of Smalltalk, which the last time I checked had classes whose fields were automatically private and methods automatically public Massimiliano's definition excludes several other OOP languages... :) -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World

Re: How to debug this trace involving Korma

2013-12-29 Thread Sean Corfield
Clojure group. 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/groups/opt_out. -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Singles

Re: protocols and overloading

2013-12-29 Thread Sean Corfield
That must have been a long time ago? That problem was solved well before I left the C++ committee in '99 and gcc was normally pretty good at tracking the emerging standard at the time... But, yes, the template compilation model and it's impact on linking modules that specialized the same template

Re: Is Clojure right for me?

2013-12-27 Thread Sean Corfield
complexity very well. I'm not sure why you are less trusting of their real world experiences than what your professors told you about (theoretical) OOP... -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Singles, LLC. -- http://worldsingles.com/ Perfection

Re: Is Clojure right for me?

2013-12-27 Thread Sean Corfield
Lisp Weenie and part of the Lisp Curse [1]. I think there's an OOP equivalent but it doesn't get written about very much because OOP is so mainstream, despite its flaws. [1] http://www.winestockwebdesign.com/Essays/Lisp_Curse.html -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http

Re: In your opinion, what's the best, and what's the worst aspects of using Clojure?

2013-12-27 Thread Sean Corfield
them etc (e.g., clojure.stacktrace/print-stack-trace which is part of the core Clojure download). That said, yes, debugging errors is probably the worst aspect of using Clojure :) And +1 on the language/community as best! Sean On Fri, Dec 27, 2013 at 5:48 PM, Guru Devanla grd...@gmail.com wrote

Re: Is Clojure right for me?

2013-12-26 Thread Sean Corfield
, and higher order functions, Clojure has a lot of tools for organizing code... -- 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, French realist novelist (1821-1880

Re: Looking to migrate thousands of Clojure applications from 1.2 to 1.5.

2013-12-24 Thread Sean Corfield
we won't have to deal with that again, so this is a pain that only early adopters will be feeling. -- 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, French

Re: Finding available methods or docs for a value type

2013-12-24 Thread Sean Corfield
it for free but I expect Chas appreciates anyone who buys access to it - it's very reasonably priced (I bought my access back when it cost $40 and I've certainly got that value and more out of it!). Sean On Tue, Dec 24, 2013 at 5:58 AM, John Kida jdk...@gmail.com wrote: So i am very new to Clojure and I

Re: How do I fix *warn-on-reflextion* warnings in 3rd party libraries?

2013-12-23 Thread Sean Corfield
No, lein check will give you reflection warnings on 3rd party libraries... (sean)-(jobs:0)-(/Developer/workspace/worldsingles/ws/model/clojure/worldsingles) (! 505)- lein check Compiling namespace worldsingles.activity Reflection warning, clojure/core/incubator.clj:84:7 - reference to field

Re: How do I fix *warn-on-reflextion* warnings in 3rd party libraries?

2013-12-22 Thread Sean Corfield
, preferably with PRs should get some of those cleaned up. Sean On Sun, Dec 22, 2013 at 2:33 PM, larry google groups lawrencecloj...@gmail.com wrote: I know this has been discussed before but I could not find anything like a canonical answer via Google. I just set to :warn-on-reflection true in my

Re: How do I fix *warn-on-reflextion* warnings in 3rd party libraries?

2013-12-22 Thread Sean Corfield
On Sun, Dec 22, 2013 at 2:55 PM, Sean Corfield seancorfi...@gmail.com wrote: For clj-time I'm happy to just see an issue opened on Github (when it's back from its current 503 woes!) and happier to see a Pull Request. https://github.com/clj-time/clj-time/issues/100 -- Sean A Corfield -- (904

Re: Where are the videos for Clojure Conj 2013

2013-12-22 Thread Sean Corfield
According to a note I found on Reddit via Google, Conj videos have historically appeared on the ClojureTV YouTube channel 4-6 weeks after the event so I would expect them to start appearing soon through the New Year... Sean On Sun, Dec 22, 2013 at 1:25 PM, Richard Cole richard.j.c...@gmail.com

Re: Looking to migrate thousands of Clojure applications from 1.2 to 1.5.

2013-12-22 Thread Sean Corfield
, I'm not sure what the benefits would be. Sean On Sun, Dec 22, 2013 at 3:51 PM, solo.l...@gmail.com wrote: At my company, we use Clojure for reporting. Specifically, reports are written in Clojure which integrate data from a variety of sources and display the final output to the user in a WPF

Re: Looking to migrate thousands of Clojure applications from 1.2 to 1.5.

2013-12-22 Thread Sean Corfield
://dev.clojure.org/display/design/Enhanced+Primitive+Support * http://dev.clojure.org/display/design/Documentation+for+1.3+Numerics Hope those help? -- 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

Re: Looking to migrate thousands of Clojure applications from 1.2 to 1.5.

2013-12-22 Thread Sean Corfield
written during this process use the modular libraries 2) What to do about contrib libraries which have no counterpart (but this difficulty applies to all options) Whatever decision you make, this page will be useful: * http://dev.clojure.org/display/community/Where+Did+Clojure.Contrib+Go -- Sean

Re: clojure.java.jdbc 0.3.0 column name handling

2013-12-21 Thread Sean Corfield
, with full tutorials on each of the major functions. Does that help? Sean On Sat, Dec 21, 2013 at 11:56 AM, rod naph rod.n...@gmail.com wrote: with the new release of java.jdbc 0.3.0 i can't quite work out how the quoting support for column names is supposed to work. i can see the strategy

Re: Who is doing something worthwhile in Clojure?

2013-12-19 Thread Sean Corfield
or at least a very subjective one based on people's own moral compass and their ideology? As such I don't think it's a particularly useful discussion on what is primarily a technical list. Perhaps post the question on Quora? That seems to be very friendly toward political / moral discussions... -- Sean

[ANN] clojure.java.jdbc 0.3.0 gold release

2013-12-17 Thread Sean Corfield
source. -- 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, French realist novelist (1821-1880) -- -- You received this message because you are subscribed

Re: clojure.java.jdbc 3.0 reusing connections

2013-12-16 Thread Sean Corfield
Just to follow up on this: 0.3.0-rc1 introduces with-db-connection to allow multiple operations on a shared connection easily: (with-db-connection [db-con db-spec] ... operate on db-con multiple times ...) Sean On Tue, Dec 10, 2013 at 4:06 PM, Sean Corfield seancorfi...@gmail.com wrote

Re: Othello from PAIP in Clojure

2013-12-16 Thread Sean Chalmers
I don't really have anything to critique, merely observe... ;) I find your implementation interesting because you chose to use two dimensional arrays to represent the board, I initially went down that road with mine but in the end went with a single list because I found it easier to handle the

Re: Referential integrity constraints using only clojure.java.jdbc?

2013-12-15 Thread Sean Corfield
of such constraints to be counter-productive since it makes refactoring and evolution of both schema and code to be much more difficult) Sean On Sat, Dec 14, 2013 at 2:29 AM, Simon Brooke still...@googlemail.com wrote: First, yes, I now know I could build referential integrity constraints using Korma

Re: Othello from PAIP in Clojure

2013-12-13 Thread Sean Chalmers
had the pleasure of joining a group of like-minded Clojure types for a book club reading of Joy of Clojure, and this was one of our 'hard' problems. Sean On Friday, 13 December 2013 13:50:17 UTC+1, edw...@kenworthy.info wrote: One of my favourite computer science / programming books is Peter

Re: Monitoring a Clojure app, possibly with New Relic

2013-12-13 Thread Sean Corfield
not high on my list. If you're interested, contact me off list (sean at corfield dot org) and I can share details. Sean On Fri, Dec 13, 2013 at 7:46 AM, Brad Koch bradkoch2...@gmail.com wrote: I need to implement some performance monitoring and exception tracking for my Clojure app. My first

Re: cider status

2013-12-13 Thread Sean Corfield
to work properly. And this isn't just for me - my team all has the same base configuration of Emacs and so we'd have to go thru this switch process for each team member. -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Singles, LLC. -- http://worldsingles.com

[ANN] clojure.java.jdbc 0.3.0 RC1 released

2013-12-13 Thread Sean Corfield
in with-db-transaction JDBC-75. * Add :user as an alias for :username for DataSource connections JDBC-74. -- 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, French

Re: clojure.java.jdbc 3.0 reusing connections

2013-12-10 Thread Sean Corfield
[connected (add-connection db-spec con)] ... several queries etc using connected instead of db-spec ... )) Sean On Tue, Dec 10, 2013 at 8:24 AM, Niels van Klaveren niels.vanklave...@gmail.com wrote: Do I understand correctly that to prevent creating a collection per query I have to wrap

Re: clojure.java.jdbc 3.0 reusing connections

2013-12-10 Thread Sean Corfield
concise alternative to clojure.java.jdbc library. I would certainly recommend using a connection pool. There are two examples of that in the (community-editable) docs: http://clojure-doc.org/articles/ecosystem/java_jdbc/home.html#how-to-use-connection-pooling -- Sean A Corfield -- (904) 302-SEAN

Re: clojure java.jdbc db-do-prepared and dynamic parameters

2013-12-08 Thread Sean Corfield
... and there are multiple approaches that would each be more suitable to particular real world problems. Sean On Sun, Dec 8, 2013 at 9:44 AM, Avinash Dongre dongre.avin...@gmail.com wrote: I see following example in Clojure.java.jdbc (sql/db-do-prepared db INSERT INTO fruit2 ( name, appearance

Re: Am I missing something?

2013-12-05 Thread Sean Corfield
keys. -- 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, French realist novelist (1821-1880) -- -- You received this message because you are subscribed

ClassCastException on second pass of loop, works fine during the first.

2013-12-04 Thread Sean Chalmers
Greetings ! I'm attempting to implement Othello in Clojure and I've run into a problem when actually running my game loop. On the first run through, everything works as expected, the black player can make their move, the board is updated and everything is awesome. However when the program

Re: ClassCastException on second pass of loop, works fine during the first.

2013-12-04 Thread Sean Chalmers
that still works. I would have swapped the cases and used seq as the test. However, without really reading this too closely, I'd guess the real problem is that you want to (apply merge fst others) since others is a seq of maps. On Wednesday, December 4, 2013 10:24:42 AM UTC-6, Sean

Re: Am I missing something?

2013-12-03 Thread Sean Corfield
a RESTful web service for CRUD for a single table seems excessive so I'd be curious exactly what you're trying to achieve and why you're finding it so laborious? Perhaps if you explain your requirements a bit more, we can offer better suggestions...? Sean On Tue, Dec 3, 2013 at 3:26 PM, James Laver

Re: Am I missing something?

2013-12-03 Thread Sean Corfield
as a REST response, and controllers are simple functions (operating on a simple map of parameters) and views - if returning HTML rather than just data - are Selmer templates (Django style). -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Singles, LLC. -- http

Re: tails function?

2013-11-30 Thread Sean Corfield
https://groups.google.com/groups/opt_out. -- 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, French realist novelist (1821-1880) -- -- You received

Re: tails function?

2013-11-30 Thread Sean Corfield
That would be heads not tails :) On Sat, Nov 30, 2013 at 3:44 PM, Alex Baranosky alexander.barano...@gmail.com wrote: user (rest (reductions conj [] [1 2 3 4])) ([1] [1 2] [1 2 3] [1 2 3 4]) On Sat, Nov 30, 2013 at 2:54 PM, Sean Corfield seancorfi...@gmail.com wrote: reductions requires

Re: Suggestions for state modification improvements in this bit of code?

2013-11-30 Thread Sean Grove
Dave, I may not have totally understood the original function, but here are a few possible implementations, each moving towards what I would think of as being simpler: https://www.refheap.com/21379 It could of course be made more efficient and slightly cleaner, but maybe it's a start. On Sat,

Re: core.async and performance

2013-11-29 Thread Sean Corfield
. -- 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, French realist novelist (1821-1880) -- -- You received this message because you are subscribed to the Google

Re: [ANN]: clj.jdbc 0.1-beta1 - Alternative implementation of jdbc wrapper for clojure.

2013-11-29 Thread Sean Corfield
about patches vs pull requests, and just accept that's the way things are done for Clojure and its contrib libraries... -- 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

Re: [ANN] clojure.java.jdbc 0.3.0-beta2 BREAKING CHANGES!

2013-11-25 Thread Sean Corfield
to provide patches as well). Sean On Sun, Nov 24, 2013 at 10:39 PM, Sean Corfield seancorfi...@gmail.com wrote: Based on feedback from the community, I have released clojure.java.jdbc 0.3.0-beta2 to Maven Central. This includes two very important changes: * The clojure.java.jdbc.sql

[ANN] clojure.java.jdbc 0.3.0-beta2 BREAKING CHANGES!

2013-11-24 Thread Sean Corfield
the API - and the auto-generated documentation - which should reduce all the confusion expressed about the library right now. This will allow the library to move forward in a more focused manner, with an API that no longer depends on dynamic variables. -- Sean A Corfield -- (904) 302-SEAN

Re: java.jdbc DSLs (java.jdbc.sql / java.jdbc.ddl)

2013-11-23 Thread Sean Corfield
(my-db) [select `id`, `title` as `name` from `thing` where `status` = ? active]) -- 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, French realist novelist

<    3   4   5   6   7   8   9   10   11   12   >