<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">2013/10/23 Matt Hastie <span dir="ltr"><<a href="mailto:matthastie@gmail.com" target="_blank">matthastie@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<div style="word-wrap:break-word"><div class="im"><br><div><div>On Oct 22, 2013, at 11:17 PM, Mikael <<a href="mailto:mikael.rcv@gmail.com" target="_blank">mikael.rcv@gmail.com</a>> wrote:</div><br><blockquote type="cite">

<span style="font-family:Avenir-Book;font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">no need of changing Gambit's behavior with regard to what directories it outputs</span></blockquote>

</div><br></div><div>As you suggest, a possible implementation is to create a wrapper executable, perhaps scsc, that can provide the new behavior. This has been the historic practice, as done by black hole. </div></div></blockquote>

<div><br></div><div>Yeah exactly like that!</div><div><br></div><div>And let Gambit remain doing the low-level abstractions of sourcecode => object file compilation and loading, only. Kinda like GCC+OS dynloader do.</div>

<div><br></div><div><br></div><div>And then Gambit provides hooks for whatever you may want to achieve packaging/module/macro-wise.</div><div><br></div><div>Reflecting on Gambit being abstracted like this for some years, I have come to really appreciate that it does it exactly like that and also I've found the set of hooks Gambit provides for implementing such functionality atop it to be complete, with only one thing that'd be strikingly useful additionally, mentioned that here Sep 27-28, <a href="https://mercure.iro.umontreal.ca/pipermail/gambit-list/2013-September/007064.html">https://mercure.iro.umontreal.ca/pipermail/gambit-list/2013-September/007064.html</a> . </div>

<div>     (disclaimer, I have not implemented a module system myself, however Per and myself had unending conversations around and after he implemented Black Hole, so this is the kind of level of insight I'm speaking out of currently)<br>

</div><div><br></div><div><br></div><div>If you have any further reflections to share here, feel very welcome to.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<div style="word-wrap:break-word"><div>To follow this paradigm without any gambit alteration would necessitate independent shipment of a custom psyntax73 with additional hooks for visit/revisit. The proposed would be a separate implementation that is independent of -:s and the shipped syntax-case.scm functionality. Any mutation to psyntax73 with respect to the current build-visit-only and build-revisit-only definitions is likely to regress existing -:s functionality, just as my existing patch of emitting $sc-put-cte has done.</div>

<div><br></div><div>Reflecting on the directory .o1 file proposal overnight, I think that the most minimal repl implementation would use namespaces to wrap load and compile-file. A command-line gsc is more difficult to provide without alteration, however, as the implementation of compiler-batch-mode is captured in the lexical scope of ##main-gsi/gsc. It thus cannot be modified by a prospective compiler client e.g. syntax-case-postlude.scm. I'm sure there are other hook points that would need to be accessible within _gsclib.scm (and possibly other files) too. Perhaps the best way forward is to identify these hooks, maintain existing gambit semantics, and ship a syntax-case-postlude that exercises the new hook functionality.</div>

<div><br></div></div></blockquote></div><br></div><div class="gmail_extra">(Again feel free to clarify what <span style="font-family:arial,sans-serif;font-size:13px">visit/revisit are about. The Scheme community would benefit a lot of a document that describes how the 3-4 main macro systems are used and exactly how they're expanded sufficient for the reader to implement an expander himself, so anyone starting at elementary school would get it.)</span></div>

<div class="gmail_extra"><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div></div>