numbl 0.0.18 → 0.0.20
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 +48 -11
- package/binding.gyp +2 -1
- package/dist-cli/cli.js +6391 -3183
- package/native/lapack_addon.cpp +2 -0
- package/native/lapack_common.h +1 -0
- package/native/lapack_fft_batch.cpp +192 -0
- package/package.json +5 -1
package/README.md
CHANGED
|
@@ -4,15 +4,27 @@ Numbl is an open-source numerical computing environment that aims to be compatib
|
|
|
4
4
|
|
|
5
5
|
**Early stage project.** Numbl is under active development and new functionality is being added regularly.
|
|
6
6
|
|
|
7
|
+
[Intro presentation](https://magland.github.io/mip-numbl-presentation)
|
|
8
|
+
|
|
7
9
|
## Try it in the browser
|
|
8
10
|
|
|
9
|
-
|
|
11
|
+
[](https://numbl.org/embed-repl)
|
|
12
|
+
|
|
13
|
+
Click the terminal above to launch an interactive REPL — no installation required. All execution happens locally in your browser. The full browser IDE with file management and plotting is available at <https://numbl.org>.
|
|
14
|
+
|
|
15
|
+
Numbl scripts can also be embedded in HTML and Markdown pages (including GitHub Pages). See the [numbl-embed-example](https://magland.github.io/numbl-embed-example/) for usage and a [live demo](https://magland.github.io/numbl-embed-example/example1).
|
|
16
|
+
|
|
17
|
+
## Command-line usage
|
|
10
18
|
|
|
11
|
-
|
|
19
|
+
For full performance, use the command-line version. If you have Node.js installed, you can run numbl directly with `npx` (no install needed):
|
|
12
20
|
|
|
13
|
-
|
|
21
|
+
```bash
|
|
22
|
+
npx numbl # interactive REPL
|
|
23
|
+
npx numbl eval "disp(eye(3))" # evaluate inline code
|
|
24
|
+
npx numbl run script.m # run a .m file
|
|
25
|
+
```
|
|
14
26
|
|
|
15
|
-
|
|
27
|
+
Or install globally for regular use:
|
|
16
28
|
|
|
17
29
|
```bash
|
|
18
30
|
npm install -g numbl
|
|
@@ -27,14 +39,39 @@ numbl build-addon
|
|
|
27
39
|
|
|
28
40
|
## Usage
|
|
29
41
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
numbl
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
42
|
+
<!-- BEGIN CLI HELP -->
|
|
43
|
+
```
|
|
44
|
+
Usage: numbl <command> [options]
|
|
45
|
+
|
|
46
|
+
Commands:
|
|
47
|
+
run <file.m> Run a .m file
|
|
48
|
+
eval "<code>" Evaluate inline code
|
|
49
|
+
run-tests [dir] Run .m test scripts (default: numbl_test_scripts/)
|
|
50
|
+
build-addon Build native LAPACK addon
|
|
51
|
+
info Print machine-readable info (JSON)
|
|
52
|
+
list-builtins List available built-in functions
|
|
53
|
+
mip <subcommand> Package manager (install, uninstall, list, avail, info)
|
|
54
|
+
(no command) Start interactive REPL
|
|
55
|
+
|
|
56
|
+
Options (for REPL):
|
|
57
|
+
--plot Enable plot server
|
|
58
|
+
--plot-port <port> Set plot server port (implies --plot)
|
|
59
|
+
|
|
60
|
+
Options (for run and eval):
|
|
61
|
+
--dump-js <file> Write all generated JavaScript (main + JIT) to file
|
|
62
|
+
--dump-ast Print AST as JSON
|
|
63
|
+
--verbose Detailed logging to stderr
|
|
64
|
+
--stream NDJSON output mode
|
|
65
|
+
--path <dir> Add extra workspace directory
|
|
66
|
+
--plot Enable plot server
|
|
67
|
+
--plot-port <port> Set plot server port (implies --plot)
|
|
68
|
+
--add-script-path Add the script's directory to the workspace (run only)
|
|
69
|
+
--no-line-tracking Omit $rt.$file/$rt.$line from generated JS
|
|
70
|
+
|
|
71
|
+
Environment variables:
|
|
72
|
+
NUMBL_PATH Extra workspace directories (separated by :)
|
|
37
73
|
```
|
|
74
|
+
<!-- END CLI HELP -->
|
|
38
75
|
|
|
39
76
|
## Upgrading
|
|
40
77
|
|
package/binding.gyp
CHANGED