Better HN
topnewbestaskshowjobs
Log inSign up

dtolpin

7 karma · joined Dec 4, 2018 (8y ago) · 6 submissions

Submissions

comment 7y ago · link · parent

Anglican is a CPS state monad. Clojure functions are automatically lifted into the monad, but to maintain fast execution of Anglican code, Clojure functions must be declared as such to Anglican.

A language with native support of continuations is a nice toy but does not bring practical benefits to implementing CPS state monad.

comment 8y ago · link · parent

Another book from the same source:

http://dippl.org/

comment 8y ago · link · parent

One advantage of Clojure compared to Common Lisp is very well implemented parallelism and corresponding functional data structures. Something which is hard to find for Common Lisp implementations.

comment 8y ago · link · parent

All of Anglican is macro-compiled into CPS-ed Clojure: https://bitbucket.org/probprog/anglican/src/master/src/angli...

comment 8y ago · link · parent

"Embedded DSL" vs "Separate" is a matter of use of words. Anglican is macro-compiled inside Clojure into Clojure. If you like to call it a DSL, call it a DSL.

An important design feature is that it is 'anti-DSL' --- the syntax is exactly the Clojure syntax. But the program is transformed into an extended CPS form and run through inference executor. There is an academic paper written by Anglican team explaining the design and internals:

http://www.cs.ox.ac.uk/people/hongseok.yang/paper/ifl16.pdf

comment 8y ago · link · parent

I am the author of the most of current Anglican code base. Anglican's name indeed comes from the Church of England, Church being the name of an influential probabilistic programming language https://cocolab.stanford.edu/papers/GoodmanEtAl2008-Uncertai... . Frank Wood, the inventor of Anglican, moved to Oxford from the US and the name reflects the move.

Clojure was chosen because it was a modern lisp which was apparently easy to deploy (leveraging the JVM). That choice was given to me (I learned Clojure to join, but new Common Lisp well before). Original Anglican syntax was Scheme-like, for Church compatibility, but we switched to Clojure syntax later.

Anglican has been a platform for a number of research projects (and some practical applications). Now Anglican is in dire need of new maintainers or it will stagnate (I am not working on Anglican code base anymore, doing other things: http://infergo.org among others). One low-hanging fruit which unfortunately refuses to fall is automatic differentiation.