numbl 0.0.12 → 0.0.15

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
@@ -1,12 +1,16 @@
1
1
  # Numbl
2
2
 
3
- Numbl is an open-source numerical computing environment that aims to be compatible with Matlab. It works by compiling `.m` source code to JavaScript and executing it directly. It can work in the browser or on the command line.
3
+ Numbl is an open-source numerical computing environment that aims to be compatible with Matlab.
4
4
 
5
5
  **Early stage project.** Numbl is under active development and new functionality is being added regularly.
6
6
 
7
7
  ## Try it in the browser
8
8
 
9
- You can try numbl directly in the browser at <https://magland.github.io/numbl> — no installation required. All execution happens locally in your browser. Note that the browser version has limited functionality and is slower than the CLI.
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.
10
+
11
+ ## Embedding in web pages
12
+
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).
10
14
 
11
15
  ## Installation
12
16
 
@@ -14,7 +18,7 @@ You can try numbl directly in the browser at <https://magland.github.io/numbl>
14
18
  npm install -g numbl
15
19
  ```
16
20
 
17
- To enable fast linear algebra (matrix inverse, SVD, eigenvalues, etc.), build the native LAPACK addon:
21
+ To enable fast linear algebra, build the native LAPACK addon:
18
22
 
19
23
  ```bash
20
24
  # Prerequisites: C++ compiler, libopenblas-dev, libfftw3-dev (or equivalents for your OS)
@@ -26,38 +30,12 @@ numbl build-addon
26
30
  ```bash
27
31
  numbl # interactive REPL
28
32
  numbl run script.m # run a .m file
29
- numbl eval "disp(eye(3))" # evaluate inline code
33
+ numbl eval "disp(eye(3))" # evaluate inline code
30
34
  numbl info # print info (JSON), including native addon status
31
35
  numbl list-builtins # list available built-in functions
32
36
  numbl --help # show all commands and options
33
37
  ```
34
38
 
35
- ## Try it with Docker
36
-
37
- Run the REPL instantly — no installation required:
38
-
39
- ```bash
40
- docker run -it node:22 npx numbl
41
- ```
42
-
43
- With plotting support (open http://localhost:8234 in your browser):
44
-
45
- ```bash
46
- docker run -it -p 8234:8234 node:22 npx numbl --plot-port 8234
47
- ```
48
-
49
- With native LAPACK support for fast linear algebra:
50
-
51
- ```bash
52
- docker run -it node:22 bash -c "apt-get update && apt-get install -y libopenblas-dev libfftw3-dev && npx numbl build-addon && npx numbl"
53
- ```
54
-
55
- With both LAPACK and plotting:
56
-
57
- ```bash
58
- docker run -it -p 8234:8234 node:22 bash -c "apt-get update && apt-get install -y libopenblas-dev libfftw3-dev && npx numbl build-addon && npx numbl --plot-port 8234"
59
- ```
60
-
61
39
  ## Upgrading
62
40
 
63
41
  ```bash
@@ -66,16 +44,6 @@ npm install -g numbl@latest
66
44
 
67
45
  Note: if you previously built the native addon, you'll need to run `numbl build-addon` again after upgrading.
68
46
 
69
- ## Documentation
70
-
71
- - [Overview](docs/overview.md) — What numbl is and how to use it
72
- - [Architecture](docs/architecture.md) — How the compiler pipeline works
73
- - [Adding built-in functions](docs/adding-builtins.md) — How to contribute new built-ins
74
- - [Test scripts](docs/test-scripts.md) — Writing and running `.m` integration tests
75
- - [Development](docs/development.md) — Setting up local development
76
- - [Performance](docs/performance.md) — How numbl achieves computational efficiency
77
- - [Documentation guidelines](docs/documentation-guidelines.md) — Conventions for writing docs
78
-
79
47
  ## Authors
80
48
 
81
49
  Jeremy Magland and Dan Fortunato, Center for Computational Mathematics, Flatiron Institute.
@@ -86,4 +54,4 @@ Apache 2.0.
86
54
 
87
55
  ## Acknowledgements
88
56
 
89
- See [ACKNOWLEDGEMENTS.md](ACKNOWLEDGEMENTS.md).
57
+ See [acknowledgements.md](docs/acknowledgements.md).