-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bigarray support #68
Comments
Do you have a use case for that? I'm wondering whether we should aim for a full implementation of bigarrays, or only focus on a subset that maps well to typed arrays (1 dimension, C layout, no complex numbers nor 64 bit integers). |
I never actually met a bigarray with dimension bigger than 1 in OCaml source code, while 1-dimensional bigarrays are frequent (though typically for mmap-support and simpler C FFI, use cases which may not apply to js_of_ocaml code). |
Agreed. I can't imagine anyone is really aiming for FORTRAN compatibility with Bigarrays in JavaScript. My dominant use for them is to handle external memory buffers as 1D char arrays (which works well with typed arrays). -anil On 20 Jan 2014, at 13:40, gasche notifications@github.com wrote:
|
For me it's mainly for graphics purposes, raster and geometrical data. In that context, 1 dimension, C layout is what I use. |
In case anyone wonders whether that implementation is compatible with the change on Bigarrays in trunk (or with the previous implementation), the answer is yes. Said change preserved the numerical values of existing kinds, and added a new kind value as the next consecutive integer, so using old-or-new kinds to address values in an array will work as long as it has one extra element for the new kind -- which Jérôme was careful enough to do. |
Maybe it should be installed like unix.js or the other installed javascript files and added to the META file with |
Sorry have nothing to test against at the moment. |
Not had a chance to test it myself, but just having any (slow or fast) support is great...@dbuenzli will probably care more due to his Vz work |
Rename `cps_calls` into `trampolined_calls` for clarity
I see that JavaScript's typed array have now been bound to. Are there any plan to support bigarrays by implementing them on top of typed arrays ?
The text was updated successfully, but these errors were encountered: