Re: Understanding init (the zero arity function) for transducers.

2016-03-10 Thread Patrick Curran
pre: result = nil , input = 5 > > ; map-t [result input] post: result = nil > > ; filter-t [result input] post: result = nil > > > > ; filter-t [result] pre: result = nil > > ; map-t [result] pre: result = nil > > ; map-t [result] post: result = nil > > ;

Re: Understanding init (the zero arity function) for transducers.

2016-03-08 Thread Patrick Curran
:10:53 PM UTC-5, Alex Miller wrote: > > I think that Rich had an objection to this, however in the haziness of > time I don't recall specifically what it was. If I get a chance, I will ask > him this week. > > On Monday, February 29, 2016 at 3:27:15 PM UTC-6, Patrick Curran

Understanding init (the zero arity function) for transducers.

2016-02-29 Thread Patrick Curran
Hi, I was trying to write a transducer and the 0-arity part of it never got called, which was unexpected. I did some searching and found this post: https://groups.google.com/forum/#!msg/clojure/uVKP4_0KMwQ/-oUJahvUarIJ. What Dan is proposing in that post would essentially solve my problem, but

Re: Clojure in Emacs Seemingly Impossible

2011-09-11 Thread Curran
the Emacs setup, thanks again for the support. Best, Curran On Sep 11, 5:13 am, Sean Toner wrote: > Hi Curran, > > I'm in the process of learning Clojure and emacs as well and have run > into a bit of difficulty as well, though I have a slightly different > problem.  I grabbed

Clojure in Emacs Seemingly Impossible

2011-09-10 Thread Curran
ternative development tool? (I know there are lots, but I don't know which to try first). Thank you very much. Best regards, Curran -- 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: 3D Grapher in Clojure

2009-05-16 Thread Curran Kelleher
ast instructions on using JOGL, it's not at all obvious. I plan on including one in future releases. Anyway, thanks for checking it out! Best, Curran On May 15, 3:28 pm, MikeM wrote: > Nice! > > I had to learn a bit about jogl to get it to work - had to add - > Djava.library.path={

3D Grapher in Clojure

2009-05-14 Thread Curran Kelleher
): http://curransoft.com/code/liquidmath-20090513.zip A writeup (with screenshot) of it is here: http://lifeofaprogrammergeek.blogspot.com/2009/05/3d-grapher-in-clojure.html You folks on this mailing list have helped me a lot in learning Clojure and doing this project, thanks! Best, Curran

Documentation Flaw for "binding"

2009-05-12 Thread Curran Kelleher
for code to communicate with code above it in the call stack." Is one of these the intended meaning of that sentence? Thanks to everyone for being such a vibrant community. Clojure rocks! Best, Curran --~--~-~--~~~---~--~~ You received this message because

Re: Yet Another Swing Example

2009-05-11 Thread Curran Kelleher
Aha! I discovered a solution to the window-closing problem mentioned above: calling (.dispose frame) on the window closing event will cause the application to exit when running independently (I guess because it causes everything to be garbage collected thus the VM terminates (?) ) , but doesn't ki

Re: Yet Another Swing Example

2009-05-11 Thread Curran Kelleher
d somehow, but for now has led me to just use (load-file) instead of having real namespaces. I think it should (ideally) be possible to reference namespaces that are currently loaded, without the need to have them on the classpath. Have a great day! Curran On May 11, 7:26 am, fendres <198...@web.

Yet Another Swing Example

2009-05-07 Thread Curran Kelleher
simplify this code? Best, Curran Here's the code: ;A test program exploring how to structure GUI code in Clojure ;The GUI draws whatever you type in the text field nicely in the panel below. ;license: Public domain (import '(javax.swing JFrame JLabel JTextField JButton JPanel)

Re: Every function is a thread in Clojure?

2009-04-04 Thread Curran Kelleher
Indeed! this is a perfect discussion - great clarifications to a worthy question On Apr 4, 9:14 am, Rayne wrote: > Never be sorry about being curious. > > On Apr 3, 10:06 am, Berlin Brown wrote: > > > On Apr 3, 10:09 am, Stuart Halloway wrote: > > > > No threads: > > > > (ancestors (class (fn[

Re: The Game Loop ... the Clojure way?

2009-04-03 Thread Curran Kelleher
). In case anyone's interested, here's a Clojure port of the JOGL demo on Wikipedia (http://en.wikipedia.org/wiki/Jogl). ;This is a Clojure port of the JOGL example in Wikipedia ;Author: Curran Kelleher ;License: Public Domain ;jar dependencies: jogl.jar, gluegen-rt.jar ;for the REPL (use C

The Game Loop ... the Clojure way?

2009-04-03 Thread Curran Kelleher
d-off? why? (send-off animator animation)) (defn stop-animation [] (send animator (fn [x] false))) ;for SLIME (comment (start-animation) (stop-animation) ) Thanks a lot! Clojure is a blast! Best, Curran Kelleher --~--~-~--~~~---~--~~ You received this

Re: Fresh Clojure Tutorial

2009-03-31 Thread Curran Kelleher
Glad to hear it is a usable tutorial! It seems like lots of people coming to Clojure not coming from Java are having difficulties with GUI coding. I think a big list of GUI examples in Clojure would be the perfect remedy. @Krešimir - I think blogger was down for a bit that day, the link should b

Fresh Clojure Tutorial

2009-03-29 Thread Curran Kelleher
Hello, I've created an introductory tutorial for Clojure and Emacs here: http://lifeofaprogrammergeek.blogspot.com/2009/03/learning-clojure-and-emacs.html I just wanted to let the community know, maybe it should be linked to in the wiki? Best, C

Slime bug

2009-03-27 Thread Curran Kelleher
entation. Is this the right place to report this bug? I installed SLIME for Clojure following the instructions at http://riddell.us/tutorial/slime_swank/slime_swank.html I'm a Java programmer trying to grok Clojure, so far I am very very impressed. Many kudos to the Clojure folks! Best re