Re: Probabilistic programming anyone?

2015-05-12 Thread Steffen Dienst
Neither the wiki, linked in the README at bitbucket referencing https://bitbucket.org/dtolpin/anglican/wiki, nor the issues, linked from the Anglican homepage referencing https://bitbucket.org/dtolpin/anglican/issues, is accessible. Both links present an "access denied" page. Am Dienstag, 12.

Re: Probabilistic programming anyone?

2015-05-12 Thread Sunil S Nandihalli
Hi Frank, I am looking forward to giving it a shot. I am familiar with and used Stan. While I understand that stan may not as flexible. A comparison with of Anglician with Venture and Stan would be very much appreciated. Thanks for probabilistic-language embedded in clojure. Sunil. On Wed, May 1

Re: load a namespace at repl?

2015-05-12 Thread Ian Truslove
On Tue, May 12, 2015 at 9:09 PM, Fluid Dynamics wrote: > On Tuesday, May 12, 2015 at 10:55:27 PM UTC-4, piast...@gmail.com wrote: >> >> If I: >> >> git clone https://github.com/overtone/overtone.git >> >> cd overtone >> >> lein repl >> >> All you need to do is create a new lein project, and add t

Need advice/idiom to reduce number of parameters in functions

2015-05-12 Thread Chris Wong
I have a set of functions that need a map of historic data. Hence, this map gets passed along from function to function, usually several levels deep. In addition to the map, a reference date also frequently get passed along in 80% of the API. Sometimes a third or fouth parameter is also passe

Re: load a namespace at repl?

2015-05-12 Thread Sean Corfield
On Tue, May 12, 2015 at 7:55 PM, wrote: > If I: > > git clone https://github.com/overtone/overtone.git > > cd overtone > > lein repl > > and then at the REPL, I try to load Overtone: > ... > user=> (resolve 'overtone.studio.inst) > You want require, not resolve, in order to load the namespace.

Re: load a namespace at repl?

2015-05-12 Thread Fluid Dynamics
On Tuesday, May 12, 2015 at 10:55:27 PM UTC-4, piast...@gmail.com wrote: > > If I: > > git clone https://github.com/overtone/overtone.git > > cd overtone > > lein repl > > and then at the REPL, I try to load Overtone: > > > user=> (all-ns) > (# # # clojure.stacktrace> # # clojure.java.browse> #

load a namespace at repl?

2015-05-12 Thread piastkrakow
If I: git clone https://github.com/overtone/overtone.git cd overtone lein repl and then at the REPL, I try to load Overtone: user=> (all-ns) (# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #) user=> (resolve 'overtone.studio.inst) ClassNotFoundException overtone.studio.ins

Re: contains? on String

2015-05-12 Thread Fluid Dynamics
On Tuesday, May 12, 2015 at 5:05:00 PM UTC-4, Michael Gardner wrote: > > On May 12, 2015, at 3:28 PM, Fluid Dynamics > wrote: > > Strings and arrays support constant-time access by index. > > Yes, but why should that mean that contains? should work on Strings? > "Because it can" doesn't seem co

Re: contains? on String

2015-05-12 Thread Devin Walters
Ignoring some of the conversation here to point out that what you want is: (.contains "foo" "f") On Tue, May 12, 2015 at 4:04 PM, Michael Gardner wrote: > On May 12, 2015, at 3:28 PM, Fluid Dynamics wrote: > > Strings and arrays support constant-time access by index. > > Yes, but why should tha

Re: Opinion on take-while for stateful transducers

2015-05-12 Thread Andy-
Thanks for the reply. I do like this. I think it's actually more elegant. Definitely going into my toolbox. One thing I dislike is that I still have to re-implement the logic of the already existing (performant & tested) transducers. Also, I could also add a 4th parameter: 'terminate-early?' but

Re: contains? on String

2015-05-12 Thread Michael Gardner
On May 12, 2015, at 3:28 PM, Fluid Dynamics wrote: > Strings and arrays support constant-time access by index. Yes, but why should that mean that contains? should work on Strings? "Because it can" doesn't seem compelling to me. In discussions about contains?, one often hears that it works on as

Re: contains? on String

2015-05-12 Thread Lee Spector
> On May 12, 2015, at 4:28 PM, Fluid Dynamics wrote: > > On Tuesday, May 12, 2015 at 3:34:46 PM UTC-4, Michael Gardner wrote: > On May 12, 2015, at 1:54 PM, Shantanu Kumar > wrote: > > I agree about the counter-intuitiveness. I'm only wondering whether the > > error message is a bit misleadin

Re: What does ^:internal mean?

2015-05-12 Thread Andy Fingerhut
There are other sources for this information, too (perhaps better ones), but the cheat sheet has a section with many of these special symbols: clojure.org/cheatsheet Andy On Tue, May 12, 2015 at 1:49 PM, Raoul Duke wrote: > knowing how to break down Clojure's syntax a bit helps, too. which > m

Re: What does ^:internal mean?

2015-05-12 Thread Raoul Duke
knowing how to break down Clojure's syntax a bit helps, too. which means newbies are kinda screwed until they divine this. http://stackoverflow.com/questions/8920137/clojure-caret-as-a-symbol -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to

Re: What does ^:internal mean?

2015-05-12 Thread Raoul Duke
even github gets it totally wrong, apparently? https://github.com/laurentpetit/ccw/search?utf8=%E2%9C%93&q=%22^%3Ainternal%22&type=Code because, you know, it isn't as if github is mostly all about hosting *code*. such that, you know, you'd think they'd have realized by now this kind of feature i

Re: What does ^:internal mean?

2015-05-12 Thread Jakub Holy
You can use Symbol Hound to search for strange things though here it fails. Ex: http://symbolhound.com/?q=-%3E%3E+clojure On Sunday, May 10, 2015 at 9:00:10 PM UTC+2, piast...@gmail.com wrote: > Sadly, Google seems to think I am search for "internal" when I search for > "^:internal" so that make

Re: What does ^:internal mean?

2015-05-12 Thread Jakub Holy
You can use Symbol Hound to search for strange things though here it fails. Ex: http://symbolhound.com/?q=-%3E%3E+clojure On Sunday, May 10, 2015 at 9:00:10 PM UTC+2, piast...@gmail.com wrote: > Sadly, Google seems to think I am search for "internal" when I search for > "^:internal" so that make

Re: contains? on String

2015-05-12 Thread Fluid Dynamics
On Tuesday, May 12, 2015 at 3:34:46 PM UTC-4, Michael Gardner wrote: > > On May 12, 2015, at 1:54 PM, Shantanu Kumar > wrote: > > I agree about the counter-intuitiveness. I'm only wondering whether the > error message is a bit misleading "contains? not supported on type: > java.lang.String" bec

Re: Clojure needs a web framework with more momentum

2015-05-12 Thread Malcolm Sparks
> How do we effectively leverage some of the more advanced Clojure-oriented webservers such as Aleph and Immutant? I've just posted about yada on another thread, a library for 'proper' handling of Ring requests, fully supporting async. Although yada is a separate library, it fully complements b

[ANN] yada 0.4.0 - async REST web library

2015-05-12 Thread Malcolm Sparks
yada is a library for creating RESTful Ring handlers, similar(ish) to Liberator. The main difference is that yada fully supports async operation (provided by Zach Tellman's manifold library). It is a kind of reactive Clojure-based response to Java's ratpack.io or Scala's spray.io. yada is desig

Re: Probabilistic programming anyone?

2015-05-12 Thread hyang
Another question: is there a particular reason why the code of Anglican is hosted on BitBucket with read only access for outsider, whereas the examples are on Github? Does that mean that you do not anticipate contributions to the language from the outside? I saw the license is GPL though. On T

Re: Probabilistic programming anyone?

2015-05-12 Thread hyang
Looks great. Could I use this to implement something like a Gibbs Sampler? On Tuesday, May 12, 2015 at 3:05:50 AM UTC-7, Frank Wood wrote: > > I'm a professor at Oxford and my group has been working on a new embedded > language called Anglican: > > http://www.robots.ox.ac.uk/~fwood/anglican/ > >

Re: contains? on String

2015-05-12 Thread Michael Gardner
On May 12, 2015, at 1:54 PM, Shantanu Kumar wrote: > I agree about the counter-intuitiveness. I'm only wondering whether the error > message is a bit misleading "contains? not supported on type: > java.lang.String" because of course (contains? "hello" 2) works fine. It seems odd that (contains?

Re: contains? on String

2015-05-12 Thread James Reeves
On 12 May 2015 at 19:54, Shantanu Kumar wrote: > I agree about the counter-intuitiveness. I'm only wondering whether the > error message is a bit misleading "contains? not supported on type: > java.lang.String" because of course (contains? "hello" 2) works fine. > Oh, I see! Yes, that is a bit m

Re: contains? on String

2015-05-12 Thread Shantanu Kumar
I agree about the counter-intuitiveness. I'm only wondering whether the error message is a bit misleading "contains? not supported on type: java.lang.String" because of course (contains? "hello" 2) works fine. Shantanu On Wednesday, 13 May 2015 00:12:19 UTC+5:30, James Reeves wrote: > > contain

Re: contains? on String

2015-05-12 Thread James Reeves
contains? has always been a little counter-intuitive. It essentially only works on collections that allow for a constant or logarithmic lookup time, and often works on the "keys" of a collection, rather than its values. The only exception to this are sets, where the values are essentially keys as w

contains? on String

2015-05-12 Thread Shantanu Kumar
Hi, I notice the following in Clojure 1.7.0-beta2: user=> (contains? "hello" 2) true user=> (contains? "hello" \e) IllegalArgumentException contains? not supported on type: java.lang.String clojure.lang.RT.contains (RT.java:800) Is this just a case of misleading error message or am I missing

Re: separation of concerns w/o encapsulation

2015-05-12 Thread Brian Craft
On Tuesday, May 12, 2015 at 4:29:22 AM UTC-7, Georgi Danov wrote: > > coding and designing defensively because you are concerned about your > teammates is big waste of time. if this is the reality (in the enterprise > it's the norm) > Yes, it is the norm in the enterprise. In a decade of ente

Re: [ANN] Dominator - Virtual DOM in ClojureScript

2015-05-12 Thread David Sargeant
In this case I'm referring to a project called virtual-dom, which is a separate project from React. It is conceptually the same as React, but is smaller, faster, and generally more in line with functional programming principles. https://github.com/Matt-Esch/virtual-dom David -- You received

Re: [ANN] Dominator - Virtual DOM in ClojureScript

2015-05-12 Thread Rostislav Svoboda
> Dominator brings the simplicity and performance of the Virtual-DOM project to ClojureScript. Is this the same "kind" of Virtual DOM as in facebook react? I.e. is Dominator a react replacement (written in cljs, of course)? -- You received this message because you are subscribed to the Google Gr

Re: What does ^:internal mean?

2015-05-12 Thread David James
Re: "Some people don't like the native approach to private vars since anyone who wants to override it can do so anyway, so they go with a purely conventional and unenforced approach: delineate the boundaries of API vs internal using :internal or :impl and/or put the internal bits in an impl nam

[ANN] Dominator - Virtual DOM in ClojureScript

2015-05-12 Thread David Sargeant
I'm excited to announce the first release of Dominator . Dominator brings the simplicity and performance of the Virtual-DOM project to ClojureScript . Dominator encour

Re: separation of concerns w/o encapsulation

2015-05-12 Thread Georgi Danov
No tool or technology beats the combination of: a) component/responsibility blueprint b) discipline in communicating, following and adapting it encapsulation can be a nice safety net once you have the things above, but it would never be a solution to the problem. just a convenience. coding and d

Probabilistic programming anyone?

2015-05-12 Thread Frank Wood
I'm a professor at Oxford and my group has been working on a new embedded language called Anglican: http://www.robots.ox.ac.uk/~fwood/anglican/ It can be used to do advanced machine learning in Clojure (Java, etc.) applications without having to know anything about inference or math. For exam