/ proof-of-concept / .mochi
Sign in
proof-of-concept / .mochi
.mochi / profile / README.md
164 lines · 9.7 KBPreviewCodeBlameHistoryRaw
1# Concept Collection
3This is a collection of random proof-of-concept projects, most of which are demos that can be run entirely in the web browser (client side). Many of them are centered around the [numbl project](https://numbl.org).
5## jupyterlite-numbl-kernel
7Here's a proof of concept for running MATLAB syntax in Jupyter entirely client side (no kernel, no server). It uses numbl and JupyterLite.
9[Repository](https://github.com/concept-collection/jupyterlite-numbl-kernel) · [Live](https://concept-collection.github.io/jupyterlite-numbl-kernel/)
11## Interactive MCMC samplers
13Here are a couple of demonstrations of MCMC samplers that you can watch run. They use numbl (MATLAB syntax in the browser) to do the sampling client-side in the browser. In the case of WALNUTS (the within-orbit adaptive leapfrog No-U-Turn Sampler), we use the exact MATLAB code that is a companion to the paper.
15- **[hitandrun-interactive](https://github.com/concept-collection/hitandrun-interactive)** · [live](https://concept-collection.github.io/hitandrun-interactive/#figure/sampler)
16- **[walnuts-interactive](https://github.com/concept-collection/walnuts-interactive)** · [live](https://concept-collection.github.io/walnuts-interactive/#figure/sampler)
18## Embedding & hosting numbl projects
20Here are a couple of projects that let you embed or host your own numbl/MATLAB projects entirely client side.
22- **[numbl-embed-example](https://github.com/concept-collection/numbl-embed-example)** · [live](https://concept-collection.github.io/numbl-embed-example/)
23- **[numbl-project-example](https://github.com/concept-collection/numbl-project-example)** · [live](https://concept-collection.github.io/numbl-project-example/)
25## VS Code–style IDEs
27Here are a couple of VS Code–style IDEs that run entirely in the browser — one for MATLAB syntax (via numbl), one for Stan.
29- **[numbl-web-ide](https://github.com/concept-collection/numbl-web-ide)** · [live](https://concept-collection.github.io/numbl-web-ide/)
30- **[stan-web-ide](https://github.com/concept-collection/stan-web-ide)** · [live](https://concept-collection.github.io/stan-web-ide/)
32## surfacefun examples
34[Surfacefun](https://surfacefun.readthedocs.io/en/latest/) is a MATLAB package for computing with functions defined on surfaces and solving PDEs on them to high order. Here are some examples that run surfacefun via numbl in the browser.
36- **[numbl-surfacefun-intro](https://github.com/concept-collection/numbl-surfacefun-intro)** · [live](https://concept-collection.github.io/numbl-surfacefun-intro/)
37- **[surfacefun-interactive](https://github.com/concept-collection/surfacefun-interactive)** · [live](https://concept-collection.github.io/surfacefun-interactive/)
38- **[mesh-pde-solver](https://github.com/concept-collection/mesh-pde-solver)** · [live](https://concept-collection.github.io/mesh-pde-solver/)
40## chunkie examples
42[Chunkie](https://chunkie.readthedocs.io/en/latest/) is a MATLAB package for solving boundary integral equations in two dimensions. Here are some examples that run chunkie via numbl in the browser.
44- **[numbl-chunkie](https://github.com/concept-collection/numbl-chunkie)** · [live](https://concept-collection.github.io/numbl-chunkie/)
46## Matrix multiplication benchmark
48Here's a benchmark of matrix-matrix multiply (GEMM) in the browser across several implementations: a plain JavaScript loop, WebGPU, hand-written C compiled to WASM (SIMD and threads), and a real BLAS (libFLAME) compiled to WASM, with a native reference for comparison.
50- **[matmul-bench](https://github.com/concept-collection/matmul-bench)** · [live](https://concept-collection.github.io/matmul-bench/)
52## Lazy reading of remote HDF5 files
54Here's a demo of reading large remote HDF5 files, such as [NWB](https://www.nwb.org/) neurophysiology files, directly in the browser using HTTP range requests, with no full download and no backend. It shows the approach that [neurosift](https://neurosift.app/) uses to browse these files.
56- **[remote-hdf5-lazy-read](https://github.com/concept-collection/remote-hdf5-lazy-read)** · [live](https://concept-collection.github.io/remote-hdf5-lazy-read/)
58## Scientific data compression
60- **[ans-visualizer](https://github.com/concept-collection/ans-visualizer)**
61 ([live](https://concept-collection.github.io/ans-visualizer/)).
62 A step-by-step visualizer for the Asymmetric Numeral Systems (ANS)
63 entropy-coding algorithm ([Duda et al., 2015](https://ieeexplore.ieee.org/abstract/document/7170048)).
64- **[benchcompress](https://github.com/concept-collection/benchcompress)**
65 ([results](https://concept-collection.github.io/benchcompress/),
66 [paper (WIP)](https://concept-collection.github.io/benchcompress/paper)).
67 A benchmarking framework that measures compression ratio and encode/decode
68 throughput for compression algorithms on scientific data arrays.
69- **[ephys_compression_tests](https://github.com/concept-collection/ephys_compression_tests)**
70 ([results](https://concept-collection.github.io/ephys_compression_tests/)).
71 Compression benchmarks for electrophysiology recordings.
73## Other projects
75### numbl platform: templates & tooling
77Utilities and starting points for building your own
78[numbl](https://numbl.org) projects.
80- **[numbl-figure-viewer](https://github.com/concept-collection/numbl-figure-viewer)**
81 ([live](https://concept-collection.github.io/numbl-figure-viewer/)).
82 Open and explore a figure exported from numbl, including its underlying data.
84### Peer-to-peer shared state
86- **[hitandrun-commonview](https://github.com/concept-collection/hitandrun-commonview)**
87 ([live](https://concept-collection.github.io/hitandrun-commonview/)).
88 The hit-and-run figure with a single live view shared by all visitors over a
89 WebRTC mesh; one peer runs the sampler via numbl and broadcasts to the rest.
90- **[commonview](https://github.com/concept-collection/commonview)**
91 ([live](https://concept-collection.github.io/commonview/)).
92 A minimal peer-to-peer page where every visitor shares one state (a counter):
93 nostr discovery, a WebRTC mesh, and a central-peer authority. The basis for
94 hitandrun-commonview.
96### Geometry, meshing & PDE solvers
98- **[mesh-studio](https://github.com/concept-collection/mesh-studio)**
99 ([live](https://concept-collection.github.io/mesh-studio/)).
100 Build CAD primitives or import STEP/IGES with
101 [OpenCASCADE.js](https://ocjs.org/), then inspect them in 3D — including each
102 face's true NURBS surface (polynomials on faces), not just its triangulation.
103- **[mesh-converter](https://github.com/concept-collection/mesh-converter)**
104 ([live](https://concept-collection.github.io/mesh-converter/)).
105 Convert meshes between 19 formats (PLY, OBJ, STL, VTK, Gmsh, XDMF, …) with
106 [meshio](https://github.com/nschloe/meshio) running in-browser on Pyodide;
107 inspect meshes in 3D and see what a lossy export would drop.
108- **[qhull-wasm-demo](https://github.com/concept-collection/qhull-wasm-demo)**
109 ([live](https://concept-collection.github.io/qhull-wasm-demo/)).
110 Demos and benchmarks for [qhull-wasm](https://github.com/magland/qhull-wasm),
111 which compiles [Qhull](http://www.qhull.org) to WebAssembly. Includes 2-D
112 Delaunay triangulation, 3-D convex hull, and a Delaunay benchmark with
113 matching scripts for MATLAB, Octave, and numbl.
114- **[numbl-distmesh](https://github.com/concept-collection/numbl-distmesh)**
115 ([live](https://concept-collection.github.io/numbl-distmesh/)).
116 Every example from Persson and Strang's
117 [DistMesh](https://github.com/popersson/DistMesh), meshing 2-D regions and
118 surfaces from signed distance functions.
119- **[abc-step-1000](https://github.com/concept-collection/abc-step-1000)**
120 ([live](https://concept-collection.github.io/abc-step-1000/)).
121 The first 1000 STEP files from the
122 [ABC dataset](https://deep-geometry.github.io/abc-dataset/) of CAD models
123 (Koch et al., CVPR 2019), served gzip-compressed with a JSON manifest for
124 direct download.
126### Neurophysiology data & remote access
128- **[dandiset_000986](https://github.com/concept-collection/dandiset_000986)**
129 ([visualizations](https://concept-collection.github.io/dandiset_000986/)).
130 Reproducible figures and visualizations for
131 [DANDI Dandiset 000986](https://dandiarchive.org/dandiset/000986), a set of
132 mouse auditory cortex recordings.
134### Physics & quantum systems
136- **[numbl-quantum-optics](https://github.com/concept-collection/numbl-quantum-optics)**
137 ([live](https://concept-collection.github.io/numbl-quantum-optics/)).
138 Runnable scripts accompanying the article "Quantum optics in MATLAB"
139 ([arXiv:2309.14354](https://arxiv.org/abs/2309.14354)), covering quantum
140 states, operators, and dynamics.
141- **[numbl-open-quantum-systems](https://github.com/concept-collection/numbl-open-quantum-systems)**
142 ([live](https://concept-collection.github.io/numbl-open-quantum-systems/)).
143 Code from "Coding closed and open quantum systems in MATLAB"
144 ([arXiv:1911.04906](https://arxiv.org/abs/1911.04906)), including Ising
145 dynamics, cavity-QED phase transitions, and Lindblad and non-Markovian
146 evolution.
148### Image processing
150- **[numbl-image-filter](https://github.com/concept-collection/numbl-image-filter)**
151 ([live](https://concept-collection.github.io/numbl-image-filter/)).
152 Upload an image, write a MATLAB-syntax filter, and run it on the image in the
153 browser.
155### Number theory & visual math
157- **[finite-field-visualizer](https://github.com/concept-collection/finite-field-visualizer)**
158 ([live](https://concept-collection.github.io/finite-field-visualizer/)).
159 Color-coded multiplication tables over finite (prime) fields. Step through the
160 primes to watch the structure change.
161- **[gcd-visualizer](https://github.com/concept-collection/gcd-visualizer)**
162 ([live](https://concept-collection.github.io/gcd-visualizer/)).
163 A heatmap of the greatest common divisor of every pair (i, j), laid out as a
164 color-coded table.
↑↓ move↵openescclose