From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by sourceware.org (Postfix) with ESMTPS id 4339C3858C30 for ; Fri, 13 Oct 2023 06:50:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4339C3858C30 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-9b96c3b4be4so264445866b.1 for ; Thu, 12 Oct 2023 23:50:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697179823; x=1697784623; darn=sourceware.org; h=content-transfer-encoding:to:subject:message-id:date:from :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=6auFkvntqCpNCTl1T6U8jGta/oYMrsuLJ8xP8WcbIkM=; b=h6ntOCrEzC1m6TX0iAo06OIHZUjnTr5OPuiKpD9hLodp1O3cO4uZmU09+ml9V5qQPJ +hKRSgfehjcbjozr7E5UAfZ/DN6kHQCISA6jCq2XyjyEENWHNlmCoQMQ1Zu55uYck1y5 SEFLGTDS28jgjeywUoptiw5qfvwPZIqsk4YGALTGB0e5P0rG/dmZl5jQ8gtKn6IuXXtK ktQdrTg9Fr16kI/sZU9HI6CszGHGnjQk1vVcxI0SXq0nMOFCOs28/FSUWw0UThxVqSSE DWNzrKuQe/B+DpLq8ayJUMQSpu9SONQeUX6y+ZvHv50dj8CIKjjOG2jT8KbMuyosreYv uSAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697179823; x=1697784623; h=content-transfer-encoding:to:subject:message-id:date:from :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=6auFkvntqCpNCTl1T6U8jGta/oYMrsuLJ8xP8WcbIkM=; b=dpYYo3KiWj1ojNZ41hoG7rI848x0nQXFHYPfq1NCxFYEWknnILPzUwt1ORp+flfyFV toUWj7b7zsrlwNXVw6FIEnJ8p9y5lhnaUsALGy9VL89IC1dqp/Mapg2jtDRDcQufTK62 QRJ+SoXfm+da4KU08TKmzb/xgZHS8qbPSs8uz1XU7Huqu1MD5pTEPB4XhEnPlaBbSbM9 3EyQaLNo/jiQieEZXTRbv1g5xFPhOvmBxRwHsSNTvZP7PjJ056lIfKvkMJ8gFSlHxiX3 DLo3ubt2r8BRgXvBcBJ1Ln2G3BveVaW8zSta2DbaVFCz0bXzYg769rjW8cC5dFhoVoqf s4vA== X-Gm-Message-State: AOJu0Yw91HwIx7S2m+K17pGGqVxXXBHt8Z8P2hcwzpvbqg8orM8/xUMq GNZV0WP6p7f1Cc1mq/Nc2akWncWXnTugHP0P/k5LyDjNiGg= X-Google-Smtp-Source: AGHT+IECpKJSWwE9haUC4ZU4qVHIpsDMbGQPN5wdjER32IXxU3CXNz6YzgVFvMG/tZEKyH+SIy+vGCuxO3BDlx470I0= X-Received: by 2002:a17:906:18a1:b0:9b6:aac1:6fa5 with SMTP id c1-20020a17090618a100b009b6aac16fa5mr21423592ejf.55.1697179822470; Thu, 12 Oct 2023 23:50:22 -0700 (PDT) MIME-Version: 1.0 From: Damien Mattei Date: Fri, 13 Oct 2023 08:50:11 +0200 Message-ID: Subject: include files To: kawa mailing list Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_05,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: it is a problem i had long time ago on another kawa project, how can i include a file relative to the included file, it works for first included file but if the latter included file include another relative path file it fails: #|kawa:4|# (load "exo_retropropagationNhidden_layers_matrix_v2_by_vectors4kawa+.scm") /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-P= LUS-for-Kawa/Scheme+.scm:38:10: cannot open file "./rec.scm" /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-P= LUS-for-Kawa/Scheme+.scm:39:19: cannot open file "./def.scm" /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-P= LUS-for-Kawa/Scheme+.scm:40:19: cannot open file "./set-values-plus.scm" /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-P= LUS-for-Kawa/Scheme+.scm:41:19: cannot open file "./for_next_step.scm" /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-P= LUS-for-Kawa/Scheme+.scm:42:19: cannot open file "./declare.scm" /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-P= LUS-for-Kawa/Scheme+.scm:43:19: cannot open file "./condx.scm" /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-P= LUS-for-Kawa/Scheme+.scm:44:19: cannot open file "./block.scm" /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-P= LUS-for-Kawa/Scheme+.scm:45:19: cannot open file "./not-equal.scm" /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-P= LUS-for-Kawa/Scheme+.scm:46:19: cannot open file "./exponential.scm" /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-P= LUS-for-Kawa/Scheme+.scm:47:19: cannot open file "./while-do-when-unless.scm" /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-P= LUS-for-Kawa/Scheme+.scm:48:19: cannot open file "./repeat-until.scm" /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-P= LUS-for-Kawa/Scheme+.scm:49:19: cannot open file "./modulo.scm" /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-P= LUS-for-Kawa/Scheme+.scm:50:19: cannot open file "./bitwise.scm" /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-P= LUS-for-Kawa/Scheme+.scm:53:19: cannot open file "./slice.scm" file Scheme+.scm: ;; (load "Scheme+.scm") ;; (load "scheme-infix.scm") ;; (load "assignment.scm") ;; (load "apply-square-brackets.scm") ;; (load "array.scm") (require 'srfi-1) (require 'srfi-69) ;; hash table ;; try relative , use include-relative-relative if problems (include "./rec.scm") ; rec does not exist in Kawa (no SRFI 31) (include-relative "./def.scm") (include-relative "./set-values-plus.scm") (include-relative "./for_next_step.scm") (include-relative "./declare.scm") (include-relative "./condx.scm") (include-relative "./block.scm") (include-relative "./not-equal.scm") (include-relative "./exponential.scm") (include-relative "./while-do-when-unless.scm") (include-relative "./repeat-until.scm") (include-relative "./modulo.scm") (include-relative "./bitwise.scm") (include-relative "./slice.scm") file: exo_retropropagationNhidden_layers_matrix_v2_by_vectors4kawa+.scm ; Deep Learning : back propagation, gradient descent, neural network with N hidden layers ; L'algorithme de r=C3=A9tro-propagation du gradient dans un ; r=C3=A9seau de neurones avec N couches cach=C3=A9es. ; D. Mattei ; use MacVim to show ALL the characters of this file (not Emacs, not Aquama= cs) ; jeu de couleurs: Torte ou Koehler ; use: (load "exo_retropropagationNhidden_layers_matrix_v2_by_vectors4kawa+= .scm") (include-relative "../Scheme-PLUS-for-Kawa/Scheme+.scm") (include-relative "../Scheme-PLUS-for-Kawa/scheme-infix.scm") (include-relative "../Scheme-PLUS-for-Kawa/assignment.scm") (include-relative "../Scheme-PLUS-for-Kawa/apply-square-brackets.scm") (include-relative "../Scheme-PLUS-for-Kawa/array.scm") i know i can , and used module for Scheme+ but ,for now i prefer testing with included files and any way scheme-infix assignment apply-square-brackets required to be included at user or main definition level as it modify the environment and scheme+ used a modified reader before that too....