Re: Elegant way of expressing this in Clojure?

2010-05-27 Thread Meikel Brandmeyer
Hi, On May 27, 9:50 pm, Laurent PETIT wrote: > But you will still have the cost of creating 2 or 3 times several millions > of Seq objects, even if they are quickly made GCable. But then: why do it in Clojure, when you need close control anyway? I see the main benefit in Clojure in having very

Re: Todo item annotation in Clojure.

2010-05-27 Thread Thomas
ka: I must admit I use Emacs, and I wouldn't know how to integrate it into eclipse. If anybody else have any suggestions on how to accomplish this they are more than welcome to take a look or drop a line. Patrik: My bad, new jar uploaded. Have fun :D Thanks for the feedback! Thomas On May 27, 1

Re: Clojure Screen casts

2010-05-27 Thread Nurullah Akkaya
I am in a similar situation, hour long commute everyday. My setup is as follows, I have a small utility called tubes which I use to grab tech talks, presentations etc. http://nakkaya.com/tubes.markdown Then using ffmpeg convert the downloaded flv to mp4. You can grab the bash script that I use

Re: Which GUI toolkit would you like to see wrapped in an idiomatic Clojure library?

2010-05-27 Thread Luke VanderHart
> Why not design it so that it can be backed by Swing or SWT or HTML > (perhaps with some AJAX) or whatever?  It seems kind of silly to do an > abstraction on a single backend, don't you think? Ideally, yes. In practice, I'd rather implement one framework well than implement only the lowest common

Re: Any issues with launching in clojure, calling Java code, Java code calling clojure

2010-05-27 Thread Jason Smith
The issue that you'll run into is that there is one lexical scope that is shared by all calls to Clojure. The only ways around this are (1) run it in another process, and (2) load the Clojure JARs into a ClassLoader at runtime, and throw the ClassLoader away after every call. The overhead for opt

Re: Which GUI toolkit would you like to see wrapped in an idiomatic Clojure library?

2010-05-27 Thread Jason Smith
Why not design it so that it can be backed by Swing or SWT or HTML (perhaps with some AJAX) or whatever? It seems kind of silly to do an abstraction on a single backend, don't you think? On May 27, 4:37 pm, Luke VanderHart wrote: > Thanks, Heinz... I may. > > Right now I'm still exploring what I

Re: Anyone experienced in using clojure as a "database"

2010-05-27 Thread Andrzej
On Thu, May 27, 2010 at 3:36 PM, Erik Söhnel wrote: > > Got something around, this is my 3rd or 4th attempt to provide a > relational datastructure for clojure. I've often found myself in > situations, where I needed some kind of table and look up rows by more > than one key, hashmaps don't fit th

[ann] ILC-2010

2010-05-27 Thread dherring
Greetings, The ALU is pleased to announce that the International Lisp Conference 2010 (ILC-2010) will be held mid October in Reno, Nevada. ILC-2010 will be colocated with OOPSLA/SPLASH. http://splashcon.org/ Colocated conferences allow people to explore other sessions; but the ILC itself will be

Re: do clojure and la(tex) have something in common ?

2010-05-27 Thread patrickdlogan
See http://www-sop.inria.fr/members/Manuel.Serrano/scribe/ On May 23, 6:55 am, faenvie wrote: > today i read this statement in a blog-post: > > "... remarkably (La)TeX is much better suited for composing and > distributing most types of documents than any other modern > word processor on the mark

Re: Which GUI toolkit would you like to see wrapped in an idiomatic Clojure library?

2010-05-27 Thread Joost
Personally, I prefer SWT over Swing mostly because seems a lot more useful and a little more responsive to the user. But then I think Swing is horrible and SWT is just a bit better. I seriously prefer Tk over both (except for the file selection dialogs on Unix). Consider this a + vote for SWT and

Re: Which GUI toolkit would you like to see wrapped in an idiomatic Clojure library?

2010-05-27 Thread BerlinBrown
Swing seems like a proof of concept UI toolkit. SWT just seems a bit more polished and easier to develop, working apps. That is just an opinion and I like that Swing is built-in. On May 27, 8:13 pm, Antony Blakey wrote: > On 28/05/2010, at 9:21 AM, Armando Blancas wrote: > > >> Remember, the ac

Re: Which GUI toolkit would you like to see wrapped in an idiomatic Clojure library?

2010-05-27 Thread Antony Blakey
On 28/05/2010, at 9:21 AM, Armando Blancas wrote: >> Remember, the actual API won't matter - that will be completely >> abstracted away. So try to focus on the framework's look and feel. >> Thanks! >> -Luke > > SWT, because of the native look and feel. I really don't like the > looks of Swing. A

Re: M-X slime

2010-05-27 Thread Joost
On May 27, 8:24 pm, Oleg wrote: > Hello Guys! > > Yes, i know that i can run "lein swank" in my project directory and > then use M-X + slime-connect in emacs. But all the time with clojure > 1.1.0 i used this procedure: M-X cd to project directory and them just > M-X slime (classpath is set relati

Re: Which GUI toolkit would you like to see wrapped in an idiomatic Clojure library?

2010-05-27 Thread Armando Blancas
> Remember, the actual API won't matter - that will be completely > abstracted away. So try to focus on the framework's look and feel. > Thanks! > -Luke SWT, because of the native look and feel. I really don't like the looks of Swing. As a user of some Swing app, I don't find solace from thinking

Re: Elegant way of expressing this in Clojure?

2010-05-27 Thread CuppoJava
Thanks Laurent! I'll stick to that for now then. On May 27, 3:56 pm, Laurent PETIT wrote: > 2010/5/27 CuppoJava > > > Laurent's solution will be suitable for my purposes. I really do need > > to stay in the mutable world for this application. The Java code is > > already pushing the limits of ac

Mersenne Twister

2010-05-27 Thread Paul Moore
I want to write a reasonably high-performance simulation program in Clojure. For the random numbers, I'd prefer to use Mersenne Twister (for a number of reasons - it's a well-known, good RNG, and it's commonly used in a number of other languages I use, so it's a good baseline for comparing implemen

Re: Which GUI toolkit would you like to see wrapped in an idiomatic Clojure library?

2010-05-27 Thread Luke VanderHart
Thanks, Heinz... I may. Right now I'm still exploring what I want the API to be. I was hoping to achieve something a bit "thicker" that could insulate the user from Java classes completely. The user wouldn't even have to know Swing or handle JObjects or worry about the event thread... In other wor

Re: do clojure and la(tex) have something in common ?

2010-05-27 Thread Mike Meyer
On Thu, 27 May 2010 09:47:58 -0400 Tim Daly wrote: > Bill Hart, from the Sage project, said: > "Another thing I've been enjoying lately is literate >programming. Amazingly it turns out to be faster to >write a literate program than an ordinary program >because debugging takes almost

Re: Which GUI toolkit would you like to see wrapped in an idiomatic Clojure library?

2010-05-27 Thread Heinz N. Gies
+1 For swing especially since I started this already. Look for clj-swing in github, since this seems quite a load of work I'd be glad for any help so :). Regards, Heinz On May 27, 2010, at 21:30 , Luc Préfontaine wrote: > +1 for Swing. > On Thu, 2010-05-27 at 11:59 -0700, Brian Schlining wrote: >

Any issues with launching in clojure, calling Java code, Java code calling clojure

2010-05-27 Thread BerlinBrown
I enjoy clojure and I think I am breaking all the rules. I have an app that I originally created in clojure. It has been a year off and on. And I merged that code with some existing java database code. The clojure code invokes the java code. Now, I want to have a script environment where users

Re: Tutorial recommendations for C++ programmers?

2010-05-27 Thread Meikel Brandmeyer
Hi, http://www.assembla.com/wiki/show/clojure/Getting_Started_with_Vim Sincerely Meikel -- 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 - pl

Tutorial recommendations for C++ programmers?

2010-05-27 Thread Danielb
Good afternoon list, Can anyone recommend me a good tutorial for getting started with Clojure for C++ programmers? I am new to LISP and I mostly use VIM as my editor. Cheers, Daniel -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this g

M-X slime

2010-05-27 Thread Oleg
Hello Guys! Yes, i know that i can run "lein swank" in my project directory and then use M-X + slime-connect in emacs. But all the time with clojure 1.1.0 i used this procedure: M-X cd to project directory and them just M-X slime (classpath is set relative to current emacs dir, so it finds swank-c

Re: Newbie (with no Java experience) - how best to learn?

2010-05-27 Thread Paul Moore
On 27 May 2010 18:26, Sean Devlin wrote: > I make them available CC BY-NC-SA, so download away.  You'll need a > vimeo account (free) to download them, though. Ah, I hadn't realised that signing up got a download option. Thanks! Paul. -- You received this message because you are subscribed to t

Re: No matching method found for javax.mail.internet.MimeMessage

2010-05-27 Thread Matthew Elder
I did try adding type hints and the doto style initially although my type is [InternetAddress], not string. On May 27, 8:09 am, Sean Devlin wrote: > Have you tried adding type hints?  Sometimes reflection confuses the > JVM with interop, especially when there is ambiguity in the type. > This is t

Re: No matching method found for javax.mail.internet.MimeMessage

2010-05-27 Thread Matthew Elder
This actually helped alot, here is the relevant excerpt (defn plain- message). It is rewritten the original way I wanted to do it. Here it is: (defn plain-message [{:keys [from to cc bcc subject body]}] (doto (new MimeMessage (get-default-session)) (.setRecipients Message$RecipientType/TO (i

Re: No matching method found for javax.mail.internet.MimeMessage

2010-05-27 Thread Matthew Elder
This actually helped alot, here is the relevant excerpt (defn plain- message). It is rewritten the original way I wanted to do it. Here it is: (defn plain-message [{:keys [from to cc bcc subject body]}] (doto (new MimeMessage (get-default-session)) (.setRecipients Message$RecipientType/TO (i

Re: No matching method found for javax.mail.internet.MimeMessage

2010-05-27 Thread Matthew Elder
This actually helped alot, here is the relevant excerpt (defn plain- message). It is rewritten the original way I wanted to do it. Here it is: (defn plain-message [{:keys [from to cc bcc subject body]}] (doto (new MimeMessage (get-default-session)) (.setRecipients Message$RecipientType/TO (i

Re: Elegant way of expressing this in Clojure?

2010-05-27 Thread Laurent PETIT
2010/5/27 CuppoJava > Laurent's solution will be suitable for my purposes. I really do need > to stay in the mutable world for this application. The Java code is > already pushing the limits of acceptable computation time. > > Just a small question: > What is the best performing mutable box that

Re: Elegant way of expressing this in Clojure?

2010-05-27 Thread CuppoJava
Laurent's solution will be suitable for my purposes. I really do need to stay in the mutable world for this application. The Java code is already pushing the limits of acceptable computation time. Just a small question: What is the best performing mutable box that I can use to hold a primitive int

Re: Elegant way of expressing this in Clojure?

2010-05-27 Thread Laurent PETIT
Hi Meikel, 2010/5/27 Meikel Brandmeyer > Hi, > > On Thu, May 27, 2010 at 12:33:20PM -0700, CuppoJava wrote: > > > Your solution is very clear Meikel. I don't have a benchmark. I'm just > > worried about the overhead of creating seqs. You use two map's and one > > vector (which each create a seq

Re: Elegant way of expressing this in Clojure?

2010-05-27 Thread Meikel Brandmeyer
Hi, On Thu, May 27, 2010 at 12:33:20PM -0700, CuppoJava wrote: > Your solution is very clear Meikel. I don't have a benchmark. I'm just > worried about the overhead of creating seqs. You use two map's and one > vector (which each create a seq I think). The array's will be several > gigabytes in s

Re: Elegant way of expressing this in Clojure?

2010-05-27 Thread Laurent PETIT
Of course my code below will inevitably throw ArrayIndexOfBoundExceptions if no document is malformed ! I let you figure out how to place the correct loop stopper. 2010/5/27 Laurent PETIT > 2010/5/27 CuppoJava > > The purpose is quite straightforward. >> I just have to call process() on every w

Re: promoting contrib.string to clojure, feedback requested

2010-05-27 Thread Sean Devlin
Stu Halloway, I used the reasoning from your thread to convince Stuart Sierra to switch argument order between str-utils2 & str-utils3: http://groups.google.com/group/clojure-dev/browse_thread/thread/7ab69b1d43012917 Args go last. Sean On May 27, 3:16 pm, Stuart Halloway wrote: > > You also me

Re: Elegant way of expressing this in Clojure?

2010-05-27 Thread CuppoJava
Your solution is very clear Meikel. I don't have a benchmark. I'm just worried about the overhead of creating seqs. You use two map's and one vector (which each create a seq I think). The array's will be several gigabytes in size so it might build up. I forgot to mention that documents can only be

Re: Elegant way of expressing this in Clojure?

2010-05-27 Thread Laurent PETIT
2010/5/27 CuppoJava > The purpose is quite straightforward. > I just have to call process() on every word in the w and d array. > > But I don't want to load docs if they have already been loaded. > And I want to stop when it hits the first malformed document. > > Thanks for the help. Is there a n

Re: promoting contrib.string to clojure, feedback requested

2010-05-27 Thread B Smith-Mannschott
On Thu, May 27, 2010 at 19:28, Sean Devlin wrote: > Oh, and following the tradition of clojure.java.io, you'll probably > want to name it clojure.java.string, since it relies heavily on > interop. If bits of Java poke through the public interface, yes. This is certainly the case for clojure.java.

Re: Which GUI toolkit would you like to see wrapped in an idiomatic Clojure library?

2010-05-27 Thread Luc Préfontaine
+1 for Swing. We deal with multiple platforms here and have enough headaches with this so lets not hammer again on our poor brains :))) Luc On Thu, 2010-05-27 at 11:59 -0700, Brian Schlining wrote: > +1 Swing. SWT comes with far to many deployment headaches. > > > > +1 Swing. >

Re: any downside to putting everything into CLASSPATH?

2010-05-27 Thread Luc Préfontaine
We use Eclipse and have around 130 external jar dependencies. Any external jar needs to be moved in a common folder in dev, test and production. All the components are pulling their external dependencies from this single folder, no per component private jars are allowed. All of them are in the clas

is there something like my alter-map already in clojure?

2010-05-27 Thread B Smith-Mannschott
(defn alter-map "Transform values in map m using functions in fnmap with same key." [m fnmap] (reduce (fn [m [k f]] (assoc m k (f (m k m fnmap)) I wrote this some weeks ago and am finding it quite useful. Is there something like this in Clojure already, that I've ov

Re: Elegant way of expressing this in Clojure?

2010-05-27 Thread Meikel Brandmeyer
Hi, On Thu, May 27, 2010 at 12:07:30PM -0700, CuppoJava wrote: > Thanks for the help. Is there a nice efficient way of doing it with > loop and recur? The proposed solutions are quite expensive as written > as compared to the Java equivalent. No, thanks to memoize my solution does what you want.

Re: promoting contrib.string to clojure, feedback requested

2010-05-27 Thread Stuart Halloway
> You also mention making the string argument first in some of these > fns. I believe Will Smith's catch phrase says it best: "Aw hell > no". String fns are like any other seq fn, and they need to be > partial'ed, comp'ed and chained appropriately. I can't even begin to > count the number of po

Re: Elegant way of expressing this in Clojure?

2010-05-27 Thread CuppoJava
The purpose is quite straightforward. I just have to call process() on every word in the w and d array. But I don't want to load docs if they have already been loaded. And I want to stop when it hits the first malformed document. Thanks for the help. Is there a nice efficient way of doing it with

Re: Newbie (with no Java experience) - how best to learn?

2010-05-27 Thread Dave Pawson
Is there a wiki where all these info sources could be collected please? Sounds really quite useful to the newbie. regards On 27 May 2010 20:06, nickikt wrote: > Hallo, > > What real helped me to start thinking in "The Clojure Way" are the > Talks that Rich gave. You can find some of them here >

Re: Newbie (with no Java experience) - how best to learn?

2010-05-27 Thread nickikt
Hallo, What real helped me to start thinking in "The Clojure Way" are the Talks that Rich gave. You can find some of them here http://clojure.blip.tv/posts?view=archive&nsfw=dc I think you should check out the "Clojure for Lisp Porgrammers Part 1 and 2". In talks he goes deeper because he does no

Re: Which GUI toolkit would you like to see wrapped in an idiomatic Clojure library?

2010-05-27 Thread Brian Schlining
+1 Swing. SWT comes with far to many deployment headaches. > +1 Swing. > > > > > +1 Swing. There's a ton of documentation out there, and it got some > > > serious love from Sun between java 5 and 6. > > > > > On May 27, 11:27 am, Laurent PETIT wrote: > > >> Although I work with SWT at work, I wo

Announcement: SLIME hints blog series

2010-05-27 Thread Joost
Hi everyone, I've started a series of short (ish) blog posts regarding SLIME (The Superior Lisp Interaction Mode for Emacs). Mostly just highlighting simple stuff that makes working with SLIME a little bit nicer. I try to keep it Lisp-agnostic, but since I'm working almost exclusively with Clojure

Re: Which GUI toolkit would you like to see wrapped in an idiomatic Clojure library?

2010-05-27 Thread BerlinBrown
There are really only two mainstream options SWT and Swing. Both will suffice. I preferred SWT just because I like the Eclipse project. As you know SWT is the core GUI library behind SWT. I just feel that SWT has more large applications developed, Eclipse, azureus Swing can be frustrating for t

Re: Elegant way of expressing this in Clojure?

2010-05-27 Thread Meikel Brandmeyer
Hi, (let [load (memoize load) mal-formed? (memoize mal-formed?)] (doseq [[doc word] (map vector (take-while (complement mal-formed?) (map load d)) w)] (process doc word))) In general it is a bad idea to *translate* code. If you really want to get the most from Clojure (or any other l

Re: Elegant way of expressing this in Clojure?

2010-05-27 Thread Michael Gardner
On May 27, 2010, at 1:11 PM, CuppoJava wrote: > Hi, > I have a little snippet of Java code that I want to express in > Clojure. But all my attempts thus far have been much more unreadable > than the equivalent Java. Some help would be greatly appreciated. It might help if we knew the purpose of y

Re: Elegant way of expressing this in Clojure?

2010-05-27 Thread Sean Devlin
Assume d & w have the same length. Assume load-file loads an indexed doc Assume malformed? tests a doc Assume process-doc takes a doc & word as an input (two args) So something like this... (map process-doc (filter malformed? (map (memoize load-file) d)) w) Is this remotely close, or did I misin

Elegant way of expressing this in Clojure?

2010-05-27 Thread CuppoJava
Hi, I have a little snippet of Java code that I want to express in Clojure. But all my attempts thus far have been much more unreadable than the equivalent Java. Some help would be greatly appreciated. d and w are arrays of integers, d: [0 0 0 0 0 1 1 1 1 2 2 3 3 3 3 3 4 4 ... ] w: [1

Re: Clojure Screen casts

2010-05-27 Thread Jeff Heon
And if you're impatient, the excellent concurrency screencasts of Craig Andera are available for download directly into iPod, classic or phone, formats: http://link.pluralsight.com/clojure -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to thi

Re: Newbie (with no Java experience) - how best to learn?

2010-05-27 Thread Meikel Brandmeyer
Hi, On Thu, May 27, 2010 at 05:09:23PM +0100, Paul Moore wrote: > I don't really like IDEs, I'm a text editor sort of person, I'm > afraid. I'll be using Vim to write my code, unless someone gives me > very strong reasons to do otherwise. And to be honest, if I can't code > in clojure using Vim,

Re: promoting contrib.string to clojure, feedback requested

2010-05-27 Thread Sean Devlin
Oh, and following the tradition of clojure.java.io, you'll probably want to name it clojure.java.string, since it relies heavily on interop. Sean On May 27, 11:55 am, Stuart Halloway wrote: > Thanks to everyone for feedback on this thread. I have updated the ticket to > include a list of change

Re: Newbie (with no Java experience) - how best to learn?

2010-05-27 Thread Sean Devlin
On May 27, 12:26 pm, Paul Moore wrote: > On 27 May 2010 16:39, eyeris wrote: > > > The Full Disclojure video series is targeted more toward the lisp > > newbie, but it contains a series of videos touring different > > development environments.http://vimeo.com/channels/fulldisclojure > > Ta. Any w

Re: Clojure Screen casts

2010-05-27 Thread Jeff Heon
I use this software to convert everything for my iPod: http://www.dvdvideosoft.com/products/dvd/Free-Video-to-iPhone-Converter.htm It's a bit nagware, but it works very well. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send

Re: var function not documented at clojure.core-api.html

2010-05-27 Thread Dave Pawson
On 27 May 2010 16:43, Meikel Brandmeyer wrote: > Hi, > > On Thu, May 27, 2010 at 03:44:46PM +0100, Dave Pawson wrote: > >> Thanks. Another list to search. >> 510+17. > > No need to search. From a Repl session: > > user=> (doc var) > - > var > Special Form >  Please see http

Re: Newbie (with no Java experience) - how best to learn?

2010-05-27 Thread Paul Moore
On 27 May 2010 16:39, eyeris wrote: > The Full Disclojure video series is targeted more toward the lisp > newbie, but it contains a series of videos touring different > development environments. http://vimeo.com/channels/fulldisclojure Ta. Any way of downloading these to watch on my iPod? As I sa

Re: Newbie (with no Java experience) - how best to learn?

2010-05-27 Thread Paul Moore
On 27 May 2010 15:38, Base wrote: > Regarding Clojure I got Stuart Halloway's book Programming Clojure Another recommendation! Looks like that's definite then :-) Thanks. > Also, I spend a *lot* of time on this site and ask a lot of really > dumb questions.  Clojure has the best group support by

Re: Newbie (with no Java experience) - how best to learn?

2010-05-27 Thread Paul Moore
On 27 May 2010 15:16, Sean Devlin wrote: > Welcome aboard Paul! Thanks! > 1.  Pick an IDE and stick with it.  I'd recommend ClojureBox if you're > interested in Clojure only, or NetBeans + Enclojure if you want to > learn some about Java too.  In fact, NetBeans is probably a better > place to st

Re: Newbie (with no Java experience) - how best to learn?

2010-05-27 Thread Li Shang
I think learn lisp is important to learn clojure. so ansi common lisp, on lisp ,paip is three book must to read. 2010/5/27 Base : > Hi Paul - > > I am also a newbie, but have been approaching thsi for the other > direction - knowing Java and not knowing Lisp or any other FP > language. > > What I

Re: promoting contrib.string to clojure, feedback requested

2010-05-27 Thread Stuart Halloway
Thanks to everyone for feedback on this thread. I have updated the ticket to include a list of changes and open questions, and will be working on a patch for review. Stu -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send em

Re: promoting contrib.string to clojure, feedback requested

2010-05-27 Thread Stuart Halloway
Hi Brian, (1) Other than split-lines, what other non-promoted fns do you think are common enough to deserver promotion? (2) upper-case and lower-case are there for symmetry with capitalize. It's a judgment call, but one I am still comfortable with. (3) nil-handling is on the list of things to

Re: var function not documented at clojure.core-api.html

2010-05-27 Thread Meikel Brandmeyer
Hi, On Thu, May 27, 2010 at 03:44:46PM +0100, Dave Pawson wrote: > Thanks. Another list to search. > 510+17. No need to search. From a Repl session: user=> (doc var) - var Special Form Please see http://clojure.org/special_forms#var nil Sincerely Meikel -- You recei

Re: Which GUI toolkit would you like to see wrapped in an idiomatic Clojure library?

2010-05-27 Thread Stuart Halloway
+1 Swing. > +1 Swing. There's a ton of documentation out there, and it got some > serious love from Sun between java 5 and 6. > > On May 27, 11:27 am, Laurent PETIT wrote: >> Although I work with SWT at work, I would say Swing for 2 reasons : >> >> * no additional dependency for users of you

Re: Newbie (with no Java experience) - how best to learn?

2010-05-27 Thread eyeris
The Full Disclojure video series is targeted more toward the lisp newbie, but it contains a series of videos touring different development environments. http://vimeo.com/channels/fulldisclojure On May 27, 6:53 am, Paul Moore wrote: > Hi, > I'm new to Clojure, and looking for the best way to get

Re: Which GUI toolkit would you like to see wrapped in an idiomatic Clojure library?

2010-05-27 Thread Sean Devlin
+1 Swing. There's a ton of documentation out there, and it got some serious love from Sun between java 5 and 6. On May 27, 11:27 am, Laurent PETIT wrote: > Although I work with SWT at work, I would say Swing for 2 reasons : > >   * no additional dependency for users of your lib, and *no need* fo

Re: Which GUI toolkit would you like to see wrapped in an idiomatic Clojure library?

2010-05-27 Thread Laurent PETIT
Although I work with SWT at work, I would say Swing for 2 reasons : * no additional dependency for users of your lib, and *no need* for users of your lib to deliver different final apps binaries for different platforms * may be easier to work with in your implementation (?) 2010/5/27 Luke Van

Which GUI toolkit would you like to see wrapped in an idiomatic Clojure library?

2010-05-27 Thread Luke VanderHart
My side project is a fairly complex GUI application written in Clojure. Recently, I've become irritated with using Java interop for everything. It's not that Clojure doesn't have nice java interop - it does. It's just that when interacting with a GUI framework, which is a large part of my app, I ha

Clojure to PDF gui application, alpha

2010-05-27 Thread BerlinBrown
I created/updated a small GUI based on clojure that I am using to create PDF reports. It is still alpha state but I think you can click on and generate PDF documents with it http://code.google.com/p/lighttexteditor/wiki/LightReportsEditor In the future, I will be adding a batch/templating mode s

Re: No matching method found for javax.mail.internet.MimeMessage

2010-05-27 Thread Aaron Cohen
On Thu, May 27, 2010 at 11:07 AM, Aaron Cohen wrote: > Judging from the javadoc, setRecipients takes an array of addressses > as its second parameter. So try (into-array to), (into-array for), > etc. Or rather: (into-array [to]). You may need to specify the type which would be: (into-array Addre

Re: No matching method found for javax.mail.internet.MimeMessage

2010-05-27 Thread Sean Devlin
Have you tried adding type hints? Sometimes reflection confuses the JVM with interop, especially when there is ambiguity in the type. This is the case for setRecipients. Oh, you'll want to use a doto form as well in plain-message, such as this: (defn plain-message [{:keys [from to cc bcc subject

Re: No matching method found for javax.mail.internet.MimeMessage

2010-05-27 Thread Aaron Cohen
Judging from the javadoc, setRecipients takes an array of addressses as its second parameter. So try (into-array to), (into-array for), etc. -- 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

No matching method found for javax.mail.internet.MimeMessage

2010-05-27 Thread Matthew Elder
Clojure Users: Could anyone please help me with the problem I am having here? http://clojure.pastebin.com/yR6yPQha Essentially I am running into a situation where the interop operator '.' doesn't work for some instance methods of javax.mail.internet.MimeMessage. I have tried various differ

Clojure Screen casts

2010-05-27 Thread Martin Roberts
I was hoping to listen/view the clojure screen casts on my daily commute on my ipod. I have got them on itunes but they will not sync with the ipod. Can anyone help? Martin Roberts -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this gro

Re: Problem seeing fn metadata unless I eval or load a file

2010-05-27 Thread Jim Menard
Christophe, Thank you for your research and for opening the ticket. Jim On Thu, May 27, 2010 at 9:59 AM, Christophe Grand wrote: > Hi, > > On Thu, May 27, 2010 at 3:28 PM, Jim Menard wrote: >> >> I've given some functions metadata that I want to use elsewhere. My >> problem is, I don't see the

Re: var function not documented at clojure.core-api.html

2010-05-27 Thread Dave Pawson
On 27 May 2010 15:10, Meikel Brandmeyer wrote: >> http://richhickey.github.com/clojure/clojure.core-api.html >> Doesn't show the (var) function amongst it's 510 options. >> >> Any reason why please? > > Because it's a special form: http://clojure.org/special_forms > > Sincerely > Meikel Thanks.

Re: Newbie (with no Java experience) - how best to learn?

2010-05-27 Thread Base
Hi Paul - I am also a newbie, but have been approaching thsi for the other direction - knowing Java and not knowing Lisp or any other FP language. What I have found is that I really strive to spend most of my time in Clojure, not Java. Hence I only really use java when I *have* to. And even then

Re: promoting contrib.string to clojure, feedback requested

2010-05-27 Thread Stefan Kamphausen
Hi, On 27 Mai, 15:35, Michael Gardner wrote: > On May 27, 2010, at 2:45 AM, Stefan Kamphausen wrote: > > > Hi, > > > On May 26, 11:00 pm, Stuart Halloway > > wrote: > >> The people have spoken! The trims have it! > > > sorry, I'm a little late.  However, to me it is not clear what the > > trim f

Re: Newbie (with no Java experience) - how best to learn?

2010-05-27 Thread Sean Devlin
Welcome aboard Paul! So, where should you get started? I can think of a couple good things to do to start. 1. Pick an IDE and stick with it. I'd recommend ClojureBox if you're interested in Clojure only, or NetBeans + Enclojure if you want to learn some about Java too. In fact, NetBeans is pr

Re: var function not documented at clojure.core-api.html

2010-05-27 Thread Meikel Brandmeyer
Hi, On May 27, 2:16 pm, Dave Pawson wrote: > http://richhickey.github.com/clojure/clojure.core-api.html > Doesn't show the (var) function amongst it's 510 options. > > Any reason why please? Because it's a special form: http://clojure.org/special_forms Sincerely Meikel -- You received this m

Re: Problem seeing fn metadata unless I eval or load a file

2010-05-27 Thread Christophe Grand
Hi, On Thu, May 27, 2010 at 3:28 PM, Jim Menard wrote: > I've given some functions metadata that I want to use elsewhere. My > problem is, I don't see the metadata I've added if I use or require > the namespace; I need to explicitly load the file (or eval the > function definitions manually in s

var function not documented at clojure.core-api.html

2010-05-27 Thread Dave Pawson
http://richhickey.github.com/clojure/clojure.core-api.html Doesn't show the (var) function amongst it's 510 options. Any reason why please? TIA -- Dave Pawson XSLT XSL-FO FAQ. Docbook FAQ. http://www.dpawson.co.uk -- You received this message because you are subscribed to the Google Groups "

Re: NullPointerException on disj

2010-05-27 Thread Allen Johnson
Opened ticket #360 for this. https://www.assembla.com/spaces/clojure/support/tickets/360-nullpointerexception-on-disj Thanks. -- 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 pos

Re: do clojure and la(tex) have something in common ?

2010-05-27 Thread Tim Daly
The hope is that since Clojure is all about breaking away from the past, we would consider breaking away from the past method of program development also. Unfortunately, this requires more work from a programmer. Is it a factor of ~1.5? Who knows. I use the factor-of-3. The factor-of-3 comes from

Re: promoting contrib.string to clojure, feedback requested

2010-05-27 Thread Michael Gardner
On May 27, 2010, at 2:45 AM, Stefan Kamphausen wrote: > Hi, > > On May 26, 11:00 pm, Stuart Halloway > wrote: >> The people have spoken! The trims have it! > > sorry, I'm a little late. However, to me it is not clear what the > trim functions shall do. If they become a replacement for chomp t

Re: promoting contrib.string to clojure, feedback requested

2010-05-27 Thread Daniel Werner
On May 26, 8:12 pm, Mohammad Khan wrote: > personally, I like strip or trim [rather] than chomp/chop. +1 from a mostly-Python programmer :-) On May 26, 8:15 pm, Mark Engelberg wrote: > If you're developing a trio, like ltrim, trim, rtrim, wouldn't it be > better to call them triml, trim, trimr

Problem seeing fn metadata unless I eval or load a file

2010-05-27 Thread Jim Menard
I've given some functions metadata that I want to use elsewhere. My problem is, I don't see the metadata I've added if I use or require the namespace; I need to explicitly load the file (or eval the function definitions manually in slime/swank) to see the metatada. Here's some simple code that show

Re: promoting contrib.string to clojure, feedback requested

2010-05-27 Thread ka
> Stefan Kamphausen writes: > sorry, I'm a little late. However, to me it is not clear what the > trim functions shall do. If they become a replacement for chomp they > are clearly misnamed. In many applications and languages (like Excel, > several SQL variants, oh, and Java, ...) "trim" means s

Re: Some suggestions for transients

2010-05-27 Thread ka
My 2 cents, I read about transients for the first time (why is the page not linked from clojure.org?) and they seem very promising at a first glance. I'm not sure if I agree with Michael's idea of having the same functions for transients and persistents both. Functions should have easy, reproduc

Re: NullPointerException on disj

2010-05-27 Thread Rich Hickey
On May 27, 1:10 am, Allen Johnson wrote: > Hey everyone. I was playing around with the protocols/deftype stuff > and ran into a weird NullPointerException when calling the satisfies? > function. Seems to only happen with a java.lang.Object instance. > > Clojure 1.2.0-master-SNAPSHOT > user=> (de

Newbie (with no Java experience) - how best to learn?

2010-05-27 Thread Paul Moore
Hi, I'm new to Clojure, and looking for the best way to get going. I've got a pretty broad experience of various programming languages (C, Python, Lua, Factor, JavaScript, Haskell, Perl, ...) including a bit of experience with Lisp-like languages, so the language itself isn't likely to be a huge pr

Re: Some suggestions for transients

2010-05-27 Thread Rich Hickey
On May 26, 5:13 pm, Michael Jaaka wrote: > Hi! > > I have some suggestions about transients (btw. > thehttp://clojure.org/transients > is not linked fromhttp://clojure.org). > > Maybe before you give up reading the whole post I will post as first > the digression: > vars binding and transient a

Re: Todo item annotation in Clojure.

2010-05-27 Thread Patrik Fredriksson
Nice! The version at Clojars seems to be missing the Leiningen plugin, could you please upload a new version? Many thanks! /Patrik On May 26, 9:27 pm, Thomas wrote: > Thanks to sids, the project now has lein todo functionality. -- You received this message because you are subscribed to the G

Re: Comparing Cycle

2010-05-27 Thread ka
It would be voodoo magic :) and totally awesome might I say if (= a (drop 4 a)) returned true immediately! - Thanks -- 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: do clojure and la(tex) have something in common ?

2010-05-27 Thread ka
Hi Tim, Thanks! for such a detailed response. Really got things in perspective for me, my thinking yet isn't of such large scale. So you say literate programming is for those who are writing code that will live for decades to come and that writing literate programs takes ~3x resources. Is there

Re: Todo item annotation in Clojure.

2010-05-27 Thread ka
This looks cool. I'll definitely give it a try in my next project. Any chance to get it integrated somehow with eclipse ccw? - Thanks -- 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

Re: promoting contrib.string to clojure, feedback requested

2010-05-27 Thread Dave Pawson
On 26 May 2010 23:09, Eric Schulte wrote: > Mark Engelberg writes: > >> If you're developing a trio, like ltrim, trim, rtrim, wouldn't it be >> better to call them triml, trim, trimr so that they show up next to >> each other in the alphabetized documentation? > > +1 for modifiers at the end > >

Re: Anyone experienced in using clojure as a "database"

2010-05-27 Thread Erik Söhnel
On 26 Mai, 15:24, Andrzej wrote: > I'd love to see a persistent "table" type together with some common > primitives (select, join, union) and optimization capabilities. > Currently a "set of maps" does something like that but I have no idea > how to, for example, add an "index" to some particula

  1   2   >