# \[ANN\] Announcing TinyGibbs.jl

**URL:** <https://discourse.julialang.org/t/ann-announcing-tinygibbs-jl/97543>\
**Category:** Package Announcements\
**Tags:** bayesian-inference\
**Created:** [April 16, 2023, 12:47pm UTC](https://discourse.julialang.org/t/ann-announcing-tinygibbs-jl/97543 "2023-04-16T12:47:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![enweg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/enweg/32/24159_2.png) [@enweg](https://discourse.julialang.org/u/enweg)\
**Post date:** [April 16, 2023, 12:47pm UTC](https://discourse.julialang.org/t/ann-announcing-tinygibbs-jl/97543/1 "2023-04-16T12:47:05Z")

</div>

[TinyGibbs.jl](https://github.com/enweg/TinyGibbs.jl) came out of my needs for a simple but yet fully functional Gibbs sampler. I basically noticed that most Bayesian sampling in my area of work uses Gibbs sampling and involves statements like: Sample a from p(a|y, b), then sample b from p(b|y, a). I therefore wanted an easy way to implement such samplers in Julia. Other packages, such as Turing, seemed a bit overkill. TinyGibbs therefore only introduced one new macro, the `@tiny_gibbs` macro which translates a sampling statement often found in papers into a full `AbstractMCMC` valid sampler. It therefore supports all the methods of `AbstractMCMC.jl` and `MCMCChains.jl`.

At this point, TinyGibbs is still rather experimental, but I am curious to hear your feedback about it. What do you think of this, and are there any things that could be improved?

---

<div class="post-metadata">

**Author:** ![CameronBieganek](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cameronbieganek/32/6915_2.png) [@CameronBieganek](https://discourse.julialang.org/u/CameronBieganek)\
**Post date:** [April 16, 2023, 1:45pm UTC](https://discourse.julialang.org/t/ann-announcing-tinygibbs-jl/97543/2 "2023-04-16T13:45:41Z")

</div>

One tiny bit of bikeshedding: I would maybe just call the macro `@gibbs` instead of `@tiny_gibbs`.

---

<div class="post-metadata">

**Author:** ![enweg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/enweg/32/24159_2.png) [@enweg](https://discourse.julialang.org/u/enweg)\
**Post date:** [April 16, 2023, 4:20pm UTC](https://discourse.julialang.org/t/ann-announcing-tinygibbs-jl/97543/3 "2023-04-16T16:20:21Z")

</div>

Thanks! This is actually a good idea. Not sure why I didn’t have it. Will incorporate it into the next version.
