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

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

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 ma...@xivilization.net 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?

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 hhochleit...@gmail.com wrote: Hello, we've finally got around to do a bug

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 tass...@member.fsf.org wrote: I am idly thinging on how to create types with special restraints on them, like being only in the range

Re: ANN: Seesaw 1.3.0

2011-12-21 Thread Laurent PETIT
Hello Dave ! 2011/12/21 Dave Ray dave...@gmail.com: 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

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

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 data

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 a

Re: Ranged types

2011-12-21 Thread Linus Ericsson
2011/12/21 Marek Kubica ma...@xivilization.net Hi, Thanks for your mail, glad to get ideas so fast :) On Wed, 21 Dec 2011 09:51:04 +0100 Linus Ericsson oscarlinuserics...@gmail.com wrote: I would def a protocol CustomArithmetics and include the the nescessary methods for arithmetics,

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 samaa...@gmail.com 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

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 kijm...@gmail.com wrote: Hi Regarding explorability, what would be the best way to provide an repl directly in a Seesaw

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 laurent.pe...@gmail.com wrote: Hello Dave ! 2011/12/21 Dave Ray dave...@gmail.com: 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

Re: Ranged types

2011-12-21 Thread Tassilo Horn
Marek Kubica ma...@xivilization.net 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

Re: ClojureQL 1.0.3

2011-12-21 Thread Herwig Hochleitner
Vinzent: I figure Lau is updating the Site. 2011/12/21 Shantanu Kumar kumar.shant...@gmail.com 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.

[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

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

Re: [ANN] reader-macros

2011-12-21 Thread Aaron Cohen
On Wed, Dec 21, 2011 at 12:27 PM, Peter Danenberg p...@roxygen.org 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

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

Re: [ANN] reader-macros

2011-12-21 Thread Aaron Cohen
2011/12/21 Peter Danenberg p...@roxygen.org: 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

Re: [ANN] reader-macros

2011-12-21 Thread Aaron Cohen
2011/12/21 Aaron Cohen aa...@assonance.org: 2011/12/21 Peter Danenberg p...@roxygen.org: 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

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

Re: Question about accessing java methods?

2011-12-21 Thread Alan Malloy
On Dec 21, 12:03 pm, Jonas jonas.enl...@gmail.com 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

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 a...@malloys.org wrote: On Dec 21, 12:03 pm, Jonas jonas.enl...@gmail.com wrote: You can also do (.. boxWidget GetProp3D (SetUserTransform t)) or (- boxWidget .GetProp3D (.SetUserTransform t)) Well, neither of these are strictly equivalent to his

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