Re: Proposal: Add new 'Matrix' object

2019-05-15 Thread Isiah Meadows
Check out the old (and retracted) SIMD.js proposal that aimed to bring SIMD support to JS and the related offshoot that attempted to cover WebAssembly interop as well. https://github.com/tc39/ecmascript_simd https://github.com/stoklund/portable-simd/blob/master/README.md Also, WebAssembly has a

Re: Proposal: Add new 'Matrix' object

2019-05-14 Thread kai zhu
this is wishful thinking, but i've wondered whether [wasm] sqlite3 has better potential for general-purpose multidimensional vector-operations than whatever gets spec'ed out in javascript. probably not, but there's been research on sql "dot-product-joins" [1]. [1] Dot-Product Join: Scalable

Re: Proposal: Add new 'Matrix' object

2019-05-14 Thread guest271314
A matrix could be viewed as an array of arrays or sets or maps or other values. How the values in the arrays or indexes are mapped is dependent upon the requirement. The requirement could be to map the networks of this entire planet earth; create sets of permutations; create cross word puzzles.

Re: Proposal: Add new 'Matrix' object

2019-05-13 Thread kai zhu
is that a tentative "no" as in tc39 can't easily spec some low-level linear-algebra primitives that would be useful for both dommatrix, and [gpu-accelerated] tensoflow? i do find value to industry for enhancing client-side performance of 3d visualization and ML. and i'm starting to see @Ed's

Re: Proposal: Add new 'Matrix' object

2019-05-13 Thread David Teller
According to the specs, DOMMatrix is limited to 4d matrices. They can be used to emulate 1d-3d matrices trivially. However, many applications (e.g. in graph theory) require arbitrary numbers of dimensions. I'm not really familiar with Tensorflow, but if I read the API correctly, it seems to be

Re: Proposal: Add new 'Matrix' object

2019-05-12 Thread guest271314
Neither ```DOMMatrix``` nor tensorflow functionality are exclusive to any single use case. What is the use case of the Matrix object described at this proposal? On Sun, May 12, 2019 at 7:06 PM kai zhu wrote: > from what i can tell 1) w3c dommatrix is application-specific to 3d > visualization

Re: Proposal: Add new 'Matrix' object

2019-05-12 Thread kai zhu
from what i can tell 1) w3c dommatrix is application-specific to 3d visualization and 2) tfjs is application-specific to gpu-accelerated machine-learning. the question is, is it feasible to spec a tc39 "jack-of-all-trades" linear-algebra proposal that can underpin the above two (and many other)

Re: Proposal: Add new 'Matrix' object

2019-05-12 Thread guest271314
Is this proposal different from ```DOMMatrix()``` https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix ? On Sun, May 12, 2019 at 9:51 AM Ed Saleh wrote: > Hello, > > Matrices are widely used today in in Computer Science, Engineering, and > AI. I am proposing a new object type of `Matrix([

Re: Proposal: Add new 'Matrix' object

2019-05-12 Thread J Decker
On Sun, May 12, 2019 at 2:51 AM Ed Saleh wrote: > Hello, > > Matrices are widely used today in in Computer Science, Engineering, and > AI. I am proposing a new object type of `Matrix([ []... ])` which would > make working with matrices easier, easily doing operations such matrices >

Re: Proposal: Add new 'Matrix' object

2019-05-12 Thread kai zhu
@ed, general-purpose matrix-ops work poorly with malformed data like ```[1.2, null, 4.234]``` which are ubiquitous in ux-workflow programming. my experience in javascript linear-algebra mostly devolves to writing divide-by-zero "technical-debt" that's non-reusable/application-specific. it