I've published npm packages before, but it was like ten years ago and they were all crap. But now I've published one which is decent!

npmjs.com/package/discrete-pro

This is an implementation of the paper "Discrete Probabilistic Programming" by Oleg Kiselyov and Chung-chieh Shan. It provides tools for working with probability distributions as first class values. I made a number of modifications and I am pleased with the result.

I have a blog post brewing, where I hope to provide a walkthrough of the implementation. It may take a while for me to have the free time that this will require, but eventually it will be a way for me to show some of the quirky (good) approaches I took.

0

If you have a fediverse account, you can quote this note from your own instance. Search https://social.treehouse.systems/users/jnkrtech/statuses/115750444814487913 on your instance and quote it. (Note that quoting is not supported in Mastodon.)