A Julia prototype implementation of the Dice probabilistic programming language. See https://github.com/SHoltzen/dice
Install Julia 1.7 or higher using these instructions.
Clone the repository and start julia in project mode for current folder:
cd Dice.jl
julia --projectInstall Dice and update dependencies (one can also use precompile or build):
] up
Press CTRL-C or backspace to exit from the pkg terminal and return to Julia REPL.
One can now run a program from the Julia REPL:
include("examples/graph_reachability.jl")Or from the command line:
julia --project examples/graph_reachability.jl
FIX
DistUInt() takes in a value that indicates the range of probabilities (such as through a vector of coin flips or an integer) and returns a discrete distribution that includes the probability for each integer value.
You can specify the bit size with {} if you want a unique size - otherwise, there are the built-in sizes of 8, 16 and 32, appropriately labeled DistUInt8, DistUInt16 and DistUInt32 respectively.