sbmlsim-core 0.1.0 → 0.2.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 +2 -2
- package/loader.mjs +1 -1
- package/package.json +1 -1
- package/panels.mjs +1 -1
- package/runtime/THIRD_PARTY.md +30 -1
- package/runtime/engine.wasm +0 -0
- package/runtime/mathlib.wasm +0 -0
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ npm install sbmlsim-core
|
|
|
20
20
|
or import the modules from a CDN, which serves them with the headers every origin may read:
|
|
21
21
|
|
|
22
22
|
```js
|
|
23
|
-
import { createPanelEndpoint } from "https://cdn.jsdelivr.net/npm/sbmlsim-core@0.
|
|
23
|
+
import { createPanelEndpoint } from "https://cdn.jsdelivr.net/npm/sbmlsim-core@0.2.0/panels.mjs";
|
|
24
24
|
```
|
|
25
25
|
|
|
26
26
|
A pool started from a module of another origin starts its workers through a module of the page's own origin, so the CDN works for the workers as well. The engine needs fixed-width SIMD of WebAssembly: Chrome 91, Firefox 89, Safari 16.4 or newer, Node 20 or newer.
|
|
@@ -86,7 +86,7 @@ pool.close();
|
|
|
86
86
|
<!-- the IIFE build of sbmlsim-web, a release with registerEndpoint -->
|
|
87
87
|
<script src="sbmlsim-web.iife.js"></script>
|
|
88
88
|
<script type="module">
|
|
89
|
-
import { createPanelEndpoint } from "https://cdn.jsdelivr.net/npm/sbmlsim-core@0.
|
|
89
|
+
import { createPanelEndpoint } from "https://cdn.jsdelivr.net/npm/sbmlsim-core@0.2.0/panels.mjs";
|
|
90
90
|
|
|
91
91
|
sbmlsimWeb.registerEndpoint(
|
|
92
92
|
"local:glimepiride",
|
package/loader.mjs
CHANGED
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
// keeps as a string and `JSON.stringify` writes back, and the engine reads.
|
|
38
38
|
|
|
39
39
|
/** The contract of a model description this loader loads. */
|
|
40
|
-
export const MODEL_CONTRACT = "model/
|
|
40
|
+
export const MODEL_CONTRACT = "model/2";
|
|
41
41
|
|
|
42
42
|
/** The most pages of 64 KiB the memory of an instance grows to: 2 GiB, as the wasmtime host. */
|
|
43
43
|
export const MAX_MEMORY_PAGES = 32768;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sbmlsim-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Simulate SBML models compiled to WebAssembly in browsers and Node: the JavaScript host of sbmlsim-core with its engine (CVODE, KLU), a pool of workers and the panel endpoint of sbmlsim",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sbml",
|
package/panels.mjs
CHANGED
|
@@ -58,7 +58,7 @@ import { EngineError } from "./loader.mjs";
|
|
|
58
58
|
import { createPool, defaultWorkers } from "./pool.mjs";
|
|
59
59
|
|
|
60
60
|
/** The version of sbmlsim-core (`js/package.json`), which the provenance of a run names. */
|
|
61
|
-
export const CORE_VERSION = "0.
|
|
61
|
+
export const CORE_VERSION = "0.2.0";
|
|
62
62
|
|
|
63
63
|
/** The engine a provenance names. */
|
|
64
64
|
export const ENGINE = `sbmlsim-core ${CORE_VERSION}`;
|
package/runtime/THIRD_PARTY.md
CHANGED
|
@@ -17,11 +17,13 @@ KLU and BTF are under the GNU Lesser General Public License 2.1 or later and are
|
|
|
17
17
|
|
|
18
18
|
Also compiled into the modules, under permissive licenses whose texts are in their sources: the Rust standard library (MIT OR Apache-2.0); in `engine.wasm` the crates serde, serde_json, itoa, rand_core, rand_pcg and thiserror (MIT OR Apache-2.0), memchr (Unlicense OR MIT) and zmij (MIT), and wasi-libc, which the Rust target wasm32-wasip1 links (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT, with parts of musl under MIT; the C of the solvers is compiled against the sysroot of wasi-sdk 34); in `mathlib.wasm` the crate libm (MIT). `model.wasm` contains no third-party code.
|
|
19
19
|
|
|
20
|
+
`mathlib.wasm` and the crate `sbmlsim-mathlib` it is built from (which every native build of the compiler links for constant folding) also contain `exp`, `log` and `pow` of ARM optimized-routines (https://github.com/ARM-software/optimized-routines, commit 20859d3fd9e797dde592c489c8ef7d383f778620: `math/exp.c`, `math/log.c`, `math/pow.c` and their tables), ported to Rust in `crates/mathlib/src/arm`. optimized-routines is under `MIT OR Apache-2.0 WITH LLVM-exception` and is used here under the MIT License, whose text is below.
|
|
21
|
+
|
|
20
22
|
SuiteSparse_config states its license in the header of `third_party/SuiteSparse/SuiteSparse_config/SuiteSparse_config.c`: "SuiteSparse_config, Copyright (c) 2012-2023, Timothy A. Davis. All Rights Reserved. SPDX-License-Identifier: BSD-3-clause", the license of the text of AMD and COLAMD below.
|
|
21
23
|
|
|
22
24
|
## License texts
|
|
23
25
|
|
|
24
|
-
The texts below are copied verbatim from the files of the submodules named in their headings.
|
|
26
|
+
The texts below are copied verbatim from the files of the submodules or repositories named in their headings.
|
|
25
27
|
|
|
26
28
|
### SUNDIALS: `third_party/sundials/LICENSE`
|
|
27
29
|
|
|
@@ -211,6 +213,33 @@ COLAMD License: BSD 3-clause
|
|
|
211
213
|
DAMAGE.
|
|
212
214
|
```
|
|
213
215
|
|
|
216
|
+
### ARM optimized-routines: `LICENSE` (its MIT License part) at commit 20859d3fd9e797dde592c489c8ef7d383f778620
|
|
217
|
+
|
|
218
|
+
```text
|
|
219
|
+
MIT License
|
|
220
|
+
-----------
|
|
221
|
+
|
|
222
|
+
Copyright (c) 1999-2022, Arm Limited.
|
|
223
|
+
|
|
224
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
225
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
226
|
+
in the Software without restriction, including without limitation the rights
|
|
227
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
228
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
229
|
+
furnished to do so, subject to the following conditions:
|
|
230
|
+
|
|
231
|
+
The above copyright notice and this permission notice shall be included in all
|
|
232
|
+
copies or substantial portions of the Software.
|
|
233
|
+
|
|
234
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
235
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
236
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
237
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
238
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
239
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
240
|
+
SOFTWARE.
|
|
241
|
+
```
|
|
242
|
+
|
|
214
243
|
### GNU Lesser General Public License 2.1 (of KLU and BTF): `third_party/SuiteSparse/KLU/Doc/lesser.txt`
|
|
215
244
|
|
|
216
245
|
```text
|
package/runtime/engine.wasm
CHANGED
|
Binary file
|
package/runtime/mathlib.wasm
CHANGED
|
Binary file
|