)g@b055.5.0+dev0-2025-04-28/)Ephemeron!SC#keyA;@@@A@@@@@:../../stdlib/ephemeron.mliWACWAK@@@@)Ephemeron@@A@!tB;!a@@AA@O@B@@@XLNXLX@@@@A@A@&create@#int@@@)Ephemeron!S!t!a@C@@@@@@@4YY[5YYs@@3B@@%clear@)Ephemeron!S!t!a@C@@@@$unit@@@@@@VZtvWZt@@UC@@%reset@)Ephemeron!S!t!a@C@@@@"@@@@@@w[x[@@vD@@$copy@)Ephemeron!S!t!a@C@@@@)Ephemeron!S!t@@@@@@\\@@E@@#add@)Ephemeron!S!t!a@C@@@@@)Ephemeron!S#key@@@@x@@@@@@@@@@]]@@F@@&remove@)Ephemeron!S!t!a@C@@@@@)Ephemeron!S#key@@@@@@@@@@@^^ @@G@@$find@)Ephemeron!S!t!a@C@@@@@)Ephemeron!S#key@@@@@@@@"_ #_ +@@!H@@(find_opt@)Ephemeron!S!t!a@C@@@@@)Ephemeron!S#key@@@&optionL@@@@@@@@Q`,.R`,U@@PI@@(find_all@)Ephemeron!S!t!a@C@@@@@)Ephemeron!S#key@@@$list@@@@@@@@aVXaV}@@J@@'replace@)Ephemeron!S!t!a@C@@@@@)Ephemeron!S#key@@@@Z@@@@@@@@@@b~b~@@K@@#mem@)Ephemeron!S!t!a@C@@@@@)Ephemeron!S#key@@@$bool@@@@@@@@cc@@L@@&length@)Ephemeron!S!t!a@C@@@@@@@@@@dd@@M@@%statsG@)Ephemeron!S!t!a@UC@ @@@ &Stdlib'Hashtbl*statistics@@@R@@S@$e%e @@#N@@'add_seq@)Ephemeron!S!t!a@ C@V@@@X@&Stdlib#Seq!t@)Ephemeron!S#key@@@ |@#@@ }@@@  @@@ @@ @@ @bf cf <@@aO@@+replace_seq@)Ephemeron!S!t!a@ C@ @@@ @&Stdlib#Seq!t@)Ephemeron!S#key@@@ @#@@ @@@ K@@@ @@ @@ @g=?g=q@@P@@&of_seq@&Stdlib#Seq!t@)Ephemeron!S#key@@@ @!a@ C@ @@ @@@ )Ephemeron!S!t@@@ @@ @hrthr@@Q@@%clean@)Ephemeron!S!t!a@ C@ @@@ @@@ @@ @jj@@R@@+stats_alive@)Ephemeron!S!t!a@ C@ @@@ &Stdlib'Hashtbl*statistics@@@ @@ @m m4@@S@@@@"P::#o@!T@@'SeededSF#keyD;@@3A@@@@@2x3x@@@@1U@A@!tE;!a@ @AAA@O@B@@@ByCy@@@@AV@A@&create&random|@@@ @@@ @>@@@ )Ephemeron'SeededS!t!a@ F@ @@@ @@ @@ @qzrz @@pW@@%clear@)Ephemeron'SeededS!t!a@ F@ @@@ =@@@ @@ @{  { $@@X@@%reset@)Ephemeron'SeededS!t!a@ F@ @@@ ^@@@ @@ @|%'|%?@@Y@@$copy@)Ephemeron'SeededS!t!a@ F@ @@@ )Ephemeron'SeededS!t@@@ @@ @}@B}@Y@@Z@@#add@)Ephemeron'SeededS!t!a@ F@ @@@ @)Ephemeron'SeededS#key@@@ @@@@ @@ @@ @@ @ ~Z\ ~Z@@[@@&remove@)Ephemeron'SeededS!t!a@ F@ @@@ @)Ephemeron'SeededS#key@@@ @@@ @@ @@ @67@@5\@@$find@)Ephemeron'SeededS!t!a@ F@ @@@ @)Ephemeron'SeededS#key@@@ @@ @@ @^_@@]]@@(find_opt@)Ephemeron'SeededS!t!a@ F@ @@@ @)Ephemeron'SeededS#key@@@ <@@@ @@ @@ @@@^@@(find_all@)Ephemeron'SeededS!t!a@ F@ @@@ @)Ephemeron'SeededS#key@@@ :Ġ@@@ @@ @@ @@@_@@'replace@)Ephemeron'SeededS!t!a@ F@ @@@ @)Ephemeron'SeededS#key@@@ @@@@ @@ @@ @@ @=@@`@@#mem@)Ephemeron'SeededS!t!a@ F@ @@@ @)Ephemeron'SeededS#key@@@ 9@@@ @@ @@ @>@>]@@a@@&length@)Ephemeron'SeededS!t!a@ F@ @@@ @@@ @@ @6^`7^x@@5b@@%stats@)Ephemeron'SeededS!t!a@ F@ @@@ &Stdlib'Hashtbl*statistics@@@ @@ @\y{]y@@[c@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@@  @@@@@@@@@@ @ @ o@ @@@@p@@@ @@@@@@@@ @ @ p@ @@@ @@@@@@ @ @ q@  @@@   @@@@@@ @ @ r@Ѡ @@@@ 0  @@@@Ǡ@ @@@@@ @@@@@@@@ {@ x@ ws@ o@@@@ N  @@@@@ @@@@@ @@@@@@@@ [@ X@ Wt@ f  @@@@@ J@@@@@ N@@@@@@ =@ :@ 9u@& 1@@@ @@@@@@ )@ &@ %v@3 @@@   @@@@@@ @ @@@h &&X@fX@@@ӱ&Buckete@!txf;!k@!d@@BA@GG@BB@@@''''@@@@Y@A@$makey@?@@@ )Ephemeron"Kn&Bucket!t!k@g@ !d@g@@@@@@@(5(9(5(V@@Z@@#addz@)Ephemeron"Kn&Bucket!t!k@%g@!d@#g@@@@@@@@@@@@@@@@ @@!@(x(|(x(@@[@@&remove{@)Ephemeron "Kn&Bucket!t!k@3g@&!d@1g@'@@@*@ @@@, @@@-@@.@@/@((()@@\@@$find|@)Ephemeron "Kn&Bucket!t!k@Bg@4!d@@g@5@@@8@ @@@:@@@<@@=@@>@F))G))@@E]@@&length}@)Ephemeron"Kn&Bucket!t!k@Mg@C!d@Kg@D@@@GN@@@H@@I@p#*\*`q#*\*~@@o^@@%clear~@)Ephemeron"Kn&Bucket!t!k@Xg@N!d@Vg@O@@@RE@@@S@@T@&**&**@@_@@@@'')++@`@@@@@%;%;+++@a@@@@3 Ephemerons and weak hash tables.@ l Ephemerons and weak hash tables are useful when one wants to cache or memorize the computation of a function, as long as the arguments and the function are used, without creating memory leaks by continuously keeping old computation results that are not useful anymore because one argument or the function is freed. An implementation using )Hashtbl.t@@ ` is not suitable because all associations would keep the arguments and the result in memory.@ Ephemerons can also be used for "adding" a field to an arbitrary boxed OCaml value: you can attach some information to a value created by an external library without memory leaks.@  Ephemerons hold some keys and one or no data. They are all boxed OCaml values. The keys of an ephemeron have the same behavior as weak pointers according to the garbage collector. In fact OCaml weak pointers are implemented as ephemerons without data.@  The keys and data of an ephemeron are said to be full if they point to a value, or empty if the value has never been set, has been unset, or was erased by the GC. In the function that accesses the keys or data these two states are represented by the &option* type.@ { The data is considered by the garbage collector alive if all the full keys are alive and if the ephemeron is alive. When one of the keys is not considered alive anymore by the GC, the data is emptied from the ephemeron. The data could be alive for another reason and in that case the GC will not free it, but the ephemeron will not hold the data anymore.@ 8 The ephemerons complicate the notion of liveness of values, because it is not anymore an equivalence with the reachability from root value by usual pointers (not weak and not ephemerons). With ephemerons the notion of liveness is constructed by the least fixpoint of: A value is alive if:2it is a root value@ 2it is reachable from alive value by usual pointers@ Ait is the data of an alive ephemeron with all its full keys alive@@+ Notes: CAll the types defined in this module cannot be marshaled using 3Stdlib.output_value@@= or the functions of the 'Marshal@@( module.@@ Ephemerons are defined in a language agnostic way in this paper: B. Hayes, Ephemerons: A New Finalization Mechanism, OOPSLA'97@@@@$4.03@@@@@@5unsynchronized_access DUnsynchronized accesses to weak hash tables are a programming error.@A:../../stdlib/ephemeron.mli7Unsynchronized accesses@@ Unsynchronized accesses to a weak hash table may lead to an invalid weak hash table state. Thus, concurrent accesses to a weak hash table must be synchronized (for instance with a 'Mutex.t@@").@+Ephemeron.S3 %The output signature of the functors 1Ephemeron.K1.Make@@% and 1Ephemeron.K2.Make@@ . These hash tables are weak in the keys. If all the keys of a binding are alive the binding is kept, but if one of the keys of the binding is dead then the binding is removed.@@@@@@@@@@@@1A- cPropose the same interface as usual hash table. However since the bindings are weak, even if 'mem h k= is true, a subsequent (find h k+ may raise )Not_found = because the garbage collector can run between the two.@#/Ephemeron.S.key@@@A@@IG@@#-Ephemeron.S.t@DO@@A@@@?@@2Ephemeron.S.create@<@ >@@@@)1Ephemeron.S.clear@$@ %@@@@1Ephemeron.S.reset@ @ @@@@0Ephemeron.S.copy@@@@@@ڠ/Ephemeron.S.add@@%@(@+@@@@2Ephemeron.S.remove@@4@7@@@@0Ephemeron.S.find@@@@C@@@@}4Ephemeron.S.find_opt@x@Ly@Oi@@@@Z4Ephemeron.S.find_all@U@XV@[F@@@@73Ephemeron.S.replace@2@d3@g#@j/@@@@/Ephemeron.S.mem@@s@v@@@@2Ephemeron.S.length@@@@@@ݠ1Ephemeron.S.stats@@@@@@3Ephemeron.S.add_seq@@@@@@@7Ephemeron.S.replace_seq@@@z@@@@\2Ephemeron.S.of_seq@W@X@@@@.1Ephemeron.S.clean3 Gremove all dead bindings. Done automatically during automatic resizing.@@@@@@@@@@@@/@0@@@@7Ephemeron.S.stats_alive3(same as 5Hashtbl.SeededS.stats@@ " but only count the alive bindings@@@@@@@@@@@@#@$@@@@ @@ @1Ephemeron.SeededS3 %The output signature of the functors 7Ephemeron.K1.MakeSeeded@@% and 7Ephemeron.K2.MakeSeeded@@!.@@@@@@@@@@@@AH#5Ephemeron.SeededS.key@@@A@@@@#3Ephemeron.SeededS.t@O@@A@@@@8Ephemeron.SeededS.create@@@@@@@7Ephemeron.SeededS.clear@@@@@@ڠ7Ephemeron.SeededS.reset@@@@@@ 6Ephemeron.SeededS.copy@@"@@@@5Ephemeron.SeededS.add@@+@.@1@@@@8Ephemeron.SeededS.remove@@:@=p@@@@c6Ephemeron.SeededS.find@^@F_@IO@@@@G:Ephemeron.SeededS.find_opt@B@RC@U3@@@@&:Ephemeron.SeededS.find_all@!@^"@a@@@@9Ephemeron.SeededS.replace@@j@m@p@@@@䠕5Ephemeron.SeededS.mem@@y@|@@@@à8Ephemeron.SeededS.length@@@@@@7Ephemeron.SeededS.stats@@@@@@9Ephemeron.SeededS.add_seq@@@z@@@@\=Ephemeron.SeededS.replace_seq@W@X@H@@@@*8Ephemeron.SeededS.of_seq@%@&@@@@7Ephemeron.SeededS.clean3 Gremove all dead bindings. Done automatically during automatic resizing.@@@@@@@@@@@@@@@@@ꠕ=Ephemeron.SeededS.stats_alive3(same as 5Hashtbl.SeededS.stats@@ " but only count the alive bindings@@@@@@@@@@@@@@@@@@@@/,Ephemeron.K1Ӑ38Ephemerons with one key.@@@@@@@@@@@@A?#.Ephemeron.K1.t39an ephemeron with one key@@@@@@@@@@@@GG@@A@@@@1Ephemeron.K1.make35Ephemeron.K1.make k d? creates an ephemeron with key !k* and data !d!.@@@@@@@@@@@@@@@@@@Ӡ2Ephemeron.K1.query3:Ephemeron.K1.query eph key) returns &Some x( (where !x # is the ephemeron's data) if #key8 is physically equal to #eph2's key, and $None$ if #eph- is empty or #key1 is not equal to #eph''s key.@@@@@@@@@@@@@U@X@@@@/3 7Functor building an implementation of a weak hash table@@@@@@@@@@@@A쐐&Stdlib'Hashtbl*HashedType2Hashtbl.HashedType9Stdlib.Hashtbl.HashedType@4 with type key = H.t@@@@@@/}3 aFunctor building an implementation of a weak hash table. The seed is similar to the one of 2Hashtbl.MakeSeeded@@!.@@@@@@@@@@@@A&Stdlib'Hashtbl0SeededHashedType8Hashtbl.SeededHashedType?Stdlib.Hashtbl.SeededHashedType@Ɛ4 with type key = H.t@@@@@@/3Ephemeron.K1.Bucket@A#5Ephemeron.K1.Bucket.t3 +A bucket is a mutable "list" of ephemerons.@@@@@@@@@@@@GG@@A@@@@8Ephemeron.K1.Bucket.make34Create a new bucket.@@@@@@@@@@@@@@@@@ 7Ephemeron.K1.Bucket.add3?Add an ephemeron to the bucket.@@@@@@@@@@@@ @ @ @ @@@@ ࠕ:Ephemeron.K1.Bucket.remove3*remove b k. removes from !b 4 the most-recently added ephemeron with key !k 8, or does nothing if there is no such ephemeron.@@@@@@@@@@@@ @ @ @@@@ ՠ8Ephemeron.K1.Bucket.find3 UReturns the data of the most-recently added ephemeron with the given key, or $None? if there is no such ephemeron.@@@@@@@@@@@@ @ @ @@@@ :Ephemeron.K1.Bucket.length3 3Returns an upper bound on the length of the bucket.@@@@@@@@@@@@ @  @@@@ 9Ephemeron.K1.Bucket.clear3 &Remove all ephemerons from the bucket.@@@@@@@@@@@@ @/ @@@@ @@  @@@@@@@  @@@@@/,Ephemeron.K2 39Ephemerons with two keys.@@@@@@@@@@@@A#.Ephemeron.K2.t3:an ephemeron with two keys@@@@@@@@@@@@ G G G@@A@@  @@1Ephemeron.K2.make3(Same as jD@@@@@@@@@@@@@ @e @h @k ~@@@@ m2Ephemeron.K2.query3(Same as aD@@@@@@@@@@@@@ q@} r@ k@ g@@@@ R/ L3 7Functor building an implementation of a weak hash table@@@@@@@@@@@@A P&Stdlib'Hashtbl*HashedType2Hashtbl.HashedType9Stdlib.Hashtbl.HashedType@ U&Stdlib'Hashtbl*HashedType2Hashtbl.HashedType9Stdlib.Hashtbl.HashedType@< with type key = H1.t * H2.t@  I@@@@@/ 3 aFunctor building an implementation of a weak hash table. The seed is similar to the one of 2Hashtbl.MakeSeeded@@!.@@@@@@@@@@@@A  &Stdlib'Hashtbl0SeededHashedType8Hashtbl.SeededHashedType?Stdlib.Hashtbl.SeededHashedType@ &Stdlib'Hashtbl0SeededHashedType8Hashtbl.SeededHashedType?Stdlib.Hashtbl.SeededHashedType@< with type key = H1.t * H2.t@  @@@@@/3Ephemeron.K2.Bucket @AJ#5Ephemeron.K2.Bucket.t3 +A bucket is a mutable "list" of ephemerons.@@@@@@@@@@@@ G G G@@A@@  @@8Ephemeron.K2.Bucket.make34Create a new bucket.@@@@@@@@@@@@ @ @@@@ w7Ephemeron.K2.Bucket.add3?Add an ephemeron to the bucket.@@@@@@@@@@@@ x@ y@  p@# l@& h@@@@ X:Ephemeron.K2.Bucket.remove3.remove b k1 k2. removes from !b 5 the most-recently added ephemeron with keys "k1% and "k2 8, or does nothing if there is no such ephemeron.@@@@@@@@@@@@ n@J o@M f@P b@@@@ M8Ephemeron.K2.Bucket.find3 VReturns the data of the most-recently added ephemeron with the given keys, or $None? if there is no such ephemeron.@@@@@@@@@@@@ T@e U@h L@k H@@@@ 3:Ephemeron.K2.Bucket.length3 3Returns an upper bound on the length of the bucket.@@@@@@@@@@@@ 4@z 5@@@@ 9Ephemeron.K2.Bucket.clear3 &Remove all ephemerons from the bucket.@@@@@@@@@@@@ @ @@@@ @@  @@@@@@@  @@@@@/,Ephemeron.Kn 3 :Ephemerons with arbitrary number of keys of the same type.@@@@@@@@@@@@A#.Ephemeron.Kn.t3 Tan ephemeron with an arbitrary number of keys of the same type@@@@@@@@@@@@ G G@@A@@  @@1Ephemeron.Kn.make3(Same as D@@@@@@@@@@@@@ @ @ @@@@ ՠ2Ephemeron.Kn.query3(Same as D@@@@@@@@@@@@@ @ @ @@@@ /1Ephemeron.Kn.Make 3 7Functor building an implementation of a weak hash table@@@@@@@@@@@@A> &Stdlib'Hashtbl*HashedType2Hashtbl.HashedType9Stdlib.Hashtbl.HashedType@9;: with type key = H.t array@e @@@@@/7Ephemeron.Kn.MakeSeededb3 aFunctor building an implementation of a weak hash table. The seed is similar to the one of 2Hashtbl.MakeSeeded@@!.@@@@@@@@@@@@Ael&Stdlib'Hashtbl0SeededHashedType8Hashtbl.SeededHashedType?Stdlib.Hashtbl.SeededHashedType@EG: with type key = H.t array@g@@@@@/3Ephemeron.Kn.Bucket @A#5Ephemeron.Kn.Bucket.t3 +A bucket is a mutable "list" of ephemerons.@@@@@@@@@@@@GG@@A@@  @@8Ephemeron.Kn.Bucket.make34Create a new bucket.@@@@@@@@@@@@ @B @@@@7Ephemeron.Kn.Bucket.add3?Add an ephemeron to the bucket.@@@@@@@@@@@@@Q@T@W@@@@Ѡ:Ephemeron.Kn.Bucket.remove3*remove b k. removes from !b 5 the most-recently added ephemeron with keys !k 8, or does nothing if there is no such ephemeron.@@@@@@@@@@@@@u@x@@@@8Ephemeron.Kn.Bucket.find3 VReturns the data of the most-recently added ephemeron with the given keys, or $None? if there is no such ephemeron.@@@@@@@@@@@@@@@@@@:Ephemeron.Kn.Bucket.length3 3Returns an upper bound on the length of the bucket.@@@@@@@@@@@@@@@@@9Ephemeron.Kn.Bucket.clear3 &Remove all ephemerons from the bucket.@@@@@@@@@@@@@@@@@p@@nm@@@@@@@ml@@@@@@@@@A/C@@@@@