Using map on multiple collections.

2009-12-22 Thread Nicolas Buduroi
Hi, today I needed to use the map function on multiple collections which didn't had all the same length. In this case, it returns a sequence of the size of smallest one. But the problem I was facing was required to map until the end of the longest, padding the smaller ones with a default value. I c

Re: Clojure + Music Notation

2009-12-22 Thread Mark Engelberg
Despite what others have said, I'm going to chime in and say that I think an immutable hierarchy is going to be awkward for the use case you describe. In your example, notes are buried fairly deep in a hierarchy. Now if you always tend to make manipulations by starting from the root score node an

Re: text flow - a trivial generator of RFC like ASCII call flows (sequence diagrams)

2009-12-22 Thread Richard Newman
> Thanks, look very interesting! > On what SIP server did you try it, only Sailfin? Yes, just SailFin. It should work seamlessly with SIPMethod, too, and is likely to work with any SIP Servlet-compliant container. I've never used WebLogic/OCCAS. -- You received this message because you are s

Re: Why use monads

2009-12-22 Thread jim
Chouser, You're right that maybe-comp is simpler. Once you realize that the functions you want to compose are monadic functions under the maybe-m monad, you get that composition for 'free', with no further mental effort. With such a simple example, it's hard to see the benefit, but with more compl

Re: Why use monads

2009-12-22 Thread Chouser
On Mon, Dec 21, 2009 at 7:18 PM, jim wrote: > Just posted a short piece on why monads are useful. This was prompted > by some conversations last week with some folks. Comments, questions > and criticisms welcome. > > http://intensivesystems.net/tutorials/why_monads.html Thanks for writing that up

Re: eval performance

2009-12-22 Thread kyle smith
I haven't touched it in a while, but I'm going to pick it back up soon. -- 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 wi

Re: Renaming 1.1.0-alpha-SNAPSHOT is causing problems with projects on Clojars

2009-12-22 Thread liebke
I uploaded a version of Compojure to Clojars, that depends on the renamed clojure jar, as temporary fix. Use the following line to your project.clj file: [org.clojars.liebke/compojure "0.3.1-master"] I mention this problem here: http://incanter-blog.org/2009/11/29/incanter-webapp/ David On De

Re: Clojure + Music Notation

2009-12-22 Thread Meikel Brandmeyer
Hi, Am 21.12.2009 um 22:09 schrieb PM: > I've mocked it up before using structmaps, but I get stuck when it > comes to doing all this with immutable structures. Immutability is no > problem for a system like Lilypond where the score data is fixed when > the program runs, but in a system where so

Re: Recommendation for Clojure Indentation tool

2009-12-22 Thread Laurent PETIT
There is John Harrop's one, here http://groups.google.com/group/clojure/browse_thread/thread/6a16bb89340f46d8/fb03dffa410e919a?lnk=gst&q=harrop+indent#fb03dffa410e919a 2009/12/22 Gabi > I need a simple command-line tool to indent Clojure source files. > Any recommendation ? > > -- > You receiv

Re: Clojure + Music Notation

2009-12-22 Thread Miron Brezuleanu
Hello, On Mon, Dec 21, 2009 at 11:09 PM, PM wrote: > I'm a new Clojure user.  I've been working my way through SICP and the > videos that accompany it, and I've also read the Clojure book.  I > already do a lot of work with a music notation library (JMSL) in Java, > and I'd like to see if I could

Re: Renaming 1.1.0-alpha-SNAPSHOT is causing problems with projects on Clojars

2009-12-22 Thread Baishampayan Ghose
Phil, >> I like the new naming scheme, but would it be possible to add 1.1.0- >> alpha-SNAPSHOT back to the repository (in addition to the new names), >> so that builds dependent on projects in Clojars will be able to >> download their dependencies correctly again, at least until everybody >> gets

Re: Second Lisp to Learn

2009-12-22 Thread blackdog
Thanks for the links, the last gives a good summary. I think newlisp is great for scripting, if i were on the jvm on a large project I'd use clojure, but for tasks that I might use ruby,python, or perl for i find newlisp refreshingly clean and direct. It may be warty, if warty means practical. C

Re: Clojure and c++ and a bit more

2009-12-22 Thread mac
On Dec 21, 3:09 pm, pmf wrote: > On Dec 20, 7:22 pm, nathaniel wrote: > > > Does anyone know of Clojure features > > which rely on Java features that would be prohibitively difficult to > > implement in C++? > > You might run into the problem than any C++ garbage collector you find > will probabl

Re: how to create instance of java class that is internal of other?

2009-12-22 Thread Alex Ott
Resolved, thanks to peoples from #clojure Alex Ott at "Tue, 22 Dec 2009 11:03:28 +0100" wrote: AO> Hello AO> I'm currently playing with closure-templates, and have one question - to AO> load template, i need to create instance of class, that is internal class AO> of another java class: AO>

Recommendation for Clojure Indentation tool

2009-12-22 Thread Gabi
I need a simple command-line tool to indent Clojure source files. Any recommendation ? -- 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 - pleas

how to create instance of java class that is internal of other?

2009-12-22 Thread Alex Ott
Hello I'm currently playing with closure-templates, and have one question - to load template, i need to create instance of class, that is internal class of another java class: in java example there is following code SoyFileSet sfs = (new SoyFileSet.Builder()).add(new File("simple.soy")).build();

Re: eval performance

2009-12-22 Thread Gabi
Superb! This is exactly what I needed.. A way to get rid of the awkward intern and boost performance. Have you progressed far with your GP experimenting ? On Dec 22, 4:17 am, kyle smith wrote: > Here's the macro I used when I dabbled in Genetic Programming: > > user> (time (dotimes [_ 1000]

Re: Renaming 1.1.0-alpha-SNAPSHOT is causing problems with projects on Clojars

2009-12-22 Thread bOR_
solved my problem by figuring out that in ubuntu, leiningen / maven needs to have the proxy settings specified in ~/.m2/settings.xml [INFO] snapshot incanter:incanter:1.0-master-SNAPSHOT: checking for updates from central [WARNING] repository metadata for: 'snapshot incanter:incanter:1.0- master-

Re: text flow - a trivial generator of RFC like ASCII call flows (sequence diagrams)

2009-12-22 Thread Tzach
Thanks, look very interesting! On what SIP server did you try it, only Sailfin? I'm working mostly with Oracle OCCAS (formerly WebLogic Sip Server). BTW, I added a minor feature, which make the actor specify optional. On Dec 22, 2:54 am, Richard Newman wrote: > > Thanks Newman > > Useful link! >