Top 1,000 Features Creators Resources Blog Explorer Download
GitHub icon

hakaru

< >

hakaru is a programming language created in 2014.

#965on PLDB 10Years Old
Download source code:
git clone https://github.com/hakaru-dev/hakaru

A probabilistic programming language


Example from the web:
def pulls(strength real): normal(strength, 1) def winner(a real, b real): a_pull <~ pulls(a) b_pull <~ pulls(b) return (a_pull > b_pull) alice <~ normal(0,1) bob <~ normal(0,1) carol <~ normal(0,1) match1 <~ winner(alice, bob) match2 <~ winner(bob, carol) match3 <~ winner(alice, carol)

View source

- Build the next great programming language About Acknowledgements Extensions Day 630 Donate feedback@pldb.io