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 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
- You can try numbl directly in the browser at <https://numbl.org> — no installation required. All execution happens locally in your browser. Note that the browser version has limited functionality and is slower than the desktop/command-line version.
11
+ [![numbl REPL](docs/repl-preview.svg)](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
- ## Embedding in web pages
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
- Numbl scripts can be embedded in HTML and Markdown pages (including GitHub Pages). See the [numbl-embed-example](https://magland.github.io/numbl-embed-example/) for usage info and a [live demo](https://magland.github.io/numbl-embed-example/example1).
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
- ## Installation
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
- ```bash
31
- numbl # interactive REPL
32
- numbl run script.m # run a .m file
33
- numbl eval "disp(eye(3))" # evaluate inline code
34
- numbl info # print info (JSON), including native addon status
35
- numbl list-builtins # list available built-in functions
36
- numbl --help # show all commands and options
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
@@ -13,7 +13,8 @@
13
13
  "native/lapack_eig.cpp",
14
14
  "native/lapack_chol.cpp",
15
15
  "native/lapack_qz.cpp",
16
- "native/lapack_fft.cpp"
16
+ "native/lapack_fft.cpp",
17
+ "native/lapack_fft_batch.cpp"
17
18
  ],
18
19
  "include_dirs": [
19
20
  "<!@(node -p \"require('node-addon-api').include\")",