nish 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/README.md +8 -7
- package/docs/AI.md +32 -10
- package/docs/INSTALL.md +28 -16
- package/package.json +8 -7
- 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/scripts/fuzz.sh +58 -8
- package/scripts/gen-pow10-table.py +1 -1
- package/scripts/postinstall.mjs +8 -7
- package/scripts/size-report.sh +2 -2
- 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/runtime/runtime-wasm.c
CHANGED
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
* pointers are 4 bytes, and the inlined fast path in every compiled function
|
|
11
11
|
* bumps the 64-bit `off` field directly. Panics are `unreachable` (a JS
|
|
12
12
|
* RuntimeError); there is no stderr to write a message to, so under
|
|
13
|
-
* wasm-host the page is told first (NISH_DIE). Strings
|
|
14
|
-
*
|
|
15
|
-
*
|
|
13
|
+
* wasm-host the page is told first (NISH_DIE). Strings are
|
|
14
|
+
* runtime-text.c's, which build.sh links beside this file when the IR builds
|
|
15
|
+
* one; I/O needs a WASI runtime and is not provided. */
|
|
16
16
|
#include <stddef.h>
|
|
17
17
|
#include <stdint.h>
|
|
18
18
|
|