Open reubenharry opened 2 years ago
Oh wow, that looks exactly like what dunai-bayes is going for, except that it's not based on dunai. It's specific to Ben's own ZStream
s, which are isomorphic to MSF
s. @bmsherman, maybe it's possible to merge and deduplicate some things? I'd really like to reuse some of the code from probzelus, but rhine
right now is based on dunai
.
Else, it might be possible to abstract monadic stream functions into a type class such that MSF
and ZStream
are both instances of it, and then make most functions polymorphic. That would have the advantage that they could eventually be reused for https://github.com/turion/essence-of-live-coding as well. (I'm planning on basing rhine
on that eventually.)
We should be aware of https://github.com/psg-mit/probzelus-haskell, from Ben Sherman who was on the Reactive Probabilistic Programming paper. It's a Haskell implementation of their system. Looks like it has solved a bunch of problems we haven't yet.
(I chatted to Ben, and he offered to help explain stuff in the repo if it's not clear)