Re: usage examples in clojure api docs

2010-06-29 Thread Tom Faulhaber
I like the idea of having example code for all the functions. However, speaking for myself only, I don't think that the doc strings are the place for a comprehensive set of examples. How about building them in some external place? (Maybe as a separate github project to begin with.) In particular,

Re: Protocols

2010-06-29 Thread Mark Engelberg
On Sun, Jun 27, 2010 at 7:18 AM, Rich Hickey wrote: > There are no extension points built on protocols in Clojure yet. Delivering > protocols is step one, re-architecting the core abstractions in terms of > protocols is still to come. > > Rich So how hard it would it be right now, for example, to

Re: Protocols

2010-06-29 Thread Kevin Downey
manually? did we lose macros? On Tue, Jun 29, 2010 at 12:54 AM, Mark Engelberg wrote: > On Sun, Jun 27, 2010 at 7:18 AM, Rich Hickey wrote: >> There are no extension points built on protocols in Clojure yet. Delivering >> protocols is step one, re-architecting the core abstractions in terms of >

Re: bioinformatics toolkit in clojure: what would that look like?

2010-06-29 Thread Edmund Jackson
Hi Jan, Perhaps R's excellent bioconductor project could be mapped nicely into Incanter (Clojure's R) ? Edmund On 27 Jun 2010, at 23:15, jandot wrote: > Hi all, > > I have been a ruby user for several years and have contributed to the > bioruby toolkit for bioinformatics. Lately howe

Re: Clojure distribution (like what ubuntu is for linux)

2010-06-29 Thread Jeff Rose
Just a quick note. You should also be aware of this project that came out recently: http://github.com/liebke/clj I haven't tried either yet so I can't really comment, but I like the idea of creating and integrated package manager and repl utility. Clj also seems nice in the way it integrates wi

Re: bioinformatics toolkit in clojure: what would that look like?

2010-06-29 Thread Jeff Rose
Hi Jan, After coming from Ruby and previous OO languages I think many of us have the same questions. For starters, I'd recommend reading a couple other libraries to get a sense for how people organize libraries. That will probably give you the most concrete sense for how to really get started.

Re: bioinformatics toolkit in clojure: what would that look like?

2010-06-29 Thread npt11tpn
Hi, There has been some interest towards Clojure from the cheminformatics community as well (e.g. http://blog.rguha.net/?tag=clojure ) in relation to the Chemistry Development Toolkit (CDK, http://sourceforge.net/projects/cdk) and the approach seems to be to use the CDK java classes directly in cl

Re: bioinformatics toolkit in clojure: what would that look like?

2010-06-29 Thread Nicolas Oury
On Tue, Jun 29, 2010 at 10:50 AM, Jeff Rose wrote: > Don't use records or protocols or structs or metadata or > anything fancy, just regular old maps. For modeling sequential data, > like DNA base pairs, use vectors. Then create a series of functions > to read these things in, write them out, a

Re: usage examples in clojure api docs

2010-06-29 Thread Heinz N. Gies
There is Walton that covers that. Talk to defn in #clojure if you want to know detail Regards, Heinz Sent from my iPad On Jun 29, 2010, at 6:06 AM, cageface wrote: > Several people have suggested that usage examples in the docs would be > helpful and this is something I often find myself wish

Re: Newb Question

2010-06-29 Thread Jose Luis Romero
Oh well.. Thanks for the tips!!! On Mon, Jun 28, 2010 at 1:37 PM, Mike Meyer wrote: > On Sun, 27 Jun 2010 11:22:15 -0700 (PDT) > José Luis Romero wrote: > > > Hi! I am learning the core of clojure, and so far, I am loving it. But > > I am not a lisp programmer (python, java, among others), but

Re: bioinformatics toolkit in clojure: what would that look like?

2010-06-29 Thread jandot
Bonjour Nicolas, I've started using clojure for my bioinformatics work, but it is still *very* early days. Will try to become more proficient in it, but slowly building up a toolkit for myself might just be the seed for bioclojure. Have no idea to what extent clojure is used at the moment in the f

Re: New Primitive data types (equal branch) - impact on optimized code.

2010-06-29 Thread j-g-faustus
Well, it gives a baseline to compare 1.2 improvements against. In terms of speed, convenience or readability. On Jun 28, 8:02 pm, Aaron Cohen wrote: > Doing these tests on clojure 1.1, while self-enlightening, is kind of > missing the point. -- You received this message because you are subscrib

Re: Clojure's n00b attraction problem

2010-06-29 Thread Avram
Full disclosure, I never liked ruby or python, I'm more of a perl/c++/ R guy. I'm new to clojure as well, and love it. I don't mind learning LISP at all. I find it refreshing. It takes the bureaucracy out of Java. When I can, I explore ways in which incanter, cascalog, hadoop, mahout, weka, and

Re: Clojure's n00b attraction problem

2010-06-29 Thread Greg
> A certain proportion of new clojure users are coming from > non-Java/non-JVM backgrounds. To them, "how do I make an executable" > is a perfectly valid question. And "clojure doesn't do executables" > isn't a particularly encouraging answer (not even if you blame Java > for it :-)) Classpaths, se

Re: the joys of lisp

2010-06-29 Thread Steve Molitor
> The Python approach leads to more readable >code: http://www.mired.org/home/mwm/papers/readability.html The two cases he sites do not apply to Clojure: The first case is a function that is allowed to change the value of a variable passed into it. Variables are immutable in Clojure so you can't

Re: the joys of lisp

2010-06-29 Thread Ryan Crum
Terseness and density is what attracted me to lisp-style languages in the first place. In Clojure it is generally easier to locally comprehend everything that is going on without having to go chasing through a bunch of class definitions, and the code is often declarative enough to serve as its own

Re: Newb Question

2010-06-29 Thread Paul Moore
On 28 June 2010 20:24, Angel Java Lopez wrote: > Hi people! > > Any way to produce a lazy seq of chars, that prints as a string, based on > two parameters, n (number of repeats), text (text to repeat)? > > Then, something like > > (myrepeat 100 "superdupertext") > > could be implemented withou

Apply/Laziness question (was Re: Newb Question)

2010-06-29 Thread Savanni D'Gerinel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Along those lines, why is the apply necessary? More clearly, and I encountered this with a different block of code earlier today, repeat returns a lazy sequence. Str does nothing to evaluate that sequences, so (str (repeat ...)) returns a lazy sequen

reify bug?

2010-06-29 Thread itistoday
I'm probably doing something wrong but this doesn't work for some reason: user=> (seq (.list (java.io.File. ".") (reify java.io.FilenameFilter (accept [f s] (not (.startsWith s ".")) java.lang.IllegalArgumentException: Can't define method not in interfaces: accept (NO_SOURCE_FILE:36) This doe

Re: Clojure's n00b attraction problem

2010-06-29 Thread Greg
Sean, There are many ways in which one could have the point of view that getting started with Clojure is simple. As I tried to illustrate in the post, there exist other points of view from which this is not true. Just because you found it easy to get started, does not mean others do, and judg

Re: Clojure's n00b attraction problem

2010-06-29 Thread Paul Moore
On 28 June 2010 19:49, Mike Meyer wrote: >> Yet another set of choices n00bs are faced with is figuring out how >> to actually compile their source into an executable. > > Executable? We're talking about Java here. It doesn't do executables - > it does jar files. There's little reason to build tho

Re: Clojure's n00b attraction problem

2010-06-29 Thread Greg
On Jun 28, 2010, at 4:44 PM, Lee Spectorr wrote: > CLJ might indeed be handy but an editor is essential, and neither this nor > the other options mentioned in the CLJ readme includes one as far as I know. > My minimal requirements for an editor are that it have a interface that will > be natura

Re: Clojure's n00b attraction problem

2010-06-29 Thread Tim Robinson
Being a n00b, 1 year programming, not formally educated in such, 2 weeks with Clojure I am going to agree. Clojure is NOT n00b friendly. The easiest setup I have ever seen dealt with is python. * Most n00bs want a "hello world" in an application output (via script or compojure). Not in a repl. The

Re: Question: pmap + number of threads + number of cpus

2010-06-29 Thread Todd
Chris - Thanks for your response. I have a few follow up questions: toddg=> (show (range 10)) === public final clojure.lang.LazySeq === ... so range returns a lazy seq toddg=> (show (seq (range 10))) === public final clojure.lang.ChunkedCons === ... but seq'ing it returns a ChunkedCons Q:

Re: Life on the bleeding edge

2010-06-29 Thread Paul Moore
On 29 June 2010 06:47, Mark Engelberg wrote: > Yes, that is disconcerting that clojure-contrib produces errors on > Windows (sigh, it often feels like Windows is a second-class citizen > when it comes to clojure), but that did the trick and allowed the > build to complete.  Thanks for the tip. Is

Re: Clojure's n00b attraction problem

2010-06-29 Thread Paul Moore
On 28 June 2010 23:13, Lee Spector wrote: > and more recently I had to figure out about.dotted.names and their meaning > with respect to directory structures, > in order to get require to find a second clj file. It's not complicated, but > it's also not obvious to everyone first coming > to Cloj

Re: Clojure's n00b attraction problem

2010-06-29 Thread Paul Moore
On 28 June 2010 22:41, cageface wrote: > On Jun 28, 12:16 pm, Martin DeMello wrote: >> It depends. I found the concepts pretty easy, since I have done a lot >> of functional programming, but when I was new to clojure I had a truly >> horrible time figuring out the various classpath issues needed

Re: Clojure's n00b attraction problem

2010-06-29 Thread Jared
I guess I'll throw in my 2 cents, since I'm a new guy with very limited Java experience. It is tricky getting Clojure to run, but not all of this is Clojure's fault. It took me 2 days to get it running on my desktop running ubuntu 10.04, with netbeans. I still have not been able to get the labrepl

Re: Clojure's n00b attraction problem

2010-06-29 Thread Greg
Very insightful comments Chas! I agree with most of what you've said, in the sense that I definitely see your point of view. On Jun 28, 2010, at 7:17 PM, Chas Emerick wrote: > Greg, thanks for this post, it's a helpful perspective. Many of us have been > working on this problem from various a

Re: Conjure / Compojure Docs etc

2010-06-29 Thread Ryan Waters
An excellent post regarding compojure documentation was made by James Reeves on the compojure group June 26, 2010: http://groups.google.com/group/compojure/msg/da0de026bbbfbec1 In it, he discusses a strong desire to update the docs and provides links a person would want to use in the mean time.

Re: the joys of lisp

2010-06-29 Thread Timothy Baldridge
Erlang basically treats strings in one or two ways. 1) as pure binary data (useless for most cases) or 2) as a list of numbers. Imagine if clojure treated strings like this: (43, 22, 23, 32, 43) So when you print any list in Erlang it checks to make sure if all the numbers in the list are in a val

Re: Clojure's n00b attraction problem

2010-06-29 Thread Paul Moore
On 29 June 2010 06:11, cageface wrote: > On Jun 28, 9:14 pm, Michael Richter wrote: >> Ah.  The Clojure community has already started down the road to Common >> Lisp-style, smugness-generated obscurity and disdain.  Bravo!  Well-played! > > Not at all. Nothing would make me happier than "Clojure

Documentation and examples (and where is the documentation on reduce)?

2010-06-29 Thread michele
I really like Clojure, but as a complete n00b on Lisp languages, it is frustrating that I many times have to hunt high and low for documentation on basic stuff. Recently I saw a code snippet that showed that reduce takes an optional initial value, something I didn't know. When I see something new,

Re: Clojure's n00b attraction problem

2010-06-29 Thread Lee Spector
On Jun 29, 2010, at 1:05 AM, Mike Meyer wrote: >> Yes emacs has built-in paren matching but emacs (like vi) is something >> that has to be learned, not all newcomers will know it, I don't want >> to force my students to use it (although I use it) > > But you're willing to force them to use some o

Re: Life on the bleeding edge

2010-06-29 Thread Rich Hickey
On Jun 29, 2010, at 1:47 AM, Mark Engelberg wrote: Yes, that is disconcerting that clojure-contrib produces errors on Windows (sigh, it often feels like Windows is a second-class citizen when it comes to clojure), but that did the trick and allowed the build to complete. Thanks for the tip. S

Re: Documentation and examples (and where is the documentation on reduce)?

2010-06-29 Thread David Nolen
On Tue, Jun 29, 2010 at 5:55 AM, michele wrote: > I really like Clojure, but as a complete n00b on Lisp languages, it is > frustrating that I many times have to hunt high and low for > documentation on basic stuff. > > Recently I saw a code snippet that showed that reduce takes an > optional init

Re: Clojure's n00b attraction problem

2010-06-29 Thread Laurent PETIT
2010/6/29 Jared : > I guess I'll throw in my 2 cents, since I'm a new guy with very > limited Java experience. > > It is tricky getting Clojure to run, but not all of this is Clojure's > fault. It took me 2 days to get it running on my desktop running > ubuntu 10.04, with netbeans. I still have not

Re: Clojure's n00b attraction problem

2010-06-29 Thread Joost
On Jun 29, 5:50 am, Sean Corfield wrote: > If folks find the Java stack intimidating, maybe Clojure isn't for > them? Lots of language run on the JVM and they all require some basic > knowledge of classpaths, build tools and existing IDEs such as > Ecliper, NetBeans, IntelliJ etc. If folks are new

Re: Documentation and examples (and where is the documentation on reduce)?

2010-06-29 Thread Meikel Brandmeyer
Hi, On Jun 29, 11:55 am, michele wrote: > Well, to my surprise and frustration, I haven't found any place which > documents that reduce takes an optional initial value. http://richhickey.github.com/clojure/branch-1.1.x/index.html In particular: http://richhickey.github.com/clojure/branch-1.1.

Re: Protocols

2010-06-29 Thread Rich Hickey
On Jun 29, 2010, at 3:54 AM, Mark Engelberg wrote: On Sun, Jun 27, 2010 at 7:18 AM, Rich Hickey wrote: There are no extension points built on protocols in Clojure yet. Delivering protocols is step one, re-architecting the core abstractions in terms of protocols is still to come. Rich

Re: Clojure's n00b attraction problem

2010-06-29 Thread Lee Spector
On Jun 28, 2010, at 5:31 PM, Greg wrote: > Have you tried IntelliJ with the La Clojure plugin? I tried all 3 IDEs and I > was most impressed with IntelliJ IDEA. It's not too difficult to setup, and > once you do it's really nice and has I think all of the stuff you asked about > (syntax colorin

Re: Conjure / Compojure Docs etc

2010-06-29 Thread Matt
Unfortunately, I'm not very good at promoting Conjure. Though there does seem to be more interest recently. Also, I've some complaints about Conjure not working like other Clojure libraries. This will hopefully be addressed in the next release which breaks Conjure up into a few jar files and adds

Re: Question: pmap + number of threads + number of cpus

2010-06-29 Thread Meikel Brandmeyer
Hi, On Jun 29, 6:56 am, Todd wrote: > Q: Why does range return a LazySeq whereas seq returns > a ChunkedCons? I can see that these two classes are > very different...but I don't really understand what's > going on here. seq returns whatever is contained in the lazy-seq: user=> (type (lazy-seq [

Re: Clojure's n00b attraction problem

2010-06-29 Thread Laurent PETIT
Ok, so now, please take a look at this video (it's just 3 minutes), and you'll get a grasp at how easy it is to bootstrap an Eclipse based clojure environment : http://www.youtube.com/watch?v=1T0ZjBMIQS8 Works with eclipse 3.5 and eclipse 3.6. I'm not claiming Eclipse / counterclockwise is better

Re: Clojure's n00b attraction problem

2010-06-29 Thread Laurent PETIT
The video must be seen in HD if you want to have a chance to see anything on it. It has no sound, it's not a problem with your computer. 2010/6/29 Laurent PETIT : > Ok, so now, please take a look at this video (it's just 3 minutes), > and you'll get a grasp at how easy it is to bootstrap an Eclips

Re: State of Clojure web development

2010-06-29 Thread Matt
> If I had a full-stack, well-documented clojure framework, I'd jump to that. Have you looked at Conjure? http://github.com/macourtney/Conjure Docs: http://wiki.github.com/macourtney/Conjure/ It's not as fully featured as Django, but it's a good start and it's in Clojure. Conjure doesn't have an

Re: the joys of lisp

2010-06-29 Thread Mike Meyer
"Steve Molitor" wrote: >> The Python approach leads to more readable >>code: http://www.mired.org/home/mwm/papers/readability.html > >The two cases he sites do not apply to Clojure: More accurately, the problem being analyzed (a variable changing to a bad value) can't happen in clojure. It has

Re: State of Clojure web development

2010-06-29 Thread Matt
> 1. Have you written, or are you writing, a web application that uses > Clojure? What does it do? We are currently writing a web interface for the project I'm on. The project, IMSMA, keeps track of landmines in war-torn countries so humanitarian efforts can clean them up. The main program is a ja

Re: Clojure's n00b attraction problem

2010-06-29 Thread Mike Meyer
"Tim Robinson" wrote: >* Most n00bs want a "hello world" in an application output (via script >or compojure). Not in a repl. The repl is a tool to get you there. In >order to do this users should really have a 7 step guide on leinington I happen to think that they're wanting the wrong thing. Eve

Re: State of Clojure web development

2010-06-29 Thread Matt
Here's the Conjure scaffold controller in 4 lines: (ns controllers.message-controller (:use [conjure.controller.base]) (:require [controllers.template-controller :as template- controller])) (copy-actions :template) And, you can still add any actions you want, or override the action which are

Re: Clojure distribution (like what ubuntu is for linux)

2010-06-29 Thread Brent Millare
Well it looks like I have some competition ;) > I haven't tried either yet so I can't really comment, but I like the > idea of creating and integrated package manager and repl utility.  Clj > also seems nice in the way it integrates with clojars.org. At the moment, dj uses several maven repositor

Re: reify bug?

2010-06-29 Thread Adrian Cuthbertson
You need the "this" arg and I find you need to hint the exact types when reifying java interfaces; (seq (.list (java.io.File. ".") (reify java.io.FilenameFilter (^boolean accept [_ ^java.io.File f ^String s] (not (.startsWith s ".")) ... works for me. - Rgds, Adrian -- You received this me

Re: Clojure's n00b attraction problem

2010-06-29 Thread Lee Spector
Thanks Laurent. Is there automatic Clojure indentation in Counterclockwise now? I played with it a couple of months ago and saw a lot to like, and if I recall correctly a lack of indentation support was one of the main reasons I kept looking for alternatives. I think I was also a little confus

Re: reify bug?

2010-06-29 Thread Adrian Cuthbertson
Sorry, you don't need the type hists just the "this" arg... (seq (.list (java.io.File. ".") (reify java.io.FilenameFilter (accept [_ f s] (not (.startsWith s ".")) On Tue, Jun 29, 2010 at 3:35 PM, Adrian Cuthbertson wrote: > You need the "this" arg and I find you need to hint the exact types

Re: usage examples in clojure api docs

2010-06-29 Thread Lee Spector
I would LOVE to have simple examples for all functions, anyplace that makes them easy to access during coding. In docstrings would be fine with me, but other places would work as well. Here again the Processing project (among others, I'm sure) provides a nice example IMHO, even though Processi

Re: Apply/Laziness question (was Re: Newb Question)

2010-06-29 Thread Mike Meyer
On Mon, 28 Jun 2010 13:31:45 -0500 Savanni D'Gerinel wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Along those lines, why is the apply necessary? > > More clearly, and I encountered this with a different block of code > earlier today, repeat returns a lazy sequence. Str does not

Re: Can't send from agent error handler?

2010-06-29 Thread Chouser
On Wed, Jun 23, 2010 at 11:27 AM, Shawn Hoover wrote: > My first thought for an agent error handler was to send the exception to > another agent. > user=> (let [handler (agent nil) >             a (agent 42 >                      :error-handler >                      (fn [_ ex] (send handler >   

Re: Documentation and examples (and where is the documentation on reduce)?

2010-06-29 Thread Jimmy
> Uh. Sky is falling again. But your are right. Nice examples would be a > nice addition. It's the first thing I'm looking for, when learning > something new. I'm not sure they should go to the reference docs, > though. Ruby is an example of a language that does have some examples in the referenc

Re: Newb Question

2010-06-29 Thread Angel Java Lopez
Hi people! Paul, yes! but... The apply and str evaluations in (apply str (repeat n text)) are lazy? I guess the result could be a big string. Isn't it? Angel "Java" Lopez http://www.ajlopez.com http://twitter.com/ajlopez On Mon, Jun 28, 2010 at 5:31 PM, Paul Moore wrote: > On 28 June 2010 2

Re: Can't send from agent error handler?

2010-06-29 Thread Chouser
On Thu, Jun 24, 2010 at 6:51 AM, ka wrote: > I'm also facing the same problem - > > (let [handler (agent 50) >        a (agent 42 >            :error-handler >            (fn [_ ex] >              (do >                (println "Inside agent a error handler fn" (Thread/ > currentThread)) >        

Re: Apply/Laziness question (was Re: Newb Question)

2010-06-29 Thread B Smith-Mannschott
On Mon, Jun 28, 2010 at 20:31, Savanni D'Gerinel wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Along those lines, why is the apply necessary? > > More clearly, and I encountered this with a different block of code > earlier today, repeat returns a lazy sequence.  Str does nothing to

Re: Clojure's n00b attraction problem

2010-06-29 Thread Mike Meyer
On Tue, 29 Jun 2010 07:56:09 -0400 Lee Spector wrote: > > On Jun 29, 2010, at 1:05 AM, Mike Meyer wrote: > >> Yes emacs has built-in paren matching but emacs (like vi) is something > >> that has to be learned, not all newcomers will know it, I don't want > >> to force my students to use it (alth

Exceptions

2010-06-29 Thread Nicolas Oury
Dear all, Is there a high level facility in Clojure to create your own exceptions? I know you can use genclass/proxies and extend Throwable/Exception but it seems very (too?) close to the host language whereas the concept of exceptions is shared among most potential hosts. It would seems reasonab

Re: usage examples in clojure api docs

2010-06-29 Thread Angel Java Lopez
Hi people! I love PHP documentation http://www.php.net/manual/en/ and its function reference: http://www.php.net/manual/en/funcref.php Each function has a dedicated page, with detailed description, initial examples. And visitors can add new examples or limit cases. Example: http://www.php.net/

Re: Apply/Laziness question (was Re: Newb Question)

2010-06-29 Thread Angel Java Lopez
Hi people! Hmmm (str (repeat )) doesn't concatenate the repeated values. As (str ("f" "o" "o")) doesn't return "foo", it returns "("f" "o" "o")" the stringified sequence. But (apply str '("f" "o" "o")) returns "foo", as expected in the initial question. Angel "Java" Lopez http://www.ajl

Re: Clojure's n00b attraction problem

2010-06-29 Thread Lee Spector
On Jun 29, 2010, at 10:26 AM, Mike Meyer wrote: > Actually, have you looked at jedit? It's the only free Java editor > that isn't trying to be an IDE. Thanks for this tip. I didn't know about jedit. I've grabbed it and see that it has a built-in Clojure mode. Promising! Its idea of proper Clojur

Re: Apply/Laziness question (was Re: Newb Question)

2010-06-29 Thread Meikel Brandmeyer
Hi, On Jun 29, 4:24 pm, B Smith-Mannschott wrote: > This fully realizes the (range 1) before calling foo, which is > wasteful if foo is written to consume more incrementally. > > I've run into this trouble with concat, when I've wanted a lazy > sequence of the concatenation of the sequences

Re: Exceptions

2010-06-29 Thread Brenton
Nicolas, Check out error-kit in contrib. Brenton On Jun 29, 7:26 am, Nicolas Oury wrote: > Dear all, > > Is there a high level facility in Clojure to create your own exceptions? > I know you can use genclass/proxies and extend Throwable/Exception but it > seems very (too?) close to the host lan

Re: Apply/Laziness question (was Re: Newb Question)

2010-06-29 Thread B Smith-Mannschott
On Tue, Jun 29, 2010 at 17:24, Meikel Brandmeyer wrote: > Hi, > > On Jun 29, 4:24 pm, B Smith-Mannschott wrote: > >> This fully realizes the (range 1) before calling foo, which is >> wasteful if foo is written to consume more incrementally. >> >> I've run into this trouble with concat, when I

Re: Life on the bleeding edge

2010-06-29 Thread Mark Engelberg
On Tue, Jun 29, 2010 at 12:30 AM, Paul Moore wrote: > Is there anything a clojure newbie with little JVM development > experience (but a willingness to learn) can do to help with the > Windows situation? From what I understand, Java itself is fine on > Windows, so I assume this is a clojure-specif

Re: bioinformatics toolkit in clojure: what would that look like?

2010-06-29 Thread Rob Lachlan
> > +1 if you make the function not just for vector but for any seqs. That way > of we need special BioSeqs someday... Yes, I concur. I think that the default in-memory data format for (DNA, RNA, Protein sequences) should be a vector, but that the functions should take sequences. Mind you in some

Re: bioinformatics toolkit in clojure: what would that look like?

2010-06-29 Thread Nicolas Oury
If you want to open-source it, one way of learning and keeping other involved would be to have a repository where you put what you do. Other can look and comment at first, and maybe commit too when you think your work will be ready for more commiters. On Mon, Jun 28, 2010 at 9:06 PM, jandot wrot

Re: bioinformatics toolkit in clojure: what would that look like?

2010-06-29 Thread Moritz Ulrich
I would recommend Github as a hosting-service for the code. It's free, collaboration with others is extreme cool and most other notable clojure projects (and even clojure itself) is hosted there. On Tue, Jun 29, 2010 at 7:45 PM, Nicolas Oury wrote: > If you want to open-source it, one way of lear

Re: Clojure's n00b attraction problem

2010-06-29 Thread Mike Meyer
On Tue, 29 Jun 2010 11:15:40 -0400 Lee Spector wrote: > > On Jun 29, 2010, at 10:26 AM, Mike Meyer wrote: > > Actually, have you looked at jedit? It's the only free Java editor > > that isn't trying to be an IDE. > > Thanks for this tip. I didn't know about jedit. I've grabbed it and see that

Re: Newb Question

2010-06-29 Thread Paul Moore
On 29 June 2010 15:14, Angel Java Lopez wrote: > Hi people! > > Paul, yes! but... > > The apply and str evaluations in (apply str (repeat n text)) > are lazy? > > I guess the result could be a big string.  Isn't it? So you're looking for a result that behaves like a string, but isn't an actual ja

Clj on OSX

2010-06-29 Thread Glenn, Jacob
In the spirit of getting yet another Clojure newbie up and running, I'm hoping someone can help me with my efforts to install Clj (http://github.com/liebke/clj) on OSX 10.6.3. I've been using the clj script provided by ClojureX, but it looks like that project has now been deprecated so I figure

Re: Documentation and examples (and where is the documentation on reduce)?

2010-06-29 Thread michele
Silly me. I forgot about (doc …). Thanks for the answers. Well, it's good there is documentation, pity it's all over the place. Meikel, idiots are nice people too, so don't feel bad. But seriously, why do you think we work this hard to make the computer do all this things for us? Because we're l

Re: Clojure's n00b attraction problem

2010-06-29 Thread Sean Corfield
I believe this is what I ultimately ended up installing on my Macs: http://github.com/carlism/Clojure-MacOSX On Mon, Jun 28, 2010 at 8:54 PM, Lee Spector wrote: > What TextMate clojure bundle & instructions do you use? I've tried to play > with this but the installations haven't worked as adver

Re: New Primitive data types (equal branch) - impact on optimized code.

2010-06-29 Thread j-g-faustus
OK, I tried this. Object field access instead of arrays made a few percent difference, but not enough to be significant. Definterface and defprotocol, on the other hand, not only gave cleaner code but was more than twice as fast. A huge win if you ask me :) So summarizing this particular benchmar

Re: Life on the bleeding edge

2010-06-29 Thread Paul Moore
On 29 June 2010 18:36, Mark Engelberg wrote: > On Tue, Jun 29, 2010 at 12:30 AM, Paul Moore wrote: >> Is there anything a clojure newbie with little JVM development >> experience (but a willingness to learn) can do to help with the >> Windows situation? From what I understand, Java itself is fine

Re: Clojure's n00b attraction problem

2010-06-29 Thread Laurent PETIT
Hi Lee, 2010/6/29 Lee Spector : > > Thanks Laurent. > > Is there automatic Clojure indentation in Counterclockwise now? There's now auto-indentation (when you hit the Enter key). What is still missing is "bulk" reindentation (whole file at once). There's also a "paredit-like" mode. I've called i

A capital point if we don't want to loose newbies "for free"

2010-06-29 Thread Laurent PETIT
... at least it's my opinion : we should stop consider newbies are as excited as us by the idea of working with SNAPSHOT dependencies which work day A, break day B. So I think we should have no SNAPSHOT dependencies in the Getting Starting docs, or transitive SNAPSHOT dependencies. We can st

Re: Clojure's n00b attraction problem

2010-06-29 Thread Lee Spector
On Jun 29, 2010, at 2:32 PM, Sean Corfield wrote: > I believe this is what I ultimately ended up installing on my Macs: > > http://github.com/carlism/Clojure-MacOSX Thanks... but wasn't this package declared to be obsoleted by clj? Or was that something else? In any event I note that there are

Re: Clojure's n00b attraction problem

2010-06-29 Thread Lee Spector
Laurent, It definitely sounds like I should try the newest version, and I will. Thanks!! -Lee On Jun 29, 2010, at 2:41 PM, Laurent PETIT wrote: > > There's now auto-indentation (when you hit the Enter key). What is > still missing is "bulk" reindentation (whole file at once). > > There's al

Record bug?

2010-06-29 Thread Daniel Gagnon
Under the latest snapshot of the equiv branch (07f05862c2), if I create a record: (defrecord MyRecord [foo bar baz]) and then create a record out of it: (def x (MyRecord. 1 2 3)) I can use a keyword as a function to get the data: (:foo x) 1 But if I use the record as a function like I would f

Re: A capital point if we don't want to loose newbies "for free"

2010-06-29 Thread Tim Daly
This is a well-solved problem in open source. It involves keep a "gold version" of the system on some well-known site (e.g. sourceforge) and a "silver version" on another well-known site (e.g. github). The gold version is released on a regular basis (say, once every 2 months). It is tested using

Re: New Primitive data types (equal branch) - impact on optimized code.

2010-06-29 Thread David Nolen
On Tue, Jun 29, 2010 at 2:05 PM, j-g-faustus wrote: > OK, I tried this. Object field access instead of arrays made a few > percent difference, but not enough to be significant. > > Definterface and defprotocol, on the other hand, not only gave cleaner > code but was more than twice as fast. A huge

Re: A capital point if we don't want to loose newbies "for free"

2010-06-29 Thread Laurent PETIT
Course, this seems ideal. But I'm pretty sure that already 80% of the value will come if we just correctly "control" what we deliver to newbies in terms of fixed dependency graph. 2010/6/29 Tim Daly : > This is a well-solved problem in open source. > > It involves keep a "gold version" of the sys

Re: Clojure's n00b attraction problem

2010-06-29 Thread Chas Emerick
Yes, CCW has automatic indentation at this point. - Chas On Jun 29, 2010, at 9:32 AM, Lee Spector wrote: Thanks Laurent. Is there automatic Clojure indentation in Counterclockwise now? I played with it a couple of months ago and saw a lot to like, and if I recall correctly a lack of inden

Re: Documentation and examples (and where is the documentation on reduce)?

2010-06-29 Thread Meikel Brandmeyer
Hi, Am 29.06.2010 um 19:11 schrieb michele: > Meikel, idiots are nice people too, so don't feel bad. But seriously, > why do you think we work this hard to make the computer do all this > things for us? Because we're lazy. Ah. IMHO, computer help us solving problems which we wouldn't have withou

Re: Clojure's n00b attraction problem

2010-06-29 Thread Chas Emerick
On Jun 28, 2010, at 8:30 PM, Greg wrote: - Clojure (and some environment for working with it) must be as "friendly" and approachable for new users as possible. It is not an "expert's" or "professional's" language, at least in my conception, and thinking of it that way will doom it to ir

Re: Leiningen documentation review?

2010-06-29 Thread Phil Hagelberg
On Wed, Jun 16, 2010 at 9:24 PM, Phil Hagelberg wrote: > I'm pushing for a Leiningen 1.2.0 release really soon now, and part of > that effort is sprucing up the documentation. I've revamped the readme > and added a tutorial for folks just getting started. Of course, > self-editing is never as good

Re: Record bug?

2010-06-29 Thread Moritz Ulrich
I think record doen't implements all the stuff a PersistentMap implementes. It implementes the interface for map-lookup (with get and :foo) but doesn't implements IFn (for using an instance as a function). On Tue, Jun 29, 2010 at 9:16 PM, Daniel Gagnon wrote: > Under the latest snapshot of the eq

Re: Clojure's n00b attraction problem

2010-06-29 Thread Chas Emerick
First, just to gather a gestalt here (names elided as I'm not trying to single anyone out): On Jun 28, 2010, at 10:54 PM, XXX wrote: If you are going to go to all the trouble to work with Clojure, you might as well be exposed to the reality of a semi-production Clojure project. Put the water

Re: Clojure's n00b attraction problem

2010-06-29 Thread WoodHacker
> So I wonder how much making the first few baby steps easier is really > going to help the uptake of Clojure. I have to imagine that the kind > of person that can't figure out  a CLASSPATH is going to have his head > explode when he has to figure out how to restructure all his > iterations in ter

Re: A capital point if we don't want to loose newbies "for free"

2010-06-29 Thread Mike Meyer
On Tue, 29 Jun 2010 20:54:28 +0200 Laurent PETIT wrote: > ... at least it's my opinion : we should stop consider newbies are as > excited as us by the idea of working with SNAPSHOT dependencies which > work day A, break day B. > > So I think we should have no SNAPSHOT dependencies in the Ge

Re: Clojure's n00b attraction problem

2010-06-29 Thread Sean Corfield
On Mon, Jun 28, 2010 at 8:14 PM, Greg wrote: > Just because you found it easy to get started, does not mean others do, and > judging from the reaction to my post, I'm by no means the only person to feel > this way. > > You went to a bootcamp to learn clojure, you found some Clojure-MacOSX > pac

Re: Record bug?

2010-06-29 Thread Daniel Gagnon
Is it by design or it just doesn't implement it yet? On Tue, Jun 29, 2010 at 4:14 PM, Moritz Ulrich wrote: > I think record doen't implements all the stuff a PersistentMap > implementes. It implementes the interface for map-lookup (with get and > :foo) but doesn't implements IFn (for using an in

Re: Record bug?

2010-06-29 Thread Moritz Ulrich
I think it's by-design, but I might be wrong. On Tue, Jun 29, 2010 at 11:01 PM, Daniel Gagnon wrote: > Is it by design or it just doesn't implement it yet? > > On Tue, Jun 29, 2010 at 4:14 PM, Moritz Ulrich > wrote: >> >> I think record doen't implements all the stuff a PersistentMap >> implemen

Re: Clojure's n00b attraction problem

2010-06-29 Thread Brian Hurt
On Tue, Jun 29, 2010 at 4:22 PM, Chas Emerick wrote: > > The discussion about newcomers is *not* about what one needs to know or > should know in order to build über-complicated applications for deployment > in "production" -- it's about what the learning curve looks and feels like > to various c

  1   2   >