Re: Which branch of clojure-hadoop to use?

2011-02-06 Thread Alex Ott
Hello I'm not working actively on clojure-hadoop, so maybe eslick's and clizzin's forks could be more advanced (although I hadn't looked onto changes). I think, that fragmentation of libraries is not so good thing, so I invite everybody who wants to participate in development to join mailing list

Re: Time/size bounded cache?

2011-02-06 Thread Eugen Dück
A while back the discussion on the "bounded memoize" thread in this forum lead to Meikel writing up a nice summary of how to do caching, providing a pluggable strategy: lru, ttl, fifo, etc. Meikel's writeup can be found at http://kotka.de/blog/2010/03/memoize_done_right.html It presents a bunch of

Re: Time/size bounded cache?

2011-02-06 Thread Eugen Dück
And if you don't have time to read the whole blog post - it's very detailed - and just read code, you could scroll down to cgrand's memoize8 function at https://gist.github.com/330644 On Feb 6, 8:32 pm, Eugen Dück wrote: > A while back the discussion on the "bounded memoize" thread in this > foru

Re: Time/size bounded cache?

2011-02-06 Thread Saul Hazledine
On Feb 6, 12:32 pm, Eugen Dück wrote: > A while back the discussion on the "bounded memoize" thread in this > forum lead to Meikel writing up a nice summary of how to do caching, > providing a pluggable strategy: lru, ttl, fifo, etc. Meikel's writeup > can be found athttp://kotka.de/blog/2010/03/m

Re: Any news on pull requests?

2011-02-06 Thread Laurent PETIT
Hi Eugen, 2011/2/6 Eugen Dück : > scan -> email would be more convenient for me. > > @Chistopher >> people keep citing it as some unique requirement foisted upon the community >> by a power hungry dictator > > That's a generalization that lacks any relation to this thread, and I > guess even the

Re: Any news on pull requests?

2011-02-06 Thread Eric Lavigne
> Back to the git pull request question - nobody seems to know anything > about it, but that issue should not be related to legal issues, if > clojure maintainers pull only stuff from CA signers, right? Be careful about applying the word "should" to legal issues. I'm inclined to just trust Rich an

Re: overriding seq in defrecord

2011-02-06 Thread Seth
The problem is that defrecord explicitly defines the interface you are trying to implement, so you are effectively attempting to declare the interface twice. And since clojure.lang.seqable isnt a protocol, you cant redefine it with extend. So, you will have to rewrite the defrecord macro or similar

Re: overriding seq in defrecord

2011-02-06 Thread Seth
I also found it useful to define my own clojure.core. This is because i wanted swap! and reset! to work on my AtomHash. So i did something like this, using clj-nstools. http://code.google.com/p/clj-nstools/ ns+ is sort of slow for large projects, but im sure that can be improved. (ns clj.core (:

Re: Time/size bounded cache?

2011-02-06 Thread Seth
do you really need that? How about an infinite lazy sequence? (defn infinite [arg] (lazy-seq (Thread/sleep 2000) ;;simulate 2 second retrieval time (concat (for [i (range 0 arg)] i) (infinite arg (def a (infinite 3)) (first a) ;;=> sleep 2 seconds, return 0 (take 3 (filter

Re: Any news on pull requests?

2011-02-06 Thread Fogus
> Not every potential contributor lives in downtown > Megalopolis, Coastal State, USA. Agreed, but you must see that your particular case lays at the extreme. I'm of the opinion that if someone is inclined to contribute, then they will not be deterred by the cost of a postage stamp -- par avion o

Re: Importing defprotocol and deftype

2011-02-06 Thread trptcolin
Forgive me if I'm misunderstanding, but you don't need to import a protocol to use it. If you need to actually get ahold of the protocol (say, to implement another deftype/defrecord), you can just use `require` or `use` to get ahold of it: (ns stuff (:use [com.example-ns :only [IFoo])

Re: Any news on pull requests?

2011-02-06 Thread Ken Wesson
On Sun, Feb 6, 2011 at 3:55 PM, Fogus wrote: >> Not every potential contributor lives in downtown >> Megalopolis, Coastal State, USA. > > Agreed, but you must see that your particular case lays at the > extreme. Does it really? 20% of the population of the US still lives outside of major cities.

Re: Time/size bounded cache?

2011-02-06 Thread Fogus
> A while back the discussion on the "bounded memoize" A truly classic thread, immortalized in JoC and at https://github.com/fogus/anamnesis :-) -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegrou

Re: Any news on pull requests?

2011-02-06 Thread Fogus
> Does it really? 20% of the population of the US > still lives outside of major cities. That's > not a majority but it's hardly an "extreme" > minority either. I'm sorry, I was referring more to your description of a treacherous hike through a vast winter wonderland; not of the hordes of potentia

Re: Any news on pull requests?

2011-02-06 Thread Eric Lavigne
> Same here. In my case, snail-mail would mean a 2.5km hike through a > freezing winter wonderland to the nearest mailbox that's used to send > rather than being receive-only. So, 5 km there and back. It could > easily take over two hours and might even be dangerous depending on > the weather. Thi

Re: Any news on pull requests?

2011-02-06 Thread Ken Wesson
On Sun, Feb 6, 2011 at 4:44 PM, Eric Lavigne wrote: >> Same here. In my case, snail-mail would mean a 2.5km hike through a >> freezing winter wonderland to the nearest mailbox that's used to send >> rather than being receive-only. So, 5 km there and back. It could >> easily take over two hours and

Re: Any news on pull requests?

2011-02-06 Thread Mike Meyer
On Sat, 5 Feb 2011 20:42:54 -0500 Christopher Petrilli wrote: > On Sat, Feb 5, 2011 at 1:23 PM, Mike Meyer > wrote: > > On Sat, 5 Feb 2011 00:09:41 -0500 > > Christopher Petrilli wrote: > >> For example, the following projects REQUIRE contributor agreements, in > >> writing, signed and either sc

Re: ANN: Textmash - another IDE for Clojure

2011-02-06 Thread Laurent PETIT
Hi Olek, I haven't found time to work more on it lately, but checked the current status of the codebase today. It appears that all new work is going into Textmash2, a rewrite in Clojure, if I understand it correctly ? I have some questions: * Is your intent to replace eventually the java version

Re: Time/size bounded cache?

2011-02-06 Thread Bill James
On Feb 6, 2:08 pm, Seth wrote: > (filter #(= % 2)  a) Another way: (filter #{2} a) -- 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 - plea

Re: Anyone want to take a crack at making the fasta shootout program faster?

2011-02-06 Thread Bill James
On Feb 3, 12:22 am, Andy Fingerhut wrote: > I've done a pass through most of the Clojure programs on the shootout   > web site recently, making some of them faster, and choosing -Xmx   > command line arguments when running them to keep the memory usage down   > to a reasonable level -- not always

Re: Any news on pull requests?

2011-02-06 Thread Eric Lavigne
>> For $1, they will convert an email or PDF into an old fashioned letter >> and put it in the mail for you. >> > If a snail-mail generated that way would be acceptable for submitting > a CA, I can't fathom why a fax or an e-mail direct to Hickey (bearing > a scanned signed written document) wouldn

Re: ANN: Textmash - another IDE for Clojure

2011-02-06 Thread Shantanu Kumar
> * Is your intent to replace eventually the java version with the > clojure version ? If so, how do you deal with the concern of "quick > startup time" ? An idea: jEdit optionally lets you start a background server during system startup so that firing up jEdit can be fast later. Maybe something s