summary refs log tree commit diff stats
path: root/tests/arc/trepr.nim
Commit message (Collapse)AuthorAgeFilesLines
* fix #15043 (#16441) [backport:1.4]cooldome2020-12-271-0/+16
| | | | | * fix #15043 * Trigger build
* fix #16025 repr now consistent: does not insert trailing newline (#16034)Timothee Cour2020-11-191-0/+3
|
* repr_v2 improvements (#14992)Clyybber2020-07-151-0/+6
| | | | | | | * Support proc in arc repr * Typo * Improve repr for strings and chars
* Small improvements for string and char repr with gc:arc (#14400)Clyybber2020-05-201-2/+2
| | | | | * Small improvements for string and char repr with gc:arc * Fix test
* Fix #14270 and add testcases (#14276)Clyybber2020-05-081-0/+30
|
* Unwind just the "pseudorandom probing" part of recent sets,tables changes ↵c-blake2020-03-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#13816) * Unwind just the "pseudorandom probing" (whole hash-code-keyed variable stride double hashing) part of recent sets & tables changes (which has still been causing bugs over a month later (e.g., two days ago https://github.com/nim-lang/Nim/issues/13794) as well as still having several "figure this out" implementation question comments in them (see just diffs of this PR). This topic has been discussed in many places: https://github.com/nim-lang/Nim/issues/13393 https://github.com/nim-lang/Nim/pull/13418 https://github.com/nim-lang/Nim/pull/13440 https://github.com/nim-lang/Nim/issues/13794 Alternative/non-mandatory stronger integer hashes (or vice-versa opt-in identity hashes) are a better solution that is more general (no illusion of one hard-coded sequence solving all problems) while retaining the virtues of linear probing such as cache obliviousness and age-less tables under delete-heavy workloads (still untested after a month of this change). The only real solution for truly adversarial keys is a hash keyed off of data unobservable to attackers. That all fits better with a few families of user-pluggable/define-switchable hashes which can be provided in a separate PR more about `hashes.nim`. This PR carefully preserves the better (but still hard coded!) probing of the `intsets` and other recent fixes like `move` annotations, hash order invariant tests, `intsets.missingOrExcl` fixing, and the move of `rightSize` into `hashcommon.nim`. * Fix `data.len` -> `dataLen` problem.
* [backport] pseudorandom probing for hash collision (#13418)Timothee Cour2020-02-191-1/+1
|
* Repr v2 progress (#13268)cooldome2020-01-281-0/+34
* progress on repr_v2 * repr progress * add ref objects with distrinct * fix failing tests