Re: [ANN] Morphe: an aspect-oriented tool

2019-06-26 Thread Timothy Dean
ry that project would have been 15-25% larger (again, my memory is fuzzy) in LOC, but it's not something I tracked, and I don't know what the numbers look like now. Many uses were on the edges, but there were some (e.g., tracing) that sometimes weaved through the internals of a compo

[ANN] Morphe: an aspect-oriented tool

2019-06-24 Thread Timothy Dean
escript (but not self-hosted Clojurescript). This was an adventure, and it's quite possible there are some issues with the CLJS implementation that I have not yet discovered. ~Timothy Dean -- You received this message because you are subscribed to the Google Groups "Clojure" grou

Re: Thoughts on clojure.spec

2018-04-09 Thread Dean Thompson
enjoying and getting value from orchestra <https://github.com/jeaye/orchestra>. Dean -- 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 ar

Re: any? in clojure 1.9.0 alpha

2017-10-08 Thread Timothy Dean
Thank you, Alex. I'll check them out. ~Timothy Dean On Sun, Oct 8, 2017 at 8:09 PM, Alex Miller wrote: > We had this discussion at length in several places (clojure mailing list, > clojure-dev mailing list, reddit probably) over a year ago when any? was > added in 1.9.0-alpha

Re: any? in clojure 1.9.0 alpha

2017-10-08 Thread Timothy Dean
eing quite natural in common English and a good fit for Clojure and spec: the distinction between something/nothing and presence/absence. I would propose `present?` as the name to replace `any?`. But if the ship has sailed, then onward ho! Clojure will still be a great tool. ~Timothy

Re: pmap: transducer & chunking

2017-05-26 Thread Timothy Dean
gain so is current `pmap` behavior. Thanks, ~Timothy Dean On Fri, May 26, 2017 at 11:47 AM, Gary Trakhman wrote: > Have you looked into core.async's 'pipeline' function for parallelism? > That was my first question when I saw this post. I'm not sure why there's &g

Re: pmap: transducer & chunking

2017-05-26 Thread Timothy Dean
(keep pred)) reducer init coll) Does that make sense, or am I crazy? :) ~Timothy Dean On Friday, May 26, 2017 at 3:10:15 AM UTC-6, Matching Socks wrote: > > With the overh

pmap: transducer & chunking

2017-05-25 Thread Timothy Dean
map deref) rf result @xs))) ([result input] (handle result (future (f input ([result input & inputs] (handle result (future (apply f input inputs) ([f coll] (sequence (pmap f) coll)) ([f coll & colls] (apply sequence (pmap f) coll colls))) ~Timothy Dea

Re: Apparently nondeterministic compilation failure

2017-01-24 Thread Timothy Dean
I could be wrong, but I think I've seen this before under these circumstances: Clojure namespace ns-a imports Java class SomeClass. Clojure namespace ns-b requires ns-a. Clojure namespace ns-b refers to SomeClass, and everything works smoothly. Then ns-a stops importing Java class SomeClass, and

Core Banking And The Mechanics Of Money Creation

2014-12-17 Thread Matt Dean
Tim, I enjoyed reading your post. Having recently launched an online banking user interface for a credit union using the same principles you mentioned (and React), I agree that this represents the path forward for financial institutions, and a surprising number of credit union execs seem to feel

Re: Accumulate results without state?

2014-03-05 Thread Dean Laskin
.*$" input) (conj accu (second (string/split input #","))) accu)) [] (line-seq rdr Dean On Tuesday, March 4, 2014 4:21:47 PM UTC-5, Dean Laskin wrote: > > I'm comparing two large files based on specific fields in the fi

Re: Accumulate results without state?

2014-03-04 Thread Dean Laskin
Awesome, thanks Jason! It looks much cleaner. Dean On Tuesday, March 4, 2014 4:47:12 PM UTC-5, Jason Felice wrote: > > Something like > > (with-open [rdr (clojure.java.io/reader "/dev/errors-sunday.csv")] > (->> (line-seq rdr) > (filter #(re-matc

Accumulate results without state?

2014-03-04 Thread Dean Laskin
rdr)] (when (re-matches #"^[^,]+,[^,]+,FAIL,.*$" line) (swap! fri conj (nth (string/split line #",") 1))))) (println (nth (data/diff (set @fri) (set @sun)) 1)) ) Thanks, Dean -- You received this message because you are subscribed to the Googl

Where is the javadoc for clojure.lang ?

2011-04-08 Thread Dean
The link to the API from clojure.org does not contain anything from clojure.lang. Where do I find javadoc for the clojure.lang package? Also, is there downloadable javadoc? Thanks. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this gro

CfP: Development Languages, Practices & Techniques at Agile 2011

2011-01-08 Thread Dean Wampler
ease visit *http://tinyurl.com/3agypjl.* * * To submit proposals, please visit http://agile2011.agilealliance.org/. Thanks for your consideration. Yours, dean -- Dean Wampler co-producer, Development Languages, Practices, and Techniques stage at Agile2011 "Programming Scala" (O'

Re: Enhanced Primitive Support

2010-06-18 Thread Chris Dean
re only used during optimization? prim-+ prim-/ etc.) Cheers, Chris Dean -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be pati

Deadline Extended to Feb. 15: IEEE Software Multi-Paradigm Programming Special Issue - Sep/Oct 2010

2010-02-01 Thread Dean Wampler
l/web/computingnow/swcfp5 Yours, dean Dean Wampler, Ph.D. d...@polyglotprogramming.com co-author: "Programming Scala", O'Reilly: - http://programmingscala.com -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to thi

Re: Contrib Logging change

2010-01-12 Thread Chris Dean
ataggart writes: > Which is why I added the arglist metadata (shown via doc): > [level fmt & args] [level throwable fmt & fmt-args] Ah, good call. I missed that. Cheers, Chris Dean -- You received this message because you are subscribed to the Google Groups "Clojure"

Re: Contrib Logging change

2010-01-12 Thread Chris Dean
e impl-enabled? and now there is a instance? call as well. Also, I think format requires at least one arg, so (logf :debug) isn't valid. Probably should change the signature to (defmacro logf [level fmt-or-throwable & args] ...) Cheers, Chris Dean -- You received this message becaus

Re: Contrib Logging change

2010-01-11 Thread Chris Dean
`(log ~level (format ~@(cons fmt args Cheers, Chris Dean -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient wit

[ANN] CfP: IEEE Software Special Issue: Multiparadigm Programming

2010-01-07 Thread Dean Wampler
. -- Dean Wampler coauthor of "Programming Scala" (O'Reilly) - http://programmingscala.com twitter: @deanwampler, @chicagoscala blog: http://blog.polyglotprogramming.com Chicago-Area Scala Enthusiasts (CASE): - http://groups.google.com/group/chicagoscala - http://www.meetup.c

Baffled by NPE

2009-11-03 Thread Dean Wampler
3.clj:3) at user$for_each__1.invoke(ex2.23.clj:3) at user$eval__4.invoke(ex2.23.clj:5) at clojure.lang.Compiler.eval(Compiler.java:4604) ... 10 more I tried replacing the list in the last line with a vector. Same result. Suggestions welcome! dean -- Dean

Re: Baffled by NPE

2009-11-03 Thread Dean Wampler
nil > ((f (first items)) (for-each f (rest items))) => (nil (for-each f > (rest items))) => (.invoke nil (for-each f (rest items))) => calling a > method on nil is a NPE > > lists are function applications > > On Tue, Nov 3, 2009 at 9:33 AM, Dean Wampler > wrote: &

Re: Is it possible to implement break or return in Lisp?

2009-11-01 Thread Chris Dean
tion Cheers, Chris Dean --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - pleas

Re: Can (genclass) be changed to operate when not compiling?

2009-07-21 Thread Chris Dean
Howard Lewis Ship writes: > It would be nice if (gen-class), when not in compile mode, would still > create a class in memory that could be referenced by class name > elsewhere in Clojure. +1 I would find this useful as well. Cheers, C

Re: Emacs clojure mode: how to set current directory & classpath

2009-07-20 Thread Chris Dean
nch/tree/master It's written in Ruby and is Unix-centric. Cheers, Chris Dean --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups

Re: Emacs clojure-mode home?

2009-07-01 Thread Chris Dean
> It looks like your patch might be incomplete; I get a void-variable: > clojure-mode-abbrev-table when I run that. So it is. Looks like I had the defs in my private startup file for some reason. Here's a corrected patch. Cheers, Chris Dean diff --git a/clojure-mode.el b/cloj

Emacs clojure-mode home?

2009-07-01 Thread Chris Dean
is so small. Cheers, Chris Dean diff --git a/clojure-mode.el b/clojure-mode.el index b7b2de0..f9fa8ec 100644 --- a/clojure-mode.el +++ b/clojure-mode.el @@ -192,6 +192,8 @@ if that value is non-nil." (lisp-mode-variables nil) (set-syntax-table clojure-mode-syntax-table) + (setq local-

Re: Code generation at runtime

2009-06-23 Thread Chris Dean
ile and run than to interpret, isn't it? Especially > in a tight loop executed millions of time.) BTW, Clojure doesn't have an interpreter - all the code is compiled. You could, of course write your own interpreter if that's what you mean. Cheers, Chris Dean --~--~-~--~

Re: multimethods

2009-06-16 Thread Chris Dean
o use the same names as are in the CL "core", almost no one does. Cheers, Chris Dean --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@goog

multimethods

2009-06-16 Thread Chris Dean
g logically be a method and take a performance penalty. For me it's a consistency and simplicity over performance argument, although not everyone will agree. Cheers, Chris Dean --~--~-~--~~~---~--~~ You received this message because you are subscribed to the G

Re: Best way to augment core functions to support other data types?

2009-06-16 Thread Chris Dean
y easy. That sounds fine to me, thanks! I'm going to stick to the interfaces in clojure.lang and hope that's kosher. (For example, clojure.lang.Counted) Cheers, Chris Dean --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

Best way to augment core functions to support other data types?

2009-06-16 Thread Chris Dean
oper interfaces. Either using plain old Java or the Clojure proxy/gen-class functions. Cheers, Chris Dean --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to

Re: (Potentially stupid) Question about recursion / trampoline

2009-06-10 Thread Chris Dean
(- iter 1) (+ result 1 (defn add-tail [n] (add-iter n 0)) ;; Another way (defn add-loop [n] (loop [n n acc 0] (if (zero? n) acc (recur (dec n) (inc acc) I generally use loop where I would use a named

Re: Question for Clojure-Mode users.

2009-06-05 Thread Chris Dean
Does anyone know what the functional difference is between clojure-indent-function and common-lisp-indent-function ? Or even the cl-indent:function from slime ? I assume there is a difference, I just don't know what it is. Cheers, Chris

Re: performance concerns (again)

2009-06-05 Thread Chris Dean
on the JVM. Both used a lot of memory and we just took that into consideration when provisioning the machines. Finding a system with the best cpu-performance, memory use, libraries, community, etc is challenging and I for one am happy with the tradeoffs that Clojure has made. [1] Cheers, Chris

Re: Launching apps

2009-05-09 Thread Chris Dean
A repl is a requirement for us. For now I'm using hand written scripts that launch under screen. And that works for us. Cheers, Chris Dean --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. T

Launching apps

2009-05-08 Thread Chris Dean
them and use swank to get a repl, but we eventually stopped doing that in favor of the above solution. Cheers, Chris Dean --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group

Re: HTTP clients in clojure

2009-05-06 Thread Chris Dean
p://google.com";)) => 4675 Cheers, Chris Dean --~--~-~--~~~---~--~~ 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 To unsubscribe from th

Re: Not understanding the proper use of map

2008-12-10 Thread Dean Ferreyra
leaned what I could from the Clojure wiki but I'm still missing > something. > > Any pointers on where I am going wrong? You've almost got it -- just don't quote the +: user> (parallel + '(1 2 3) '(4 5 6)) (5 7 9) By quoting the + you were passing in the symb