Re: Literate Programming example

2011-11-20 Thread Thorsten Wilms
On 11/19/2011 10:21 PM, Daniel Jomphe wrote: With the tools available to us today, there's no reason why we at least shouldn't have everything needed to make literate programming more seamless, more natural. For example, while reading your toy example, I found myself wanting to ask a question or

Re: Literate Programming example

2011-11-20 Thread Roberto Mannai
FYI: some time ago the Opensuse project used such a collaborative tool (http://www.co-ment.com) in order to get a shared mindset of its goals. This was the result, see how clicking on higlight words points to their comments: https://lite.co-ment.com/text/lNPCgzeGHdV/view/ On Sat, Nov 19, 2011 at

Re: ANN: A new Clojure brush for syntax highlighter

2011-11-20 Thread Daniel Solano Gomez
On Sat Nov 19 13:46 2011, Andrew Brehaut wrote: I have written a new brush for the javascript Syntax Highlighter to replace sh-clojure. Rather than using the typical regex system, it has a full parser and simple form annotator. This should result in significantly better highlighting than

Static contract checking for Clojure?

2011-11-20 Thread Robert Levy
I have been thinking about the discussion of queryable programs from Rich's keynote at Clojure Conj. This meaning of this idea is probably more well-defined for other people than it is in my present understanding, but my sense from the talk is that the analysis phase of compilation will leverage

Re: Static contract checking for Clojure?

2011-11-20 Thread David Nolen
On Sun, Nov 20, 2011 at 11:53 AM, Robert Levy r.p.l...@gmail.com wrote: See: http://gallium.inria.fr/~naxu/research/dana-phd.pdf What do you think about this idea? I have just started reading the above pdf... I don't see much of interest when googling for 'static contract Racket' but that

ClojureScript deftype and extend-type differ

2011-11-20 Thread Jeff Valk
Hello all, I ran into an extend-type issue with the ClojureScript compiler output. If there's a better place to report such things, please point me there. If I define a protocol method with multiple arities, implementing it using deftype works as expected, however extend-type does not. The

Re: ClojureScript deftype and extend-type differ

2011-11-20 Thread David Nolen
Please open a ticket for this in JIRA, thanks - http://dev.clojure.org/jira/browse/CLJS David On Sun, Nov 20, 2011 at 12:33 PM, Jeff Valk jv-li...@tx.rr.com wrote: Hello all, I ran into an extend-type issue with the ClojureScript compiler output. If there's a better place to report such

Re: ClojureScript deftype and extend-type differ

2011-11-20 Thread Jeff Valk
Issue opened: http://dev.clojure.org/jira/browse/CLJS-104. Cheers, Jeff -- 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

Re: ClojureScript deftype and extend-type differ

2011-11-20 Thread David Nolen
Thanks! Patches welcome as well :) David On Sun, Nov 20, 2011 at 2:07 PM, Jeff Valk jv-li...@tx.rr.com wrote: Issue opened: http://dev.clojure.org/jira/browse/CLJS-104. Cheers, Jeff -- You received this message because you are subscribed to the Google Groups Clojure group. To post to

Re: Literate Programming example

2011-11-20 Thread Daniel Jomphe
On Sunday, November 20, 2011 5:50:31 AM UTC-5, thorwil wrote: I'm following one or the other Free Software project where an incredible amount of discussions happen regarding work-flow and features. So much thought, so many decisions on details, but for the most part, the implementation is

Re: Literate Programming example

2011-11-20 Thread Daniel Jomphe
On Sunday, November 20, 2011 6:17:13 AM UTC-5, robermann79 wrote: FYI: some time ago the Opensuse project used such a collaborative tool (http://www.co-ment.com) in order to get a shared mindset of its goals. This was the result, see how clicking on higlight words points to their comments:

Re: ClojureScript deftype and extend-type differ

2011-11-20 Thread Alan Malloy
The correct way to write this extend-type is (extend-type MyType MyProtocol (something ([this] 1) ([this x] x))) The version you posted doesn't work in JVM-Clojure either; I don't have CLJS handy, but I suspect that this version will work fine there. On Nov 20, 11:36 am, David Nolen

Where can I inqure about bugs?

2011-11-20 Thread Randy Pensinger
I am having a lot of trouble finding a place to mention a possible clojure bug. Is this it? I am trying to write a custom comparator, but the comparator never seems to work. I simplified the comparator below. user= (def stringComparator (comparator (fn [a b] (do

Re: Probabilistic programming in clojure

2011-11-20 Thread Julius Seporaitis
Hello guys, I would like to try out this library, but ran into a problem with Clojure 1.3, 'lein repl' throws an exception, when: *user= (use 'probabilistic-clojure.monadic.demos)* *user= (test-mixture mixture-mem)* *Trying to find valid trace ...* *Starting MH-sampling.*

Re: Where can I inqure about bugs?

2011-11-20 Thread Stuart Campbell
I think you might be using comparator incorrectly. It appears to expect a function that returns a true/false value: user (source comparator) (defn comparator Returns an implementation of java.util.Comparator based upon pred. {:added 1.0} [pred] (fn [x y] (cond (pred x y) -1 (pred

Re: Where can I inqure about bugs?

2011-11-20 Thread Sean Corfield
On Sat, Nov 19, 2011 at 7:28 PM, Randy Pensinger rspensin...@gmail.com wrote: user= (def stringComparator  (comparator (fn [a b]                (do                  (println (str comparing ' a ' to ' b '))                  (.compareTo a b) #'user/stringComparator The docs indicate

Re: ClojureScript deftype and extend-type differ

2011-11-20 Thread Jeff Valk
Hi Alan, Good catch. This raises a question though: why do deftype and extend-type take subtly different forms for methods with multiple arities? ;; deftype only works like this: (foo [this] 1) (foo [this x] 2) ;; extend-type only works like this: (foo ([this] 1) ([this x] 2))

Re: Where can I inqure about bugs?

2011-11-20 Thread Randy Pensinger
Yep, exactly what I did. Thank you all! On Nov 20, 4:32 pm, Sean Corfield seancorfi...@gmail.com wrote: On Sat, Nov 19, 2011 at 7:28 PM, Randy Pensinger rspensin...@gmail.com wrote: user= (def stringComparator  (comparator (fn [a b]                (do                  (println (str

Re: clj-time and clojure 1.3

2011-11-20 Thread Brad
Thanks. It would be nice if KirinDave id put a notice up. Also, it would be nice if when you search for clj-time and go to getwoven rather than 404-ing it pointed to your version. I have an idea. I notice that you have a pointer to Clojars under Installation. This seems like a nice standard for