unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* guile array different than srfi 25
@ 2022-01-11 11:19 Damien Mattei
  2022-01-11 17:22 ` lloda
  0 siblings, 1 reply; 3+ messages in thread
From: Damien Mattei @ 2022-01-11 11:19 UTC (permalink / raw)
  To: guile-devel

[-- Attachment #1: Type: text/plain, Size: 596 bytes --]

hello,

why guile array differs from SRFI 25:
make-array syntax :
 https://www.gnu.org/software/guile/manual/html_node/Array-Procedures.html

(make-array 'ho 2 3) ⇒ #2((ho ho ho) (ho ho ho))

different than srfi 25:

https://srfi.schemers.org/srfi-25/srfi-25.html

(make-array shape obj)


Returns a newly allocated array whose shape is given byshape.  If obj
is provided, then each element is
initialized to it. Otherwise the initial contents of each element is
unspecified. The array does not retain a dependence toshape.

it creates incompatibilties in code .

Damien

[-- Attachment #2: Type: text/html, Size: 1375 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: guile array different than srfi 25
  2022-01-11 11:19 guile array different than srfi 25 Damien Mattei
@ 2022-01-11 17:22 ` lloda
       [not found]   ` <CADEOade=fcRVnKrHdUpCUUcJKQGW1m-fZo1WEz3xkcVn3NL8RA@mail.gmail.com>
  0 siblings, 1 reply; 3+ messages in thread
From: lloda @ 2022-01-11 17:22 UTC (permalink / raw)
  To: Damien Mattei; +Cc: guile-devel

[-- Attachment #1: Type: text/plain, Size: 1225 bytes --]


Guile arrays were implemented before srfi-25 existed and aren't supposed to be compatible with it. There are many other array srfis all with incompatible syntaxes...

However srfi-25 is tiny so it should be really simple to implement it on top of Guile arrays. If you or anyone else submits a patch, I'm sure it will be considered.

Regards

	Daniel


> On 11 Jan 2022, at 12:19, Damien Mattei <damien.mattei@gmail.com> wrote:
> 
> hello,
> 
> why guile array differs from SRFI 25:
> make-array syntax :
>  https://www.gnu.org/software/guile/manual/html_node/Array-Procedures.html <https://www.gnu.org/software/guile/manual/html_node/Array-Procedures.html>
> 
> (make-array 'ho 2 3) ⇒ #2((ho ho ho) (ho ho ho))
> 
> 
> different than srfi 25:
> 
> https://srfi.schemers.org/srfi-25/srfi-25.html <https://srfi.schemers.org/srfi-25/srfi-25.html>
> 
> (make-array shape obj)
> 
> 
> Returns a newly allocated array whose shape is given by
> shape.  If obj is provided, then each element is
> initialized to it. Otherwise the initial contents of each element is
> unspecified. The array does not retain a dependence to
> shape.
> 
> 
> it creates incompatibilties in code .
> 
> Damien


[-- Attachment #2: Type: text/html, Size: 2726 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Fwd: guile array different than srfi 25
       [not found]   ` <CADEOade=fcRVnKrHdUpCUUcJKQGW1m-fZo1WEz3xkcVn3NL8RA@mail.gmail.com>
@ 2022-01-11 20:34     ` Damien Mattei
  0 siblings, 0 replies; 3+ messages in thread
From: Damien Mattei @ 2022-01-11 20:34 UTC (permalink / raw)
  To: guile-devel

[-- Attachment #1: Type: text/plain, Size: 1471 bytes --]

---------- Forwarded message ---------
From: Damien Mattei <damien.mattei@gmail.com>
Date: Tue, Jan 11, 2022 at 9:34 PM
Subject: Re: guile array different than srfi 25
To: lloda <lloda@sarc.name>


sorry i have no time for this, perhaps only the creation of array differs
regards
Damien

On Tue, Jan 11, 2022 at 6:22 PM lloda <lloda@sarc.name> wrote:

>
> Guile arrays were implemented before srfi-25 existed and aren't supposed
> to be compatible with it. There are many other array srfis all with
> incompatible syntaxes...
>
> However srfi-25 is tiny so it should be really simple to implement it on
> top of Guile arrays. If you or anyone else submits a patch, I'm sure it
> will be considered.
>
> Regards
>
> Daniel
>
>
> On 11 Jan 2022, at 12:19, Damien Mattei <damien.mattei@gmail.com> wrote:
>
> hello,
>
> why guile array differs from SRFI 25:
> make-array syntax :
>  https://www.gnu.org/software/guile/manual/html_node/Array-Procedures.html
>
> (make-array 'ho 2 3) ⇒ #2((ho ho ho) (ho ho ho))
>
> different than srfi 25:
>
> https://srfi.schemers.org/srfi-25/srfi-25.html
>
> (make-array shape obj)
>
>
> Returns a newly allocated array whose shape is given byshape.  If obj is provided, then each element is
> initialized to it. Otherwise the initial contents of each element is
> unspecified. The array does not retain a dependence toshape.
>
> it creates incompatibilties in code .
>
> Damien
>
>
>

[-- Attachment #2: Type: text/html, Size: 3028 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-01-11 20:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-11 11:19 guile array different than srfi 25 Damien Mattei
2022-01-11 17:22 ` lloda
     [not found]   ` <CADEOade=fcRVnKrHdUpCUUcJKQGW1m-fZo1WEz3xkcVn3NL8RA@mail.gmail.com>
2022-01-11 20:34     ` Fwd: " Damien Mattei

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).