Skip to content

Commit 06d47d3

Browse files
committed
News 6
1 parent 261846a commit 06d47d3

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
title: Turing.jl Newsletter 6
3+
description: The fortnightly newsletter for the Turing.jl probabilistic programming language
4+
categories:
5+
- Newsletter
6+
author:
7+
- name: The TuringLang team
8+
url: /team/
9+
date: 2025-05-09
10+
---
11+
12+
Turing v0.38 has just been released and incorporates the changes from DynamicPPL which were mentioned [in the last newsletter](/news/posts/2025-04-25-newsletter-5). It also contains a fix for the Gibbs sampler, so that you can now specify arbitrary VarNames for each sampler (previously, you could only specify single-symbol VarNames). For example, you can now specify the `a.x` and `b.x` VarNames here:
13+
14+
```julia
15+
@model function inner()
16+
x ~ Normal()
17+
end
18+
@model function outer()
19+
a ~ to_submodel(inner())
20+
b ~ to_submodel(inner())
21+
end
22+
sample(outer(), Gibbs(@varname(a.x) => MH(), @varname(b.x) => MH()), 100)
23+
```
24+
25+
It is theoretically possible that this will be slow for VarNames that involve indexing (e.g. `x[1]`), although we don't have an example of this yet. If you find anything you think should be faster, let us know.
26+
27+
One other minor point: [on ADTests](https://turinglang.org/ADTests/) you can now hover over a model name to see its definition.

0 commit comments

Comments
 (0)