Re: Full Disclojure - I Need Topics!

2010-01-26 Thread Mark Engelberg
Topic idea: What is the most elegant way to write a GUI in Clojure? (Swing? JavaFX?) Any great contrib libraries that make GUI programming noticeably easier? -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojur

Re: newbie question about ns and :require

2010-01-26 Thread ataggart
On Jan 25, 5:40 pm, "Steven E. Harris" wrote: > Justin Kramer writes: > > You may find this ns cheatsheet helpful: > > >http://gist.github.com/284277 > > That is most helpful. > > What's not helpful is the weird mix of lists and vectors used by these > forms. When I finally made it to :rename a

Re: Clojure Conference Poll

2010-01-26 Thread Boštjan Jerko
On 26.1.2010, at 21:59, Julien wrote: > What about colocating this conference with say OOPSLA (or ECOOP). You > will probably get good attendance. > If it'd be part of ECOOP it'd be great since in 2010 it's in Slovenia (and I live there :D). B. -- You received this message because you are s

Re: Why is this code causing StackOverflowError?

2010-01-26 Thread twitter.com/nfma
You can use the sieve of Eratosthenes... 2010/1/26 Nebojsa Stricevic > Thanks a lot for help. I have much better understanding of laziness > now! But I guess I'll need to do some more math research, because both > algorithms provided here (my + removed laziness and the one from > Meikel) are too

Re: Clojure Conference Poll

2010-01-26 Thread Nuno Marques
Weekend and Europe Nuno On 26 Jan 2010, at 22:53, e wrote: I didn't know this was a vote for location. If it is, DC would work for me. I thought it was more about weekend vs week. I'd agree weekend is better. On Tue, Jan 26, 2010 at 4:09 PM, Joseph Smith wrote: +1 Lincoln/Omaha Neb

Re: Full Disclojure - I Need Topics!

2010-01-26 Thread Benjamin Teuber
+1 for debugging (through swank-clojure, I hope) besides, rolling your own leiningen plugins -- 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

Class of a wicket page

2010-01-26 Thread idevai
Hi! I've created the following sources: HomePage.clj: (ns cwicket.HomePage (:gen-class :extends org.apache.wicket.markup.html.WebPage) ) WicketApplication.clj: (ns cwicket.WicketApplication <-->(:gen-class :extends org.apache.wicket.protocol.http.WebApplication) ) (defn -getHomePage [

Re: Full Disclojure - I Need Topics!

2010-01-26 Thread Mike Meyer
On Sun, 24 Jan 2010 23:11:50 -0800 (PST) mac wrote: > > On 25 Jan, 06:50, Mark Engelberg wrote: > > Debugging techniques, including: > > * How to make sense of Clojure's stack traces. > > * How to use Java debugging and profiling tools with Clojure. > > +1 for this. I haven't had the energy to

Re: Cyclic require

2010-01-26 Thread Seth
Michael, Thank you for pointing this out to me. After some thinking, I decided to lump all the defprotocols in one file; having all the APIs in one place seemed handy. But using (load) made it possible to keep deftype in its own file... though I did have to resort to (use) since (in-ns) doesn't su

Re: newbie question about ns and :require

2010-01-26 Thread Steven E. Harris
Raoul Duke writes: > so, like, this means i /not/ the only one who finds the whole > (whatever you want to call it) include/import syntax kinda crazy? I was expecting even more of a backlash from those who already "get it". For now, I only understand it as, "There are a lot of options and which

Re: Clojure Conference Poll

2010-01-26 Thread Conrad
DC would be awesome! On Jan 26, 7:20 pm, David Cabana wrote: > +1 DC -- 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 wit

Re: Clojure Conference Poll

2010-01-26 Thread David Cabana
+1 DC -- 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 email to

Re: Clojure Conference Poll

2010-01-26 Thread e
I didn't know this was a vote for location. If it is, DC would work for me. I thought it was more about weekend vs week. I'd agree weekend is better. On Tue, Jan 26, 2010 at 4:09 PM, Joseph Smith wrote: > +1 Lincoln/Omaha Nebraska. :) > > --- > Joseph Smith > j...@uwcreations.com > (402)601-5

Re: Clojure Conference Poll

2010-01-26 Thread Joseph Smith
+1 Lincoln/Omaha Nebraska. :) --- Joseph Smith j...@uwcreations.com (402)601-5443 On Jan 26, 2010, at 2:29 PM, Michel Vollebregt wrote: +1 for Europe On Jan 26, 12:22 am, mudphone wrote: +1 Paris On Jan 22, 11:54 pm, Konrad Hinsen wrote:> On 22 Jan 2010, at 22:15, Wilson MacGyver

Re: Clojure Conference Poll

2010-01-26 Thread Julien
What about colocating this conference with say OOPSLA (or ECOOP). You will probably get good attendance. On Jan 26, 1:29 pm, Michel Vollebregt wrote: > +1 for Europe > > On Jan 26, 12:22 am, mudphone wrote: > > > +1 Paris > > > On Jan 22, 11:54 pm, Konrad Hinsen wrote:> On > > 22 Jan 2010, at

Re: Clojure Conference Poll

2010-01-26 Thread Michel Vollebregt
+1 for Europe On Jan 26, 12:22 am, mudphone wrote: > +1 Paris > > On Jan 22, 11:54 pm, Konrad Hinsen wrote:> On 22 > Jan 2010, at 22:15, Wilson MacGyver wrote: > > > > I vote let's turn this into a clojure vacation, and hold it in an > > > exotic location. > > > > Otherwise, hey, Columbus Ohio

Re: C interop lib (JNA wrapper)

2010-01-26 Thread Mark Allerton
Well, just to encourage you a bit more... While programmatic generation of JNA callbacks might not be the best answer to my current problems, one area where I see programmatic generation of native interfaces and structures to be really, really useful would be dynamic loading of OSX "BridgeSupport"

Re: Clojure Conference Poll

2010-01-26 Thread labwork07
DC Clojure vacation + Friday tutorial On Jan 22, 2010 12:36pm, dysinger wrote: We will be organizing a conference in the next month for 2010 (probably in the fall). One question I would like to ask is, given the conference is probably going to be a 2-day conference, would you rather ha

Re: help with serializing/deserializing structs

2010-01-26 Thread jleehurt
Hi Stuart, When I try using deftype I get the following error: java.lang.IllegalArgumentException: No method in multimethod 'print- dup' for dispatch value: class user.Y__5 Do I have to supply my own print-dup for the new type for this to work? Here is the code: (import '(java.io StringReader

Re: Remote swank cannot recconnect

2010-01-26 Thread Kyle R. Burton
> I've setup slime to remote repl according to > http://asymmetrical-view.com/2009/08/20/emacs-slime-remote-repl.html > So far so good (there are some issues, but that other time). > > There is a problem with reconnecting to the remote machine after the > connection is broken (running on wifi). I h

Re: help with serializing/deserializing structs

2010-01-26 Thread Stuart Sierra
On Jan 26, 11:40 am, jleehurt wrote: > Thanks Anders. I'm not sure why, but it appears that read does not > support structmaps. That is correct, read does not work with structmaps, because it doesn't know how to resolve the struct definition while reading. deftype, the replacement for structmaps

Clojure on Nokia N900

2010-01-26 Thread npt11tpn
Hi guys, Have not seen this discussed before and thought that it might be of interest to mention that clojure runs on the latest Nokia tablet/ mobile phone with JRE either from https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/viewproductdetail-start?productref=

Re: help with serializing/deserializing structs

2010-01-26 Thread jleehurt
Thanks Anders. I'm not sure why, but it appears that read does not support structmaps. The following works with a hashmap: (import '(java.io StringReader PushbackReader)) (def y (hash-map :a "a" :b "b")) (defn serialize [x] (binding [*print-dup* true] (pr-str x))) (defn deserialize [x] (l

Re: Why is this code causing StackOverflowError?

2010-01-26 Thread Nebojsa Stricevic
Thanks a lot for help. I have much better understanding of laziness now! But I guess I'll need to do some more math research, because both algorithms provided here (my + removed laziness and the one from Meikel) are too slow for calculating all primes below 200. On Jan 26, 4:48 pm, Chouser wr

Re: Why is this code causing StackOverflowError?

2010-01-26 Thread Chouser
On Tue, Jan 26, 2010 at 9:52 AM, Meikel Brandmeyer wrote: > Hi Chris, > > On Jan 26, 3:33 pm, Chouser wrote: > >> Of course with this algorithm you *need* filter to be lazy, or >> you'd never get past the first iteration of the loop. > > I'm sorry. I have to ask. > > Why? Hm, now that you ask, I

Re: Remote swank cannot recconnect

2010-01-26 Thread Anders Rune Jensen
Hi You need :dont-close true in (start-server. On Tue, Jan 26, 2010 at 3:07 PM, Lukas Lehner wrote: > Hi All > > I've setup slime to remote repl according to > http://asymmetrical-view.com/2009/08/20/emacs-slime-remote-repl.html > So far so good (there are some issues, but that other time). > >

Re: Full Disclojure - I Need Topics!

2010-01-26 Thread cej38
+1 for debugging I would add clojure.contrib.logging. -- 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 po

Re: Domain Modelling

2010-01-26 Thread PublicFarley
Stuart pretty much nails it. This is the strategy that I have taken in my own Clojure apps. Having said that it would be nice to see an extensive, with comprehensive examples, "Domain Modelling with Clojure" write up. On Jan 25, 12:30 pm, Stuart Sierra wrote: > On Jan 24, 4:29 am, Barry Dahlberg

Remote swank cannot recconnect

2010-01-26 Thread Lukas Lehner
Hi All I've setup slime to remote repl according to http://asymmetrical-view.com/2009/08/20/emacs-slime-remote-repl.html So far so good (there are some issues, but that other time). There is a problem with reconnecting to the remote machine after the connection is broken (running on wifi). I

Re: Why is this code causing StackOverflowError?

2010-01-26 Thread Meikel Brandmeyer
Hi, On Jan 26, 3:17 pm, Nebojsa Stricevic wrote: > I'm new to Clojure and working my way through Project Euler problems > for learning. I wrote function for calculating prime number below some > integer value max. But it doesn't work for large numbers, causing > StackOverflowError. > > (defn pri

Re: Why is this code causing StackOverflowError?

2010-01-26 Thread Meikel Brandmeyer
> There are a few options, but I suppose you don't want too many hints yet? Oops.. -- 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 b

Re: Why is this code causing StackOverflowError?

2010-01-26 Thread Meikel Brandmeyer
Hi Chris, On Jan 26, 3:33 pm, Chouser wrote: > Of course with this algorithm you *need* filter to be lazy, or > you'd never get past the first iteration of the loop. I'm sorry. I have to ask. Why? Sincerely Meikel -- You received this message because you are subscribed to the Google Groups

Re: Why is this code causing StackOverflowError?

2010-01-26 Thread Nebojsa Stricevic
Aha... I understand now. Thanks a lot for help. I will try to find other solution. And yes, I'm not looking for "too much" help. On Jan 26, 3:33 pm, Chouser wrote: > On Tue, Jan 26, 2010 at 9:17 AM, Nebojsa Stricevic > > > > wrote: > > Greetings, > > > I'm new to Clojure and working my way throu

Re: Announcement: Vijual Graph Layout Library for Clojure Version 0.1

2010-01-26 Thread Conrad
First I have to focus on bugs and improve the layout algorithms. Then I want to create an html output pipeline (unless IE suddenly gets SVG support in the interim) I agree svg and dot would be nice as well. On Jan 26, 1:24 am, Travis wrote: > Any plans to add SVG support? Seems it would, if anyth

Re: Why is this code causing StackOverflowError?

2010-01-26 Thread Chouser
On Tue, Jan 26, 2010 at 9:17 AM, Nebojsa Stricevic wrote: > Greetings, > > I'm new to Clojure and working my way through Project Euler problems > for learning. I wrote function for calculating prime number below some > integer value max. But it doesn't work for large numbers, causing > StackOverfl

Why is this code causing StackOverflowError?

2010-01-26 Thread Nebojsa Stricevic
Greetings, I'm new to Clojure and working my way through Project Euler problems for learning. I wrote function for calculating prime number below some integer value max. But it doesn't work for large numbers, causing StackOverflowError. (defn primes-below "calculates all primes bellow max

Re: help with serializing/deserializing structs

2010-01-26 Thread Anders Rune Jensen
Hello I'm using: (defstruct db :file :data) (defn write-db [db] (let [path (str (:file db) ".tmp")] (binding [*out* (java.io.FileWriter. path)] (prn (:data db))) (. (new File path) renameTo (new File (:file db) (defn read-db [fname] (try (let [object (read-string (s

Re: Why is this code so slow?

2010-01-26 Thread Nebojsa Stricevic
Thanks a lot for the tips. It works great now! -- 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 u

Re: Full Disclojure - I Need Topics!

2010-01-26 Thread Edmund Jackson
+1 defprotocol, deftype, reify On 26 Jan 2010, at 00:24, Jeff Rose wrote: > Thanks a lot for the videos you've done so far. I watch them all. > Here are some ideas for shows, from more Clojure centric to just > interesting: > > * defprotocol, deftype, reify, ... > * data-flow programming > * pa