basedpl 0.1.68 → 0.1.70
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/basedpl_wasm.js +11 -1
- package/basedpl_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/basedpl_wasm.js
CHANGED
|
@@ -69,7 +69,7 @@ export function configure(base, panic) {
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
/**
|
|
72
|
-
* Every case in `speed`, text in `speed.txt`'s format, with its cost, as `basedpl::timing::costs` times it
|
|
72
|
+
* Every case in `speed`, text in `speed.txt`'s format, with its cost, as `basedpl::timing::costs` times it and `basedpl::timing::rows` encodes it with its wasm budget in its log line: an array of `{section, code, line, copy, budgets, cost, seconds}`. With `cases`, an array of codes, only those cases run. Throws when the setup or a case fails.
|
|
73
73
|
* @param {string} speed
|
|
74
74
|
* @param {string[] | null} [cases]
|
|
75
75
|
* @returns {any}
|
|
@@ -86,6 +86,16 @@ export function costs(speed, cases) {
|
|
|
86
86
|
return takeFromExternrefTable0(ret[0]);
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
+
/**
|
|
90
|
+
* Names this machine's CPU for the timing code, which can't read it in a browser, as `rustymath::timing::name_cpu` describes.
|
|
91
|
+
* @param {string} name
|
|
92
|
+
*/
|
|
93
|
+
export function name_cpu(name) {
|
|
94
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
95
|
+
const len0 = WASM_VECTOR_LEN;
|
|
96
|
+
wasm.name_cpu(ptr0, len0);
|
|
97
|
+
}
|
|
98
|
+
|
|
89
99
|
/**
|
|
90
100
|
* Every glyph's row, as JSON, for the language bar.
|
|
91
101
|
* @returns {string}
|
package/basedpl_wasm_bg.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "basedpl",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.70",
|
|
4
4
|
"description": "BasedPL, the Based-array Programming Language, is an APL-derived array language, borrowing ideas from J and BQN, with an emphasis on simple, consistent notation.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|