Re: [ANN] ClojureQL 1.0.3

2011-12-21 Thread Vinzent
Great! Thank you so much for 1.3 support! -- 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 unsubs

Re: [ANN] ClojureQL 1.0.3

2011-12-21 Thread Vinzent
BTW, http://www.clojureql.org/ is down, do you know what happened? -- 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: Ranged types

2011-12-21 Thread Linus Ericsson
Hi Marek! I would def a protocol CustomArithmetics and include the the nescessary methods for arithmetics, and then a deftype for each custom arithmetics. It would be possible to extend the protocol for Longs and Integers as well, if needed. If you would like to use the normal operator-names +,-

Re: Ranged types

2011-12-21 Thread Tassilo Horn
Marek Kubica writes: > I am idly thinging on how to create types with special restraints on > them, like being only in the range 1-1000 or only even numbers etc and > all normal operations like + and - still being valid. + and - would have wrap-around semantics, I guess? > Anyone has an idea ho

Re: ANN: Seesaw 1.3.0

2011-12-21 Thread Sam Aaron
Hi Dave, very cool - I love that you're working on improving the explorability of the system. It's clearly a focus that REPL driven development emphasises and I hope we see more people working in this area. Sam --- http://sam.aaron.name On 21 Dec 2011, at 03:24, Dave Ray wrote: > Hi, > > I'

Re: ClojureQL 1.0.3

2011-12-21 Thread Shantanu Kumar
If anyone were to consider, I would vote for ClojureQL 1.1 to factor out the Relational Algebra engine into a subcomponent with independent presence on Clojars. Regards, Shantanu On Dec 20, 5:22 am, Herwig Hochleitner wrote: > Hello, > > we've finally got around to do a bug fix release for Cloju

Re: ANN: Seesaw 1.3.0

2011-12-21 Thread Kevin Ilchmann Jørgensen
Hi Regarding explorability, what would be the best way to provide an repl directly in a Seesaw app? /kevin On Dec 21, 2011 10:12 AM, "Sam Aaron" wrote: > Hi Dave, > > very cool - I love that you're working on improving the explorability of > the system. It's clearly a focus that REPL driven de

Re: Ranged types

2011-12-21 Thread Marek Kubica
Hi, Thanks for your mail, glad to get ideas so fast :) On Wed, 21 Dec 2011 09:51:04 +0100 Linus Ericsson wrote: > I would def a protocol CustomArithmetics and include the the > nescessary methods for arithmetics, and then a deftype for each > custom arithmetics. It would be possible to extend t

Re: Ranged types

2011-12-21 Thread Marek Kubica
Hi, Wow, thanks for all that input :) It is always a pleasure to post on this list, to get such good advice. On Wed, 21 Dec 2011 09:51:31 +0100 Tassilo Horn wrote: > > I am idly thinging on how to create types with special restraints on > > them, like being only in the range 1-1000 or only even

Re: ANN: Seesaw 1.3.0

2011-12-21 Thread Laurent PETIT
Hello Dave ! 2011/12/21 Dave Ray : > Hi, > > I've just release Seesaw 1.3.0. Details of this release can be found > in the release notes [1]. There are a few features I'm pretty happy > about, so I'll mention them briefly here. > > Interactive development: So far, learning Seesaw has meant getting

Re: ANN: Seesaw 1.3.0

2011-12-21 Thread Sam Aaron
On 21 Dec 2011, at 12:42, Laurent PETIT wrote: > > As a tool builder, I'd also be interested if what is printed in *out* > by these functions could also be made available as pure data, so that > e.g. at some point in time, CCW could provide a specialized tabular > view to display (edit?) this in

Re: ANN: Seesaw 1.3.0

2011-12-21 Thread Meikel Brandmeyer
Hi, Am 21.12.2011 um 13:56 schrieb Sam Aaron: > One approach to achieving that is to create a special type which represents > the data and for which you also override the print-method. A simple approach is a get-option-info and a print-option-info. Toolsmiths use get-option-info to get the dat

Re: ANN: Seesaw 1.3.0

2011-12-21 Thread Sam Aaron
On 21 Dec 2011, at 13:10, Meikel Brandmeyer wrote: > Hi, > > Am 21.12.2011 um 13:56 schrieb Sam Aaron: > >> One approach to achieving that is to create a special type which represents >> the data and for which you also override the print-method. > > A simple approach is a get-option-info and

Re: Ranged types

2011-12-21 Thread Linus Ericsson
2011/12/21 Marek Kubica > Hi, > > Thanks for your mail, glad to get ideas so fast :) > > On Wed, 21 Dec 2011 09:51:04 +0100 > Linus Ericsson wrote: > > > I would def a protocol CustomArithmetics and include the the > > nescessary methods for arithmetics, and then a deftype for each > > custom ar

Re: ANN: Seesaw 1.3.0

2011-12-21 Thread Dave Ray
Thanks Sam! Of course my experience with Overtone had more than a little to do with this work :) On Wed, Dec 21, 2011 at 4:12 AM, Sam Aaron wrote: > Hi Dave, > > very cool - I love that you're working on improving the explorability of the > system. It's clearly a focus that REPL driven developme

Re: ANN: Seesaw 1.3.0

2011-12-21 Thread Dave Ray
Kevin, Being a Swing app, I'd take a look at how Clooj (https://github.com/arthuredelstein/clooj) does it. Dave On Wed, Dec 21, 2011 at 4:36 AM, Kevin Ilchmann Jørgensen wrote: > Hi > > Regarding explorability, what would be the best way to provide an repl > directly in a Seesaw app? > > /kevin

Re: ANN: Seesaw 1.3.0

2011-12-21 Thread Dave Ray
Hi Laurent! ... On Wed, Dec 21, 2011 at 7:42 AM, Laurent PETIT wrote: > Hello Dave ! > > 2011/12/21 Dave Ray : >> Hi, >> >> I've just release Seesaw 1.3.0. Details of this release can be found >> in the release notes [1]. There are a few features I'm pretty happy >> about, so I'll mention them b

Re: Ranged types

2011-12-21 Thread Tassilo Horn
Marek Kubica writes: Hi Marek, > Yeah, the problem that I see is that I have an additional set of > operators, r+, r- and friends, so every consumer has to be aware of my > numbers and use the proper operations, like the float-operators in > OCaml +. -. or the BigInteger stuff in Java. I'd like

Re: ClojureQL 1.0.3

2011-12-21 Thread Herwig Hochleitner
Vinzent: I figure Lau is updating the Site. 2011/12/21 Shantanu Kumar > If anyone were to consider, I would vote for ClojureQL 1.1 to factor > out the Relational Algebra engine into a subcomponent with independent > presence on Clojars. > Factoring CQL is indeed desirable. The RA compiler and t

[ANN] reader-macros

2011-12-21 Thread Peter Danenberg
Despite Brian Carpenter's warning about torches and pitchforks [1], I've decided to release a reader-macros package; may Zeus forgive me for opening this pithos: https://github.com/klutometis/reader-macros Here's a trivial example where we implement a reverse-string reader: (use '[clojure.st

Re: ClojureQL 1.0.3

2011-12-21 Thread Vinzent
Good to hear it. One more thing: Shantanu Kumar have proposed to create a clojureql google group, and I also think it's a good idea. Would you please create it? -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to cloj

Re: [ANN] reader-macros

2011-12-21 Thread Peter Danenberg
Whoops: that's Brian Carper, not Carpenter. Quoth Peter Danenberg on Setting Orange, the 63rd of The Aftermath: > Despite Brian Carpenter's warning about torches and pitchforks [1], > I've decided to release a reader-macros package; may Zeus forgive me > for opening this pithos: > > https://git

Re: [ANN] reader-macros

2011-12-21 Thread Aaron Cohen
On Wed, Dec 21, 2011 at 12:27 PM, Peter Danenberg wrote: > Despite Brian Carpenter's warning about torches and pitchforks [1], > I've decided to release a reader-macros package; may Zeus forgive me > for opening this pithos: > >  https://github.com/klutometis/reader-macros > > Here's a trivial exa

Re: [ANN] reader-macros

2011-12-21 Thread Peter Danenberg
Quoth Aaron Cohen on Setting Orange, the 63rd of The Aftermath: > Ha, I just looked at the source, it's really weird to see λ in > "clojure" code. That's a little idiosyncrasy of mine: I've been chastised for it in the past; maybe `lambda' would be more readable? -- You received this message bec

Re: [ANN] reader-macros

2011-12-21 Thread Aaron Cohen
2011/12/21 Peter Danenberg : > Quoth Aaron Cohen on Setting Orange, the 63rd of The Aftermath: >> Ha, I just looked at the source, it's really weird to see λ in >> "clojure" code. > > That's a little idiosyncrasy of mine: I've been chastised for it in > the past; maybe `lambda' would be more readab

Re: [ANN] reader-macros

2011-12-21 Thread Aaron Cohen
2011/12/21 Aaron Cohen : > 2011/12/21 Peter Danenberg : >> Quoth Aaron Cohen on Setting Orange, the 63rd of The Aftermath: >>> Ha, I just looked at the source, it's really weird to see λ in >>> "clojure" code. >> >> That's a little idiosyncrasy of mine: I've been chastised for it in >> the past; ma

Re: [ANN] reader-macros

2011-12-21 Thread Peter Danenberg
Quoth Aaron Cohen on Setting Orange, the 63rd of The Aftermath: > One thing I'd really want before I even considered using this would > be some way of restricting the scope of a reader macro to the > current file. As is, they just have way too much room to interfere > with your whole world. I'm not

Re: [ANN] reader-macros

2011-12-21 Thread Peter Danenberg
Quoth Aaron Cohen on Setting Orange, the 63rd of The Aftermath: > Oh excuse me, I was misreading what is going on here with the > lambda. I thought it was a reader macro, but you're just pulling > that alias in from some dependency. Exactly: `λ' and `defλ' are just vanilla macros that shadow `fn'

Question about accessing java methods?

2011-12-21 Thread Antonio Recio
Is this correct? Are there other ways to convert this java line in clojure? Java: boxWidget.GetProp3D().SetUserTransform(t); Clojure: (doto boxWidget (-> (GetProp3D.) (.SetUserTransform t))) -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to

Re: Question about accessing java methods?

2011-12-21 Thread Jonas
You can also do (.. boxWidget GetProp3D (SetUserTransform t)) or (-> boxWidget .GetProp3D (.SetUserTransform t)) -- 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 me

Re: Question about accessing java methods?

2011-12-21 Thread Alan Malloy
On Dec 21, 12:03 pm, Jonas wrote: > You can also do (.. boxWidget GetProp3D (SetUserTransform t)) or (-> > boxWidget .GetProp3D (.SetUserTransform t)) Well, neither of these are strictly equivalent to his original code, which returns the boxWidget; yours return the result of SetUserTransform. H

Re: java this keyword ?

2011-12-21 Thread Antonio Recio
I am trying to listen every interaction event that is generated by the boxWidget, but I am not able to get the solution (defn myCallback [] (let [t (vtk.vtkTransform.)] (doto boxWidget (.GetTransform t) (-> (.GetProp3D) (.SetUserTransform t)) )))

Re: Question about accessing java methods?

2011-12-21 Thread Dave Ray
On Wed, Dec 21, 2011 at 3:10 PM, Alan Malloy wrote: > > > On Dec 21, 12:03 pm, Jonas wrote: >> You can also do (.. boxWidget GetProp3D (SetUserTransform t)) or (-> >> boxWidget .GetProp3D (.SetUserTransform t)) > > Well, neither of these are strictly equivalent to his original code, > which retur

Re: Question about accessing java methods?

2011-12-21 Thread Meikel Brandmeyer
Hi, Am 21.12.2011 um 23:39 schrieb Dave Ray: > yeah. it's only 3 characters, but for whatever reason it sees to make > a difference to me :) Also to consider: using the dot-in-front version with -> might enable your dev env to provide much better hints for code completion(*), which might reduce

How to use *command-line-args* ?

2011-12-21 Thread Antonio Recio
I am trying to write an application using *command-line-args* to read and write images: (defn read-write-image [input-filename output-filename] (let [reader (ImageFileReader.) writer (ImageFileWriter.)] (.SetFileName reader input-filename) (.SetFileName writer output-filename)

Re: How to use *command-line-args* ?

2011-12-21 Thread Antonio Recio
Solved: (read-write-image (nth *command-line-args* 0) (nth *command-line-args* 1)) -- 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