Re: Clojure Editor

2011-03-13 Thread Shantanu Kumar
Hi Kevin, Thanks, it works for me now. Any idea how to associate .clj files with Clojure mode by default in Bluefish? Regards, Shantanu On Mar 14, 7:35 am, kkw wrote: > Hi Shantanu, > >     I found it by going to the "Document" menu, selecting the > "Language Mode" sub-list menu option, and sel

Re: clj-string template

2011-03-13 Thread Shantanu Kumar
Hi Himangshu, Author of Clj-StringTemplate here. Yes, my focus has been on database libraries for some time - I was intending to come back to it sometime around StringTemplate 4.0 (which is not released yet) timeline but I can respond to a feature request sooner. For the next (v0.3) release I am

Re: Monad Lessons

2011-03-13 Thread kkw
Hi Brian, Thanks for craeting the videos. They've been the most helpful monad tutorial I've ever followed. I'm looking forward to the next video! Keep up the good work. Kevin On Mar 13, 11:20 am, Brian Marick wrote: > I don't know if this is useful, but I've been doing a series of videos on

Re: DDJ for Clojure/Lisp/FP

2011-03-13 Thread Andreas Kostler
> Well, it was announced two or three years ago, but has never actually been > produced, so I wouldn't get your hopes up :) > Maybe this group could finally get the ball rolling...Surely a collection of highly talented individuals could initiate a forum for technical exchange at the level Peter

Re: Clojure Editor

2011-03-13 Thread kkw
Hi Shantanu, I found it by going to the "Document" menu, selecting the "Language Mode" sub-list menu option, and selecting the "Clojure" option. Regards, Kevin On Mar 14, 12:49 am, Shantanu Kumar wrote: > Do I need a plugin? I downloaded the stock 2.0.3-1 version of the > editor and it doe

Re: DDJ for Clojure/Lisp/FP

2011-03-13 Thread Mark Engelberg
On Sun, Mar 13, 2011 at 7:28 PM, Andreas Kostler < andreas.koestler.le...@gmail.com> wrote: > This certainly sounds/reads interesting. It is to be seen how much > Clojure/Lisp content there will be > and how many every-day problems it will address. How long hast this been > around? > > Well, it wa

Re: DDJ for Clojure/Lisp/FP

2011-03-13 Thread Andreas Kostler
On 14/03/2011, at 12:05 PM, Alan Dipert wrote: > Hi Andreas, > >> Is there something like Doctor Dobbs Journal for Clojure/Lisp or even >> functional programming related topics? > > To my knowledge, not yet. Peter Seibel's yet-to-be-published "Code > Quarterly" sounds similar to what you're lo

Re: DDJ for Clojure/Lisp/FP

2011-03-13 Thread Alan Dipert
Hi Andreas, > Is there something like Doctor Dobbs Journal for Clojure/Lisp or even > functional programming related topics? To my knowledge, not yet. Peter Seibel's yet-to-be-published "Code Quarterly" sounds similar to what you're looking for: http://www.codequarterly.com/ > If there isn't, i

clj-string template

2011-03-13 Thread himangshu hazarika
Hi guys, is clj-string template kind of dormant. there has been not much of activity, Does it support groups as of now?? Are thr ny syntax highlighter for the templates. Regards Himangshu -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to thi

Re: feedback on first compojure app: Sportello

2011-03-13 Thread himangshu hazarika
you can also use clj-stringtemplate https://bitbucket.org/kumarshantanu/clj-stringtemplate it can pull stuff from classpath On 10 January 2011 05:22, Alex Baranosky wrote: > Thanks for the help James, I appreciate the points for imp

DDJ for Clojure/Lisp/FP

2011-03-13 Thread Andreas Kostler
Hi there, Is there something like Doctor Dobbs Journal for Clojure/Lisp or even functional programming related topics? - A (peer reviewed) place collecting contributions from developers all over the world working in Clojure/Lisp environments sharing their insights and solutions to problems develo

Re: binarytrees benchmark 1.3

2011-03-13 Thread Nick Zbinden
Ah nice thanks, I pushed a other version but its still not correct. At least its compiling :) On Mar 13, 8:52 pm, Andy Fingerhut wrote: > I'm no expert on the new way of doing things in 1.3, but I found that if you > remove the ^long type hint on the return value from item-check, it compiles >

Re: intersection and union on sequences/lists

2011-03-13 Thread Ken Wesson
On Sun, Mar 13, 2011 at 3:50 PM, Alan wrote: > Why shouldn't it give '(3 3 3)? It looks like you've introduced a > fairly arbitrary distinction between the first and second arguments to > a normally-symmetric function, intersect. And you would get the same > behavior by using one of my suggestions

Re: Question about the Clojure load-file command

2011-03-13 Thread Ken Wesson
On Sun, Mar 13, 2011 at 1:51 PM, Larry Travis wrote: > Ken: > Your question is an interesting one.  My answer may serve as a word to the > wise: I do my Clojure source-code editing in Emacs (actually Aquamacs, but > the difference is not important for what I am saying here). As any Emacs > user kn

Re: binarytrees benchmark 1.3

2011-03-13 Thread Andy Fingerhut
Oh, one other thing, although it might actually be slower than 1.3's primitive goodness: If you want to keep the unchecked operations, and make them on 32-bit ints, I've been using macros like this so that the same file can compile with both 1.2 and 1.3: (defmacro my-unchecked-inc-int [& args]

Re: binarytrees benchmark 1.3

2011-03-13 Thread Andy Fingerhut
I'm no expert on the new way of doing things in 1.3, but I found that if you remove the ^long type hint on the return value from item-check, it compiles without errors or warnings. Andy On Mar 13, 2011, at 10:36 AM, Nick Zbinden wrote: > Hallo all, > > I have been looking at the binary-trees

Re: intersection and union on sequences/lists

2011-03-13 Thread Alan
Why shouldn't it give '(3 3 3)? It looks like you've introduced a fairly arbitrary distinction between the first and second arguments to a normally-symmetric function, intersect. And you would get the same behavior by using one of my suggestions: user> (filter (set [1 2 3 3 3]) [3 4 3 5]) (3 3) us

Re: intersection and union on sequences/lists

2011-03-13 Thread Christian Schuhegger
I would like to keep duplicates, e.g. (intersect '( 1 2 3 3 3) '(3 4 3 5)) should give '(3 3). As I've said above, I've solved the issue for the moment by writing the required functions myself. I was just wondering if this functionality already exists somewhere in the clojure core/contrib space? -

Re: intersection and union on sequences/lists

2011-03-13 Thread Alan
All this will do for you is give you a way to compute intersections that is O(N) instead of O(logN). If you don't care about performance, just (defn intersect [a b] (clojure.set/intersection (set a) (set b))). If you care about performance and plan to work with something as a set later, then make

intersection and union on sequences/lists

2011-03-13 Thread Christian Schuhegger
Hi all, I am coming from common lisp and was wondering if clojure supports intersection and union not only on sets, but also on normal sequences/ lists? I just did a google search but without a result. For the moment I'm writing those functions myself. Thanks for any hints, Christian -- You rec

Re: Monad Lessons

2011-03-13 Thread Brian Marick
On Mar 12, 2011, at 9:09 PM, Ken Wesson wrote: > On Sat, Mar 12, 2011 at 7:20 PM, Brian Marick wrote: >> http://www.vimeo.com/20963938 > > Your sequence-decider can be simplified a bit: (mapcat rest-fn step-val). :) Yes, but separating the map from the concat makes the explanation flow better

Re: Question about the Clojure load-file command

2011-03-13 Thread Larry Travis
Ken: Your question is an interesting one. My answer may serve as a word to the wise: I do my Clojure source-code editing in Emacs (actually Aquamacs, but the difference is not important for what I am saying here). As any Emacs user knows, when one has several Emacs frames (windows) in action

binarytrees benchmark 1.3

2011-03-13 Thread Nick Zbinden
Hallo all, I have been looking at the binary-trees in the language shotout. http://shootout.alioth.debian.org/u64q/program.php?test=binarytrees&lang=clojure&id=5 I want to make it work with the primitiv support in clojure 1.3 but I cant get it to work. Maybe its my misunderstanding in the new pri

Re: borneo - Clojure wrapper for Neo4j, a graph database.

2011-03-13 Thread Jozef Wagner
On Thursday, March 10, 2011 12:50:13 PM UTC+1, Jeff Rose wrote: > > Out of curiosity, why did you go with Neo4j rather than using jiraph? > (https://github.com/ninjudd/jiraph) I used neo4j in the past, and if > I remember right my main annoyance was that edges had to be traversed > based on th

Re: Clojure Editor

2011-03-13 Thread Shantanu Kumar
Do I need a plugin? I downloaded the stock 2.0.3-1 version of the editor and it doesn't even seem to syntax-highlight the Clojure code. Regards, Shantanu On Mar 13, 5:09 pm, WoodHacker wrote: > If you are looking for a very good editor for Clojure try Bluefish. > It's been around for ever, is ve

Clojure Editor

2011-03-13 Thread WoodHacker
If you are looking for a very good editor for Clojure try Bluefish. It's been around for ever, is very stable, and does everything you would want an editor to do. And it now works with Clojure. http://bluefish.openoffice.nl Bill -- You received this message because you are subscribed to th