Re: Clojure Conference Poll

2010-01-23 Thread Mark Engelberg
I second Seattle. On Fri, Jan 22, 2010 at 1:19 PM, ajay gopalakrishnan ajgop...@gmail.comwrote: I vote for Seattle. -- 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

Re: (list* ())

2010-01-23 Thread ataggart
I'm still confused by why you'd need a list version of vec. Just return the sequence. Whatever would consume the list should equivalently consume the seq. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Re: Clojure Conference Poll

2010-01-23 Thread Christophe Grand
On Sat, Jan 23, 2010 at 8:54 AM, Konrad Hinsen konrad.hin...@fastmail.net 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 is as good as any other city. :) My vote is for

Re: Clojure Conference Poll

2010-01-23 Thread Edmund
East coast for we Europeans ? On Jan 23, 8:53 am, Christophe Grand christo...@cgrand.net wrote: On Sat, Jan 23, 2010 at 8:54 AM, Konrad Hinsen konrad.hin...@fastmail.net 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

Re: Dependency management

2010-01-23 Thread Steve Purcell
I believe some people use HttpUnit for this purpose. It's a very full-featured HTTP client. YMMV. On 23 Jan 2010, at 01:25, Richard Newman wrote: And as for Apache HttpComponents, it sounds like they don't grok the notion that breaking backwards compatibility should only occur with a

Re: How can I parse this with clojure.contrib.zip-filter.xml ?

2010-01-23 Thread Steve Purcell
On 23 Jan 2010, at 02:53, James Reeves wrote: On Jan 23, 2:29 am, David Cabana drcab...@gmail.com wrote: What I'd like to get from 'tickets' is something like ( [Alice [foo]] [Bob [bar baz]]), that is, output that ties incidents to customers. So far it has eluded me. xml- just returns a

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

2010-01-23 Thread Jeff Rose
Awesome! I tried it out quickly last night using leiningen. The text rendering worked great, but graphical seems to have a problem: user= (use 'vijual.graphical) java.lang.Exception: Unable to resolve symbol: half in this context (graphical.clj:60) -Jeff On Jan 22, 11:06 pm, Conrad

Re: Dependency management

2010-01-23 Thread Jeff Rose
I use leiningen to download and publish libraries, but in terms of setting up for development I use a bash script that adds whatever I need for the project to the CLASSPATH and starts the nailgun server. (swank for vimclojure) This seems to work pretty well, although it would be nice if Leiningen

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

2010-01-23 Thread Conrad
Jeff, I'm trying to dupe the error right now On Jan 23, 7:14 am, Jeff Rose ros...@gmail.com wrote: Awesome!  I tried it out quickly last night using leiningen.  The text rendering worked great, but graphical seems to have a problem: user= (use 'vijual.graphical) java.lang.Exception:

Re: Debugging in Clojure

2010-01-23 Thread Jeff Rose
On Jan 22, 1:40 pm, Krukow karl.kru...@gmail.com wrote: Please don't top post. Seriously, people still complain about this? It's the default behavior in Google Groups, so I think you just have to live with it. Find a news reader that doesn't suck. -- You received this message because you are

Re: Clojure Conference Poll

2010-01-23 Thread Boštjan Jerko
On 23.1.2010, at 10:33, Edmund wrote: East coast for we Europeans ? On Jan 23, 8:53 am, Christophe Grand christo...@cgrand.net wrote: On Sat, Jan 23, 2010 at 8:54 AM, Konrad Hinsen konrad.hin...@fastmail.net wrote: On 22 Jan 2010, at 22:15, Wilson MacGyver wrote: I vote let's turn

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

2010-01-23 Thread Conrad
Yes, I'm getting the same error- The console functions (use 'vijual) work fine from the clojar but the graphical functions (use 'vijual.graphical) are throwing that error. There must be something more about clojure namespaces I'm not understanding... I'll let you know as soon as I have it fixed.

Re: Clojure Conference Poll

2010-01-23 Thread Heinz N. Gies
On Jan 23, 2010, at 12:04 , Boštjan Jerko wrote: On 23.1.2010, at 10:33, Edmund wrote: East coast for we Europeans ? On Jan 23, 8:53 am, Christophe Grand christo...@cgrand.net wrote: On Sat, Jan 23, 2010 at 8:54 AM, Konrad Hinsen konrad.hin...@fastmail.net wrote: On 22 Jan 2010, at

Re: slicing multidimensional vectors (vectors of vectors of vectors ...)

2010-01-23 Thread Rock
I have a working function to slice multidimensional nested vectors a la MATLAB (actually more like NumPy). I'm using Konrad Hinsen's multi-array library (keep up the great work Konrad!). Here's the code (I'm sure it can be greatly improved and optimized): (defn nv-subvec [x ind] (loop [v x

Re: slicing multidimensional vectors (vectors of vectors of vectors ...)

2010-01-23 Thread Rock
Pardon, in the example above we have a 3 x 3 x 3 nested vector, not a 3 x 3 matrix! On Jan 23, 2:45 pm, Rock rocco.ro...@gmail.com wrote: I have a working function to slice multidimensional nested vectors a la MATLAB (actually more like NumPy). I'm using Konrad Hinsen's multi-array library

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

2010-01-23 Thread Conrad
I'm stumped on this error- Maybe someone in this group can help point out my error in my clojar? Here's the issue: - The majority of the code in this library is in vijual.clj: http://github.com/drcode/vijual/blob/master/src/vijual.clj - I have a namespace under that with a file

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

2010-01-23 Thread Conrad
I should point out that the error involves the fact that the graphical.clj code uses items in the 'vijual namespace in an unqualified fashion (such as the half function) which I would expect would be allowed, but the compiler complains about this. On Jan 23, 8:58 am, Conrad drc...@gmail.com

Re: Clojure for largish web application?

2010-01-23 Thread Howard Lewis Ship
It's still very young days for any of the Clojure web frameworks (including -shameless plug- Cascade). My favorite web framework (for obvious reasons) is Tapestry; there's years and years of experience behind it to make it a very effective, very productive, and extremely high-performance

Re: Promise/Deliver use cases

2010-01-23 Thread Steven E. Harris
Jeff Rose ros...@gmail.com writes: The future is used because they have a timeout feature when using the .get method. Should there be a corresponding timeout-based `deref' function¹ (deref-within?) for promises? Having to close a function over your @p form and spawn a job on a separate thread

Re: Clojure for largish web application?

2010-01-23 Thread Stuart Sierra
I successfully used Clojure, Restlet, StringTemplate, and the Simple servlet framework to handle all traffic on www.altlaw.org. My scaling requirements were a tad unusual -- only ~10,000 visitors per day, but over a million pages. This was all on a single EC2 small instance, also running Solr.

Re: Dependency management

2010-01-23 Thread Stuart Sierra
On Jan 22, 11:58 pm, Richard Newman holyg...@gmail.com wrote: I foresee a future with a lot more time spent modifying other people's   project files. This is the past, the present, and the forever-after of open-source software development. If you need lots of libraries, you need your own Maven

Re: (list* ())

2010-01-23 Thread samppi
The Clojure parser I'm writing needs to differentiate between nil and the empty list. It should parse [1 2 3] and read that as [1 2 3], and the same for lists, maps, and sets. If it parses () and reads that nil, then it's not working correctly. In addition, code in some other libraries I'm

Re: (list* ())

2010-01-23 Thread ataggart
Fair enough. Clearly list* isn't intended to do what you want. I'd suggest using (into '() ...). On Jan 23, 8:38 am, samppi rbysam...@gmail.com wrote: The Clojure parser I'm writing needs to differentiate between nil and the empty list. It should parse [1 2 3] and read that as [1 2 3], and

Re: Promise/Deliver use cases

2010-01-23 Thread Richard Newman
delay/force definitely do not do what I'm describing. What we want to is something like a continuation as mentioned by Chouser. We want to block the thread of execution until some point in the future when the values become available. I'm not sure that what you described describes what you

Re: Leiningen plugin: run

2010-01-23 Thread Mark Engelberg
Is Leiningen a Linux-only tool? -- 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

Re: Leiningen plugin: run

2010-01-23 Thread Eric Lavigne
Is Leiningen a Linux-only tool? No, but Linux is much better supported than Windows right now. See this page: http://github.com/technomancy/leiningen The last question in the FAQ on that page is: Q: What about Windows? A: Try the bin/lein.bat script. Note that Windows support

Re: Leiningen plugin: run

2010-01-23 Thread Eric Lavigne
Is Leiningen a Linux-only tool? No, but Linux is much better supported than Windows right now. See this page:     http://github.com/technomancy/leiningen The last question in the FAQ on that page is:     Q: What about Windows?     A: Try the bin/lein.bat script. Note that Windows support

Re: Leiningen plugin: run

2010-01-23 Thread Seth
It works well for me on MacOS X. If Clojure were an option for me at work, I would try Leiningen under something like Cygwin or msysgit on Windows. On Jan 23, 8:13 pm, Mark Engelberg mark.engelb...@gmail.com wrote: Is Leiningen a Linux-only tool? -- You received this message because you are

Re: Promise/Deliver use cases

2010-01-23 Thread David Nolen
On Sat, Jan 23, 2010 at 7:43 PM, Richard Newman holyg...@gmail.com wrote: Use futures and promises for parallelism or dataflow-style work. Use delay for non-parallel, synchronous delayed execution. You're right. Here's a recursive example of what I was trying to do with promise/deliver:

Re: Clojure Conference Poll

2010-01-23 Thread Brent Millare
Weekend, and East coast, either near the DC area or New York Area, maybe Boston area is OK too. On Jan 22, 12:36 pm, dysinger t...@dysinger.net 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

Re: Promise/Deliver use cases

2010-01-23 Thread Richard Newman
You're right. Here's a recursive example of what I was trying to do with promise/deliver: http://gist.github.com/284957 And with delay/force: http://gist.github.com/284972 Nice comparison, thanks for sharing. I suppose the one thing I like about promise/deliver is that promises can be

Re: What are Vars supposed to be used for?

2010-01-23 Thread CuppoJava
Thanks for the reply. That seems to match well with how I thought they were supposed to work. I'm just a little confused by the set!, with-local-vars, functions. What are they supposed to be used for? -Patrick -- You received this message because you are subscribed to the Google Groups