about summary refs log tree commit diff
path: root/language/dynamic
diff options
context:
space:
mode:
authorIrene Knapp <ireneista@irenes.space>2026-09-29 11:17:30 -0700
committerIrene Knapp <ireneista@irenes.space>2026-09-29 11:18:56 -0700
commit3c36f513532d28ac101fb057e845ce66b8e6da1b (patch)
tree7c7d7bab19990e95bdb0893040b90154dc5e8483 /language/dynamic
parent77e8ce989010fbd94080e780fb0b5cb6c10434e8 (diff)
add a constant string "boot-source" which is run at startup
this will allow us to have compiled-in code that wouldn't run under the transforms, though we don't add anything of substance just yet

this strategy was used early in bring-up, in the historical flatassembler version of Evocation, so the design space of it is already well-explored in Irenes' head. how pleasant. :)

Force-Push: yes
Change-Id: I722cddb77657df9ca518c0d9841aa587bf63feb3
Diffstat (limited to 'language/dynamic')
-rw-r--r--language/dynamic/interpret.e9
1 files changed, 6 insertions, 3 deletions
diff --git a/language/dynamic/interpret.e b/language/dynamic/interpret.e
index 0af0dab..02f3365 100644
--- a/language/dynamic/interpret.e
+++ b/language/dynamic/interpret.e
@@ -593,7 +593,10 @@ dup entry-flags@ 0x80 invert & swap entry-flags!
   main-input-buffer input-buffer-refill !
   ;
 
-~   Of course it is perfectly reasonable to change this, but for now it's
-~ hardcoded.
-relink-main-input-buffer-to-stdin
+~   We don't actually call relink-main-input-buffer-to-stdin here. It would
+~ work if we did (the log-load transform is capable of making that happen),
+~ but some executables will wish to use it during warm-start while others will
+~ prefer to first attach input to a string, often called boot-source, and only
+~ later relink it. So, we leave those calls to helpers in
+~ compilation/execution.e.