@amritk/nish-aarch64-linux 0.37.0 → 0.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/INSTALL.md +28 -16
- package/bin/nish +0 -0
- package/docs/AI.md +32 -10
- package/package.json +1 -1
- package/runtime/core/arrays.d.ts +4 -0
- package/runtime/core/arrays.mjs +33 -0
- package/runtime/nish.d.ts +344 -48
- package/runtime/nish.h +29 -7
- package/runtime/runtime-async.c +228 -45
- package/runtime/runtime-cross.c +2 -1
- package/runtime/runtime-region.c +85 -7
- package/runtime/runtime-text.c +1068 -0
- package/runtime/runtime-wasm.c +3 -3
- package/runtime/runtime.c +50 -961
- package/runtime/vite.mjs +48 -11
- package/scripts/build.sh +86 -28
- package/std/LICENSE-fdlibm +8 -0
- package/std/README.md +2 -0
- package/std/array.ts +266 -0
- package/std/host/text.ts +86 -0
- package/std/math.ts +743 -41
- package/std/net/dns-resolver.ts +46 -6
- package/std/net/dns.ts +50 -13
- package/std/net/fetch.ts +691 -129
- package/std/net/handler.ts +12 -0
- package/std/net/http-compress.ts +17 -9
- package/std/net/http-fields.ts +19 -4
- package/std/net/http1-codec.ts +18 -4
- package/std/net/http1-server.ts +13 -3
- package/std/net/postgres-async.ts +1005 -0
- package/std/net/postgres.ts +7 -4
- package/std/net/serve.ts +763 -0
- package/std/text.ts +231 -5
package/std/net/postgres.ts
CHANGED
|
@@ -3770,10 +3770,13 @@ const PG_LOW32: i64 = 4294967295
|
|
|
3770
3770
|
* The batcher's table hash of an int8 key, 31 bits: the high half times an
|
|
3771
3771
|
* odd constant xored into the low half, then MurmurHash3's 32-bit finalizer,
|
|
3772
3772
|
* whose unsigned multiplies wrap by definition. Every step is a bijection on
|
|
3773
|
-
* 32 bits, so keys of one high half
|
|
3774
|
-
*
|
|
3775
|
-
*
|
|
3776
|
-
*
|
|
3773
|
+
* 32 bits, so keys of one high half get distinct 32-bit hashes; the last
|
|
3774
|
+
* `>> 1` drops their lowest bit, so at most two such keys share a 31-bit hash.
|
|
3775
|
+
* The finalizer spreads a dense run of ids over the whole table: runs that
|
|
3776
|
+
* would land on one another's slots under a near-identity hash do not merge
|
|
3777
|
+
* into one cluster longer than `PG_BATCH_PROBES`. Keys of different high
|
|
3778
|
+
* halves can be built to share one hash; each costs up to
|
|
3779
|
+
* `PG_BATCH_PROBES` probes.
|
|
3777
3780
|
*/
|
|
3778
3781
|
const pgIntHash = (key: i64): i32 => {
|
|
3779
3782
|
const lo: u32 = toU32(key & PG_LOW32)
|