Re: Ideas for future array SRFIs: procedures for numerical arrays Bradley Lucier (16 Apr 2026 19:30 UTC)
Re: Ideas for future array SRFIs: procedures for numerical arrays Jens Axel Søgaard (16 Apr 2026 21:42 UTC)

Re: Ideas for future array SRFIs: procedures for numerical arrays Bradley Lucier 16 Apr 2026 19:30 UTC

On 4/16/26 14:56, Peter McGoron wrote:
> I think a good start is a Scheme equivalent to the BLAS [1].

Good idea.

One thing to watch is that arrays in SRFI 231 (and I think in most other
Scheme array systems) are in row-major order.  Libraries like OpenBLAS
have no overhead for operating with matrices in row-major order, while
the original BLAS are written in Fortran and assume column-major order.

So perhaps a good start would be to develop a Scheme calling convention
and interface for the routines in OpenBLAS.  Then Schemes with a C FFI
could actually link and call the OpenBLAS routines directly, while
simple, relatively inefficient routines could be programmed in Scheme
for systems without a C FFI.

Brad