[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-110770":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":8,"htmlUrl":8,"language":9,"languages":8,"totalLinesOfCode":8,"stars":10,"forks":11,"watchers":12,"openIssues":13,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":14,"stars7d":15,"stars30d":16,"stars90d":14,"forks30d":14,"starsTrendScore":17,"compositeScore":18,"rankGlobal":8,"rankLanguage":8,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":22,"hasPages":20,"topics":23,"createdAt":8,"pushedAt":24,"updatedAt":25,"readmeContent":26,"aiSummary":27,"trendingCount":14,"starSnapshotCount":14,"syncStatus":17,"lastSyncTime":28,"discoverSource":29},110770,"matlivre","campuslivre\u002Fmatlivre","campuslivre",null,"Rust",194,19,4,7,0,30,115,2,65.9,"MIT License",false,"master",true,[],"2026-11-23 19:19:40","2026-11-23 16:13:41","# MatLivre\n\n\u003C!-- release-manager:download -->\n[![Download MatLivre 0.1.7](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FDownload-v0.1.7-005FB8?style=for-the-badge&logo=windows&logoColor=white)](https:\u002F\u002Fgithub.com\u002Fcampuslivre\u002Fmatlivre\u002Freleases\u002Fdownload\u002Fv0.1.7\u002Fmatlivre-win-Setup.exe)\n\n[matlivre-win-Setup.exe](https:\u002F\u002Fgithub.com\u002Fcampuslivre\u002Fmatlivre\u002Freleases\u002Fdownload\u002Fv0.1.7\u002Fmatlivre-win-Setup.exe) · Windows installer, version 0.1.7\n\n[MatLivre-0.1.7-macOS.dmg](https:\u002F\u002Fgithub.com\u002Fcampuslivre\u002Fmatlivre\u002Freleases\u002Fdownload\u002Fv0.1.7\u002FMatLivre-0.1.7-macOS.dmg) · macOS disk image (Apple Silicon and Intel), version 0.1.7\n\u003C!-- \u002Frelease-manager:download -->\n\n**MatLivre is a fast live script editor and runtime for MATLAB code.** It opens, edits and runs\nMATLAB live scripts (`.mlx`) and plain scripts (`.m`) with results, tables and figures inline,\nin a native Windows 11 app. The language engine is an independent, clean-room implementation\nof MATLAB, written in Rust: no MATLAB installation, license or Java runtime is needed.\n\n![A live script running in MatLivre](docs\u002Fwelcome.png)\n\n- **Starts in a blink.** The app is ready in 0.3 s (1 s on a first launch). MATLAB needs\n  about 4 s for its desktop to run code and 24 s on a cold first start.\n- **Runs live scripts fast.** A typical notebook with four figures runs in 0.11 s. MATLAB's\n  Live Editor takes 4.9 s for the same file, and 14.3 s the first time: 43 to 100 times slower.\n- **Runs code fast.** On a 12-case benchmark of loops, recursion, array growth, linear\n  algebra, sorting, strings, structs and cells, MatLivre is 5.5x faster than MATLAB R2023b,\n  83x faster than GNU Octave and 83x faster than Scilab (geometric mean), with identical results\n  in all four.\n- **Speaks MATLAB.** 1,889 MATLAB and Symbolic Math Toolbox functions, MATLAB's display format,\n  error messages and semantics, checked against MATLAB R2023b output.\n- **One small program.** A single 36 MB executable that depends only on DLLs shipped with\n  Windows.\n\n## Star History\n\n\u003Ca href=\"https:\u002F\u002Fwww.star-history.com\u002F?repos=campuslivre%2Fmatlivre&type=date&legend=bottom-right\">\n \u003Cpicture>\n   \u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"https:\u002F\u002Fapi.star-history.com\u002Fchart?repos=campuslivre\u002Fmatlivre&type=date&theme=dark&legend=bottom-right\" \u002F>\n   \u003Csource media=\"(prefers-color-scheme: light)\" srcset=\"https:\u002F\u002Fapi.star-history.com\u002Fchart?repos=campuslivre\u002Fmatlivre&type=date&legend=bottom-right\" \u002F>\n   \u003Cimg alt=\"Star History Chart\" src=\"https:\u002F\u002Fapi.star-history.com\u002Fchart?repos=campuslivre\u002Fmatlivre&type=date&legend=bottom-right\" \u002F>\n \u003C\u002Fpicture>\n\u003C\u002Fa>\n\n## macOS\n\nMatLivre runs natively on macOS (Apple Silicon and Intel) with ⌘ shortcuts, tabs dragged between\nwindows and files opened from Finder. Install Rust from \u003Chttps:\u002F\u002Frustup.rs>, then:\n\n```bash\n.\u002Fbuild-mac.sh        # release build, creates dist\u002FMatLivre.app (`fast` builds quicker)\nopen dist\u002FMatLivre.app\n```\n\n## Performance\n\nMeasured on one machine (Intel Core i5-10600K, 24 GB, Windows 11) against MATLAB R2023b, GNU Octave\n11.3 and Scilab 2025.0, run one after another.\n\n| | MatLivre | MATLAB R2023b |\n|---|---:|---:|\n| App start, warm (first launch) | **0.31 s** (0.97 s) | 3.90 s desktop, 24.3 s cold `-batch` |\n| Live script with four figures, warm (first run) | **0.11 s** (0.14 s) | 4.91 s (14.30 s) in the Live Editor |\n| 12-case language benchmark, geometric mean | **5.5x faster** | 1x (Octave and Scilab: 83x slower) |\n\nAll 12 benchmark checksums agree in all four engines. MatLivre is behind MATLAB on a few\noperations (`linsolve_300`, sparse conjugate gradients, `rand` of 1e7 numbers, QR and symmetric\n`eig`), and the suites are small and favour its native loop compilation. The cold-start, live\nscript, language, sparse and everyday-operation benchmarks and the reasons for the speed\n(Cranelift-compiled loops, multithreaded linear algebra and FFT, fused elementwise math, a\nretaining allocator) are in [`docs\u002Fperformance.md`](docs\u002Fperformance.md); the scripts are in\n[`benchmarks`](benchmarks).\n\n## The app\n\n![Figures next to the code that draws them](docs\u002Fgraphics.png)\n\n- Live scripts with formatted text, code, and results inline or on the right; run a section\n  (Ctrl+Enter), run and advance (Ctrl+Shift+Enter) or run all (F5), and stop between\n  statements.\n- Live controls (sliders, drop-downs, check boxes, edit fields) in `.mlx` files.\n- Figures drawn inline: 2-D and 3-D plots, surfaces with lighting, contours, images, bar, pie,\n  histogram, polar plots and more; charts (heatmaps, box, swarm and bubble charts, pie and\n  donut charts, word clouds, stacked and parallel coordinates plots); two y axes (`yyaxis`, `plotyy`),\n  secondary axis labels, date ticks, tiled layouts, annotations, data tips and colorbars, with a crosshair that reads values off\n  the plot. Graphics objects are handles (`get`, `set`, `findobj`, `copyobj`, arrays of them). `saveas`, `print` and `exportgraphics` write PNG and SVG; `savefig` and `openfig` save and reopen MATLAB `.fig` files.\n- A files panel (open a folder as the project root, like VS Code), workspace browser, command window and floating figure windows; tabs that can\n  be dragged between windows; light and dark themes.\n- A variable viewer, like MATLAB's Variables editor (read-only): double-click a variable in the\n  workspace to open it beside the document as a grid of its elements, with numbered rows and\n  columns that stay in place while it scrolls, whatever the size of the array. Hovering a matrix\n  in the workspace previews its first rows and columns.\n- The interface in English, Portuguese, Spanish, French, German, Italian, Russian, Chinese\n  and Japanese: the system's language on first start, and a flag menu at the top right to\n  switch at any time. MATLAB output and error messages stay as MATLAB shows them.\n- Code runs on its own engine thread, so the editor never freezes while a script runs.\n- Files changed by another program (an editor, Claude Code, git) reload in their tab, as in\n  VS Code and MATLAB. A tab with unsaved changes asks instead: reload the file or keep your\n  version, and it never saves over a change it has not shown you.\n- Claude, through the Claude Code installed on your computer (no API key):\n  - **Claude panel** (Ctrl+L): chat with Claude, which can run code in your workspace, see\n    your figures, and read and edit the open documents. It asks before it runs or changes\n    anything.\n  - **Code completions**: after a pause in typing, Claude suggests the rest of the line or\n    block in grey; Tab inserts it, Esc dismisses it, Alt+\\ asks at once. Toggle them in the\n    … menu.\n  - **MCP server**: … › Connect Claude Code copies a `claude mcp add` command, after which\n    Claude Code in a terminal works in the open MatLivre window (or in a MatLivre without a\n    window, `matlivre --mcp`, when none is open).\n\n| Shortcut | Action |\n|---|---|\n| Ctrl+Enter | Run current section |\n| Ctrl+Shift+Enter | Run section and advance |\n| F5 | Run all |\n| Ctrl+Alt+Enter | Insert section break |\n| Ctrl+N \u002F Ctrl+O \u002F Ctrl+S | New \u002F Open \u002F Save |\n| Ctrl+L | Show or hide the Claude panel |\n| Tab \u002F Esc \u002F Alt+\\ | Accept \u002F dismiss \u002F request a code suggestion |\n\n## The language\n\nMATLAB compatibility is the rule: semantics, display and error messages follow MATLAB R2023b.\n[`docs\u002Fmatlab-coverage.md`](docs\u002Fmatlab-coverage.md) lists every function of the MATLAB and\nSymbolic Math Toolbox references and its status (1,889 implemented).\n\n- **Core:** N-D arrays of every numeric type, strings, complex numbers, every `format` mode,\n  regular expressions and text patterns; cells, structs, function handles, `containers.Map`,\n  `dictionary`, `categorical`, `table`, `timetable`, `timeseries`, `datetime` (with time zones),\n  `duration`.\n- **Classes and validation:** `classdef` (inheritance, handle and value semantics, events,\n  enumerations, System objects), `arguments` blocks, `inputParser`, `message` objects, `timer`.\n- **Graphs and sparse matrices:** `graph` and `digraph` algorithms and plots; sparse matrices\n  with iterative solvers, `ichol`, `ilu`, reorderings and `spy`.\n- **Mathematics:** linear algebra and factorizations, polynomials and interpolation, ODE solvers\n  (stiff, DAE, implicit, `ode` objects), delay, boundary value and parabolic PDE problems,\n  integration, optimization, statistics, FFT and filtering, computational geometry, special\n  functions, image resizing and indexed color.\n- **Symbolic Math:** exact arithmetic, `diff`, `int`, `limit`, `taylor`, `solve`, `dsolve` for\n  linear equations, Laplace, Z, Fourier and Hilbert transforms, `simplify`, symbolic matrices\n  and canonical forms, abstract functions and DAE structure tools, `subexpr`, `symmatrix`,\n  special functions, number theory, units of measurement.\n- **Files:** text and CSV, Excel, MAT files, images, audio, `Tiff`, JSON, XML, zip and tar.\n\nTry [`examples\u002Fwelcome.m`](examples\u002Fwelcome.m), [`examples\u002Fgraphics.m`](examples\u002Fgraphics.m) and\n[`examples\u002Ffeatures.m`](examples\u002Ffeatures.m).\n\n## Build from source\n\n```bash\ncargo run -p livre-app --release\n```\n\nPass a file to open it: `cargo run -p livre-app --release -- path\\to\\script.mlx`. On Windows,\n`build.bat` builds and `run.bat [file]` builds and starts the app. `target\\release\\matlivre.exe`\nlinks the C runtime statically (`.cargo\u002Fconfig.toml`), so it runs on any Windows 10\u002F11 machine\nwithout installing anything.\n\n`matlivre-cli script.m` runs a script headless and prints its output.\n\n### Linux\n\nInstall the build dependencies (Ubuntu\u002FDebian) and Rust (via rustup), then build:\n\n```bash\nsudo apt install build-essential pkg-config libgtk-3-dev libxkbcommon-dev libwayland-dev\ncargo run -p livre-app --release\n```\n\nFor binaries that run on older distributions (glibc 2.31: Ubuntu 20.04, Debian 11, Linux Mint 20\nand newer), `tools\u002Flinux\u002Fbuild-portable.sh` builds with `cargo zigbuild` against glibc 2.31 and\nchecks the result with `objdump -T`; the AppImage release is built this way. It needs\n`cargo install cargo-zigbuild --locked` and [Zig](https:\u002F\u002Fziglang.org\u002Fdownload) on the `PATH`.\n\n`tools\u002Flinux\u002Fpackage.sh` builds and packs `dist\u002Fmatlivre-linux-\u003Carch>.tar.gz`; its\n`install.sh` installs `matlivre` and `matlivre-cli` into `~\u002F.local\u002Fbin` and adds MatLivre to\nthe application menu.\n\n## Project layout\n\n| Crate | Purpose |\n|---|---|\n| `crates\u002Flivre-lang` | Lexer, parser, interpreter and native-code compiler, values and MATLAB display, builtins, classdef, Symbolic Math, figure model |\n| `crates\u002Flivre-doc` | Live script document model; `.mlx` (OPC\u002FZIP + WordprocessingML) and `.m` reader\u002Fwriter |\n| `crates\u002Flivre-app` | The desktop app (eframe\u002Fegui): editor, outputs, plots, workspace, command window |\n\n## Clean-room process\n\nMatLivre was written from observed behavior only. The live script format is described in\n[`docs\u002FSPEC-live-script.md`](docs\u002FSPEC-live-script.md), produced by inspecting the `.mlx` data\nfiles shipped with MATLAB and the public behavior of the Live Editor. Language behavior is\nchecked by running code in MATLAB and comparing outputs. No MathWorks source code was read or\ncopied.\n\n## Tests\n\n```bash\ncargo test --workspace\n```\n\nThe Arch Linux workflow runs the workspace tests with Arch's packaged Rust toolchain,\nthen builds both binaries and exercises the CLI and headless MCP PNG\u002FSVG exports.\nTo run the binary smoke checks locally after `cargo build --locked --workspace --bins`:\n\n```bash\npython tools\u002Flinux\u002Fsmoke.py\n```\n\nThese checks need no display server or MATLAB installation. They do not validate the\ninteractive GUI, desktop portals, or a particular window manager.\n\nThe tests compare MatLivre's output with MATLAB R2023b's for each function family.\n`livre-doc\u002Ftests\u002Fmatlab_samples.rs` round-trips the live scripts shipped with a local MATLAB\ninstallation when one is present. Benchmarks: [`benchmarks\u002Frun_bench.bat`](benchmarks\u002Frun_bench.bat)\n(language), [`benchmarks\u002Fcoldstart.ps1`](benchmarks\u002Fcoldstart.ps1) (start-up) and\n[`benchmarks\u002Flivescript`](benchmarks\u002Flivescript) (live scripts).\n\n## Known limits\n\nThe main ones: saved outputs in `.mlx` files are not restored on opening (run the script to\nregenerate them), rich text in live scripts is shown as plain text, and Windows is the main\nplatform (Linux builds and runs, macOS builds natively). The full list of gaps in the language,\nthe Symbolic Math Toolbox and the charts is in [`docs\u002Fknown-limits.md`](docs\u002Fknown-limits.md);\nunimplemented functions are in [`docs\u002Fmatlab-coverage.md`](docs\u002Fmatlab-coverage.md).\n\n## License\n\n[MIT](LICENSE)\n","MatLivre 是一个轻量级、跨平台的 MATLAB 兼容型实时脚本编辑与运行环境，专为快速启动和高效执行设计。它采用 Rust 独立实现 MATLAB 语言核心，无需 MATLAB 许可证、安装或 Java 运行时，原生支持 .mlx 和 .m 文件的编辑、内联结果渲染（含表格与图表），并兼容 1800+ MATLAB 及符号数学工具箱函数。启动时间仅约 0.3 秒，执行速度显著优于 MATLAB、Octave 和 Scilab。适用于教学演示、算法快速验证、离线科研计算及资源受限环境下的 MATLAB 替代需求。","2026-11-24 04:39:33","CREATED_QUERY"]