Re: Implemented isa? as a protocol, makes multimethods more open

2012-07-14 Thread Dave Sann
Can this be used in clojurescript? It looks like yes But, taking the given clj example, my first question is how can I extend a protocol to the equivalent of IPersistentMap. Given that maps in clojurescript are protocols, this seems harder. D On Wednesday, 11 July 2012 16:52:47 UTC+10, Leif

Re: ClojureC - A Clojure to C compiler - Work in Progress

2012-07-14 Thread sitkack
Take a look at the tiny lua objective-c bridge as a reference. https://github.com/fjolnir/TLC or language Nu http://programming.nu/index On Tuesday, July 10, 2012 6:20:48 AM UTC-7, Mark Probst wrote: On Mon, Jul 9, 2012 at 7:03 PM, Adam King akingco...@gmail.com wrote: However, thanks

ANN: mcmc: a Clojure Library for MCMC Computations

2012-07-14 Thread Will M. Farr
Hello all, I just posted a library for MCMC (Markov Chain Monte Carlo) computations in Clojure on GitHub: https://github.com/farr/mcmc-clojure It is *very much* in a 0.0.1 state, but I have found it useful for a few astrostatistics projects I've done---in other words, there isn't a lot there,

DAG (Direct Acyclic Graph) and Bayesian Network help

2012-07-14 Thread Simone Mosciatti
Hi guys, I'm trying to develop a Bayesian Network just for fun XD My first problem is to understand how represent the graph necessary a DAG. I come out with something : https://gist.github.com/3111539 (Very very first stage I just finish to write this code) But I have some question to how

Re: DAG (Direct Acyclic Graph) and Bayesian Network help

2012-07-14 Thread Walter van der Laan
Chas Emerick did a presentation on this: http://blip.tv/clojure/chas-emerick-modeling-the-world-probabilistically-using-bayesian-networks-in-clojure-5961126 But AFAIK the raposo library has not been published yet. On Saturday, July 14, 2012 4:20:17 PM UTC+2, Simone Mosciatti wrote: Hi guys,

Re: DAG (Direct Acyclic Graph) and Bayesian Network help

2012-07-14 Thread Simone Mosciatti
Yes, I already saw that... But without code doesn't help so much... On Saturday, July 14, 2012 7:24:41 PM UTC+2, Walter van der Laan wrote: Chas Emerick did a presentation on this:

Re: Tail-recursive lazy sequence construction by appending to the end of accumulator problem.

2012-07-14 Thread Steven E. Harris
Alexander Semenov bohtva...@gmail.com writes: The second lazy approach still needs to traverse all the sequence recursively, why doesn't it cause stack overflow? You might find my answer to the StackOverflow question Thinking in Lazy Sequences useful here:

Re: Implemented isa? as a protocol, makes multimethods more open

2012-07-14 Thread Leif
You could probably make it work in cljs by: 1. Putting IMultiMethod back to cljs version, except using is-a?, not core/isa? 2. Rewrite the Is-A protocol code to use the cljs rules: - Remove any code about class hierarchies - Only extend Is-A on actual types, so