wasm-idle 1.0.8 → 1.0.10
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 +60 -26
- package/dist/playground/applicationAssets.js +18 -0
- package/dist/playground/assetBridge.d.ts +1 -1
- package/dist/playground/assetBridge.js +172 -117
- package/dist/playground/assets.d.ts +74 -4
- package/dist/playground/assets.js +127 -4
- package/dist/playground/cachedClang.js +44 -5
- package/dist/playground/clang.d.ts +5 -0
- package/dist/playground/clang.js +100 -0
- package/dist/playground/clangWorkerProtocol.d.ts +13 -1
- package/dist/playground/fennel.d.ts +9 -0
- package/dist/playground/fennel.js +30 -0
- package/dist/playground/fennelBootstrap.d.ts +31 -0
- package/dist/playground/fennelBootstrap.js +118 -0
- package/dist/playground/grain.d.ts +9 -0
- package/dist/playground/grain.js +127 -0
- package/dist/playground/hy.d.ts +21 -0
- package/dist/playground/hy.js +24 -0
- package/dist/playground/index.d.ts +1 -1
- package/dist/playground/index.js +49 -0
- package/dist/playground/lua.d.ts +19 -0
- package/dist/playground/lua.js +64 -39
- package/dist/playground/objectivec.d.ts +3 -1
- package/dist/playground/objectivec.js +6 -2
- package/dist/playground/options.js +1 -1
- package/dist/playground/postgresql.d.ts +36 -0
- package/dist/playground/postgresql.js +543 -0
- package/dist/playground/python.d.ts +5 -0
- package/dist/playground/python.js +13 -0
- package/dist/playground/rescript.d.ts +5 -0
- package/dist/playground/rescript.js +58 -0
- package/dist/playground/rescriptPreflight.d.ts +26 -0
- package/dist/playground/rescriptPreflight.js +381 -0
- package/dist/playground/runtimeAssetCache.d.ts +6 -0
- package/dist/playground/runtimeAssetCache.js +109 -0
- package/dist/playground/staticRuntimeModuleVersion.d.ts +1 -1
- package/dist/playground/staticRuntimeModuleVersion.js +1 -1
- package/dist/playground/staticRuntimePreflightExecute.d.ts +2 -1
- package/dist/playground/staticRuntimePreflightExecute.js +9 -0
- package/dist/playground/staticRuntimePreflightProtocol.d.ts +1 -1
- package/dist/playground/v.d.ts +46 -0
- package/dist/playground/v.js +703 -0
- package/dist/playground/wasmBashVersion.d.ts +25 -25
- package/dist/playground/wasmBashVersion.js +12 -12
- package/dist/playground/wasmElixirVersion.d.ts +9 -9
- package/dist/playground/wasmElixirVersion.js +9 -9
- package/dist/playground/wasmFennelVersion.d.ts +23 -0
- package/dist/playground/wasmFennelVersion.js +16 -0
- package/dist/playground/wasmGrainVersion.d.ts +24 -0
- package/dist/playground/wasmGrainVersion.js +25 -0
- package/dist/playground/wasmHaskellVersion.d.ts +1 -1
- package/dist/playground/wasmHaskellVersion.js +1 -1
- package/dist/playground/wasmHyVersion.d.ts +7 -0
- package/dist/playground/wasmHyVersion.js +15 -0
- package/dist/playground/wasmLispVersion.d.ts +1 -1
- package/dist/playground/wasmLispVersion.js +1 -1
- package/dist/playground/wasmOcamlVersion.d.ts +4 -4
- package/dist/playground/wasmOcamlVersion.js +3 -3
- package/dist/playground/wasmPrologVersion.d.ts +19 -19
- package/dist/playground/wasmPrologVersion.js +18 -18
- package/dist/playground/wasmReScriptVersion.d.ts +20 -0
- package/dist/playground/wasmReScriptVersion.js +20 -0
- package/dist/playground/wasmTypeScriptVersion.d.ts +5 -5
- package/dist/playground/wasmTypeScriptVersion.js +5 -5
- package/dist/playground/worker/cachedClangCompile.js +44 -5
- package/dist/playground/worker/clang.js +44 -11
- package/dist/playground/worker/clangStreaming.js +6 -0
- package/dist/playground/worker/lua.js +48 -11
- package/dist/playground/worker/postgresql.d.ts +1 -0
- package/dist/playground/worker/postgresql.js +205 -0
- package/dist/playground/worker/python.js +113 -12
- package/dist/playground/worker/runtimeModule.d.ts +1 -1
- package/dist/playground/worker/runtimeModule.js +1 -1
- package/dist/playground/worker/staticRuntimePreflight.js +2 -1
- package/dist/playground/worker/v.d.ts +1 -0
- package/dist/playground/worker/v.js +106 -0
- package/dist/testPublicEnv.d.ts +2 -0
- package/dist/testPublicEnv.js +8 -0
- package/package.json +59 -48
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
export declare const WASM_BASH_RUNTIME_PROFILE: Readonly<{
|
|
2
|
-
profileId: "bash-1.0.25-wasmer-sdk-0.
|
|
2
|
+
profileId: "bash-1.0.25-wasmer-sdk-0.10.0-fc809648";
|
|
3
3
|
bashPackageVersion: "1.0.25";
|
|
4
4
|
bashSourceRevision: "fc8096485478055f4fcf31402004fdd8ff6b72b7";
|
|
5
|
-
wasmerSdkVersion: "0.
|
|
6
|
-
wasmerSdkPackageIntegrity: "sha512-
|
|
7
|
-
manifestFingerprint: "
|
|
5
|
+
wasmerSdkVersion: "0.10.0";
|
|
6
|
+
wasmerSdkPackageIntegrity: "sha512-YQ+s5tGag6P/I8kp9BTH+XhjoS9UFvWiZJvnWEEovClHffhYToKhprWr4UJG7wLP7c/2HQpGkF7ZrjoUvKjdmA==";
|
|
7
|
+
manifestFingerprint: "7feb4bf192c1c38e3e129528a5c038405012a4f09bc170719dfb6174cbb63f61";
|
|
8
8
|
manifestReceipt: Readonly<{
|
|
9
|
-
bytes:
|
|
10
|
-
sha256: "
|
|
9
|
+
bytes: 4800;
|
|
10
|
+
sha256: "2e1a5b7e6d8c85ff605252a64ea2a9fba2d0dd2d42be1d0247732fcd57c9f8cd";
|
|
11
11
|
}>;
|
|
12
12
|
sdkJavaScriptReceipt: Readonly<{
|
|
13
|
-
bytes:
|
|
14
|
-
sha256: "
|
|
13
|
+
bytes: 48694;
|
|
14
|
+
sha256: "d5e0424d9de8173c0c7bc6a6b704aecde620d3f424050e0e6a079d863a44d58b";
|
|
15
15
|
}>;
|
|
16
16
|
wasmerWasmReceipt: Readonly<{
|
|
17
|
-
bytes:
|
|
18
|
-
sha256: "
|
|
19
|
-
uncompressedBytes:
|
|
20
|
-
uncompressedSha256: "
|
|
17
|
+
bytes: 2383903;
|
|
18
|
+
sha256: "f592295111f5140a0afd5c5905e31e3ef1c9126df182d1249c86e7d6d4d260da";
|
|
19
|
+
uncompressedBytes: 6598804;
|
|
20
|
+
uncompressedSha256: "49a6646209f5ab5e7c737eac33407d87d9a9959ac83e5ecaaab9261b2323589e";
|
|
21
21
|
}>;
|
|
22
22
|
webcReceipt: Readonly<{
|
|
23
23
|
bytes: 648807;
|
|
@@ -28,25 +28,25 @@ export declare const WASM_BASH_RUNTIME_PROFILE: Readonly<{
|
|
|
28
28
|
}>;
|
|
29
29
|
export declare const WASM_BASH_RUNTIME_BUNDLE: Readonly<{
|
|
30
30
|
profile: Readonly<{
|
|
31
|
-
profileId: "bash-1.0.25-wasmer-sdk-0.
|
|
31
|
+
profileId: "bash-1.0.25-wasmer-sdk-0.10.0-fc809648";
|
|
32
32
|
bashPackageVersion: "1.0.25";
|
|
33
33
|
bashSourceRevision: "fc8096485478055f4fcf31402004fdd8ff6b72b7";
|
|
34
|
-
wasmerSdkVersion: "0.
|
|
35
|
-
wasmerSdkPackageIntegrity: "sha512-
|
|
36
|
-
manifestFingerprint: "
|
|
34
|
+
wasmerSdkVersion: "0.10.0";
|
|
35
|
+
wasmerSdkPackageIntegrity: "sha512-YQ+s5tGag6P/I8kp9BTH+XhjoS9UFvWiZJvnWEEovClHffhYToKhprWr4UJG7wLP7c/2HQpGkF7ZrjoUvKjdmA==";
|
|
36
|
+
manifestFingerprint: "7feb4bf192c1c38e3e129528a5c038405012a4f09bc170719dfb6174cbb63f61";
|
|
37
37
|
manifestReceipt: Readonly<{
|
|
38
|
-
bytes:
|
|
39
|
-
sha256: "
|
|
38
|
+
bytes: 4800;
|
|
39
|
+
sha256: "2e1a5b7e6d8c85ff605252a64ea2a9fba2d0dd2d42be1d0247732fcd57c9f8cd";
|
|
40
40
|
}>;
|
|
41
41
|
sdkJavaScriptReceipt: Readonly<{
|
|
42
|
-
bytes:
|
|
43
|
-
sha256: "
|
|
42
|
+
bytes: 48694;
|
|
43
|
+
sha256: "d5e0424d9de8173c0c7bc6a6b704aecde620d3f424050e0e6a079d863a44d58b";
|
|
44
44
|
}>;
|
|
45
45
|
wasmerWasmReceipt: Readonly<{
|
|
46
|
-
bytes:
|
|
47
|
-
sha256: "
|
|
48
|
-
uncompressedBytes:
|
|
49
|
-
uncompressedSha256: "
|
|
46
|
+
bytes: 2383903;
|
|
47
|
+
sha256: "f592295111f5140a0afd5c5905e31e3ef1c9126df182d1249c86e7d6d4d260da";
|
|
48
|
+
uncompressedBytes: 6598804;
|
|
49
|
+
uncompressedSha256: "49a6646209f5ab5e7c737eac33407d87d9a9959ac83e5ecaaab9261b2323589e";
|
|
50
50
|
}>;
|
|
51
51
|
webcReceipt: Readonly<{
|
|
52
52
|
bytes: 648807;
|
|
@@ -56,7 +56,7 @@ export declare const WASM_BASH_RUNTIME_BUNDLE: Readonly<{
|
|
|
56
56
|
}>;
|
|
57
57
|
}>;
|
|
58
58
|
}>;
|
|
59
|
-
export declare const WASM_BASH_ASSET_VERSION: "
|
|
59
|
+
export declare const WASM_BASH_ASSET_VERSION: "7feb4bf192c1c38e3e129528a5c038405012a4f09bc170719dfb6174cbb63f61";
|
|
60
60
|
export declare const WASM_BASH_WEBC_RECEIPT: Readonly<{
|
|
61
61
|
bytes: 1808682;
|
|
62
62
|
sha256: "73e34672254faf20f54fa0e7f8ffa8a6117017e8779aaa75c80682c00e6d8468";
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
export const WASM_BASH_RUNTIME_PROFILE = Object.freeze({
|
|
2
|
-
profileId: 'bash-1.0.25-wasmer-sdk-0.
|
|
2
|
+
profileId: 'bash-1.0.25-wasmer-sdk-0.10.0-fc809648',
|
|
3
3
|
bashPackageVersion: '1.0.25',
|
|
4
4
|
bashSourceRevision: 'fc8096485478055f4fcf31402004fdd8ff6b72b7',
|
|
5
|
-
wasmerSdkVersion: '0.
|
|
6
|
-
wasmerSdkPackageIntegrity: 'sha512-
|
|
7
|
-
manifestFingerprint: '
|
|
5
|
+
wasmerSdkVersion: '0.10.0',
|
|
6
|
+
wasmerSdkPackageIntegrity: 'sha512-YQ+s5tGag6P/I8kp9BTH+XhjoS9UFvWiZJvnWEEovClHffhYToKhprWr4UJG7wLP7c/2HQpGkF7ZrjoUvKjdmA==',
|
|
7
|
+
manifestFingerprint: '7feb4bf192c1c38e3e129528a5c038405012a4f09bc170719dfb6174cbb63f61',
|
|
8
8
|
manifestReceipt: Object.freeze({
|
|
9
|
-
bytes:
|
|
10
|
-
sha256: '
|
|
9
|
+
bytes: 4800,
|
|
10
|
+
sha256: '2e1a5b7e6d8c85ff605252a64ea2a9fba2d0dd2d42be1d0247732fcd57c9f8cd'
|
|
11
11
|
}),
|
|
12
12
|
sdkJavaScriptReceipt: Object.freeze({
|
|
13
|
-
bytes:
|
|
14
|
-
sha256: '
|
|
13
|
+
bytes: 48694,
|
|
14
|
+
sha256: 'd5e0424d9de8173c0c7bc6a6b704aecde620d3f424050e0e6a079d863a44d58b'
|
|
15
15
|
}),
|
|
16
16
|
wasmerWasmReceipt: Object.freeze({
|
|
17
|
-
bytes:
|
|
18
|
-
sha256: '
|
|
19
|
-
uncompressedBytes:
|
|
20
|
-
uncompressedSha256: '
|
|
17
|
+
bytes: 2383903,
|
|
18
|
+
sha256: 'f592295111f5140a0afd5c5905e31e3ef1c9126df182d1249c86e7d6d4d260da',
|
|
19
|
+
uncompressedBytes: 6598804,
|
|
20
|
+
uncompressedSha256: '49a6646209f5ab5e7c737eac33407d87d9a9959ac83e5ecaaab9261b2323589e'
|
|
21
21
|
}),
|
|
22
22
|
webcReceipt: Object.freeze({
|
|
23
23
|
bytes: 648807,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const WASM_ELIXIR_ASSET_VERSION = "
|
|
1
|
+
export declare const WASM_ELIXIR_ASSET_VERSION = "5e4dd4e58e641844";
|
|
2
2
|
export declare const WASM_ELIXIR_ASSET_RECEIPTS: Readonly<{
|
|
3
3
|
'bundle.avm': Readonly<{
|
|
4
4
|
bytes: 3463541;
|
|
@@ -7,15 +7,15 @@ export declare const WASM_ELIXIR_ASSET_RECEIPTS: Readonly<{
|
|
|
7
7
|
uncompressedSha256: "e848c7b1e0d73af284641afeb1dd5f235ace83a44a9d0a3d35a29c536042b21a";
|
|
8
8
|
}>;
|
|
9
9
|
'AtomVM.mjs': Readonly<{
|
|
10
|
-
bytes:
|
|
11
|
-
sha256: "
|
|
12
|
-
uncompressedBytes:
|
|
13
|
-
uncompressedSha256: "
|
|
10
|
+
bytes: 74151;
|
|
11
|
+
sha256: "c68474b30b58043be0b70b729bb2dbbe56ff5594b58357f72dac669e11f49c60";
|
|
12
|
+
uncompressedBytes: 304708;
|
|
13
|
+
uncompressedSha256: "5562f7bca73575cc965d2e8f36bec19ba75b56fb85ff7277713af3ecfb08e409";
|
|
14
14
|
}>;
|
|
15
15
|
'AtomVM.wasm': Readonly<{
|
|
16
|
-
bytes:
|
|
17
|
-
sha256: "
|
|
18
|
-
uncompressedBytes:
|
|
19
|
-
uncompressedSha256: "
|
|
16
|
+
bytes: 1434358;
|
|
17
|
+
sha256: "c2bf951ccae72d562f920b24f1ba944c773a4395e311909dfeae6e127b9fd518";
|
|
18
|
+
uncompressedBytes: 4234209;
|
|
19
|
+
uncompressedSha256: "55658601a27822079eaa8280e1082a7fda1f85436966e56636bb54fb3bcaf03c";
|
|
20
20
|
}>;
|
|
21
21
|
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export const WASM_ELIXIR_ASSET_VERSION = '
|
|
1
|
+
export const WASM_ELIXIR_ASSET_VERSION = '5e4dd4e58e641844';
|
|
2
2
|
export const WASM_ELIXIR_ASSET_RECEIPTS = Object.freeze({
|
|
3
3
|
'bundle.avm': Object.freeze({
|
|
4
4
|
bytes: 3463541,
|
|
@@ -7,15 +7,15 @@ export const WASM_ELIXIR_ASSET_RECEIPTS = Object.freeze({
|
|
|
7
7
|
uncompressedSha256: 'e848c7b1e0d73af284641afeb1dd5f235ace83a44a9d0a3d35a29c536042b21a'
|
|
8
8
|
}),
|
|
9
9
|
'AtomVM.mjs': Object.freeze({
|
|
10
|
-
bytes:
|
|
11
|
-
sha256: '
|
|
12
|
-
uncompressedBytes:
|
|
13
|
-
uncompressedSha256: '
|
|
10
|
+
bytes: 74151,
|
|
11
|
+
sha256: 'c68474b30b58043be0b70b729bb2dbbe56ff5594b58357f72dac669e11f49c60',
|
|
12
|
+
uncompressedBytes: 304708,
|
|
13
|
+
uncompressedSha256: '5562f7bca73575cc965d2e8f36bec19ba75b56fb85ff7277713af3ecfb08e409'
|
|
14
14
|
}),
|
|
15
15
|
'AtomVM.wasm': Object.freeze({
|
|
16
|
-
bytes:
|
|
17
|
-
sha256: '
|
|
18
|
-
uncompressedBytes:
|
|
19
|
-
uncompressedSha256: '
|
|
16
|
+
bytes: 1434358,
|
|
17
|
+
sha256: 'c2bf951ccae72d562f920b24f1ba944c773a4395e311909dfeae6e127b9fd518',
|
|
18
|
+
uncompressedBytes: 4234209,
|
|
19
|
+
uncompressedSha256: '55658601a27822079eaa8280e1082a7fda1f85436966e56636bb54fb3bcaf03c'
|
|
20
20
|
})
|
|
21
21
|
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pinned receipt for the official single-file Fennel compiler (`fennel.lua`).
|
|
3
|
+
*
|
|
4
|
+
* The asset is the unmodified upstream release from https://fennel-lang.org/downloads/
|
|
5
|
+
* (MIT), gzip-compressed with `gzip -9 -n`. Fennel runs on the bundled wasm-lua
|
|
6
|
+
* (wasmoon) Lua VM, so this receipt only covers the compiler source.
|
|
7
|
+
*/
|
|
8
|
+
export declare const WASM_FENNEL_COMPILER_RECEIPT: Readonly<{
|
|
9
|
+
fennelVersion: "1.6.1";
|
|
10
|
+
path: "wasm-fennel/fennel-1.6.1.lua.gz";
|
|
11
|
+
bytes: 62385;
|
|
12
|
+
sha256: "108b12fe2acb5c47c74c461d7ecbf5e00fb72102a9b927df985b9b4b858e49c0";
|
|
13
|
+
uncompressedBytes: 301522;
|
|
14
|
+
uncompressedSha256: "c3d45602041e7d8ef8a212563573df040c48a85c648a29fb4597ebed4bc38ec2";
|
|
15
|
+
}>;
|
|
16
|
+
export type WasmFennelCompilerReceipt = {
|
|
17
|
+
readonly fennelVersion: string;
|
|
18
|
+
readonly bytes: number;
|
|
19
|
+
readonly sha256: string;
|
|
20
|
+
readonly uncompressedBytes: number;
|
|
21
|
+
readonly uncompressedSha256: string;
|
|
22
|
+
};
|
|
23
|
+
export declare const WASM_FENNEL_ASSET_VERSION: string;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pinned receipt for the official single-file Fennel compiler (`fennel.lua`).
|
|
3
|
+
*
|
|
4
|
+
* The asset is the unmodified upstream release from https://fennel-lang.org/downloads/
|
|
5
|
+
* (MIT), gzip-compressed with `gzip -9 -n`. Fennel runs on the bundled wasm-lua
|
|
6
|
+
* (wasmoon) Lua VM, so this receipt only covers the compiler source.
|
|
7
|
+
*/
|
|
8
|
+
export const WASM_FENNEL_COMPILER_RECEIPT = Object.freeze({
|
|
9
|
+
fennelVersion: '1.6.1',
|
|
10
|
+
path: 'wasm-fennel/fennel-1.6.1.lua.gz',
|
|
11
|
+
bytes: 62385,
|
|
12
|
+
sha256: '108b12fe2acb5c47c74c461d7ecbf5e00fb72102a9b927df985b9b4b858e49c0',
|
|
13
|
+
uncompressedBytes: 301522,
|
|
14
|
+
uncompressedSha256: 'c3d45602041e7d8ef8a212563573df040c48a85c648a29fb4597ebed4bc38ec2'
|
|
15
|
+
});
|
|
16
|
+
export const WASM_FENNEL_ASSET_VERSION = WASM_FENNEL_COMPILER_RECEIPT.sha256.slice(0, 16);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare const bundledGrainProfile: {
|
|
2
|
+
readonly profileId: "grain-0.7.2-jsoo-wasi-v1";
|
|
3
|
+
readonly grainVersion: "0.7.2";
|
|
4
|
+
readonly compilerJavaScript: {
|
|
5
|
+
readonly bytes: 20872240;
|
|
6
|
+
readonly sha256: "0a85cf0120aafd873e41eb901a18090453010f8f819074b77c14e1c359cafd1e";
|
|
7
|
+
};
|
|
8
|
+
readonly compilerStorage: {
|
|
9
|
+
readonly bytes: 3417153;
|
|
10
|
+
readonly sha256: "38cf8c42ed83447287e0bc54c768661a110b7becf1b93bdfdd6da30537c4e289";
|
|
11
|
+
};
|
|
12
|
+
readonly stdlibPack: {
|
|
13
|
+
readonly bytes: 5066092;
|
|
14
|
+
readonly sha256: "c56e83cbea649be5dd94ce98ae648b8f98e40203761ef7b1ad0a799048ee08eb";
|
|
15
|
+
};
|
|
16
|
+
readonly stdlibStorage: {
|
|
17
|
+
readonly bytes: 1653344;
|
|
18
|
+
readonly sha256: "7180475667a3129821be12aa787f449e58de62b0bb5c0e5472077b73b9e5cafa";
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export declare const bundledGrainWorkerReceipt: {
|
|
22
|
+
readonly bytes: 28127;
|
|
23
|
+
readonly sha256: "c36b478c25f000a9a9ecdb186490cf8fce07ece9b5ac271031aa2e97f75cabab";
|
|
24
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// Generated by scripts/sync-wasm-grain.mjs from the pinned upstream Grain release.
|
|
2
|
+
export const bundledGrainProfile = {
|
|
3
|
+
profileId: 'grain-0.7.2-jsoo-wasi-v1',
|
|
4
|
+
grainVersion: '0.7.2',
|
|
5
|
+
compilerJavaScript: {
|
|
6
|
+
bytes: 20872240,
|
|
7
|
+
sha256: '0a85cf0120aafd873e41eb901a18090453010f8f819074b77c14e1c359cafd1e'
|
|
8
|
+
},
|
|
9
|
+
compilerStorage: {
|
|
10
|
+
bytes: 3417153,
|
|
11
|
+
sha256: '38cf8c42ed83447287e0bc54c768661a110b7becf1b93bdfdd6da30537c4e289'
|
|
12
|
+
},
|
|
13
|
+
stdlibPack: {
|
|
14
|
+
bytes: 5066092,
|
|
15
|
+
sha256: 'c56e83cbea649be5dd94ce98ae648b8f98e40203761ef7b1ad0a799048ee08eb'
|
|
16
|
+
},
|
|
17
|
+
stdlibStorage: {
|
|
18
|
+
bytes: 1653344,
|
|
19
|
+
sha256: '7180475667a3129821be12aa787f449e58de62b0bb5c0e5472077b73b9e5cafa'
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
export const bundledGrainWorkerReceipt = {
|
|
23
|
+
bytes: 28127,
|
|
24
|
+
sha256: 'c36b478c25f000a9a9ecdb186490cf8fce07ece9b5ac271031aa2e97f75cabab'
|
|
25
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const WASM_HASKELL_ASSET_VERSION = "
|
|
1
|
+
export declare const WASM_HASKELL_ASSET_VERSION = "5c94c1aaaf5ad41bf472a4766bfb155982d8e59a160ae610a90928230867efb8";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const WASM_HASKELL_ASSET_VERSION = '
|
|
1
|
+
export const WASM_HASKELL_ASSET_VERSION = '5c94c1aaaf5ad41bf472a4766bfb155982d8e59a160ae610a90928230867efb8';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// Pinned by scripts/sync-wasm-hy.mjs. Both wheels are pure Python and install into the bundled
|
|
2
|
+
// Pyodide runtime; they are served from static/wasm-hy/ and never fetched from PyPI at runtime.
|
|
3
|
+
export const WASM_HY_VERSION = '1.3.1';
|
|
4
|
+
export const WASM_HY_WHEELS = Object.freeze([
|
|
5
|
+
Object.freeze({
|
|
6
|
+
fileName: 'funcparserlib-1.0.1-py2.py3-none-any.whl',
|
|
7
|
+
bytes: 17842,
|
|
8
|
+
sha256: '95da15d3f0d00b9b6f4bf04005c708af3faa115f7b45692ace064ebe758c68e8'
|
|
9
|
+
}),
|
|
10
|
+
Object.freeze({
|
|
11
|
+
fileName: 'hy-1.3.1-py3-none-any.whl',
|
|
12
|
+
bytes: 122343,
|
|
13
|
+
sha256: 'fef54e98b2080cd3993d5ce5a4310ef2b0fc756c972203b86fedc0e0f2908f53'
|
|
14
|
+
})
|
|
15
|
+
]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const WASM_LISP_ASSET_VERSION = "
|
|
1
|
+
export declare const WASM_LISP_ASSET_VERSION = "588e867fce63b2d638f15ab09edef831fb701d26664a4644144d0e91c0ab7ef7";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const WASM_LISP_ASSET_VERSION = '
|
|
1
|
+
export const WASM_LISP_ASSET_VERSION = '588e867fce63b2d638f15ab09edef831fb701d26664a4644144d0e91c0ab7ef7';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export declare const WASM_OCAML_ASSET_VERSION = "
|
|
1
|
+
export declare const WASM_OCAML_ASSET_VERSION = "77e39f51c5478f5dd499d88112ca7a13eb9fa00950c7ad91703afe896eb8622f";
|
|
2
2
|
export declare const WASM_OCAML_RUNTIME_PROFILE: Readonly<{
|
|
3
|
-
fingerprint: "
|
|
3
|
+
fingerprint: "77e39f51c5478f5dd499d88112ca7a13eb9fa00950c7ad91703afe896eb8622f";
|
|
4
4
|
moduleReceipt: Readonly<{
|
|
5
5
|
bytes: 1892;
|
|
6
6
|
sha256: "17d80beb633799e9021dc1b851bc76283494d981ec20fc315462d740284fa13a";
|
|
7
7
|
}>;
|
|
8
8
|
manifestReceipt: Readonly<{
|
|
9
|
-
bytes:
|
|
10
|
-
sha256: "
|
|
9
|
+
bytes: 60021;
|
|
10
|
+
sha256: "968ae852c9a244a19f6bdef12e42e0495ad38b1e1f29bdeb5534bb178c85768e";
|
|
11
11
|
}>;
|
|
12
12
|
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export const WASM_OCAML_ASSET_VERSION = '
|
|
1
|
+
export const WASM_OCAML_ASSET_VERSION = '77e39f51c5478f5dd499d88112ca7a13eb9fa00950c7ad91703afe896eb8622f';
|
|
2
2
|
export const WASM_OCAML_RUNTIME_PROFILE = Object.freeze({
|
|
3
3
|
fingerprint: WASM_OCAML_ASSET_VERSION,
|
|
4
4
|
moduleReceipt: Object.freeze({
|
|
@@ -6,7 +6,7 @@ export const WASM_OCAML_RUNTIME_PROFILE = Object.freeze({
|
|
|
6
6
|
sha256: '17d80beb633799e9021dc1b851bc76283494d981ec20fc315462d740284fa13a'
|
|
7
7
|
}),
|
|
8
8
|
manifestReceipt: Object.freeze({
|
|
9
|
-
bytes:
|
|
10
|
-
sha256: '
|
|
9
|
+
bytes: 60021,
|
|
10
|
+
sha256: '968ae852c9a244a19f6bdef12e42e0495ad38b1e1f29bdeb5534bb178c85768e'
|
|
11
11
|
})
|
|
12
12
|
});
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
export declare const WASM_PROLOG_RUNTIME_PROFILE: {
|
|
2
|
-
readonly profileId: "swipl-wasm-8.
|
|
3
|
-
readonly packageRevision: "
|
|
4
|
-
readonly swiplRevision: "
|
|
5
|
-
readonly manifestFingerprint: "
|
|
2
|
+
readonly profileId: "swipl-wasm-8.2.1-swipl-10.1.15";
|
|
3
|
+
readonly packageRevision: "85167290994ede92eab1aa5e399007c031e6cb82";
|
|
4
|
+
readonly swiplRevision: "5db27168f89b15186745ea401fbb99a017413788";
|
|
5
|
+
readonly manifestFingerprint: "c97f050d36f55558811d27021580338dd01e37016c70e1ef2daaaad0a29618b3";
|
|
6
6
|
readonly manifestReceipt: {
|
|
7
|
-
readonly bytes:
|
|
8
|
-
readonly sha256: "
|
|
7
|
+
readonly bytes: 2576;
|
|
8
|
+
readonly sha256: "b67d6f6ff9115bd886d2992b0ad97e7d726aa66cc2a3e288ce7f99a3249d6d47";
|
|
9
9
|
};
|
|
10
10
|
readonly javascriptReceipt: {
|
|
11
|
-
readonly bytes:
|
|
12
|
-
readonly sha256: "
|
|
11
|
+
readonly bytes: 193421;
|
|
12
|
+
readonly sha256: "635da02ac0eb18e51303e4a0398b220d17cabfc0e4b7a2acbc7af9e949e4a9c7";
|
|
13
13
|
};
|
|
14
14
|
readonly wasmReceipt: {
|
|
15
|
-
readonly bytes:
|
|
16
|
-
readonly sha256: "
|
|
17
|
-
readonly uncompressedBytes:
|
|
18
|
-
readonly uncompressedSha256: "
|
|
15
|
+
readonly bytes: 820495;
|
|
16
|
+
readonly sha256: "da8461e22b4513c5020d7eef7f8e62b2086003125381d18fed08f3656eecd793";
|
|
17
|
+
readonly uncompressedBytes: 2275324;
|
|
18
|
+
readonly uncompressedSha256: "c8831c0ac6a021b6bc67fa1b86e8826d1ea92a1a81b932cfb88fea235361c355";
|
|
19
19
|
};
|
|
20
20
|
readonly dataReceipt: {
|
|
21
|
-
readonly bytes:
|
|
22
|
-
readonly sha256: "
|
|
23
|
-
readonly uncompressedBytes:
|
|
24
|
-
readonly uncompressedSha256: "
|
|
21
|
+
readonly bytes: 1192600;
|
|
22
|
+
readonly sha256: "ea735ff89940eaed405a4a9b2be8606141d821016f3fc7671983b2203e88e86f";
|
|
23
|
+
readonly uncompressedBytes: 1659074;
|
|
24
|
+
readonly uncompressedSha256: "91e9d9c1d184f1a291c870e96bf6a1bc502ce8787946c966526a663a725ba932";
|
|
25
25
|
};
|
|
26
26
|
};
|
|
27
|
-
export declare const WASM_PROLOG_ASSET_VERSION: "
|
|
27
|
+
export declare const WASM_PROLOG_ASSET_VERSION: "c97f050d36f55558811d27021580338dd01e37016c70e1ef2daaaad0a29618b3";
|
|
28
28
|
export declare const WASM_PROLOG_RUNNER_RECEIPT: {
|
|
29
|
-
readonly bytes:
|
|
30
|
-
readonly sha256: "
|
|
29
|
+
readonly bytes: 25342;
|
|
30
|
+
readonly sha256: "b72014e85132b6ee6bfe3ec0e59ae6ba791f4c137caa1cb744d0a37bab9c60c4";
|
|
31
31
|
};
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
export const WASM_PROLOG_RUNTIME_PROFILE = {
|
|
2
|
-
profileId: 'swipl-wasm-8.
|
|
3
|
-
packageRevision: '
|
|
4
|
-
swiplRevision: '
|
|
5
|
-
manifestFingerprint: '
|
|
2
|
+
profileId: 'swipl-wasm-8.2.1-swipl-10.1.15',
|
|
3
|
+
packageRevision: '85167290994ede92eab1aa5e399007c031e6cb82',
|
|
4
|
+
swiplRevision: '5db27168f89b15186745ea401fbb99a017413788',
|
|
5
|
+
manifestFingerprint: 'c97f050d36f55558811d27021580338dd01e37016c70e1ef2daaaad0a29618b3',
|
|
6
6
|
manifestReceipt: {
|
|
7
|
-
bytes:
|
|
8
|
-
sha256: '
|
|
7
|
+
bytes: 2576,
|
|
8
|
+
sha256: 'b67d6f6ff9115bd886d2992b0ad97e7d726aa66cc2a3e288ce7f99a3249d6d47'
|
|
9
9
|
},
|
|
10
10
|
javascriptReceipt: {
|
|
11
|
-
bytes:
|
|
12
|
-
sha256: '
|
|
11
|
+
bytes: 193421,
|
|
12
|
+
sha256: '635da02ac0eb18e51303e4a0398b220d17cabfc0e4b7a2acbc7af9e949e4a9c7'
|
|
13
13
|
},
|
|
14
14
|
wasmReceipt: {
|
|
15
|
-
bytes:
|
|
16
|
-
sha256: '
|
|
17
|
-
uncompressedBytes:
|
|
18
|
-
uncompressedSha256: '
|
|
15
|
+
bytes: 820495,
|
|
16
|
+
sha256: 'da8461e22b4513c5020d7eef7f8e62b2086003125381d18fed08f3656eecd793',
|
|
17
|
+
uncompressedBytes: 2275324,
|
|
18
|
+
uncompressedSha256: 'c8831c0ac6a021b6bc67fa1b86e8826d1ea92a1a81b932cfb88fea235361c355'
|
|
19
19
|
},
|
|
20
20
|
dataReceipt: {
|
|
21
|
-
bytes:
|
|
22
|
-
sha256: '
|
|
23
|
-
uncompressedBytes:
|
|
24
|
-
uncompressedSha256: '
|
|
21
|
+
bytes: 1192600,
|
|
22
|
+
sha256: 'ea735ff89940eaed405a4a9b2be8606141d821016f3fc7671983b2203e88e86f',
|
|
23
|
+
uncompressedBytes: 1659074,
|
|
24
|
+
uncompressedSha256: '91e9d9c1d184f1a291c870e96bf6a1bc502ce8787946c966526a663a725ba932'
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
27
|
export const WASM_PROLOG_ASSET_VERSION = WASM_PROLOG_RUNTIME_PROFILE.manifestFingerprint;
|
|
28
28
|
export const WASM_PROLOG_RUNNER_RECEIPT = {
|
|
29
|
-
bytes:
|
|
30
|
-
sha256: '
|
|
29
|
+
bytes: 25342,
|
|
30
|
+
sha256: 'b72014e85132b6ee6bfe3ec0e59ae6ba791f4c137caa1cb744d0a37bab9c60c4'
|
|
31
31
|
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const WASM_RESCRIPT_RUNTIME_PROFILE: {
|
|
2
|
+
readonly profileId: "rescript-12.3.1-playground-commonjs";
|
|
3
|
+
readonly sourceRevision: "v12.3.1";
|
|
4
|
+
readonly manifestFingerprint: "c5cfee09555006071de09a4793ff080f9c49ef901fdb66d76ca16470dab7efc5";
|
|
5
|
+
readonly manifestReceipt: {
|
|
6
|
+
readonly bytes: 1406;
|
|
7
|
+
readonly sha256: "dddbbbdf2da0c91280267004875023ff9949c8815c6edff7057444cfcff25e61";
|
|
8
|
+
};
|
|
9
|
+
readonly compilerReceipt: {
|
|
10
|
+
readonly bytes: 1245489;
|
|
11
|
+
readonly sha256: "9d6988eff528fb577c10aa76f720e59c8737dc91c5a4a2f17496930b848ff51d";
|
|
12
|
+
readonly uncompressedBytes: 6496768;
|
|
13
|
+
readonly uncompressedSha256: "17b16598b473bcd56367f29fb76d300ffe0073c814af68710d3b46964b200202";
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export declare const WASM_RESCRIPT_ASSET_VERSION: "c5cfee09555006071de09a4793ff080f9c49ef901fdb66d76ca16470dab7efc5";
|
|
17
|
+
export declare const WASM_RESCRIPT_RUNNER_RECEIPT: {
|
|
18
|
+
readonly bytes: 22497;
|
|
19
|
+
readonly sha256: "9ed95127f988333a79c7591771c40f2d0fde07e5cb79da2543082582ffdd276d";
|
|
20
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export const WASM_RESCRIPT_RUNTIME_PROFILE = {
|
|
2
|
+
profileId: 'rescript-12.3.1-playground-commonjs',
|
|
3
|
+
sourceRevision: 'v12.3.1',
|
|
4
|
+
manifestFingerprint: 'c5cfee09555006071de09a4793ff080f9c49ef901fdb66d76ca16470dab7efc5',
|
|
5
|
+
manifestReceipt: {
|
|
6
|
+
bytes: 1406,
|
|
7
|
+
sha256: 'dddbbbdf2da0c91280267004875023ff9949c8815c6edff7057444cfcff25e61'
|
|
8
|
+
},
|
|
9
|
+
compilerReceipt: {
|
|
10
|
+
bytes: 1245489,
|
|
11
|
+
sha256: '9d6988eff528fb577c10aa76f720e59c8737dc91c5a4a2f17496930b848ff51d',
|
|
12
|
+
uncompressedBytes: 6496768,
|
|
13
|
+
uncompressedSha256: '17b16598b473bcd56367f29fb76d300ffe0073c814af68710d3b46964b200202'
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
export const WASM_RESCRIPT_ASSET_VERSION = WASM_RESCRIPT_RUNTIME_PROFILE.manifestFingerprint;
|
|
17
|
+
export const WASM_RESCRIPT_RUNNER_RECEIPT = {
|
|
18
|
+
bytes: 22497,
|
|
19
|
+
sha256: '9ed95127f988333a79c7591771c40f2d0fde07e5cb79da2543082582ffdd276d'
|
|
20
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export declare const WASM_TYPESCRIPT_ASSET_VERSION = "
|
|
1
|
+
export declare const WASM_TYPESCRIPT_ASSET_VERSION = "2d968f66f878ce33";
|
|
2
2
|
export declare const WASM_TYPESCRIPT_MODULE_RECEIPT: Readonly<{
|
|
3
|
-
bytes:
|
|
4
|
-
sha256: "
|
|
3
|
+
bytes: 3759064;
|
|
4
|
+
sha256: "2c8942b6383d25d4582e9db0ee38d85b61eb8016f16e57c840f3c20af9ac848b";
|
|
5
5
|
}>;
|
|
6
6
|
export declare const WASM_JAVASCRIPT_MODULE_RECEIPT: Readonly<{
|
|
7
|
-
bytes:
|
|
8
|
-
sha256: "
|
|
7
|
+
bytes: 35866;
|
|
8
|
+
sha256: "21b176cfe1ce4d39519979422bd1b3b598f183e9b3fe042ecc8cc37a535c3608";
|
|
9
9
|
}>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export const WASM_TYPESCRIPT_ASSET_VERSION = '
|
|
1
|
+
export const WASM_TYPESCRIPT_ASSET_VERSION = '2d968f66f878ce33';
|
|
2
2
|
export const WASM_TYPESCRIPT_MODULE_RECEIPT = Object.freeze({
|
|
3
|
-
bytes:
|
|
4
|
-
sha256: '
|
|
3
|
+
bytes: 3759064,
|
|
4
|
+
sha256: '2c8942b6383d25d4582e9db0ee38d85b61eb8016f16e57c840f3c20af9ac848b'
|
|
5
5
|
});
|
|
6
6
|
export const WASM_JAVASCRIPT_MODULE_RECEIPT = Object.freeze({
|
|
7
|
-
bytes:
|
|
8
|
-
sha256: '
|
|
7
|
+
bytes: 35866,
|
|
8
|
+
sha256: '21b176cfe1ce4d39519979422bd1b3b598f183e9b3fe042ecc8cc37a535c3608'
|
|
9
9
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BrowserClangRuntime, loadRuntimeManifest, resolveRuntimeManifestUrl } from '@wasm-idle/llvm-core/clang';
|
|
2
2
|
import { configureWorkerRuntimeAssets, handleWorkerAssetMessage } from './assets';
|
|
3
3
|
import { compileWorkerRuntimeAsset } from './runtimeModule';
|
|
4
|
-
import { BUNDLED_CLANG_LANGUAGE_SYSROOT_PROFILES } from '../clangAssetIntegrity';
|
|
4
|
+
import { BUNDLED_CLANG_ASSET_INTEGRITY, BUNDLED_CLANG_LANGUAGE_SYSROOT_PROFILES } from '../clangAssetIntegrity';
|
|
5
5
|
const worker = globalThis;
|
|
6
6
|
let started = false;
|
|
7
7
|
worker.onmessage = async ({ data }) => {
|
|
@@ -11,6 +11,7 @@ worker.onmessage = async ({ data }) => {
|
|
|
11
11
|
return;
|
|
12
12
|
started = true;
|
|
13
13
|
const output = [];
|
|
14
|
+
let runtime;
|
|
14
15
|
try {
|
|
15
16
|
if (data.request.debug || (data.request.debugMode && data.request.debugMode !== 'none')) {
|
|
16
17
|
throw new Error('Cached C/C++ execution does not support debug artifacts.');
|
|
@@ -30,6 +31,10 @@ worker.onmessage = async ({ data }) => {
|
|
|
30
31
|
]
|
|
31
32
|
].map(([asset, url]) => [url, asset]));
|
|
32
33
|
class CachedRuntime extends BrowserClangRuntime {
|
|
34
|
+
async getCompilerFingerprint() {
|
|
35
|
+
// This worker is selected only for the bundled, integrity-checked host profile.
|
|
36
|
+
return BUNDLED_CLANG_ASSET_INTEGRITY['bin/clang.wasm.gz'].sha256;
|
|
37
|
+
}
|
|
33
38
|
async getModule(url, progress, signal) {
|
|
34
39
|
const asset = moduleAssets.get(url);
|
|
35
40
|
if (!asset)
|
|
@@ -43,10 +48,11 @@ worker.onmessage = async ({ data }) => {
|
|
|
43
48
|
}
|
|
44
49
|
// Every source cache miss gets fresh compiler memory and files. The host
|
|
45
50
|
// session keeps the immutable tool Modules and verified asset bytes alive.
|
|
46
|
-
|
|
51
|
+
runtime = new CachedRuntime({
|
|
47
52
|
runtimeBaseUrl: data.runtimeBaseUrl,
|
|
48
53
|
maxAssetBytes: data.maxAssetBytes,
|
|
49
54
|
manifest,
|
|
55
|
+
persistentCache: data.persistentCache,
|
|
50
56
|
log: data.log ?? false,
|
|
51
57
|
stdout: (chunk) => output.push(chunk),
|
|
52
58
|
progress: (value) => worker.postMessage({
|
|
@@ -71,15 +77,48 @@ worker.onmessage = async ({ data }) => {
|
|
|
71
77
|
message: 'Compiling source'
|
|
72
78
|
}
|
|
73
79
|
});
|
|
74
|
-
const artifact = await runtime.compileArtifact(data.request.code,
|
|
75
|
-
|
|
80
|
+
const artifact = await runtime.compileArtifact(data.request.code, {
|
|
81
|
+
...data.request,
|
|
82
|
+
persistentCache: data.persistentCache,
|
|
83
|
+
precompiledHeader: data.precompiledHeader
|
|
84
|
+
});
|
|
85
|
+
if (runtime.usedPrecompiledHeader)
|
|
86
|
+
worker.postMessage({
|
|
87
|
+
type: 'progress',
|
|
88
|
+
progress: {
|
|
89
|
+
stage: 'compile',
|
|
90
|
+
completed: 100,
|
|
91
|
+
total: 100,
|
|
92
|
+
percent: 100,
|
|
93
|
+
message: 'Compiled with precompiled <bits/stdc++.h>'
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
worker.postMessage({
|
|
97
|
+
type: 'compiled',
|
|
98
|
+
artifact,
|
|
99
|
+
stdout: output.join(''),
|
|
100
|
+
stderr: '',
|
|
101
|
+
...buildingPrecompiledHeader(runtime)
|
|
102
|
+
});
|
|
76
103
|
}
|
|
77
104
|
catch (error) {
|
|
78
105
|
worker.postMessage({
|
|
79
106
|
type: 'error',
|
|
80
107
|
error: error instanceof Error ? error.message : String(error),
|
|
81
108
|
stdout: output.join(''),
|
|
82
|
-
stderr: ''
|
|
109
|
+
stderr: '',
|
|
110
|
+
...buildingPrecompiledHeader(runtime)
|
|
83
111
|
});
|
|
84
112
|
}
|
|
113
|
+
// The program runs in another worker while this one, already holding the compiler and
|
|
114
|
+
// headers, prepares <bits/stdc++.h> for the next compile.
|
|
115
|
+
if (runtime && buildingPrecompiledHeader(runtime).precompiledHeader) {
|
|
116
|
+
const header = await runtime.buildPrecompiledHeader().catch(() => undefined);
|
|
117
|
+
worker.postMessage({ type: 'precompiled-header', header }, header ? [header.bytes.buffer] : []);
|
|
118
|
+
}
|
|
85
119
|
};
|
|
120
|
+
function buildingPrecompiledHeader(runtime) {
|
|
121
|
+
return runtime?.precompiledHeaderPlan && !runtime.usedPrecompiledHeader
|
|
122
|
+
? { precompiledHeader: 'building' }
|
|
123
|
+
: {};
|
|
124
|
+
}
|