Re: Problem Installing VimClojure + lein-vimclojure

2011-01-27 Thread Stefan Rohlfing
Hi Meikel, Thanks for pointing me to the installation instructions. I somehow must have missed that part. I have already joined the VimClojure Group and will probably have some more questions while learning how to use this plugin. Best regards, Stefan -- You received this message because yo

Re: ANN: A simple scheme interpreter in clojure

2011-01-27 Thread Andrzej
On Tue, Jan 25, 2011 at 12:52 AM, Andrzej wrote: > On Mon, Jan 24, 2011 at 5:50 PM, dennis wrote: >> Hi, >> Yes,i have seen the rscheme. >> >> cscheme is just an exercise,it is not practical at all. > > So was rscheme. :-) In many respects your implementation is more > complete than mine. Pushed

Re: Problem Installing VimClojure + lein-vimclojure

2011-01-27 Thread Meikel Brandmeyer
Hi, On 28 Jan., 05:15, Stefan Rohlfing wrote: > Pointing to ng.exe in my ~/.vimrc file is definitely not correct as I am not > using Windows but Kubuntu 10.10. > The missing piece to a successful installation therefore is probably the > building of the Nailgun client. Does anybody know how to bu

simple map-reduce framework

2011-01-27 Thread Ulises
Hi, I've just implemented a simple map-reduce framework which mimics the steps involved in the workflow of a Hadoop job. It basically amounted to implementing a helper function to emit results and the shuffle-combine step which happens in between a map and a reduce task. Please consider that I am

simplistic M/R framework

2011-01-27 Thread Ulises
Hi, I've just implemented a simplistic map-reduce framework which mimics the steps involved in the workflow of a Hadoop job. It basically amounted to implementing a helper function to emit results and the shuffle-combine step which happens in between a map and a reduce task. Please consider that I

Re: Problem Installing VimClojure + lein-vimclojure

2011-01-27 Thread Stefan Rohlfing
Hi Miki, Thanks for your help. Now the Nailgun client is running. Best regards, Stefan -- 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

Re: [ANN] fs - file system utilities for Clojure

2011-01-27 Thread Miki
> -I'd rather (copy-tree src dest) worked like "cp -R src dest" (including > when dest doesn't exist) rather than "cp -R src/* dest/". > Done in 0.6.0. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@go

Re: Clojure Conj 2011?

2011-01-27 Thread Alex Miller
Strange Loop 2011 will be Sept. 18-20th in St. Louis. More info: http://thestrangeloop.com/blog/10/11/05/strange-loop-video-schedule (send-off conj-agent (not (schedule ([[9 18 2011] [9 20 2011]] On Dec 28 2010, 6:20 pm, Alex Miller wrote: > I have not yet set a date forStrangeLoop(althoug

Re: Problem Installing VimClojure + lein-vimclojure

2011-01-27 Thread Miki
> Does anybody know how to build the Nailgun client on Linux when using > VimClojure + lein-vimclojure? > > Clone the project from https://bitbucket.org/kotarak/vimclojure. Then "(cd client && make)", there should be a client/ng. HTH, -- Miki -- You received this message because you are sub

Re: Problem Installing VimClojure + lein-vimclojure

2011-01-27 Thread Stefan Rohlfing
As it seems the Nailgun client has to be installed manually. This is what I did so far: 1) Downloaded the Nailgun Client and extracted it. 2) Added the following commands to my ~/.vimrc file: let vimclojure#WantNailgun

Re: Struct vs. Record: Now and Future

2011-01-27 Thread Ben Mabey
On 1/27/11 8:41 PM, Ben Mabey wrote: On 1/27/11 7:24 PM, Ken Wesson wrote: On Thu, Jan 27, 2011 at 6:24 PM, Mark Engelberg wrote: Records don't have serialization yet, do they? user=> (defrecord Foo [n]) user.Foo user=> ((supers Foo) java.io.Serializable) java.io.Serializable Looks like t

Re: Struct vs. Record: Now and Future

2011-01-27 Thread Ben Mabey
On 1/27/11 7:24 PM, Ken Wesson wrote: On Thu, Jan 27, 2011 at 6:24 PM, Mark Engelberg wrote: Records don't have serialization yet, do they? user=> (defrecord Foo [n]) user.Foo user=> ((supers Foo) java.io.Serializable) java.io.Serializable Looks like they do. I've been serializing/serial

Problem Installing VimClojure + lein-vimclojure

2011-01-27 Thread Stefan Rohlfing
Hi all, I have been trying to install the Vim pluing VimClojure togheter with the lein plugin lein-vimclojure but always get an error message telling me ng (the Nailgun client) cannot be found. This is how my installation went so far: 1) Downloaded

Re: Struct vs. Record: Now and Future

2011-01-27 Thread Mark Engelberg
So what's the recommended way to serialize, then? It used to be that binding *print-dup* to true was the recommended way, but last I checked, that technique didn't work for things like records. Remember, it's not just about serializing an individual record, it's about serializing an arbitrary pie

Re: Struct vs. Record: Now and Future

2011-01-27 Thread Ken Wesson
On Thu, Jan 27, 2011 at 6:24 PM, Mark Engelberg wrote: > Records don't have serialization yet, do they? user=> (defrecord Foo [n]) user.Foo user=> ((supers Foo) java.io.Serializable) java.io.Serializable Looks like they do. And if they didn't, (defrecord Foo [n] java.io.Serializable) would p

Re: How does pmap partition its work?

2011-01-27 Thread Ken Wesson
On Thu, Jan 27, 2011 at 5:05 PM, Rasmus Svensson wrote: > 2011/1/27 Ken Wesson : >> On Thu, Jan 27, 2011 at 2:09 PM, Michael Gardner wrote: >>> On Jan 27, 2011, at 7:24 AM, Rasmus Svensson wrote: >>> If you simply want all tasks to be performed as quickly as possible, one alternative co

Re: Struct vs. Record: Now and Future

2011-01-27 Thread Lee Spector
On Jan 27, 2011, at 6:02 PM, Meikel Brandmeyer wrote: > > I kind of miss the difference in ugliness. If you want default values for > your structs you also need a factory function. So unless you write the > factory function for each struct, you'll also need a defstructx. > records will be the

Re: Struct vs. Record: Now and Future

2011-01-27 Thread Mark Engelberg
Records don't have serialization yet, do they? -- 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: Struct vs. Record: Now and Future

2011-01-27 Thread Meikel Brandmeyer
Hi, Am 27.01.2011 um 23:08 schrieb OGINO Masanori: > It seems ugly for someone using them like function frequently, but > cool for someone using them like function rarely. Consider this: (defn to-factory [record] (-> record name (.replaceAll "([a-z0-9])([A-Z])" "$1-$2") .toLower

Re: Struct vs. Record: Now and Future

2011-01-27 Thread OGINO Masanori
Hello. Sorry for miss-operation resulting in meaningless post. > Extending your record to IFn is easy, just add the invoke method. Oh, it's really easy. It seems ugly for someone using them like function frequently, but cool for someone using them like function rarely. I also read Ken's code, a

Re: How does pmap partition its work?

2011-01-27 Thread Rasmus Svensson
2011/1/27 Ken Wesson : > On Thu, Jan 27, 2011 at 2:09 PM, Michael Gardner wrote: >> On Jan 27, 2011, at 7:24 AM, Rasmus Svensson wrote: >> >>> If you simply want all tasks to be performed as quickly as possible, >>> one alternative could be to use an ExecutorService (perhaps one >>> created with n

Re: Struct vs. Record: Now and Future

2011-01-27 Thread David Nolen
2011/1/27 OGINO Masanori > Hello. > > Well, record lacks some features in struct for now, I see. > And "defstructs implement IFn" means that we can use struct in the > places need callbacks but record can't, right? > > Thank you. > > -- > Name: OGINO Masanori (荻野 雅紀) > E-mail: masanori.og...@gma

Re: Struct vs. Record: Now and Future

2011-01-27 Thread OGINO Masanori
Hello. Well, record lacks some features in struct for now, I see. And "defstructs implement IFn" means that we can use struct in the places need callbacks but record can't, right? Thank you. -- Name: OGINO Masanori (荻野 雅紀) E-mail: masanori.og...@gmail.com -- You received this message because

Re: Struct vs. Record: Now and Future

2011-01-27 Thread OGINO Masanori
2011/1/27, Lee Spector : > > There was a recent thread on this. Some of the issues that were raised (and > for which workarounds were presented) were slot defaults, keyword args to > struct-map, and the fact that defstructs implement IFn. I had also found it > more elegant to write a macro or two t

Re: How does pmap partition its work?

2011-01-27 Thread Ken Wesson
On Thu, Jan 27, 2011 at 2:09 PM, Michael Gardner wrote: > On Jan 27, 2011, at 7:24 AM, Rasmus Svensson wrote: > >> If you simply want all tasks to be performed as quickly as possible, >> one alternative could be to use an ExecutorService (perhaps one >> created with newFixedThreadPool) with its in

Re: How does pmap partition its work?

2011-01-27 Thread Michael Gardner
On Jan 27, 2011, at 7:24 AM, Rasmus Svensson wrote: > If you simply want all tasks to be performed as quickly as possible, > one alternative could be to use an ExecutorService (perhaps one > created with newFixedThreadPool) with its invokeAll method. invokeAll > takes a collection of callables (in

Re: What is the difference between a tail-recursive function and a recursive function using recur?

2011-01-27 Thread Harrison Maseko
This discussion is enlightening. Thank you all for your instructive comments. -h. On Jan 27, 1:39 pm, Nick Zbinden wrote: > Maybe this is intressting for > you:http://stackoverflow.com/questions/4304468/clojure-jvm-7-8-improvemen... > > It should answer your question and give some more informati

Re: Struct vs. Record: Now and Future

2011-01-27 Thread Ken Wesson
On Thu, Jan 27, 2011 at 9:34 AM, Lee Spector wrote: > > There was a recent thread on this. Some of the issues that were raised (and > for which workarounds were presented) were slot defaults, keyword args to > struct-map, and the fact that defstructs implement IFn. I had also found it > more el

Re: ANN: Textmash - another IDE for Clojure

2011-01-27 Thread Laurent PETIT
OK, I've released paredit.clj in clojars. I've also documented the github project, please start from there: https://github.com/laurentpetit/paredit.clj Please one word: paredit.clj internals may change in future versions. Consider this currently as a "black box" tool. (I've not had time to work

Re: Struct vs. Record: Now and Future

2011-01-27 Thread Lee Spector
There was a recent thread on this. Some of the issues that were raised (and for which workarounds were presented) were slot defaults, keyword args to struct-map, and the fact that defstructs implement IFn. I had also found it more elegant to write a macro or two to expand into struct-related co

Re: Struct vs. Record: Now and Future

2011-01-27 Thread Meikel Brandmeyer
Hi, On 27 Jan., 14:47, Nick Zbinden wrote: > Structs are nicer to work with. We should get all the nice stuff you > can do with structs to records then we can mark structs as dublicated. What in particular do you find lacking with records? Sincerely Meikel -- You received this message becaus

Minimalistic ETL

2011-01-27 Thread mk
Hi, I recently had do do some ETL work (select from database one, transform, insert into database two). I searched for an existing tool, but found none that was reasonably simple but Scriptella, which implements a DSL for this job. Hm. I thought, "Hey, this must be easy to do with a Lisp". And it

Re: Struct vs. Record: Now and Future

2011-01-27 Thread Nick Zbinden
Structs are nicer to work with. We should get all the nice stuff you can do with structs to records then we can mark structs as dublicated. On Jan 27, 2:43 pm, OGINO Masanori wrote: > Hello. > > I have two questions: > > 1. Is there any reason why we should use struct rather than record in > new

Struct vs. Record: Now and Future

2011-01-27 Thread OGINO Masanori
Hello. I have two questions: 1. Is there any reason why we should use struct rather than record in new code without support for old Clojure? 2. If there is nothing, will struct be marked as duplicated someday? Thank you. -- Name: OGINO Masanori (荻野 雅紀) E-mail: masanori.og...@gmail.com -- Y

Re: How does pmap partition its work?

2011-01-27 Thread Rasmus Svensson
2011/1/24 Michael Gardner : > Suppose I have a sequence of tasks I'd like to parallelize using pmap. The > amount of CPU time these tasks require varies greatly; in particular, many of > them will require virtually no work. Can I rely on pmap to divide the work > efficiently even if there is som

Re: What is the difference between a tail-recursive function and a recursive function using recur?

2011-01-27 Thread Nick Zbinden
Maybe this is intressting for you: http://stackoverflow.com/questions/4304468/clojure-jvm-7-8-improvements/4306950#4306950 It should answer your question and give some more information. On Jan 26, 4:04 pm, Harrison Maseko wrote: > Hi all, > I need some help in understanding some basic concept. T

Re: Most Elegant Clojure Solution For Wilson's Maze Algorithm

2011-01-27 Thread Christophe Grand
updated with a "rectangular hexgrid" example https://gist.github.com/792959 On Mon, Jan 24, 2011 at 9:07 AM, Christophe Grand wrote: > Hi Conrad, > > Here is my take: https://gist.github.com/792959 > > Since I despise indices I wrote the core algorithm without them. That gave > me a maze generati