Skip to content

Commit a6be8a3

Browse files
authored
Update README.md
1 parent 7732620 commit a6be8a3

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ consume(a) == 3
4646
consume(t) == 4
4747
consume(t) == 5
4848

49-
# TArray objects are deep copied.
49+
# `TArray` implements a copy-on-write array. This is useful for task copying.
50+
# In constrast to standard arrays, which arr only shallow copied during task copying,
51+
# `TArray` are deep copied after task copying.
5052

5153
function f_cta()
5254
t = TArray(Int, 1);
@@ -68,4 +70,6 @@ consume(t) == 2
6870
consume(t) == 3
6971
```
7072

71-
Disclaimer: Task copying is experimental and should only be used with caution. Some discussions on this topic can be found [here](https://github.com/JuliaLang/julia/pull/15078).
73+
Note: The [Turing](https://github.com/TuringLang/Turing.jl) probabilistic programming language uses this task copying feature in an efficient implementation of the [particle filtering](https://en.wikipedia.org/wiki/Particle_filter) sampling algorithm for arbitary order [Markov processes](https://en.wikipedia.org/wiki/Markov_model#Hidden_Markov_model).
74+
75+
Disclaimer: This feature is still experimental and should only be used with caution. Some discussions on its potential caveats can be found [here](https://github.com/JuliaLang/julia/pull/15078).

0 commit comments

Comments
 (0)