Skip to content

TypeScript SDK with NDArray, async TBB dispatch, and browser test suite - #14

Merged
ZigaSajovic merged 1 commit into
mainfrom
develop
Feb 22, 2026
Merged

TypeScript SDK with NDArray, async TBB dispatch, and browser test suite#14
ZigaSajovic merged 1 commit into
mainfrom
develop

Conversation

@ZigaSajovic

Copy link
Copy Markdown
Member

WASM-compiled TypeScript SDK built on emscripten with SharedArrayBuffer async dispatch. NDArray is the core data type — a NumPy-style shaped array living in WASM memory with broadcasting, parallel reductions, and zero-copy views. All heavy operations dispatch to TBB worker threads via async variants.

  • NDArray: construction, arithmetic, broadcasting, reductions, math functions, indexing (take, takeAlongAxis, booleanIndex), sorting, set operations, norm, atan2, normalize, eye, assign, iteration, dtype casting
  • Mesh and Curves types wrapping C++ polygons_buffer and curves_buffer
  • Primitives: Point, Vector, Segment, Triangle, Ray, Line, Plane, AABB, Polygon
  • Cut module: boolean operations, isobands, embedded intersection curves
  • Spatial module: distance, closest point, neighbor search, ray cast, intersects
  • IO: STL and OBJ reading
  • Async namespace for all heavy operations (tf.async.*)
  • Browser test suite covering all modules

Closes #13

WASM-compiled TypeScript SDK built on emscripten with SharedArrayBuffer
async dispatch. NDArray is the core data type — a NumPy-style shaped array
living in WASM memory with broadcasting, parallel reductions, and zero-copy
views. All heavy operations dispatch to TBB worker threads via async variants.

- NDArray: construction, arithmetic, broadcasting, reductions, math functions,
  indexing (take, takeAlongAxis, booleanIndex), sorting, set operations,
  norm, atan2, normalize, eye, assign, iteration, dtype casting
- Mesh and Curves types wrapping C++ polygons_buffer and curves_buffer
- Primitives: Point, Vector, Segment, Triangle, Ray, Line, Plane, AABB, Polygon
- Cut module: boolean operations, isobands, embedded intersection curves
- Spatial module: distance, closest point, neighbor search, ray cast, intersects
- IO: STL and OBJ reading
- Async namespace for all heavy operations (tf.async.*)
- Browser test suite covering all modules

Closes #13
@ZigaSajovic
ZigaSajovic merged commit 7a9a094 into main Feb 22, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NDArray: WASM-Resident Typed Array with Broadcasting

1 participant