From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: prj@case.edu (Paul Jarc) Newsgroups: gmane.lisp.guile.user Subject: Re: defining macros within eval Date: Wed, 19 Oct 2022 04:42:43 -0400 Organization: What did you have in mind? A short, blunt, human pyramid? Message-ID: References: <3c0dd8aa-97cb-9b31-9e93-44a93ed59a6a@telenet.be> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30665"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Wed Oct 19 10:45:09 2022 Return-path: Envelope-to: guile-user@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 1ol4hJ-0007ev-A5 for guile-user@m.gmane-mx.org; Wed, 19 Oct 2022 10:45:09 +0200 Original-Received: from localhost ([::1]:58686 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ol4hG-00062e-E2 for guile-user@m.gmane-mx.org; Wed, 19 Oct 2022 04:45:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49216) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ol4f8-0005vM-5R for guile-user@gnu.org; Wed, 19 Oct 2022 04:42:54 -0400 Original-Received: from mpv-out-cfd-1.cwru.edu ([129.22.103.196]:65167 helo=mpv-out-cfd-1.case.edu) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ol4f4-0003bF-2n for guile-user@gnu.org; Wed, 19 Oct 2022 04:42:53 -0400 Original-Received: from mpv-local-ksl-1.CWRU.Edu (EHLO mpv-local-ksl-1.case.edu) ([129.22.103.235]) by mpv-out-cfd-1.case.edu (MOS 4.4.8-GA FastPath queued) with ESMTP id ACL62933; Wed, 19 Oct 2022 04:42:45 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=case.edu; s=smtp-primary; t=1666168965; bh=71CXdEveHtZTu+k6Kh8mMFJzKDgxcbYy7Hl2HK3hlrE=; l=1062; h=From:To:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=X4WY6FT3j6JX68L1gHnymP2/asz85nS0lVml3eWAefAeSzWY8B8FjTELc30J4iL6v3 ERdpFpETzA7yhl2Q7pnXSQ7Gbz67BYJ73mmP7ADELpzhMLxFzOSDId3Lqz5Dhp0+XzL SFWDOOcWeAOZOrpeXLytEcAmQb3mbGlB87MwFVw903ZCGd9jpMcZIxwsUrx5fFXQ/M2 /jJpvGqf3IxMIVNL8+Hj12QA22SA+oVKBBW5uZKz+6UsWe82x2Q35YNgkKIAGuJ8aaq A72SZ8r+yws1NtthcjXCrHf+DWC6Dmw9B94uRcIqAdClUl6zv2PrDW8PThozhe+2ePC HqT1szjg== Original-Received: from webapps-d-2.tis.CWRU.Edu (EHLO webapps-d-2.tis.cwru.edu) ([129.22.105.200]) by mpv-local-ksl-1.case.edu (MOS 4.4.8-GA FastPath queued) with ESMTP id ACC72313; Wed, 19 Oct 2022 04:42:44 -0400 (EDT) Original-Received: by webapps-d-2.tis.cwru.edu (Postfix, from userid 513778) id A8548408BAB; Wed, 19 Oct 2022 04:42:43 -0400 (EDT) In-Reply-To: <3c0dd8aa-97cb-9b31-9e93-44a93ed59a6a@telenet.be> (Maxime Devos's message of "Sun, 16 Oct 2022 18:17:27 +0200") Mail-Copies-To: nobody Original-Lines: 20 X-Mirapoint-IP-Reputation: reputation=Fair-1, source=Queried, refid=tid=0001.0A742F92.634FB883.005A, actions=tag X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A742F24.634FB884.003D, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0, ip=0.0.0.0, so=2016-11-06 16:00:04, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: f3d562ac816adbfdb44ae6a4ae7cfbc6 X-Mirapoint-IP-Reputation: reputation=good-1, source=Fixed, refid=n/a, actions=tag X-Junkmail-Status: score=7/90, host=mpv-out-cfd-1.case.edu X-Junkmail-PrAS-Raw: score=7/90, refid=2.7.2:2022.10.19.81528:17:7.944, ip=, rules=__RCVD_POSTFIX_UID, DKIM_SIGNATURE, __HAS_FROM, __FROM_NAME_NOT_IN_ADDR, __TO_MALFORMED_2, __TO_NO_NAME, __SUBJ_REPLY, __BOUNCE_CHALLENGE_SUBJ, __BOUNCE_NDR_SUBJ_EXEMPT, __SUBJ_ALPHA_END, __IN_REP_TO, __HAS_REFERENCES, __REFERENCES, __USER_AGENT, DATE_TZ_NA, __HAS_MSGID, __SANE_MSGID, __MIME_VERSION, __CT, __CT_TEXT_PLAIN, __DKIM_ALIGNS_2, __FUR_HEADER, __URI_HAS_HYPHEN_USC, __ANY_URI, __URI_MAILTO, __HTTPS_URI, __URI_WITH_PATH, __URI_NO_WWW, __CP_URI_IN_BODY, __DATING_PHRASE, __SUBJ_ALPHA_NEGATE, __URI_IN_BODY, __URI_NOT_IMG, __BODY_NO_MAILTO, __NO_HTML_TAG_RAW, BODYTEXTP_SIZE_3000_LESS, BODY_SIZE_1000_1099, __MIME_TEXT_P1, __MIME_TEXT_ONLY, __FROM_NAME_NOT_IN_BODY, __FROM_DOMAIN_NOT_IN_BODY, __URI_NS, HTML_00_01, HTML_00_10, IN_REP_TO, MSG_THREAD, BODY_SIZE_5000_LESS, REFERENCES, BODY_SIZ Received-SPF: pass client-ip=129.22.103.196; envelope-from=prj@case.edu; helo=mpv-out-cfd-1.case.edu X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:18662 Archived-At: Maxime Devos wrote: > For an example in the wild, see > e.g. . Thanks (to Jean as well) for all the suggestions. Can you point me to an example of where include/sexp is used? To take a step back, my ultimate goal is to have a separate module system, where code libraries are identified by their full pathname rather than an abstract name applied to %load-path. It's similar to include in that way, but the loaded code goes into its own module and only certain bindings are imported, as with :select from use-modules. Each file is loaded only once per run, and typically doesn't change between runs, so somehow it ought to work with compilation enabled. I'll try playing around with include, eval-when, and datum->syntax to see if I can get something working, but if the extra context brings anything else to mind, more suggestions are welcome too. This feels like it would be trivial if the module system had a little more of its guts exposed.