From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Damien Mattei Newsgroups: gmane.lisp.guile.devel Subject: Fwd: guile array different than srfi 25 Date: Tue, 11 Jan 2022 21:34:32 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000017deb405d55462dc" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3638"; mail-complaints-to="usenet@ciao.gmane.io" To: guile-devel Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Tue Jan 11 21:36:41 2022 Return-path: Envelope-to: guile-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n7Nsn-0000mF-87 for guile-devel@m.gmane-mx.org; Tue, 11 Jan 2022 21:36:41 +0100 Original-Received: from localhost ([::1]:57858 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n7Nsm-0000ED-BB for guile-devel@m.gmane-mx.org; Tue, 11 Jan 2022 15:36:40 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:52450) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n7Nr0-0006dQ-SS for guile-devel@gnu.org; Tue, 11 Jan 2022 15:34:50 -0500 Original-Received: from [2607:f8b0:4864:20::b2c] (port=37799 helo=mail-yb1-xb2c.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n7Nqz-0005SW-1Q for guile-devel@gnu.org; Tue, 11 Jan 2022 15:34:50 -0500 Original-Received: by mail-yb1-xb2c.google.com with SMTP id 127so431041ybb.4 for ; Tue, 11 Jan 2022 12:34:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=Rse9ths80pB5Grec7vadiBMHBPTMIeov2a7pQI116lo=; b=QHeYmnS7dN7UwwyG/JRL1IPfWnGn5aifuubC4tn50G6Yf3X59TDh5K98fkeA2+4I2n WrzTTkGDCj0qVN2NS8KA089DPCqbkxOecZZ9bxLxL3O5pUEiLSl1oPs/yte5GV2cuD5t BavZ0fVCm16KzrU1j/vcQ3dj6fzPPNUozUwb780PIiPA8xI59KgAo3gC7pNQHjeLRKMe ZaUPuArncwbyll0ndsOrce3Xd5tEQX4WaaN2WJQeNmeataeOey+meShqoxh2XsRNh2WD dRuV3N8wEMebrKAjU7xUV+ATPbSl4BrEiZH+j6g2ofAq/5oKxQ+2xKD6kTUqgpECNB4R TJLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=Rse9ths80pB5Grec7vadiBMHBPTMIeov2a7pQI116lo=; b=JalLkLZ4LuFgBm+ozgPIFwsUr3Ae1XOpn/NBg45BzdtWA4JPYizCJ/qUHUK+Vf/KA+ DR2PNZnJaYhMPdRniIDRFxJdw44XPQR4XqfJ98bRXYmx/mTzTJnTj47WJDP/bp924Rrk cqcjZ4ik7of7rNsdpCd1AI4OrRpbmPl6FobA2vcx9/WpipInhfKJE9wsDnqr2D1VfCnR 3siGZyrH6DyhI2HsPlsx7+hDBxBrr4WVAF1xC0au2f72GwY5qIki0FVGYMFQCU8rcpyj zMRjLczCgZgnkbXoHDAj7S4nm5+frzU9p/Rh/B3ibgfjxMcW6jHgSKWa9Hbfvazw4/NJ CpDw== X-Gm-Message-State: AOAM532FNoyYcMiEQOcaCV5IA9cNiibricsGAKyK5dUoe3/J/SU/I/nv buuZ7YVFm/2kOZV92DN8wKApCDhchz07j4MvQnnqeyxH X-Google-Smtp-Source: ABdhPJw3A8drSfEDlWvYbt1zXlg7+k5BX7NHjdMfdxSI6YQ/RViAjnB5tO17Gf/KRKIxRahAfFqh+MbYZM14/oa+iEU= X-Received: by 2002:a25:bb93:: with SMTP id y19mr2543550ybg.466.1641933283252; Tue, 11 Jan 2022 12:34:43 -0800 (PST) In-Reply-To: X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::b2c (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::b2c; envelope-from=damien.mattei@gmail.com; helo=mail-yb1-xb2c.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.io gmane.lisp.guile.devel:21030 Archived-At: --00000000000017deb405d55462dc Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable ---------- Forwarded message --------- From: Damien Mattei Date: Tue, Jan 11, 2022 at 9:34 PM Subject: Re: guile array different than srfi 25 To: lloda 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 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 wrote: > > hello, > > why guile array differs from SRFI 25: > make-array syntax : > https://www.gnu.org/software/guile/manual/html_node/Array-Procedures.htm= l > > (make-array 'ho 2 3) =E2=87=92 #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 > > > --00000000000017deb405d55462dc Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

---------- Forwarded message ---------
From: Damien Mattei <damien.mattei@gmail.com>
Date: T= ue, 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
<= div style=3D"font-size:large">regards
Damien

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

G= uile arrays were implemented before srfi-25 existed and aren't supposed= to be compatible with it. There are many other array srfis all with incomp= atible syntaxes...

However srfi-25 is tiny so it should = be really simple to implement it on top of Guile arrays. If you or anyone e= lse 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 :

(make-array 'ho 2 3) =E2=87=92 #2((ho ho ho) (ho ho ho)=
)


different than srfi 25:

https://srfi.schemers.o= rg/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

--00000000000017deb405d55462dc--