laneops
v0.1.0
Published
Typed vector operations powered by Rust, native SIMD and WebAssembly
Maintainers
Readme
laneops
Typed vector operations for Node.js and browsers, powered by a shared Rust core. Node uses native AVX2/NEON dispatch; browsers use Wasm SIMD with a scalar fallback. There are no runtime dependencies.
Documentation
Visit laneops.ntnyq.dev for getting started, API guides and development instructions.
Quick start
import { createVectorEngine } from 'laneops'
const engine = await createVectorEngine()
try {
const left = new Float32Array([1, 2, 3])
const right = new Float32Array([10, 20, 30])
const sum = engine.f32.add(left, right) // [11, 22, 33]
engine.f32.mul(sum, 0.5, { out: sum }) // [5.5, 11, 16.5]
console.log(engine.info) // e.g. { backend: 'native', kernel: 'neon' }
} finally {
engine.dispose()
}License
MIT License © 2026-PRESENT ntnyq. Third-party notices are included in licenses.
