Re: Implementing an interface with core/proxy results in UnsupportedOperationException

2012-01-23 Thread Tassilo Horn
Michael Klishin writes: Hi Michael, > I am trying to make it possible to use functions as Quartz jobs for my > Clojure DSL on top of Quartz [1]. For that, I need to implement a > simple 1-method interface. Both gen-class and defrecord with > additional methods work great but seem too heavyweight

Re: Implementing an interface with core/proxy results in UnsupportedOperationException

2012-01-23 Thread Cedric Greevey
On Mon, Jan 23, 2012 at 3:54 AM, Tassilo Horn wrote: > Michael Klishin writes: > > Hi Michael, > >> I am trying to make it possible to use functions as Quartz jobs for my >> Clojure DSL on top of Quartz [1]. For that, I need to implement a >> simple 1-method interface. Both gen-class and defrecor

Re: Best IDE

2012-01-23 Thread Stefan Kamphausen
Hi, On Friday, January 20, 2012 9:40:53 AM UTC+1, Norman Gray wrote: > > Thus C-M-(, C-M-), C-M-f, -b, -u, -d and -k do most of what one wants, in > terms of creating and moving around balanced brackets. why did nobody mention C-M-Space, yet? To me it's one of the most important keystrokes ac

Re: Implementing an interface with core/proxy results in UnsupportedOperationException

2012-01-23 Thread Michael Klishin
Tassilo Horn: > Generally, proxy is for creating proxy objects, and the generation of a > class is more or less a side effect. > > Do I see it correctly that you need a way (1) to have objects > implementing Job which (2) can be instantiated with a zero-args > constructor and (3) whose execute be

Re: Implementing an interface with core/proxy results in UnsupportedOperationException

2012-01-23 Thread Tassilo Horn
Cedric Greevey writes: Hi Cedric, >> Do I see it correctly that you need a way (1) to have objects >> implementing Job which (2) can be instantiated with a zero-args >> constructor and (3) whose execute behavior is customizable by >> providing an arbitrary function f on the JobExecutionContext?

Re: Best IDE

2012-01-23 Thread Norman Gray
On 2012 Jan 23, at 10:50, Stefan Kamphausen wrote: > On Friday, January 20, 2012 9:40:53 AM UTC+1, Norman Gray wrote: >> >> Thus C-M-(, C-M-), C-M-f, -b, -u, -d and -k do most of what one wants, in >> terms of creating and moving around balanced brackets. > > > why did nobody mention C-M-Spac

Re: Implementing an interface with core/proxy results in UnsupportedOperationException

2012-01-23 Thread Chris Perkins
You may want to dig a little deeper into why reify was not working for you. As far as I can tell, the classes created by reify do have a public, no-arg constructor, as you require: user> (-> (reify Runnable (run [_])) type .getConstructors seq) (# #) - Chris -- You received this message becau

Call for Papers: ELS2102 Zadar, Croatia

2012-01-23 Thread Marco Antoniotti
Apologies for the multiple postings = European Lisp Symposium 2012, Zadar, Croatia. www.european-lisp-symposium.org The purpose of the European Lisp Symposium is to provide a forum for the discussion and dissemination of all aspect

Re: Best IDE

2012-01-23 Thread Laurent PETIT
2012/1/23 Stefan Kamphausen > Hi, > > > On Friday, January 20, 2012 9:40:53 AM UTC+1, Norman Gray wrote: >> >> Thus C-M-(, C-M-), C-M-f, -b, -u, -d and -k do most of what one wants, in >> terms of creating and moving around balanced brackets. > > > why did nobody mention C-M-Space, yet? To me it

Re: Best IDE

2012-01-23 Thread Norman Gray
On 2012 Jan 23, at 12:27, Laurent PETIT wrote: >> On Friday, January 20, 2012 9:40:53 AM UTC+1, Norman Gray wrote: >>> >>> Thus C-M-(, C-M-), C-M-f, -b, -u, -d and -k do most of what one wants, in >>> terms of creating and moving around balanced brackets. >> >> >> why did nobody mention C-M-Sp

Re: Implementing an interface with core/proxy results in UnsupportedOperationException

2012-01-23 Thread Cedric Greevey
On Mon, Jan 23, 2012 at 6:17 AM, Tassilo Horn wrote: > Cedric Greevey writes: > > Hi Cedric, > >>> Do I see it correctly that you need a way (1) to have objects >>> implementing Job which (2) can be instantiated with a zero-args >>> constructor and (3) whose execute behavior is customizable by >>

Re: Best IDE

2012-01-23 Thread Stefan Kamphausen
Hi, On Monday, January 23, 2012 1:27:51 PM UTC+1, lpetit wrote: > > 2012/1/23 Stefan Kamphausen > >> Hi, >> >> >> On Friday, January 20, 2012 9:40:53 AM UTC+1, Norman Gray wrote: >>> >>> Thus C-M-(, C-M-), C-M-f, -b, -u, -d and -k do most of what one wants, >>> in terms of creating and moving ar

Literate programming in emacs - any experience?

2012-01-23 Thread Colin Yates
Hi all, There are some excellent resources on this mailing list regarding literate resources, but they are more based around the theory rather than actual use. Has anybody got any "real world usage reports" regarding using literate programming in emacs? In particular, does paredit and slime wo

Re: Best IDE

2012-01-23 Thread Meikel Brandmeyer (kotarak)
Hi, Am Montag, 23. Januar 2012 14:13:33 UTC+1 schrieb Stefan Kamphausen: > > why did nobody mention C-M-Space, yet? To me it's one of the most >>> important keystrokes across all modes in Emacs, that somehow support the >>> sexp-concept. One of the keystrokes that I miss in all the other moder

Re: seesaw texteditor.clj classpath error

2012-01-23 Thread Dave Ray
Jay, That's enough. You've asked this question and many related questions over the last several months [1][2][3][4][5][6]. Usually the simplest answer is download Leiningen [7] and learn to use it. The advice is the same here. Since this is the point in a thread when you usually disappear only to

Re: How to loop over several sequences in parallel for side-effects?

2012-01-23 Thread Meikel Brandmeyer (kotarak)
And (dorun (map )) is creating a cons with a random value (most likely nil) and traverses it and throws it away at every sequence step. YMMV. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.co

Re: ANN: ClojureScript revision 927 release

2012-01-23 Thread Marko Kocić
Nice. All we need now is clojurescriptone release and lein plugin. -- 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 with yo

Re: Literate programming in emacs - any experience?

2012-01-23 Thread Sam Ritchie
I've been wondering this as well -- I'm specifically curious about how one might jump back and forth between literate source like this and the REP

Re: Literate programming in emacs - any experience?

2012-01-23 Thread daly
On Mon, 2012-01-23 at 05:14 -0800, Colin Yates wrote: > Hi all, > > > There are some excellent resources on this mailing list regarding > literate resources, but they are more based around the theory rather > than actual use. > > > Has anybody got any "real world usage reports" regarding using

[ANN] Lacij v.0.6.0

2012-01-23 Thread Pierre Allix
Hello, A new version of Lacij is available. No big changes but bug fixes were done and the library now supports Clojure 1.3! https://github.com/pallix/lacij -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure

[ANN] Lacij v.0.6.0

2012-01-23 Thread Pierre Allix
Hello, A new version of the Tikkba and Lacij libraries are available. No big changes but bug fixes were done and the libraries now supports Clojure 1.3! https://github.com/pallix/tikkba https://github.com/pallix/lacij -- You received this message because you are subscribed to the Google Groups

Re: Literate programming in emacs - any experience?

2012-01-23 Thread daly
On Mon, 2012-01-23 at 07:18 -0800, Sam Ritchie wrote: > I've been wondering this as well -- I'm specifically curious about how > one might jump back and forth between literate source like this and > the REPL. I know you can evaluate code snippets into the repl; I'm > thinking of early steps like lo

Re: How to loop over several sequences in parallel for side-effects?

2012-01-23 Thread Armando Blancas
Can you point to where that's happening? I can only see an iteration of next over the sequence returned by map. On Jan 23, 6:43 am, "Meikel Brandmeyer (kotarak)" wrote: > And (dorun (map )) is creating a cons with a random value (most likely nil) > and traverses it and throws it away at every seq

Re: Literate programming in emacs - any experience?

2012-01-23 Thread Mark Engelberg
On Mon, Jan 23, 2012 at 5:14 AM, Colin Yates wrote: > Has anybody got any "real world usage reports" regarding using literate > programming in emacs?  In particular, does paredit and slime work inside the > clojure "fragments" when using org.babel for example? I had major problems trying to get p

Re: Clojure for Cocoa

2012-01-23 Thread Jeff Heon
I know it's not a Clojure variant, but you might be interested in Nu, an object-oriented Lisp I read about on Disclojure which targets Objective-C. http://programming.nu/index -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, sen

Re: Literate programming in emacs - any experience?

2012-01-23 Thread Colin Yates
Excellent - very nice! -- 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 with your first post. To unsubscribe from this gro

Re: ANN: ClojureScript revision 927 release

2012-01-23 Thread Robert Levy
On Mon, Jan 23, 2012 at 10:09 AM, Marko Kocić wrote: > Nice. > All we need now is clojurescriptone release and lein plugin. Earlier today I updated lein-clojurescript and submitted a pull request, so that should be available to use soon. Rob > > -- > You received this message because you are su

Re: How to loop over several sequences in parallel for side-effects?

2012-01-23 Thread Jeff Palmucci
Shameless plug: If you want to do this type of iteration efficiently, try my library at https://github.com/jpalmucci/clj-iterate user> (iter {for x in '(1 2 3)} {for y in '(a b c)} (println x y)) 1 a 2 b 3 c nil user> Expands into a fast loop/recur form. No intermediate data structu

Re: Literate programming in emacs - any experience?

2012-01-23 Thread Cedric Greevey
On Mon, Jan 23, 2012 at 11:19 AM, daly wrote: > It accepts either noweb syntax for chunks, as in: >    <>= >      (this is lisp code) >    @ A rather unfortunate choice of delimiter if you wanted to use this with Clojure code, since Clojure code frequently has internal @-signs for other purposes.

Re: How to loop over several sequences in parallel for side-effects?

2012-01-23 Thread Meikel Brandmeyer
Hi, Am 23.01.2012 um 17:40 schrieb Armando Blancas: > Can you point to where that's happening? I can only see an iteration > of next over the sequence returned by map. Exactly. And what does (map f xs) return? (cons (f (first xs)) (map f (rest xs))). Each such a cons is created for one step of

Re: How to loop over several sequences in parallel for side-effects?

2012-01-23 Thread Meikel Brandmeyer
Ah. Nevermind. -- 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 with your first post. To unsubscribe from this group, send

Re: Literate programming in emacs - any experience?

2012-01-23 Thread Andy Fingerhut
I've only briefly scanned what I think is the relevant code in tangle.lisp posted by Tim Daly, but it appears that the @ must be the first character on a line, which with indenting I've never seen in a Clojure source file. It would be a tiny change to make the @ required to be on a line by itself,

Re: How to loop over several sequences in parallel for side-effects?

2012-01-23 Thread Alan Malloy
(dorun (map f xs ys zs)) creates and discards a cons for each iteration, no argument there. But its first element is very cheap: just the result of f, which you had to compute anyway. (doseq [[x y z] (map vector xs ys zs)] (f x y z)) similarly creates a cons for each iteration. But its value, rath

Re: Literate programming in emacs - any experience?

2012-01-23 Thread daly
On Mon, 2012-01-23 at 16:17 -0500, Cedric Greevey wrote: > On Mon, Jan 23, 2012 at 11:19 AM, daly wrote: > > It accepts either noweb syntax for chunks, as in: > ><>= > > (this is lisp code) > >@ > > A rather unfortunate choice of delimiter if you wanted to use this > with Clojure cod

language agnostic nrepl client test suite

2012-01-23 Thread Martin DeMello
It is often convenient to have an nrepl client in a non-jvm language - so far I've written one in ocaml and Meikel Brandmeyer has one in factor, that I know of. I'd like to get some ideas for a way to test client compliance in a language agnostic manner - this will be especially helpful when nrepl.

Re: Implementing an interface with core/proxy results in UnsupportedOperationException

2012-01-23 Thread Michael Klishin
Chris Perkins: > You may want to dig a little deeper into why reify was not working for you. > As far as I can tell, the classes created by reify do have a public, no-arg > constructor, as you require: > > user> (-> (reify Runnable (run [_])) type .getConstructors seq) > (# > #) I have tried

Re: Implementing an interface with core/proxy results in UnsupportedOperationException

2012-01-23 Thread Michael Klishin
Cedric Greevey: > Then he has a problem, since it doesn't work with reify and proxy, and > gen-class, deftype, and defrecord are top-level things that don't play > nice with putting them inside a defn. > I do not need them to be inside defn. They will be used as defn and defrecord are used, in

Logic program and hierarchical data

2012-01-23 Thread Base
Hi - I am attempting to model some hierarchical data for use in my first logic program and am having some problems understanding how to create a “typeof?” relationship with my data. Defining parent child is easy enough of course; however I would like to design a generic way of defining a subclass

Re: Literate programming in emacs - any experience?

2012-01-23 Thread Cedric Greevey
On Mon, Jan 23, 2012 at 6:23 PM, daly wrote: > On Mon, 2012-01-23 at 16:17 -0500, Cedric Greevey wrote: >> On Mon, Jan 23, 2012 at 11:19 AM, daly wrote: >> > It accepts either noweb syntax for chunks, as in: >> >    <>= >> >      (this is lisp code) >> >    @ >> >> A rather unfortunate choice of

Re: Literate programming in emacs - any experience?

2012-01-23 Thread daly
> > For Eclipse I suppose we could invent a chunk syntax > > and create a plugin. If people are interested perhaps we > > could create a Literate Clojure plugin for Eclipse. See > > http://www.eclipse.org/articles/Article-Your%20First% > > 20Plug-in/YourFirstPlugin.html > > That would make Clojure

Re: Literate programming in emacs - any experience?

2012-01-23 Thread Cedric Greevey
On Mon, Jan 23, 2012 at 10:06 PM, daly wrote: > >> > For Eclipse I suppose we could invent a chunk syntax >> > and create a plugin. If people are interested perhaps we >> > could create a Literate Clojure plugin for Eclipse. See >> > http://www.eclipse.org/articles/Article-Your%20First% >> > 20Plu

Re: Logic program and hierarchical data

2012-01-23 Thread Edmund
Hi Base, In Dave Nolen's tutorial: https://github.com/swannodette/logic-tutorial there is a section on genealogy in which he composes child and child to create grandchild. Seems similar, maybe helpful ? Edmund On 24/01/2012 01:35, Base wrote: > Hi - > > I am attempting to model some hi

Re: Logic program and hierarchical data

2012-01-23 Thread Cedric Greevey
On Mon, Jan 23, 2012 at 11:04 PM, Edmund wrote: > Hi Base, > >        In Dave Nolen's tutorial: > https://github.com/swannodette/logic-tutorial there is a section on > genealogy in which he composes child and child to create grandchild. > Seems similar, maybe helpful ? Caveat: I'm familiar with l

Re: Logic program and hierarchical data

2012-01-23 Thread David Nolen
One way: (ns hierarchy.core (:refer-clojure :exclude [==]) (:use [clojure.core.logic])) (def order [:domain :kingdom :phylum :class :order :family :genus :species]) (def homo-sapiens {:domain :eukarya :kingdom :animalia-metazoa :phylum :chordata :class :mammalia :order :primate

Re: Logic program and hierarchical data

2012-01-23 Thread Cedric Greevey
On Mon, Jan 23, 2012 at 11:41 PM, David Nolen wrote: > (def homo-sapiens >   {:domain :eukarya >    :kingdom :animalia-metazoa >    :phylum :chordata >    :class :mammalia >    :order :primate >    :family :hominidae >    :genus :homo >    :species :homo-sapiens}) Looks like putting all the trans

Re: Logic program and hierarchical data

2012-01-23 Thread David Nolen
On Tue, Jan 24, 2012 at 12:00 AM, Cedric Greevey wrote: > On Mon, Jan 23, 2012 at 11:41 PM, David Nolen > wrote: > > (def homo-sapiens > > {:domain :eukarya > >:kingdom :animalia-metazoa > >:phylum :chordata > >:class :mammalia > >:order :primate > >:family :hominidae > >

Re: "including" Protocols in clojurescript

2012-01-23 Thread Dave Sann
I am still not sure what the definitive answer to this is. Can anyone confirm? thanks Dave -- 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 -

Re: Clojure for Cocoa

2012-01-23 Thread Matthias Benkard
Hi, David Nolen schrieb: > * F-Script > * JSCocoa > * Clozure CL > * MacRuby Also, * Toilet Lisp. Git repo: https://matthias.benkard.de/code/toilet.git Toilet Lisp is an incomplete implementation of Common Lisp hosted on the Objective-C runtime. It includes both an interpreter and an LLVM- ba

Re: [ANN] oauth-clj

2012-01-23 Thread Dave Sann
Hi r0man, I am curious as to similarities/differences of your library to: https://github.com/mattrepl/clj-oauth Dave -- 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