lrlna / olivaw

■□ elementary cellular automata library □■
MIT License
24 stars 2 forks source link

allocate a buffer size to automata array #1

Open lrlna opened 7 years ago

lrlna commented 7 years ago

this is going to get real messy real fast with larger automata calculations; this could be a good first step solution.

lrlna commented 7 years ago

actually do this kind of things instead:

// create a buff space thinggyyy
var buffer = new ArrayBuffer(24)
// create a view for it and manipulate the view instead
var automata = new Uint32Array(buffer, 0, 1);

readings: typed arrays, typed arrays spec, array buffer spec