You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,9 @@ consume(a) == 3
46
46
consume(t) ==4
47
47
consume(t) ==5
48
48
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.
50
52
51
53
functionf_cta()
52
54
t =TArray(Int, 1);
@@ -68,4 +70,6 @@ consume(t) == 2
68
70
consume(t) ==3
69
71
```
70
72
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