summaryrefslogtreecommitdiff
path: root/notes/260625-optimize.md
diff options
context:
space:
mode:
Diffstat (limited to 'notes/260625-optimize.md')
-rw-r--r--notes/260625-optimize.md14
1 files changed, 7 insertions, 7 deletions
diff --git a/notes/260625-optimize.md b/notes/260625-optimize.md
index cdb9644..5895dda 100644
--- a/notes/260625-optimize.md
+++ b/notes/260625-optimize.md
@@ -32,10 +32,10 @@ simpler.)
To further ensure minimal memory footprint of AST nodes, we make sure
that they're allocated tightly in blocks, without any padding between
-them. See `src/zisp/gc/ListPool.zig` for how I've implemented this.
+them. See `src/xisp/gc/ListPool.zig` for how I've implemented this.
Cache locality and memory density should now be perfect:
-[ListPool.zig](https://git.tkammer.de/zisp/tree/src/zisp/gc/ListPool.zig)
+[ListPool.zig](https://git.tkammer.de/xisp/tree/src/xisp/gc/ListPool.zig)
(I like to refactor code and move around source files a lot, so if
this link becomes a 404 and I forget to update, I'm sorry.)
@@ -72,7 +72,7 @@ I've decided to dedicate some of them to "implicitly" quoted values.
A two-value array is a two-value array. There will be fewer of them
this way, and you'll be saving two 64-bit values per quoted object.
-This isn't actually that bad considering Zisp conflates strings and
+This isn't actually that bad considering Xisp conflates strings and
symbols. Code with lots of string literals would otherwise end up
with lots of quote forms (automatically emitted by the parser upon
encountering a double-quoted string) if not for this optimization.
@@ -109,7 +109,7 @@ the following works as well...
;; after
(define (bar) 6)
-Note: `(let (foo) ...)` is a local function definition in Zisp. Not
+Note: `(let (foo) ...)` is a local function definition in Xisp. Not
married to this syntax, but I think I like it.
Actually, we may decide *not* to do this optimization for exported
@@ -143,7 +143,7 @@ module, thus making the constants eligible for folding anyway!
Now we're getting to the hot stuff.
-Zisp won't allow capturing mutable variables by reference in closures;
+Xisp won't allow capturing mutable variables by reference in closures;
you'll need to copy the variable's current value into a non-mutable
variable if you want to capture it. (There's precedent for this in
other languages, like Java; nothing new invented here.)
@@ -254,7 +254,7 @@ captures, changing our closure shape on the heap to:
The `locals` array could be a thread local or implicit argument like
the `lexicals` array, or it could actually just be based on the stack
-pointer. (Referring to the Zisp stack, not the native stack.)
+pointer. (Referring to the Xisp stack, not the native stack.)
Oh, and function parameters are of course just the first few entries
in this (conceptual) locals array (which may just be a stack pointer)
@@ -360,7 +360,7 @@ Transforming to bytecode first may even act as obfuscation and end up
worsening the work of GCC/LLVM on the code. Don't quote me on that,
though.
-In Zisp, I want to support what I've dubbed "manual JIT" meaning the
+In Xisp, I want to support what I've dubbed "manual JIT" meaning the
programmer is in control over what should be native-compiled and when.
A performance-critical application could be shipped as source code,