From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by sourceware.org (Postfix) with ESMTPS id 3448C3858D38 for ; Mon, 16 Oct 2023 06:24:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3448C3858D38 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 3448C3858D38 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::62c ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1697437501; cv=none; b=lW/Ekp5ObP19+AmSNpQ58rP2HMWz0OR97JwHAZvJQ1suoRW/5SzyqvBDJktCZSURV3o34cqMf8MbXgVvlrmsEyqgRGlMuC0YsOAwaIMpQc5pz0Zv74MGvSJGQtm4IVCQwqdxzPh+r7mf6Fu1jNZKKlLa8VXyRr4TG1OmuH3Hl/A= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1697437501; c=relaxed/simple; bh=yd9O/OFlQTqnw99HZGQYNlLhIrkJkq2clTzn0XA9DY8=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=mIH9MYtFco/fgkrm0g/x46bTLzq2pWddlwsX2EXqTW3ta1vbk6vojm8uJreI4/HviTXtWx6wFAVv6c+lQ5Zo+WW35ta16uPY4Hs1zOedivK0DSEYsq9VV68bCxvkLtdfS6+Siw4zW0JNsL/+jLuERv8c2UG/J9dAgyVanSvPeDo= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-99c3c8adb27so639418566b.1 for ; Sun, 15 Oct 2023 23:24:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697437498; x=1698042298; darn=sourceware.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Yc5+3yWC6EbhNTXlrS4XFuDGhqtBzh/AFhfRIXLZJ1o=; b=PMO5lBD4WcIupPe8bjgqYWYdz216c1yynLrkEGuCML+mr8hlRqjDC/yzzzD2f6xT4v 1NUzLy+fEWhZCU6c/NClh7vwpMUBRDDDMI2hAAaz0eEB5ean0JxvVLrdlnmORQeWCL1/ GCAgr/GwlUfQloxhWRq51uwF+MRRiRr211ldDZMiq5yXwFwUrLohUtJqxwsoyhTAx7i8 SJ8LH+hVOciAbiZSezu+z+fo1cV/lXB5K1l6Te7Kc0lKh6jU6uvzednNHCep6nO3RNn0 9oaGArz/Jkn8atDjLBvC40r6MZ6xoXl8x5z267fjXpqZ4Y0ZOLEoCnkFOg+pQhbbEW17 TDeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697437498; x=1698042298; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Yc5+3yWC6EbhNTXlrS4XFuDGhqtBzh/AFhfRIXLZJ1o=; b=Fg7sp+MJvCDNUZIqZHxzDEtl/qzaCW00yX3XTFodoO/sh6KnoZ+q03aqzRNDUSfrOc DXFbi/Em5g8gc41lCyl2aP9ynNM+snlllAoUBBZo7ep/iIAVWTeIDqxC1Voi/2ybqtgY CK9c9MlSyo2nDoeCTbIfX9Fwz27KiikbAPkSzmbHp+awjQIYS3VxUzYRSX0J8jBN13ho xsjHGuXr98JoZr4r/2R2n1dBYteNJ78F/JPsKlaaM6TP2HTclrU2KIwzYjINUnx3Z9ZW O4CnDTnaxap2eOguzhD0ZN4xjj6a3CF/pEaDqGnVE6ufaN9l7Rvt5wtw10J3Al4WmohQ vekA== X-Gm-Message-State: AOJu0YyHPKW+9Z64b9sncf1+ZYT+4O2g442TmDE7/pmNGpYf3wj+hzdu fjTaZvZZqbQ1/Qm/mpdhuQumHq5DapQcm96XcI85r3ZC5JQ= X-Google-Smtp-Source: AGHT+IF2zIGEEY2daL1S25c5vyLKcQ2E0HPoJla3atrlwKSXzSSBc3tXRwsHZsi6U42UkpjiSxOxkfHZbNl68zKqwEo= X-Received: by 2002:a17:907:780d:b0:9b6:4df9:e5b5 with SMTP id la13-20020a170907780d00b009b64df9e5b5mr28530600ejc.61.1697437497642; Sun, 15 Oct 2023 23:24:57 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Damien Mattei Date: Mon, 16 Oct 2023 08:24:46 +0200 Message-ID: Subject: Re: class definition To: Per Bothner Cc: kawa mailing list Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: the starting line for kawa is without --r5rs: kawa -Dkawa.import.path=3D".:/Users/mattei/Dropbox/git/Scheme-PLUS-for-Kawa= " On Mon, Oct 16, 2023 at 8:23=E2=80=AFAM Damien Mattei wrote: > > effectively there was no more need of --r5rs flag: > > > (require 'srfi-1) ; any,every > (require 'srfi-69) ;; hash table > > ;; try include , use include-relative if problems > (include "../Scheme-PLUS-for-Kawa/rec.scm") ; rec does not exist in > Kawa (no SRFI 31) > (include "../Scheme-PLUS-for-Kawa/def.scm") > (include "../Scheme-PLUS-for-Kawa/set-values-plus.scm") > (include "../Scheme-PLUS-for-Kawa/for_next_step.scm") > (include "../Scheme-PLUS-for-Kawa/declare.scm") > (include "../Scheme-PLUS-for-Kawa/condx.scm") > (include "../Scheme-PLUS-for-Kawa/block.scm") > (include "../Scheme-PLUS-for-Kawa/not-equal.scm") > (include "../Scheme-PLUS-for-Kawa/exponential.scm") > (include "../Scheme-PLUS-for-Kawa/while-do-when-unless.scm") > (include "../Scheme-PLUS-for-Kawa/repeat-until.scm") > (include "../Scheme-PLUS-for-Kawa/modulo.scm") > (include "../Scheme-PLUS-for-Kawa/bitwise.scm") > > > (include "../Scheme-PLUS-for-Kawa/slice.scm") > > (include "../Scheme-PLUS-for-Kawa/scheme-infix.scm") > > (include "../Scheme-PLUS-for-Kawa/assignment.scm") > (include "../Scheme-PLUS-for-Kawa/apply-square-brackets.scm") > > (include "../Scheme-PLUS-for-Kawa/array.scm") > > > > > (base) mattei@MacBook-Pro-Touch-Bar AI_Deep_Learning % kawa > -Dkawa.import.path=3D".:/Users/mattei/Dropbox/git/Scheme-PLUS-for-Kawa" > #|kawa:1|# (load > "exo_retropropagationNhidden_layers_matrix_v2_by_vectors4kawa+.scm") > /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme= -PLUS-for-Kawa/assignment.scm:640:7: > warning - void-valued expression where value is needed > /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme= -PLUS-for-Kawa/assignment.scm:669:7: > warning - void-valued expression where value is needed > /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme= -PLUS-for-Kawa/assignment.scm:675:7: > warning - void-valued expression where value is needed > /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme= -PLUS-for-Kawa/assignment.scm:818:8: > warning - void-valued expression where value is needed > /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme= -PLUS-for-Kawa/assignment.scm:824:8: > warning - void-valued expression where value is needed > /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme= -PLUS-for-Kawa/assignment.scm:318:13: > warning - no declaration seen for parse-square-brackets-arguments > /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme= -PLUS-for-Kawa/assignment.scm:403:43: > warning - no declaration seen for bracket-apply > /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme= -PLUS-for-Kawa/assignment.scm:407:43: > warning - no declaration seen for bracket-apply > /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme= -PLUS-for-Kawa/assignment.scm:466:24: > warning - no declaration seen for > find-setter-for-overloaded-square-brackets > /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme= -PLUS-for-Kawa/assignment.scm:546:5: > warning - no declaration seen for function-array-n-dim-set! > /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme= -PLUS-for-Kawa/assignment.scm:553:21: > warning - no declaration seen for > find-setter-for-overloaded-square-brackets > /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme= -PLUS-for-Kawa/assignment.scm:709:9: > warning - no declaration seen for function-array-n-dim-set! > /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme= -PLUS-for-Kawa/assignment.scm:784:44: > warning - no declaration seen for bracket-apply > /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme= -PLUS-for-Kawa/assignment.scm:788:44: > warning - no declaration seen for bracket-apply > /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme= -PLUS-for-Kawa/assignment.scm:837:9: > warning - no declaration seen for function-array-n-dim-set! > /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme= -PLUS-for-Kawa/assignment.scm:927:9: > warning - no declaration seen for function-array-n-dim-set! > /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme= -PLUS-for-Kawa/assignment.scm:946:8: > warning - no declaration seen for function-array-n-dim-set! > /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme= -PLUS-for-Kawa/apply-square-brackets.scm:332:7: > warning - void-valued expression where value is needed > /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme= -PLUS-for-Kawa/apply-square-brackets.scm:337:7: > warning - void-valued expression where value is needed > /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme= -PLUS-for-Kawa/apply-square-brackets.scm:404:20: > warning - type gnu.lists.AbstractSequence is incompatible with > required type abstract-string > /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme= -PLUS-for-Kawa/apply-square-brackets.scm:407:7: > warning - void-valued expression where value is needed > /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme= -PLUS-for-Kawa/apply-square-brackets.scm:409:20: > warning - type gnu.lists.AbstractSequence is incompatible with > required type abstract-string > /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme= -PLUS-for-Kawa/apply-square-brackets.scm:412:7: > warning - void-valued expression where value is needed > /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme= -PLUS-for-Kawa/apply-square-brackets.scm:500:7: > warning - void-valued expression where value is needed > /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme= -PLUS-for-Kawa/apply-square-brackets.scm:506:7: > warning - void-valued expression where value is needed > /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme= -PLUS-for-Kawa/apply-square-brackets.scm:547:7: > warning - void-valued expression where value is needed > /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme= -PLUS-for-Kawa/apply-square-brackets.scm:554:7: > warning - void-valued expression where value is needed > /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme= -PLUS-for-Kawa/apply-square-brackets.scm:609:20: > warning - type gnu.lists.AbstractSequence is incompatible with > required type abstract-string > /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme= -PLUS-for-Kawa/apply-square-brackets.scm:612:7: > warning - void-valued expression where value is needed > /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme= -PLUS-for-Kawa/apply-square-brackets.scm:615:20: > warning - type gnu.lists.AbstractSequence is incompatible with > required type abstract-string > /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme= -PLUS-for-Kawa/apply-square-brackets.scm:618:7: > warning - void-valued expression where value is needed > /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme= -PLUS-for-Kawa/apply-square-brackets.scm:657:20: > warning - type gnu.lists.AbstractSequence is incompatible with > required type abstract-string > /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme= -PLUS-for-Kawa/apply-square-brackets.scm:660:7: > warning - void-valued expression where value is needed > /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme= -PLUS-for-Kawa/apply-square-brackets.scm:664:20: > warning - type gnu.lists.AbstractSequence is incompatible with > required type abstract-string > /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme= -PLUS-for-Kawa/apply-square-brackets.scm:667:7: > warning - void-valued expression where value is needed > /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme= -PLUS-for-Kawa/apply-square-brackets.scm:756:5: > warning - void-valued expression where value is needed > /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme= -PLUS-for-Kawa/apply-square-brackets.scm:763:5: > warning - void-valued expression where value is needed > /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme= -PLUS-for-Kawa/apply-square-brackets.scm: > note - skipped 0 errors, 13 warnings, 0 notes > /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme= -PLUS-for-Kawa/array.scm:69:6: > warning - void-valued expression where value is needed > > those are only warnings and not errors. > > On Mon, Oct 16, 2023 at 8:11=E2=80=AFAM Damien Mattei wrote: > > > > it was my --r5rs flag that was causing the problem: > > > > (base) mattei@MacBook-Pro-Touch-Bar kawa % kawa > > #|kawa:1|# (require 2d-vector) > > #|kawa:2|# (require matrix) > > #|kawa:3|# (exit) > > (base) mattei@MacBook-Pro-Touch-Bar kawa % kawa --r6rs > > #|kawa:1|# (require 2d-vector) > > /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/kawa/2d= -vector.scm:2:6: > > invalid argument list for slot 'x' args:null > > #|kawa:2|# (exit) > > (base) mattei@MacBook-Pro-Touch-Bar kawa % kawa --r7rs > > #|kawa:1|# (require 2d-vector) > > /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/kawa/2d= -vector.scm:2:6: > > invalid argument list for slot 'x' args:null > > > > i use it for has table compatibility, now the problem should be with > > hash table,i suppose requiring the good hashtable srfi library will > > solve that > > > > On Mon, Oct 16, 2023 at 1:51=E2=80=AFAM Per Bothner w= rote: > > > > > > > > > > > > On 10/15/23 16:21, Damien Mattei via Kawa wrote: > > > > (require matrix) > > > > /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/kaw= a/matrix.scm:12:6: > > > > invalid argument list for slot 'v' args:null > > > > > > > > what is wrong with that? > > > > > > I don't know. I couldn't reproduce it using the current git master. > > > > > > Note that according to the manual, init-keyword: is ignored. > > > -- > > > --Per Bothner > > > per@bothner.com http://per.bothner.com/