4 ms·
> The standard does not guarantee that this gives you an array of double-float: it may (if the implementation provides them), otherwise you get an array of elem
by varjag 9y ago
> The standard does not guarantee that this gives you an array of double-float: it may (if the implementation provides them), otherwise you get an array of element type T. This turned out to be a major difficulty for implementing portable scientific code in Common Lisp.
Wouldn't sticking to say SBCL (that does give you specialized arrays) be equivalent to using a one-implementation language that does the same?
- frivoal 9y agoFor yourself, maybe. If you intend to share the code you write (or use code written by others), then implementation differences start to matter.
- coliveira 9y agoCommon Lisp has standard ways to define that code must run on particular implementations that support a certain feature. There is nothing wrong with developing libraries supported by just a few compilers.
- varjag 9y agoIn case with lack of specialized float arrays, the worst that is going to happen is performance degradation. It's not like they are some non-standard extension.