public inbox for kawa@sourceware.org
 help / color / mirror / Atom feed
From: Damien Mattei <damien.mattei@gmail.com>
To: Per Bothner <per@bothner.com>
Cc: kawa mailing list <kawa@sourceware.org>
Subject: Re: class definition
Date: Mon, 16 Oct 2023 08:24:46 +0200	[thread overview]
Message-ID: <CADEOaddtVB=JNZ3cCw2+eau3iAr5hCV6rUamCaH69t83Vrhf5Q@mail.gmail.com> (raw)
In-Reply-To: <CADEOaddMOyNe7-4uE=O54HdmcrxbHnqVPH9GnTS_Af5uKBtWEA@mail.gmail.com>

the starting line for kawa is without --r5rs:

kawa -Dkawa.import.path=".:/Users/mattei/Dropbox/git/Scheme-PLUS-for-Kawa"

On Mon, Oct 16, 2023 at 8:23 AM Damien Mattei <damien.mattei@gmail.com> 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=".:/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 AM Damien Mattei <damien.mattei@gmail.com> 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 AM Per Bothner <per@bothner.com> wrote:
> > >
> > >
> > >
> > > On 10/15/23 16:21, Damien Mattei via Kawa wrote:
> > > >   (require matrix)
> > > > /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/kawa/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/

      reply	other threads:[~2023-10-16  6:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-15 23:21 Damien Mattei
2023-10-15 23:51 ` Per Bothner
2023-10-16  6:11   ` Damien Mattei
2023-10-16  6:23     ` Damien Mattei
2023-10-16  6:24       ` Damien Mattei [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CADEOaddtVB=JNZ3cCw2+eau3iAr5hCV6rUamCaH69t83Vrhf5Q@mail.gmail.com' \
    --to=damien.mattei@gmail.com \
    --cc=kawa@sourceware.org \
    --cc=per@bothner.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).