[ANN] clojure.java.jdbc 0.3.4

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

Re: buggy "case" macro

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

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

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

Re: Unexpected ClassCastException when passing generics

2014-07-17 Thread Sean Corfield
nctions like this: public void addArguments(final MethodArgument... arguments) { need an array passed in. You'll need something like (into-array org.freedesktop.dbus.Message$MethodArgument [app-name]) instead of just app-name in your .addArgument call. Sean Corfield -- (904) 302-SEAN An Archi

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

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

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

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

Re: subtle om + core.async problems

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

Re: timbre logging, java libs

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

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

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

Re: Redefined 'count' produces no warning

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

Re: Redefined 'count' produces no warning

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

Re: Clojure / Core.Async Dependency Issues

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

[ANN] clojure.java.jdbc 0.3.5

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

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

2014-08-01 Thread Sean Corfield
s.trec) nil crecords.trec=> (ns-publics *ns*) {f2 #'crecords.trec/f2, ->Apple #'crecords.trec/->Apple, ->Banana #'crecords.trec/->Banana, map->Banana #'crecords.trec/map->Banana, -main #'crecords.trec/-main, f1 #'crecords.trec/f1, map->Apple #

Re: [ANN] Grimoire 0.3.0

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

Re: [ANN] Grimoire 0.3.0

2014-08-01 Thread Sean Corfield
nd we have clojure-doc.org for more extensive, community-maintained documentation that provides guides to using contrib libraries etc. In addition, contrib libraries probably don't lend themselves to isolated examples the way the core Clojure namespaces do. Sean Corfield -- (904)

Re: setting c3p0 logging

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

Re: workflow with aot compiling

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

Re: [ANN] Clojure 1.7.0-alpha1

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

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

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

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

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

Re: Is Clojure a language for growth?

2014-08-21 Thread Sean Corfield
sn't quite the reality - after three years of slowly introducing Clojure where it made sense and expanding those islands into a continent. Oh, and just last week, our database systems guy, whose been doing a huge amount of data migration via Java said he was just starting to learn Clojure an

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

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

Re: core.async take behaviour

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

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

2014-09-06 Thread Sean Corfield
Peter, I just upgraded from Sente 0.15.1 to 1.0.0 and it looks like the values that come in ch-recv have changed format? I used to have the following: (go (loop [[op arg] ( wrote: > (All new releases are now on BreakVersioning, > https://github.com/ptaoussanis/encore/blob/master/BREAK-VERSIONI

Re: [ANN] Taoensso library updates / 2014 September

2014-09-06 Thread Sean Corfield
think?). If we had IE8 compatibility, I could use Sente for several user-facing things in production, as opposed to just internal-facing stuff in production. Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ "Perfection is the enemy of the good." -- Gusta

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

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

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

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

Re: Interop nightmare

2014-09-08 Thread Sean Corfield
;s relatively "simple" is a nice way to ease into it. Having had to work with Java's JDBC classes, javax.mail, and Java's SOAP implementation - all from Clojure - all I can say is that some Java interop is easier than others, but most of it is somewhat unpleasant :) Sean Corfield -

Re: transducers and async operations

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

Re: [PSA] Clojars scp disabled until further notice

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

Re: Re: Handling java streams..

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

Re: Seeking Large Companies That Employ Clojure

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

Re: Why is my function faster with eval?

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

Re: Why is my function faster with eval?

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

Re: Why is my function faster with eval?

2014-10-10 Thread Sean Corfield
Yes, I meant when it compiles the code that eval executes at, er, run-time :) Sean > On Fri, Oct 10, 2014 at 1:35 PM, Sean Corfield wrote: > Ah, interesting... I hadn't considered it was running the zipmap at > compile-time so it only runs it once as opposed to running it for

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

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

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

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

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

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

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

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

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

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

Re: Modelling in Clojure

2014-10-16 Thread Sean Corfield
have to > explicitly think ahead about which fields might need to change in the future. In practice, I don't think it makes it any harder than in OOP - and given the ability to add fields to maps with no client code changes required, I think it's actually _easier_ in FP, in near

Re: Demoralising experience trying to install on Win 7

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

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

2014-10-29 Thread Sean Corfield
s when returning result sets as arrrays JDBC-101 <https://dev.clojure.org/jira/browse/JDBC-101>. Add :timeout argument to prepare-statement JDBC-100 <https://dev.clojure.org/jira/browse/JDBC-100>. https://github.com/clojure/java.jdbc <https://github.com/clojure/java.jdbc> Sean Corfi

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

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

Re: snubbed on clojurescript one

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

Re: snubbed on clojurescript one

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

Re: style question on tightly coupled functions

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

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

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

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

2014-11-23 Thread Sean Corfield
ary style guide: https://github.com/bbatsov/clojure-style-guide <https://github.com/bbatsov/clojure-style-guide> > Thanks for pointing out the error in the if statement. You're correct. Glad I was able to help. Sean Corfield -- (904) 302-SEAN An Architect's View -- http:

[ANN] java-jdbc/dsl 0.1.1

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

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

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

Re: Nightcode problem

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

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

2014-12-06 Thread Sean Corfield
at perks do I get? <http://engage.devobjective.com/index.cfm#perks> Why me? <http://engage.devobjective.com/index.cfm#me> How do I submit a topic? <http://engage.devobjective.com/index.cfm#submit> How will topics be selected? <http://engage.devobjective.com/index.cfm#sele

Re: Status of lean runtime?

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

Re: Status of lean runtime?

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

Re: core async and transducers in Clojure 1.6.0

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

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

2014-12-31 Thread Sean Corfield
tiple times without affecting their result, but we think carefully about any tests that have to do this. Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ "Perfection is the enemy of the good." -- Gustave Flaubert, French realist novelist (1821-1880)

Re: Clojure ecommerce

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

Re: Clojure ecommerce

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

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

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

Re: [ANN] Clojure 1.7.0-alpha5 now available

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

Re: [ANN] Clojure 1.7.0-alpha5 now available

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

Re: [ANN] Clojure 1.7.0-alpha5 now available

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

Re: [ANN] Clojure 1.7.0-alpha5 now available

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

Re: [ANN] Clojure 1.7.0-alpha5 now available

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

Re: [ANN] Clojure 1.7.0-alpha5 now available

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

Re: [ANN] Clojure 1.7.0-alpha5 now available

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

Re: [ANN] Clojure 1.7.0-alpha5 now available

2015-01-12 Thread Sean Corfield
er, and we hadn't seen this failure last week, it had to be one of the handful of commits made immediately prior to releasing Alpha 5. Sean On Jan 12, 2015, at 8:31 AM, Sean Corfield wrote: > On Jan 12, 2015, at 8:09 AM, Nicola Mometto wrote: >> Can you try a custom version of c

Re: [ANN] Clojure 1.7.0-alpha5 now available

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

Re: [ANN] Clojure 1.7.0-alpha5 now available

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

Re: [ANN] Clojure 1.7.0-alpha5 now available

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

Re: Inadequate behavior of agent await?

2020-06-10 Thread Sean Corfield
If you provide an error handler on the agent -- or just specify the error mode as :continue -- it does not hang. That makes me think that what you're seeing is "expected behavior" although it does seem a bit strange...? On Wed, Jun 10, 2020 at 1:49 AM Ernesto Garcia wrote: > I have discovered th

Re: DEPRECATED: Libs must be qualified, change cljfmt => cljfmt/cljfmt (~/.clojure/deps.edn)

2020-08-07 Thread Sean Corfield
The warning appears about your own use of unqualified lib names in your project's dependencies: so it really is "castigating the perpetrator", by making you use groupId/artifactId format names for dependencies, instead of the (lazy/convenient) shorthand of artifactId for libs that have a groupId th

Re: Classpath bug re Clojure 1.10.1.645 when using Figwheel.Main

2020-08-12 Thread Sean Corfield
I'd like to point out that tools.deps.alpha can build a differently-ordered classpath from the exact same input files when run on a different machine (i.e., the same source/deps, the same version of t.d.a./CLI). This has bitten me a couple of times with depstar which I use for building JARs/uberja

Re: Classpath bug re Clojure 1.10.1.645 when using Figwheel.Main

2020-08-12 Thread Sean Corfield
Alan, > 4. I could possibly try to replicate your proposed experiment explicitly, but I no longer have easy access to 1.10.1.645 since Homebrew has been fixed. I did find the `brew-install` repo on GH, but am not certain how to replicate the broken install of *.645. Per the clojure/homebrew-tool

Re: Why is `binding-conveyor-fn` private?

2020-08-21 Thread Sean Corfield
Isn't that what bound-fn and bound-fn* are for? On Fri, Aug 21, 2020 at 11:21 AM Dimitrios Jim Piliouras < jimpil1...@gmail.com> wrote: > Hi folks, > > I don’t get this… > > Why would such a neat/important utility private? Every time I > submit/schedule a function to some Executor manually (not v

Re: clojure.edn/read isn't spec compliant

2020-10-20 Thread Sean Corfield
As someone who has spent a lot of time around standardization committees (eight years on ANSI X3J16 C++ and some time around the ANSI C work before that, as well as years of BSI work as well), here's how I view the EDN specification: it states what is valid or invalid, a compliant reader should par

Re: what is currently considered a good blog engine, written in Clojure?

2020-12-12 Thread Sean Corfield
I think a lot of people use Cryogen: Simple static sites (cryogenweb.org) -- I used to use Octopress, based on Jekyll, and switched to Cryogen recently. For the commenting system, I've used Disqus for a long time. And I host on GitHub (via seancorfield.github.io and a cust

Re: Socket servers, threads, and redirecting error output.

2021-01-03 Thread Sean Corfield
Austin, You might find a macro like this helpful -- just use it directly instead of future. You can replace println with whatever sort of logging you want. (defmacro logged-future "Given a body, execute it in a try/catch and log any errors." [& body] (let [line (:line (meta &form)) file *file*] `

Re: How get function name in body?

2021-04-28 Thread Sean Corfield
Consider that: (defn add [a b] (+ a b)) is expanded to (something like): (def add (fn [a b] (+ a b))) So the actual code that runs is an anonymous function, which is bound to the (global) var #'add -- the function itself has no name. dev=> (*macroexpand* '(*defn* *add* [a b] (*+* a b))) (def

Re: How get function name in body?

2021-04-29 Thread Sean Corfield
v=> Thanks, Rémi! On Thu, Apr 29, 2021 at 12:08 PM Remi Forax wrote: > > > -- > > *De: *"Sean Corfield" > *À: *"clojure" > *Envoyé: *Jeudi 29 Avril 2021 01:26:34 > *Objet: *Re: How get function name in body? > > Con

Re: How get function name in body?

2021-04-29 Thread Sean Corfield
s* ( >> *java.lang.StackWalker*/getInstance *java.lang.StackWalker$Option* >> /RETAIN_CLASS_REFERENCE) >> >> #_=> (*+* a b)) >> >> #'dev/add >> >> dev=> (add 1 2) >> >> dev/add >> >> 3 >> >> dev=>

Re: [BLOG] Once Upon A Class

2021-05-24 Thread Sean Corfield
When I tried some of your code in a default REPL (via the Clojure CLI), I don't see the same results. In particular: user=> (hash (.getContextClassLoader (Thread/currentThread))) 1865201235 user=> (hash (.getContextClassLoader (Thread/currentThread))) 1865201235 user=> (hash (.getContextClassL

Re: [BLOG] Once Upon A Class

2021-05-24 Thread Sean Corfield
REPL client, instances of > DynamicClassLoader keep piling up. > > If you think there is a lack of clarity, I'll be happy to amend the text > to make it less likely for the reader to miss that. Thank you very much for > your input. > > Daniel > > On Mon, May 24,

Re: [BLOG] Once Upon A Class

2021-05-24 Thread Sean Corfield
nREPL and > those that apply to nREPL only. > I hope this avoids the pitfall you've described, and that the general > discussion on Clojure's on-the-fly code generation and class loading > mechanism will be of benefit to all Clojurians. > > Daniel > > On Tue, May

Re: how to package a project to a jar file?

2021-09-15 Thread Sean Corfield
On Wed, Sep 15, 2021 at 11:51 AM Alan Thompson wrote: > You could also check out depstar > No, please use tools.build -- I already use it in most of my OSS projects to build library JARs for deployment to Clojars (instead of depstar). I've been working with Alex to close the gap between uber in

Re: pre and post assertions, always in the meta data?

2022-02-15 Thread Sean Corfield
Whilst you solved your problem, you didn't get an answer about metadata. There are multiple places metadata can appear in a function definition: dev=> (defn ^{:one true} func (^{:two true} [x] {:three true} x) {:four true}) #'dev/func dev=> (meta #'func) {:one true, :arglists ([x]), :four true,

Re: Why is next.jdbc using my IP address?

2022-03-04 Thread Sean Corfield
> Okay, this seems to have to do with characters acting as wildcards in the password itself. This is in the .env file: I don't know what library you are using for managing your configuration but perhaps it interprets $n as an environment variable called n and substitutes the value (which will be e

Re: what is the best forum for keeping up with Clojure?

2024-01-09 Thread Sean Corfield
The Clojurians Slack is probably the largest and most activity community these days – http://clojurians.net to self-signup and https://clojurians.slack.com for the content – but there's also https://clojureverse.org if you prefer a "forum" over "chat". And there's r/Clojure on Reddit – which als

Re: [ANN] Clojure 1.9.0-alpha1

2016-05-25 Thread Sean Corfield
machinery). 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 On 5/24/16, 11:12 PM, "Mark Engelberg" wrote: On Tue, May 24, 2016 at 11:01 PM, wrote:

Re: Avoiding nested ifs...

2016-05-26 Thread Sean Corfield
-> data first-guard second-guard (another-guard :with “parameters”) (process-the-data 1 2 3 4))) That works well for a process that operates on non-nil data and then you write the guards to return the data if it’s valid or nil if it isn’t. Sean Corfie

Re: [ANN] Clojure 1.9.0-alpha1

2016-05-26 Thread Sean Corfield
e namespace. I plan to try this with clojure.java.jdbc as an exercise “soon”. 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 bec

[ANN] clj-time 0.12.0

2016-06-06 Thread Sean Corfield
access to formatters     More JDBC date/time type coercions     New functions: min-date, max-date, nth-day-of-the-month, etc Full details: https://github.com/clj-time/clj-time/blob/master/ChangeLog.md Sean Corfield -- (904) 302-SEAN An Architect's View --

Re: Vars named **

2016-06-06 Thread Sean Corfield
Since hardly anyone uses Clooj, I doubt Arthur has had much incentive to keep maintaining it. The last commit to the entire project was almost exactly two years ago… Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ "If you're not annoying someb

Re: [ANN] Clojure 1.9.0-alpha5

2016-06-07 Thread Sean Corfield
.incubator/seqable? 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 On 6/7/16, 10:38 AM, "Alex Miller" wrote: Clojure 1.9.0-alpha5 is now available.

Re: [ANN] Clojure 1.9.0-alpha5

2016-06-07 Thread Sean Corfield
it breaks taoensso.nippy’s use of encore). 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 On 6/7/16, 12:01 PM, "Alex Miller" wrote: I'

Re: [ANN] Clojure 1.9.0-alpha5

2016-06-07 Thread Sean Corfield
a do). I’ll keep digging into that and report back with my findings – clearly it’s not an issue with Alpha 5 per se and doesn’t appear to be an issue with Encore directly, so it’s some weird interaction in our dependencies or toolchain somewhere… Sean Corfield -- (904) 302-SEAN An

Re: [ANN] Clojure 1.9.0-alpha5

2016-06-07 Thread Sean Corfield
Whilst updating our code, I noticed there’s bigdec? to test for java.math.BigDecimal but not bigint? or biginteger? Is there a specific reason for that omission or were those just missed? Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ "If you'

Re: [ANN] Clojure 1.9.0-alpha5

2016-06-08 Thread Sean Corfield
Given the only two things in Clojure that implement Named are keyword and symbol – and we have ident? – what additional value would named? have? (but, yes, that was my first thought when I saw the list of new predicates) Sean Corfield -- (904) 302-SEAN An Architect's View --

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