scijs/ndarray

Why are there so many separate modules?

Closed this issue · 2 comments

I was just wondering why get-pixels and save-pixels were separate - same with ndarray-pack and ndarray-unpack.

I think it might be neat if there was a "super-pack" that could be included, like ndarray-signals and then you could use ndsignals.convolve(), etc.

This question has been addressed several times:

#3

Currently I have no plan to build or support such a thing, but if you want to create one on your own, go knock yourself out.

#3 seems to be about bundling things into core. I was wondering about bundling additional modules together, although I can see some of the arguments might hold.

I think that unless the individual models are about to disappear (or be clearly namespaced, like ndarray-signals-convolve) then it would introduce non-obvious redundancy (as well as adding more modules to the already-large number in NPM), so probably isn't a good idea.

I'm doing various things on Node, and I'm unlikely to move to the browser soon, so size isn't really a concern. I might experiment with a single super-bundle.with everything in it...