diff options
author | c-blake <c-blake@users.noreply.github.com> | 2024-07-07 10:51:42 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-07 12:51:42 +0200 |
commit | 4faa15f3ad6504c3ba808e63ecd729d3fc3cb78a (patch) | |
tree | f60e8f2524195c8605d6f3e8e6c478a5534f0ab9 /changelog.md | |
parent | 1dcc364cd2e284f831735e0fe9b988b08c82ac4f (diff) | |
download | Nim-4faa15f3ad6504c3ba808e63ecd729d3fc3cb78a.tar.gz |
Replacement PR for https://github.com/nim-lang/Nim/pull/23779 that (#23793)
makes new hash the default, with an opt-out (& js-no-big-int) define. Also update changelog (& fix one typo). Only really expect the chronos hash-order sensitive test to fail until they merge that PR and tag a new release.
Diffstat (limited to 'changelog.md')
-rw-r--r-- | changelog.md | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/changelog.md b/changelog.md index 92abb2614..d2332dd57 100644 --- a/changelog.md +++ b/changelog.md @@ -30,7 +30,7 @@ [//]: # "Additions:" - Added `newStringUninit` to system, which creates a new string of length `len` like `newString` but with uninitialized content. -- Added `setLenUninit` to system, which doesn't initalize +- Added `setLenUninit` to system, which doesn't initialize slots when enlarging a sequence. - Added `hasDefaultValue` to `std/typetraits` to check if a type has a valid default value. - Added Viewport API for the JavaScript targets in the `dom` module. @@ -39,9 +39,12 @@ slots when enlarging a sequence. objects the cyclic collector did free. If the number is zero that is a strong indicator that you can use `--mm:arc` instead of `--mm:orc`. - A `$` template is provided for `Path` in `std/paths`. -- `nimPreviewHashFarm` has been added to `lib/pure/hashes.nim` to default to a -64-bit string `Hash` (based upon Google's Farm Hash) which is also faster than -the present one. At present, this is incompatible with `--jsbigint=off` mode. +- `std/hashes.hash(x:string)` changed to produce a 64-bit string `Hash` (based +on Google's Farm Hash) which is also often faster than the present one. Define +`nimStringHash2` to get the old values back. `--jsbigint=off` mode always only +produces the old values. This may impact your automated tests if they depend +on hash order in some obvious or indirect way. Using `sorted` or `OrderedTable` +is often an easy workaround. [//]: # "Deprecations:" |