Re: Google Summer of Code 2012 - any mentors?

2012-02-27 Thread Devin Walters
One item that hasn't made the project ideas list that I've seen numerous threads about is documentation. Does this fall within the scope of GSoC? It seems like there are a lot of opportunities to either organize, revise, update, or generate documentation. Some ideas: - Clojure.org's Libraries s

Re: [ANN] cld 0.1.0 - Clojure Language Detection

2012-02-27 Thread Alex Ott
similar functionality is also available in clj-tika (https://github.com/alexott/clj-tika, and clojars) - you can detect language, mime-type of data & extract text On Tue, Feb 28, 2012 at 3:24 AM, Lee Hinman wrote: > Hi all, > I'm pleased to announce the initial 0.1.0 release of cld (Clojure > Lan

Re: Best definition of "ClojureScript" in one sentence

2012-02-27 Thread David Nolen
On Mon, Feb 27, 2012 at 5:58 PM, Daniel Barlow wrote: > I'd suggest that it's a continuum not a dichotomy, but one convenient > place to draw an arbitrary line is whether you think it sane and sensible > to use debugging facilities designed for the target language or whether you > view that as ak

Re: lazy-sequences and memory leaks

2012-02-27 Thread Sunil S Nandihalli
thank you .. some times it is hard to come up with good names .. suggestions welcome .. :) Sunil. On Tue, Feb 28, 2012 at 9:47 AM, Baishampayan Ghose wrote: > > I am using lazy-seqs to join two very large csv files. I am very certain > > that I am not holding on to any of the heads and If I did

Re: lazy-sequences and memory leaks

2012-02-27 Thread Sunil S Nandihalli
I would like to hear what you may have to say regarding this. As always.. I pressed send sooner than I wanted to.. On Tue, Feb 28, 2012 at 9:43 AM, Sunil S Nandihalli < sunil.nandiha...@gmail.com> wrote: > Hi Everybody, > I am using lazy-seqs to join two very large csv files. I am very certain >

Re: lazy-sequences and memory leaks

2012-02-27 Thread Baishampayan Ghose
>  I am using lazy-seqs to join two very large csv files. I am very certain > that I am not holding on to any of the heads and If I did .. the jvm would > be out of memory far sooner than what I am seeing currently. The size of the > file is something like 73 G and the Ram allocated to the jvm is a

lazy-sequences and memory leaks

2012-02-27 Thread Sunil S Nandihalli
Hi Everybody, I am using lazy-seqs to join two very large csv files. I am very certain that I am not holding on to any of the heads and If I did .. the jvm would be out of memory far sooner than what I am seeing currently. The size of the file is something like 73 G and the Ram allocated to the jv

Re: Bret Victor's live editable game in ClojureScript

2012-02-27 Thread Damien Lepage
Awesome! Thanks for putting this together. I don't know if the most impressive is the end result or the little time you needed to code it. Both are mind blowing. 2012/2/27 Base > Agreed. Pretty damn sweet! > > On Feb 27, 6:01 pm, John Szakmeister wrote: > > On Mon, Feb 27, 2012 at 3:14 PM, Ch

Re: [ANN] cld 0.1.0 - Clojure Language Detection

2012-02-27 Thread Devin Walters
Cool. Time to get my cores to work extracting from pastebins. :) '(Devin Walters) On Feb 27, 2012, at 8:24 PM, Lee Hinman wrote: > Hi all, > I'm pleased to announce the initial 0.1.0 release of cld (Clojure > Language Detection). CLD a tiny library wrapping language-detect[1] > that can be used

[ANN] cld 0.1.0 - Clojure Language Detection

2012-02-27 Thread Lee Hinman
Hi all, I'm pleased to announce the initial 0.1.0 release of cld (Clojure Language Detection). CLD a tiny library wrapping language-detect[1] that can be used to determine the language of a particular piece of text very quickly. You should be able to use it from Clojars[2] with the following: [cld

Re: Google Summer of Code 2012 - any mentors?

2012-02-27 Thread Cedric Greevey
On Mon, Feb 27, 2012 at 6:49 PM, Alexander Yakushev wrote: > On Feb 28, 12:59 am, Cedric Greevey wrote: >> ... > > Ok, I got the idea now and I for sure understand your frustration with > Emacs. Emacs is definitely not for the weak of spirit (it's not a pun > in any way, I just compare your words

Re: Bret Victor's live editable game in ClojureScript

2012-02-27 Thread Base
Agreed. Pretty damn sweet! On Feb 27, 6:01 pm, John Szakmeister wrote: > On Mon, Feb 27, 2012 at 3:14 PM, Chris Granger wrote: > > Hey folks, > > > In reference to the previous thread on "Inventing On Principle", I > > built a ClojureScript example of his live editable game :) > > >http://www.c

Re: Bret Victor's live editable game in ClojureScript

2012-02-27 Thread John Szakmeister
On Mon, Feb 27, 2012 at 3:14 PM, Chris Granger wrote: > Hey folks, > > In reference to the previous thread on "Inventing On Principle", I > built a ClojureScript example of his live editable game :) > > http://www.chris-granger.com/2012/02/26/connecting-to-your-creation/ > > Enjoy! Nice! You roc

Re: Google Summer of Code 2012 - any mentors?

2012-02-27 Thread Alexander Yakushev
On Feb 28, 12:59 am, Cedric Greevey wrote: > ... Ok, I got the idea now and I for sure understand your frustration with Emacs. Emacs is definitely not for the weak of spirit (it's not a pun in any way, I just compare your words to my own beginner's experiences) requiring you to learn, google and

Re: Best definition of "ClojureScript" in one sentence

2012-02-27 Thread Daniel Barlow
I'd suggest that it's a continuum not a dichotomy, but one convenient place to draw an arbitrary line is whether you think it sane and sensible to use debugging facilities designed for the target language or whether you view that as akin to debugging a c program by inspecting the disassembly. (of

Re: Google Summer of Code 2012 - any mentors?

2012-02-27 Thread Cedric Greevey
On Mon, Feb 27, 2012 at 4:23 PM, Phil Hagelberg wrote: > Alexander Yakushev writes: > >> On Feb 27, 10:00 pm, Cedric Greevey wrote: >>> The emacs learning curve is more like a vertical cliff face than a >>> ladder with lots of small steps... >> >> I still don't get the point you are trying to br

Re: Google Summer of Code 2012 - any mentors?

2012-02-27 Thread Cedric Greevey
On Mon, Feb 27, 2012 at 3:20 PM, Alexander Yakushev wrote: > On Feb 27, 10:00 pm, Cedric Greevey wrote: >> The emacs learning curve is more like a vertical cliff face than a >> ladder with lots of small steps... > > I still don't get the point you are trying to bring. > Is it "You can't be produc

Re: Disable colored output

2012-02-27 Thread Laurent PETIT
AFAICT, the lazytest maven plugin launches tests in a separate JVM: https://github.com/stuartsierra/lazytest/blob/master/modules/lazytest-maven-plugin/src/main/java/com/stuartsierra/lazytest/AbstractLazytestMojo.java#L190 and only propages System environment variables: https://github.com/stuartsie

Re: Google Summer of Code 2012 - any mentors?

2012-02-27 Thread Phil Hagelberg
Alexander Yakushev writes: > On Feb 27, 10:00 pm, Cedric Greevey wrote: >> The emacs learning curve is more like a vertical cliff face than a >> ladder with lots of small steps... > > I still don't get the point you are trying to bring. Feeding the troll just makes things worse. Thanks for you

Re: Google Summer of Code 2012 - any mentors?

2012-02-27 Thread Alexander Yakushev
On Feb 27, 10:00 pm, Cedric Greevey wrote: > The emacs learning curve is more like a vertical cliff face than a > ladder with lots of small steps... I still don't get the point you are trying to bring. Is it "You can't be productive with Emacs"? If so then you are wrong and because Clojure develo

Re: Disable colored output

2012-02-27 Thread Rob Lally
I'm reasonably sure that with maven you can pass system properties using the form mvn goalname -Dinsert.property.here=true R. On 27 Feb 2012, at 17:54, Vladimir Matveev wrote: > Thank you again, I will try to look harder for it. > > On Feb 27, 5:46 pm, Stuart Sierra wrote: >> Sorry,

Bret Victor's live editable game in ClojureScript

2012-02-27 Thread Chris Granger
Hey folks, In reference to the previous thread on "Inventing On Principle", I built a ClojureScript example of his live editable game :) http://www.chris-granger.com/2012/02/26/connecting-to-your-creation/ Enjoy! Cheers, Chris. -- You received this message because you are subscribed to the Go

Re: Google Summer of Code 2012 - any mentors?

2012-02-27 Thread Cedric Greevey
On Mon, Feb 27, 2012 at 2:51 PM, Alexander Yakushev wrote: > On Feb 27, 9:13 pm, Cedric Greevey wrote: >> >> Whoa, hold your horses. Aren't "Decent" and "Emacs-based" mutually-exclusive? > > No, they are not. > >> "Novice-friendly" and "Emacs-based" definitely are. > > Well, if we are considering

Re: Google Summer of Code 2012 - any mentors?

2012-02-27 Thread Alexander Yakushev
On Feb 27, 9:13 pm, Cedric Greevey wrote: > > Whoa, hold your horses. Aren't "Decent" and "Emacs-based" mutually-exclusive? No, they are not. > "Novice-friendly" and "Emacs-based" definitely are. Well, if we are considering a novice in software development then you are probably right. I was par

Re: Parsing NMON data (CSV)

2012-02-27 Thread meteorfox
Thanks for the suggestion but I'm already using it to parse it, it's really simple to use. What I really meant is, what could be a good library for making graphs based on sampled data?. Suppose I have the following , , , , , , ... etc. On Feb 27, 1:02 pm, David Santiago wrote: > One library

Re: Google Summer of Code 2012 - any mentors?

2012-02-27 Thread Cedric Greevey
On Mon, Feb 27, 2012 at 1:54 PM, Alexander Yakushev wrote: > I post the following proposal here because I'm not sure I've done it > right. It would be interesting for me and may be for someone else. > > Decent Emacs-based Clojure IDE Whoa, hold your horses. Aren't "Decent" and "Emacs-based" mutua

Re: Google Summer of Code 2012 - any mentors?

2012-02-27 Thread David Nolen
Added On Mon, Feb 27, 2012 at 1:54 PM, Alexander Yakushev wrote: > I post the following proposal here because I'm not sure I've done it > right. It would be interesting for me and may be for someone else. > > Decent Emacs-based Clojure IDE > > Brief explanation: > Clojure has a critical need for

Re: Google Summer of Code 2012 - any mentors?

2012-02-27 Thread Alexander Yakushev
I post the following proposal here because I'm not sure I've done it right. It would be interesting for me and may be for someone else. Decent Emacs-based Clojure IDE Brief explanation: Clojure has a critical need for a good novice-friendly IDE. Counterclockwise certainly has its advantages but E

Re: Best definition of "ClojureScript" in one sentence

2012-02-27 Thread David Nolen
On Mon, Feb 27, 2012 at 1:41 PM, Raju Bitter wrote: > >> How about "ClojureScript is a little language that compiles into > >> JavaScript"? ;) > > > > > > Well, ClojureScript is not little the way that CoffeeScript is - > > ClojureScript comes with cljs.core. > > Exactly, ClojureScript has it's ow

Re: Slime hack for REPL testing

2012-02-27 Thread Nils Bertschinger
Hi Stefan, On Feb 27, 3:23 pm, Stefan Kamphausen wrote: > Hi, > > extracting forms from the REPL session into some test-magic definitely is > useful.  However, my sessions seem to be structured in a different way and > only having access to the previous three inputs doesn't seem viable to me. > I

Re: Bret Victor - Inventing on Principle

2012-02-27 Thread Colin Yates
Amazing. The lesson for me (which has echoes of the 'hammock driven design' message) is that sometimes the best ideas come not from evolutions of existing answers but starting completely from scratch. As techies, we sometimes (I think) restrict ourselves to improving our existing solutions whi

Re: Best definition of "ClojureScript" in one sentence

2012-02-27 Thread Raju Bitter
>> How about "ClojureScript is a little language that compiles into >> JavaScript"? ;) > > > Well, ClojureScript is not little the way that CoffeeScript is - > ClojureScript comes with cljs.core. Exactly, ClojureScript has it's own semantics instead of just being syntactic sugar. -- You received

Re: Google Summer of Code 2012: We need mentors!

2012-02-27 Thread David Nolen
Excellent! I won't be at Clojure/West, so take the lead on the that! :) David On Mon, Feb 27, 2012 at 1:18 PM, Daniel Solano Gomez wrote: > On Mon Feb 27 12:08 2012, David Nolen wrote: > > We need mentors as much as we need students. > > > > There are many great projects inside and outside of c

Re: Google Summer of Code 2012: We need mentors!

2012-02-27 Thread Daniel Solano Gomez
On Mon Feb 27 12:08 2012, David Nolen wrote: > We need mentors as much as we need students. > > There are many great projects inside and outside of contrib. If you own a > project that could use documentation, new work, visual design, *anything*, > please consider taking the 5-10 minutes to write

Re: Disable colored output

2012-02-27 Thread Vladimir Matveev
Thank you again, I will try to look harder for it. On Feb 27, 5:46 pm, Stuart Sierra wrote: > Sorry, Vladimir, I don't have an answer for you right now. I'm sure there's > a way to set system properties in Maven, but I don't have the relevant > documentation at hand. > > -S -- You received this

ClojureScript 0.0-993 released

2012-02-27 Thread Stuart Sierra
ClojureScript release 0.0-993 === List of changes since the last release: http://build.clojure.org/job/clojurescript-release/8/ ClojureScript version 0.0-993 has been released to oss.sonatype.org and will be sync'd to the Maven Central repository within 24 hours. See http://d

Re: Parsing NMON data (CSV)

2012-02-27 Thread David Santiago
One library you could use is one I wrote called Clojure-CSV, which you can find at http://github.com/davidsantiago/clojure-csv. If you have any questions, feel free to email me or message me on github. David On Sun, Feb 26, 2012 at 3:33 PM, meteorfox wrote: > Hi, > > I'm interested in creatin

Re: Google Summer of Code 2012 - any mentors?

2012-02-27 Thread David Nolen
On Mon, Feb 27, 2012 at 12:50 PM, Phil Hagelberg wrote: > Devin Walters writes: > > > Some seeds for project ideas: > > - documentation > > - clooj > > - clojars > > - leiningen > > If I had any big ideas for Leiningen I don't think I could wait until > the summer to implement them... but I woul

Re: Google Summer of Code 2012 - any mentors?

2012-02-27 Thread Phil Hagelberg
Devin Walters writes: > Some seeds for project ideas: > - documentation > - clooj > - clojars > - leiningen If I had any big ideas for Leiningen I don't think I could wait until the summer to implement them... but I would be happy to help mentor for Clojars. -Phil -- You received this message

Re: Best definition of "ClojureScript" in one sentence

2012-02-27 Thread David Nolen
On Mon, Feb 27, 2012 at 12:25 PM, Cedric Greevey wrote: > On Mon, Feb 27, 2012 at 11:29 AM, Raju Bitter > wrote: > > Thanks, Dan, and a good point you are making. > > > > Actually I have that information in the same paragraph, why it it is > > important. The publishing company was discussing if

Re: Best definition of "ClojureScript" in one sentence

2012-02-27 Thread Cedric Greevey
On Mon, Feb 27, 2012 at 11:29 AM, Raju Bitter wrote: > Thanks, Dan, and a good point you are making. > > Actually I have that information in the same paragraph, why it it is > important. The publishing company was discussing if ClojureScript is a > language, a scripting language, a compiler, etc.

Google Summer of Code 2012: We need mentors!

2012-02-27 Thread David Nolen
We need mentors as much as we need students. There are many great projects inside and outside of contrib. If you own a project that could use documentation, new work, visual design, *anything*, please consider taking the 5-10 minutes to write up a proposal idea here - http://dev.clojure.org/displa

Re: Clojure 1.3 updated cheatsheet with links to clojuredocs.org

2012-02-27 Thread Andy Fingerhut
Cedric: At the bottom of the main clojuredocs.org page is the text below. I've copied it here because perhaps the best way to get such changes made is to contribute changes to the code of the clojuredocs.org web site. At the least, it would be good to open a case. You'll have to go to the si

Re: Bret Victor - Inventing on Principle

2012-02-27 Thread David Nolen
Look Chris Granger (@ibdknox) has gone and put those ideas into action - http://www.chris-granger.com/2012/02/26/connecting-to-your-creation/ Lovely stuff. David On Mon, Feb 27, 2012 at 9:06 AM, Alex Miller wrote: > If you'd like to see Bret talk, he will be speaking at Strange Loop > this yea

Re: Clojure 1.3 updated cheatsheet with links to clojuredocs.org

2012-02-27 Thread Andy Fingerhut
You can get the Clojure source code that generates both the HTML and LaTeX for the cheatsheets at the "Download ZIP of all versions" link at the bottom of clojure.org/cheatsheet. It includes color, grayscale, and black&white PDF files of the cheatsheet (those might be sloppy right now -- I have

Re: Best definition of "ClojureScript" in one sentence

2012-02-27 Thread Raju Bitter
Thanks, Dan, and a good point you are making. Actually I have that information in the same paragraph, why it it is important. The publishing company was discussing if ClojureScript is a language, a scripting language, a compiler, etc. They had a tutorial on CoffeeScript in the last edition, and Co

Re: Clojure 1.3 updated cheatsheet with links to clojuredocs.org

2012-02-27 Thread Alex Miller
Done. On Feb 27, 10:00 am, Brian Marick wrote: > On Feb 27, 2012, at 1:22 AM, Andy Fingerhut wrote: > > > Thanks to several people who provided feedback, especially Steve Miner, and > > to Alex Miller for updating the web site yet again, there is a new > > cheatsheet at: > > >http://clojure.org

Re: Clojure 1.3 updated cheatsheet with links to clojuredocs.org

2012-02-27 Thread Alex Miller
All of the links now point to clojuredocs, where anyone can add examples. I'm not sure where Andy hosts the latex source and code to generate everything for the cheatsheet contents? On Feb 27, 7:57 am, Bill Caputo wrote: > On Feb 27, 2012, at 1:22 AM, Andy Fingerhut wrote: > > > Thanks to seve

Re: Clojure 1.3.0 updated cheatsheet, and one with links to clojuredocs.org

2012-02-27 Thread Alex Miller
That's part of the site-wide template - afaik only the Organizer roles (not me) have the ability to change it. Those people are: Rich, Stu, Tom Hickey, and Chris Redinger. On Feb 15, 3:45 pm, Phil Hagelberg wrote: > Andy Fingerhut writes: > > Fogus, Alex Millier, and I have made some updates to

Re: Clojure 1.3 updated cheatsheet with links to clojuredocs.org

2012-02-27 Thread Brian Marick
On Feb 27, 2012, at 1:22 AM, Andy Fingerhut wrote: > Thanks to several people who provided feedback, especially Steve Miner, and > to Alex Miller for updating the web site yet again, there is a new cheatsheet > at: > > http://clojure.org/cheatsheet Excellent. Might be helpful to put 1.3 in th

Re: Clojure 1.3 updated cheatsheet with links to clojuredocs.org

2012-02-27 Thread Cedric Greevey
On Mon, Feb 27, 2012 at 8:57 AM, Bill Caputo wrote: > This is fantastic guys... thank you. Agreed. Particularly, you can see syntax-highlighted source in the same page now. Previously, if you clicked through to a function and clicked through to the source, it sent you to a github page that (usua

Re: Slime hack for REPL testing

2012-02-27 Thread Stefan Kamphausen
Hi, On Monday, February 27, 2012 2:52:56 PM UTC+1, Nils Bertschinger wrote: > > Hi everyone, > > just finished a small hack for swank-clojure (see my fork on github: > github.com/bertschi/swank-clojure) > [...] > Now, hit M-x slime-extract-test and this gets transformed into an > expression

Re: Question about this little method I wrote

2012-02-27 Thread Bill Caputo
Here's a version that uses destructuring (but is otherwise the same) that cleans it up a bit: (defn combinations [[x & xs]] (if xs (for [frstitems x tlitm (combinations xs)] (flatten (list frstitems tlitm))) x)) On Feb 26, 2012, at 9:45 PM, Mike Ledoux wrote:

Re: Bret Victor - Inventing on Principle

2012-02-27 Thread Alex Miller
If you'd like to see Bret talk, he will be speaking at Strange Loop this year. St. Louis, Sept 23-25 http://thestrangeloop.com Alex On Feb 24, 12:29 pm, Damien Lepage wrote: > Hi Everyone, > > You may have seen this already, if not I believe it's worth investing 1h of > your life:http://vimeo.

Re: Google Summer of Code 2012 - any mentors?

2012-02-27 Thread David Nolen
Clojure/core hasn't yet been accepted as an organization - and it might not at all! I have a feeling the more great ideas that students propose, the more people step up as potential mentors - the more compelling it is to choose an organization. So far we've seeded the proposal list with some mento

Re: Clojure 1.3 updated cheatsheet with links to clojuredocs.org

2012-02-27 Thread Bill Caputo
On Feb 27, 2012, at 1:22 AM, Andy Fingerhut wrote: > Thanks to several people who provided feedback, especially Steve Miner, and > to Alex Miller for updating the web site yet again, there is a new cheatsheet > at: This is fantastic guys... thank you. One question: if one wants to help out wi

Slime hack for REPL testing

2012-02-27 Thread Nils Bertschinger
Hi everyone, just finished a small hack for swank-clojure (see my fork on github: github.com/bertschi/swank-clojure) The repl thread now has access to the last three input forms that were typed into the repl. These forms are accessible as **1, **2 and **3 respectively. The Common Lisp names +, ++

Re: Google Summer of Code 2012 - any mentors?

2012-02-27 Thread Devesh Mittal
I am gonna take part in the Google Summer of Code'12 for the first time and I'm really interested to know how many Clojure based projects will/are supposed to be sponsored by the Google this year. Moreover , I would like to know the key components which require development in Clojure as a reference

Re: Disable colored output

2012-02-27 Thread Stuart Sierra
Sorry, Vladimir, I don't have an answer for you right now. I'm sure there's a way to set system properties in Maven, but I don't have the relevant documentation at hand. -S -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send

Re: LCUG: 6th March 2012, Neale Swinnerton - Web apps in ClojureScript

2012-02-27 Thread Kushal Pisavadia
Just a reminder that this event is taking place next week (6th March) and you can sign up on the SkillsMatter website: http://skillsmatter.com/event/clojure/clojurescript On Wednesday, 25 January 2012 23:33:03 UTC, Kushal Pisavadia wrote: > > The London Clojure UG have already got the next event

Re: Disable colored output

2012-02-27 Thread Vladimir Matveev
Hi Stuart, Thank you for your answer. It seems that it isn't possible to specify properties when using maven. I tried specifying property in my pom.xml in section and setting property on the command line - it's no good, the output is still colorized. Shouldn't maven plugin have an option for suc

Re: Best definition of "ClojureScript" in one sentence

2012-02-27 Thread Daniel Barlow
On Mon, Feb 27, 2012 at 10:45 AM, Raju Bitter wrote: > Quotes: > "ClojureScript is a dialect of Clojure that targets JavaScript as a > deployment platform." > > "ClojureScript allows to write code using the Clojure language and > compile it to Javascript." > > "ClojureScript is a new compiler for

Slime hack for REPL testing

2012-02-27 Thread Nils Bertschinger
Hi everyone, I just did a small hack for swank-clojure which has the repl thread hold the last three input forms in variables **1, **2 and **3 respectively. Based on this, I added a slime function slime-extract-test which does the following: user> (range 7) (0 1 2 3 4 5 6) user> (range 3)

Parsing NMON data (CSV)

2012-02-27 Thread meteorfox
Hi, I'm interested in creating graphs for NMON data which is essentially a csv file. Which library can you recommend for this kind of task? Here's a brief sample of the data I need to parse in.. AAA,progname,nmon_x86_64_fedora16 AAA,command,./nmon_x86_64_fedora16 -f -s 30 -c 60 AAA,version,14g A

Question about this little method I wrote

2012-02-27 Thread Mike Ledoux
So I recently decided to start learning Clojure. I installed Clojure box and wrote this little method to compute all possible combinations of input: (defn combinations [items] (if (== (count items) 1) (flatten items) (for [frstitems (flatten (first items))

Re: clj-webdriver: Clojure API for Selenium-WebDriver

2012-02-27 Thread semperos
Thanks to everyone for your kind words. At this point, a number of folks have asked about how to organize larger test suites, or how better to compose the tools that clj-webdriver provides. I will try to focus my next round of development and documentation on that higher-level set of concerns.

Re: partition-by where the subsequences are also lazy ..

2012-02-27 Thread Meikel Brandmeyer (kotarak)
Hi, well this depends on whether you keep the head of first group or not. Contrived example: (let [s (lazy-partition-by )] [(first s) (next s)]) This would be a problem, since you keep the first group. With your version it would work as well as the underlying sequences are independent.

Re: partition-by where the subsequences are also lazy ..

2012-02-27 Thread Sunil S Nandihalli
Thanks Miekel. I can use the count version if it does not store the previous subseq in memory. Sunil. On Mon, Feb 27, 2012 at 5:38 PM, Meikel Brandmeyer (kotarak) wrote: > Hi, > > ah. Ok. I understand now your particular issue. Yes. Your approach is > perfectly feasible. By paying the price of c

Re: partition-by where the subsequences are also lazy ..

2012-02-27 Thread Meikel Brandmeyer (kotarak)
Hi, ah. Ok. I understand now your particular issue. Yes. Your approach is perfectly feasible. By paying the price of calling f multiple times for an element and realising each group twice you can make the two sequences (take-while and drop-while) independent and hence don't retain the head of

Re: partition-by where the subsequences are also lazy ..

2012-02-27 Thread Sunil S Nandihalli
Hi Meikel, Thanks for your response. This is in relation to something I am working on. And for my problem, 1. Computation of f is very very cheap 2. The subsequences can be very large by themselves to the extent that it may not fit in memory. 3. I don't mind the effort of waiting a little extra t

Re: partition-by where the subsequences are also lazy ..

2012-02-27 Thread Meikel Brandmeyer (kotarak)
Hi Sunil, your version pays a price when f is expensive since it is applied twice. It is sufficient to wrap the drop into a lazy-seq. (shameless-self-promotion "http://kotka.de/blog/2011/04/Beauty_in_a_bug.html";) Meikel -- You received this message because you are subscribed to the Google G

Double-underscore error in deftype args (Clojure 1.3)

2012-02-27 Thread cassiel
Here's a simple protocol/deftype example: (defprotocol FOO (doit [this])) (deftype Foo [_arg] FOO (doit [this] nil)) (deftype Foo [__arg] FOO (doit [this] nil)) The first definition of Foo compiles; the second gives (class: user/Foo, method: create signature: (Lclojure/lang/ IPersist

Best definition of "ClojureScript" in one sentence

2012-02-27 Thread Raju Bitter
I'm working on a ClojureScript tutorial which will be published in a German web/programming magazine next month. We had a discussion on how "ClojureScript" could be best described. Is it a a) a language or a scripting language I'd clearly say language here. b) dialect of Clojure (targeting the Ja

Clojure Propaganda, reaching out of the LISP niche market

2012-02-27 Thread bernardH
Hi, I've been watching the Neal Ford video from Clojure/conj about World Domination and thought about the propaganda part. Clojure was sold to me as a practical Lisp on the JVM. This was good because I had already decided to cure my parenthesophobia and the contenders were Racket, Guile and Clojure

partition-by where the subsequences are also lazy ..

2012-02-27 Thread Sunil S Nandihalli
Hi everybody, while the partition-by by itself is lazy the subseqs it creates are not lazy. I was attempting to make that happen. I would like to get comments from the community about my modification to partition-by so as to make it create the subsequences in a lazy way ... will this work? My ver