fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.

lock_free

lock_free

lock_free:Any is[Unit Type][src]
lock_free -- unit type feature grouping lock-free
data structures and algorithms

Constructors

hash_set(K:property.hashable,map lock_free.Map K unit):Set K is[src]
hash_set -- a Set implementation based on lock_free.Map
Map(CTK:property.hashable,CTV:Any) ref:Mutable_Map CTK, CTV is[Private constructor][src]
the ctrie
Node(K:Any,V:Any) ref:Any is[Private constructor][src]
Sieve_Cache(K:property.hashable,V:Any,MM:container.Mutable_Map K (lock_free.Node K V),capacity i64) ref:Any is[src]
"SIEVE is a cache eviction algorithm that decides what to keep in the cache and what to discard.
It achieves both simplicity and efficiency."
source: https://sievecache.com/
paper : https://junchengyang.com/publication/nsdi24-SIEVE.pdf

example usage:
cache0 := lock_free.Sieve_Cache String i32 3
say <| cache0.access "A" ()->1 # => 1
say <| cache0.access "B" ()->2 # => 2
say <| cache0.access "C" ()->3 # => 3
say <| cache0.access "A" ()->4 # => 1
say <| cache0.access "D" ()->5 # => 5
say <| cache0.access "C" ()->6 # => 3
stack(T:Any):Stack T is[Contains abstract features][src]
lock-free stack using compare_and_set
invented by R. Kent Treiber
0.099dev (GIT hash e2d5298d8107bb5fe79600fdb06a49bc75756344)
last changed: 2026-11-23