Re: What is fn* ?

2014-05-26 Thread Sean Corfield
-object-retention/ Yes, I added that in a few places to address claims of a memory leak from a couple of java.jdbc users. I don't think anyone had proved it really was the cause of the memory leak they were seeing but it seemed like a harmless optimization for memory usage anyway. Sean Corfield

Re: how to define a variable of type collection to keep other functions.

2014-05-23 Thread Sean Corfield
(make-tasks (range 3))] (deref f)) `doseq` returns nil. Which you choose depends on what, if anything, you want to do with the result. Hope that helps? Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good. -- Gustave Flaubert, French

Re: Headless server, no GUI, no idea

2014-05-09 Thread Sean Corfield
Indeed. The OP contacted me offlist and I suggested running a virtual framebuffer for X11 and sent them a link. Sean On May 9, 2014, at 10:52 AM, Stuart Sierra the.stuart.sie...@gmail.com wrote: This sounds more like a problem with remote access to X-Windows (the Unix graphical back-end)

Re: Proposing a new Clojure documentation system (in Clojure)

2014-05-06 Thread Sean Corfield
that wrote the above rewrite it in a better way. You'll just end up with more bad documentation getting in the way of what the code actually does. Bad documentation is worse than no documentation. At least with no documentation, the code doesn't lie. Sean Corfield -- (904) 302-SEAN An Architect's

Re: Proposing a new Clojure documentation system (in Clojure)

2014-05-06 Thread Sean Corfield
On May 6, 2014, at 10:41 AM, Mark Engelberg mark.engelb...@gmail.com wrote: Sean, I think you missed the point of that example. No, I was simply responding to Philip's assertion that the docstring was poorly written. Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org

Re: clojure.test parameterized tests

2014-05-06 Thread Sean Corfield
http://jayfields.com/expectations/in-context.html On May 6, 2014, at 12:14 PM, Brian Craft craft.br...@gmail.com wrote: Someone suggested the Expectations lib, but I don't see any fixture support there. Anyone using Expectations that can point me to the right place? signature.asc

Re: Converting sequence from sort into a list

2014-05-05 Thread Sean Corfield
My question would be: why do you specifically need a list? i.e., why isn't a sequence good enough? Sean On May 3, 2014, at 6:30 AM, Dave Tenny dave.te...@gmail.com wrote: After nosing around all I've come up with via clojure mechanisms is to use (apply list (sort ...)). It seems to work

Re: [ANN] packthread 0.1.0

2014-05-05 Thread Sean Corfield
A specific case: when I worked at Adobe, we could not use any open source library whose license was not one of a standard set of pre-approved licenses. During a license audit (oh joy!) I had to approach a couple of OSS projects we had started to use in order to persuade them to change their

Re: Proposing a new Clojure documentation system (in Clojure)

2014-05-01 Thread Sean Corfield
and see if people like it. That's probably a better approach than trying to discuss it anyway. 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: Proposing a new Clojure documentation system (in Clojure)

2014-04-30 Thread Sean Corfield
check: you often need either much more general types than you might wish for or you end up with complex union types, partly due to nil-punning and Clojure's view of truthy / falsey. Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good

Re: Proposing a new Clojure documentation system (in Clojure)

2014-04-30 Thread Sean Corfield
a barrier to entry as there can be and we still don't see enough contribution to documentation. 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: Kwargs vs explicit parameter map for APIs?

2014-04-30 Thread Sean Corfield
to hear from Cognitect's folks about this: is it a change of heart by Clojure/core or are they unaware of the change? 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

[ANN] CongoMongo 0.4.4 (minor release)

2014-04-29 Thread Sean Corfield
update: https://github.com/mongodb/mongo-java-driver/releases/tag/r2.12.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) signature.asc Description: Message signed

Re: clojure.core.memoize dependency problem

2014-04-29 Thread Sean Corfield
What Leiningen plugins do you have installed? (Both in your project and in your user profile) I believe this is caused by a plugin forcing an earlier version of clojure.core.cache on you... On Saturday, April 26, 2014, Daniel Slutsky daniel.slut...@gmail.com wrote: added an issue at

Re: Kwargs vs explicit parameter map for APIs?

2014-04-29 Thread Sean Corfield
this message because you are subscribed 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/d/optout. Sean Corfield -- (904) 302-SEAN

Re: When is The Conj this year? (eom)

2014-04-20 Thread Sean Corfield
). I hope the venue is chosen with _cost_ in mind this year! 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: What's clojure killer app? I don't see any.

2014-04-19 Thread Sean Corfield
is in Clojure for us. Two reasons: * The Clojure code is much simpler, shorter and easier to maintain. * The team *love* writing Clojure! They're having more fun in their jobs than ever. The immutability, easy concurrency, DSLs and so on - those are all icing on the cake. Sean Corfield -- (904

Style question (predicates)

2014-04-17 Thread Sean Corfield
-style-guide#naming 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: New namespace per session in nREPL

2014-04-17 Thread Sean Corfield
Since they can move into any namespace they want and they're all sharing the same running JVM context, I'm not sure what separate namespaces buys... Can you elaborate on your use case? Sean On Apr 17, 2014, at 5:35 AM, Arkadiusz Komarzewski akomarzew...@gmail.com wrote: I would like to let

Re: project docs

2014-04-17 Thread Sean Corfield
LightTable has a plugin for live Markdown rendering which I find very useful. So useful in fact that I created a plugin for live Textile rendering based on it :) Sean On Apr 17, 2014, at 11:18 AM, Brian Craft craft.br...@gmail.com wrote: Is there a standard workflow, lein plugin, or such, for

Re: Why I'm giving Clojure a try

2014-04-16 Thread Sean Corfield
years before switching to LT, BTW (well, after a near 20 year break from Emacs before that). 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: Light table

2014-04-16 Thread Sean Corfield
LT is the integrated evaluation of code inline so I can treat a file as a REPL and see the results right there, and if you're doing ClojureScript, the ability to live eval cljs and the embedded browser make for a very smooth workflow. Sean Corfield -- (904) 302-SEAN An Architect's View -- http

Re: Why I'm giving Clojure a try

2014-04-16 Thread Sean Corfield
fingers to subside as I re-trained them to use Emacs! :) 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: cljs, websocket, autoreconnect

2014-04-13 Thread Sean Corfield
Take a look at Sente (core.async over web socket / xhr) - and contribute anything additional you need to that. On Apr 13, 2014, at 6:16 PM, t x txrev...@gmail.com wrote: For building robust cljs web apps, I'd like to have a uber websocket which does the following: * when disconnected, it

Re: Real World Example

2014-04-09 Thread Sean Corfield
And for comparison at World Singles: Clojure source 101 files 17952 total loc, 1321 fns, 666 of which are private, 203 vars, 8 macros, 29 atoms Clojure tests 43 files 3790 total loc Clojure WebDriver tests 14 files 560 total loc (includes comments / whitespace etc - this is just the

Re: every? expected behavior

2014-04-09 Thread Sean Corfield
but it is a standard idiom that is initially unfamiliar to many people coming from certain other languages... 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

Re: clojure.core/Format Bug?

2014-04-08 Thread Sean Corfield
Here's what I see in LT: https://www.dropbox.com/s/nd1xf00sbdwjpgc/Screenshot%202014-04-08%2014.05.06.png i.e., the correct, expected behavior - exactly the same as in a regular REPL. Maybe you have some customization in LT that is causing it? Or perhaps one of your plugins? Sean On Apr 7,

Re: Real World Example

2014-04-08 Thread Sean Corfield
(mostly to/from XML, JSON), and so on. We're also using it for the back end of a chat server (built around Netty and a Socket.IO server library). Happy to answer any questions about real world usage either on or off-list! Sean Corfield -- (904) 302-SEAN An Architect's View -- http

[ANN] CongoMongo 0.4.3 released!

2014-04-08 Thread Sean Corfield
on mass-insert! One side effect of these updates is that mass-insert! should now be much faster than multiple individual insert! calls, due to performance improvements in the Java driver when used with the latest MongoDB. Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org

Re: How to troubleshoot FileNotFoundException: Could not locate clojure/tools/namespace/parse...?

2014-04-03 Thread Sean Corfield
from profiles.clj - which is why you get the conflict. You might solve this by putting clj-ns-browser in a separate profile, say, :browse and then explicitly using that profile when you want to fire up clj-ns-browser (via lein's with-profile feature). Sean Corfield -- (904) 302-SEAN

Re: How to troubleshoot FileNotFoundException: Could not locate clojure/tools/namespace/parse...?

2014-04-02 Thread Sean Corfield
the (ns ...) forms and so we have part of the dependency chain. I mostly just skipped over all the clojure.* stuff except for noting (in my head) that clojure.core/load and clojure.core/use were called along that path. Does that help at all? Sean Corfield -- (904) 302-SEAN An Architect's View

Re: using contrib functions

2014-03-31 Thread Sean Corfield
, Christopher Howard cmhowa...@alaska.edu wrote: On Fri, 28 Mar 2014 20:06:59 -0700 Sean Corfield s...@corfield.org wrote: BTW, where did you find the references to defadt and clojure.contrib.types? Perhaps we can get the original references updated so people aren't misled in future... Sean I

Re: using contrib functions

2014-03-29 Thread Sean Corfield
rusty :) So what would be the modern Clojure way to implement ADTs... 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

Re: using contrib functions

2014-03-28 Thread Sean Corfield
was never really a good way to do things in the first place. I've no idea what defadt was meant to do, I'm afraid. 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

Re: using contrib functions

2014-03-28 Thread Sean Corfield
BTW, where did you find the references to defadt and clojure.contrib.types? Perhaps we can get the original references updated so people aren't misled in future... Sean On Mar 28, 2014, at 8:05 PM, Sean Corfield s...@corfield.org wrote: On Mar 28, 2014, at 7:40 PM, Christopher Howard cmhowa

Re: [ANN] Eastwood 0.1.1 Clojure lint tool

2014-03-22 Thread Sean Corfield
Use: lein deps :tree That should show you where the conflict is coming from (you're picking up an old core.cache from somewhere). Sean On Mar 22, 2014, at 1:34 PM, Jakub Holy jakub.h...@iterate.no wrote: For me, Eastwood fails mysteriously: $ lein eastwood Exception in thread main

Re: [ANN] Eastwood 0.1.1 Clojure lint tool

2014-03-22 Thread Sean Corfield
behind the latest (and excluding it did not help) 2014-03-22 22:25 GMT+01:00 Sean Corfield s...@corfield.org: Use: lein deps :tree That should show you where the conflict is coming from (you're picking up an old core.cache from somewhere). Sean signature.asc Description: Message

Re: [ANN] Eastwood 0.1.1 Clojure lint tool

2014-03-22 Thread Sean Corfield
understanding is that 0.6.3 added core.cache/through, and core.memoize depends on that version. 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

Re: How did you learn Clojure?

2014-03-21 Thread Sean Corfield
. Either pick things you've done before in other languages, or figure out something that would scratch an itch (a small web app, perhaps?) and tackle that. Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good. -- Gustave Flaubert, French

Re: Spawn external process and read from output

2014-03-21 Thread Sean Corfield
/clojure/clojure.java.shell-api.html#clojure.java.shell/sh and: http://clojure.github.io/clojure/clojure.string-api.html#clojure.string/split Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good. -- Gustave Flaubert, French realist

Re: apply to quoted form

2014-03-21 Thread Sean Corfield
This happens because a Symbol is a function that looks itself up in its argument much like Keywords do: user= ('a {'a 2 'b 3}) 2 user= ('b {'a 2 'b 3}) 3 user= ('b 42) nil And the two argument version provides a default value to return if the symbol is not found: user= ('c {'a 2 'b 3}

Re: [ANN] Eastwood 0.1.1 Clojure lint tool

2014-03-20 Thread Sean Corfield
Thanx for Eastwood - it's a great tool! Just FYI, using Clojure 1.6.0 builds produces these warnings: WARNING: record? already refers to: #'clojure.core/record? in namespace: clojure.tools.analyzer.utils, being replaced by: #'clojure.tools.analyzer.utils/record? WARNING: record? already refers

Re: [ANN] Eastwood 0.1.1 Clojure lint tool

2014-03-20 Thread Sean Corfield
Eastwood 0.1.1 but still had Eastwood 0.1.0 in my ~/.lein/profiles.clj file which was overriding it. Once I removed that old dependency, the warning went away. Thank you! Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good. -- Gustave

Re: Clojure 1.6.0-RC1 - LAST CHANCE, PLEASE TEST

2014-03-18 Thread Sean Corfield
We have 1.6.0-RC1 running in production as of this afternoon. No problems so far... Sean On Tue, Mar 18, 2014 at 7:21 AM, Alex Miller a...@puredanger.com wrote: Hello all, We would love to release Clojure 1.6.0 final soon. We need your help in checking out the current release candidate -

Re: Help a Startup use Clojure!

2014-03-13 Thread Sean Corfield
As the author of cfmljure, it's not something I'd recommend anyone to use in its current form and combining CFML and Clojure (as we do at World Singles) is a bit of a dark art that I wouldn't encourage others to attempt, unless they're already up to their eyeballs in CFML, and running on Railo

Re: expectations 2.0 has been released

2014-03-12 Thread Sean Corfield
Since `given` was a relatively simple macro, we added it to worldsingles.util.test and switched all our test namespaces to refer given from there instead, and then upgraded to Expectations 2.0.6. Seems to have gone smoothly. Love the new DSL features! Sean On Mar 11, 2014, at 8:28 PM, Sean

Re: Help a Startup use Clojure!

2014-03-11 Thread Sean Corfield
choice than some cool tech you might all like to use. 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: Question about importing java classes to Clojure

2014-03-11 Thread Sean Corfield
Hard to tell what your problem is with so little information to go on. Here's the code we use to get a directory listing: (defn- wildcard-filter Given a regex, return a FilenameFilter that matches. [re] (reify java.io.FilenameFilter (accept [_ dir name] (not (nil? (re-find re

Re: expectations 2.0 has been released

2014-03-11 Thread Sean Corfield
Looks great Jay - as you know I'm a big fan of Expectations. One big issue I see here is that by removing 'given' you've made adoption of 2.0 a bit all or nothing: to use 2.0, I must update our entire test base to rewrite all 'given' tests using the new syntax. Is there an intermediate version

Re: [ANN] Clojure 1.6.0-beta2

2014-03-05 Thread Sean Corfield
We've been running our (World Singles) test suite against 1.6.0-master-SNAPSHOT for some time as a matter of course and haven't tripped over anything so far (that I can recall). The only change in our bugbase due to 1.6.0 was the earlier change to disallow keyword literals that start with a

Re: core.cache strange behaviour for short ttl

2014-03-03 Thread Sean Corfield
It's definitely one of the less intuitive aspects of dealing with core.cache but it bites you once (or twice!) and you internalize it and kinda move on :) Sean On Mar 3, 2014, at 1:57 PM, dan.stone16...@gmail.com wrote: In case anyone was wondering I worked out what was going on and it makes

Re: [ANN] clojure.test.check (previously, simple-check)

2014-03-03 Thread Sean Corfield
a legal point of view: http://clojure.org/contributing 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: isa? problem with collection type for multiple argument dispatch

2014-03-01 Thread Sean Corfield
Looking at the source of isa? it very specifically calls out vector arguments so I'd say it's by design. Be careful that (isa? '(String foo) '(String foo)) returns true - child equal to parent regardless of type. (defn isa? Returns true if (= child parent), or child is directly or indirectly

Re: The future of CongoMongo?

2014-02-28 Thread Sean Corfield
DB object). 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: mongodb driver for clojure?

2014-02-28 Thread Sean Corfield
On Feb 28, 2014, at 7:29 AM, action actioncao2...@gmail.com wrote: Monger, and any other popular driver? CongoMongo -- but see this thread: https://groups.google.com/forum/#!topic/clojure/JOREq-Jl1Ns Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection

The future of CongoMongo?

2014-02-26 Thread Sean Corfield
/ ClojureWerkz have been very receptive to suggestions and pull requests so part of me feels like that's a better use of my time - but if folks are genuinely interested in a new version of CongoMongo, I could be persuaded to do that instead. What are your thoughts on this? Sean Corfield -- (904) 302

Re: core.async over websocket + cljs + clojure

2014-02-21 Thread Sean Corfield
My priority to work on turning David's codebase into a library changed as I was originally planning to do it for conference presentations in May and June, but for personal reasons I've had to pull out of both conferences. So this is still on my radar but it's moved down my list some way. Sean

Re: 'Reduced' and logic functions

2014-02-21 Thread Sean Corfield
Isn't this a more fundamental problem tho'...: (def x 0) (or (zero? x) (/ 100 x)) ;; true (alt-or (zero? x) (/ 100 x)) ;; java.lang.ArithmeticException: Divide by zero Sean On Feb 20, 2014, at 4:58 AM, Niels van Klaveren niels.vanklave...@gmail.com wrote: The result wouldn't return

Re: range-sum

2014-02-12 Thread Sean Corfield
On Feb 12, 2014, at 5:46 AM, Vincent vhenneb...@gmail.com wrote: On Friday, February 7, 2014 2:23:33 AM UTC, Sean Corfield wrote: On Feb 6, 2014, at 12:58 PM, Stuart Sierra the.stua...@gmail.com wrote: I think (reduce + (range N)) is commonly used in *examples*, not necessarily in real

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

Re: unconditional append to end

2014-02-10 Thread Sean Corfield
I find clojureatlas.com very helpful for exploring the API, especially since it is concept-based (so Maps is a concept that shows all the related functions and concepts). It's only up to 1.4.0 - hopefully Chas will update it to 1.5 / 1.6 at some point - but it's better than a site stuck at

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
But you're misunderstanding what map does: it converts its collection arguments to _sequences_ and then it processes those sequences. Map doesn't operate on sets, or vectors, or maps, only on sequences. Scala goes out of its way to retain input types as output types on many of its collection

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
so they are not really a match for Expectations - we use clojure.test instead because it's do a bunch of side effecting stuff in the browser, assert that a bunch of conditions are true about the DOM, do a bunch more side effecting stuff, assert more DOM conditions, rinse and repeat... Sean

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

Re: Lessons Learned from Adopting Clojure

2014-02-05 Thread Sean Corfield
On Wed, Feb 5, 2014 at 1:56 PM, John D. Hume duelin.mark...@gmail.com wrote: The misconception I hope is disappearing is that REPL-driven development in Emacs necessarily involves lots of switching and copy-pasting back and forth between source file buffers and a REPL buffer. The video in Jay's

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
Another option is: ((fn pascal ([n] (pascal n [1M])) ([n row] (if (= n 1) row (recur (dec n) (mapv (partial reduce +) (partition 2 1 (cons 0 (conj row 0 500) Because row is a vector you can conj 0 to the end (quickly) and cons 0 to the front (quickly) and then mapv makes sure you get a

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
On Tue, Feb 4, 2014 at 6:07 PM, Brian Marick mar...@exampler.com wrote: I always grate at the need to then immortalize the core of what I did in the REPL in repeatable tests. That's actually one of the things that bothered me in the Emacs REPL world: working in the REPL was separate from

[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
On Fri, Jan 31, 2014 at 2:54 PM, Mark Engelberg mark.engelb...@gmail.com wrote: I've been having trouble figuring out how to use clojure.java.jdbc effectively, for example, how to rename tables, do work in transactions, etc. Is there full documentation with examples somewhere? Feel free to

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

2014-01-31 Thread Sean Corfield
I like that way of thinking, Timothy! Thomas: it's very specifically two separate channels; on the client side, code puts data on a channel and additional client code (in a library) takes data off the channel and handles the client/server communication; on the server side, a library reads data

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 a

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

2014-01-27 Thread Sean Corfield
, but someone else must have approved this message, because I did not. Andy On Mon, Jan 27, 2014 at 12:01 PM, Sean Corfield s...@corfield.org wrote: 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

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
Can you confirm: * Today, calling put! on a closed channel throws an exception (according to its docstring). * After this change, calling put! on a closed channel will return nil instead. The current docstring says that the function will be called when complete which I took to mean when the

Re: core.async over websocket + cljs + clojure

2014-01-22 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/groups/opt_out. Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good

Re: Ragtime w/ Korma

2014-01-14 Thread Sean Corfield
How exactly are you running the code? The Gist really doesn't provide enough information for anyone to be able to diagnose this... On Tue, Jan 14, 2014 at 5:15 PM, Christopher Allen c...@bitemyapp.com wrote: Verify with clojure.java.jdbc would by my first approach, but it's not clear to me how

Eastwood lint tools - some Qs

2014-01-13 Thread Sean Corfield (Clojure)
Just started using this and I see the argslist caveat that causes Eastwood to misdiagnose :wrong-arity (the readme specifies java.jdbc 0.3.x but it also gets tripped up by congomongo). Can you (Andy or Jonas or any other Eastwood user) clarify how the arglists cause the problem and what, if

Re: Eastwood lint tools - some Qs

2014-01-13 Thread Sean Corfield
possible invoke calls with a misplaced arity, expecting that to be a valid value, in your case for documentation purposes you are attaching a :arglists that does not match a valid list of args vector, so t.a.j interprets that as a 6-arity arglist. Nicola Sean Corfield (Clojure) writes

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

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