From f4d2fa3fb2f41a0231040f7e005c4bd467855620 Mon Sep 17 00:00:00 2001 From: Taylan Kammer Date: Sat, 14 Nov 2026 16:48:21 +0100 Subject: s/zisp/xisp/g on notes --- notes/260107-decoder.md | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'notes/260107-decoder.md') diff --git a/notes/260107-decoder.md b/notes/260107-decoder.md index 5fa3677..1595e45 100644 --- a/notes/260107-decoder.md +++ b/notes/260107-decoder.md @@ -5,7 +5,7 @@ _2026 January_ I've mulled over this quite a bit now, and I believe I've figured out what kind of design I want for the "decoder" component. -To recap: Zisp has a "parser" that implements an extremely bare-bones +To recap: Xisp has a "parser" that implements an extremely bare-bones s-expression format (though with some interesting syntax sugar baked in), with a lot of the features you would expect of a typical "reader" being offloaded into a second pass over the data. @@ -77,7 +77,7 @@ Macros in Scheme have a completely different "feel" to them. They're really part of the program logic. The whole point of hygienic macros is that they fit in seamlessly with the rest of your program, rather than being a disjoint pre-processor operating outside program logic. -That's valuable in a different way. (Zisp will also support hygienic +That's valuable in a different way. (Xisp will also support hygienic macros like Scheme.) Although the decoder is not as smart as a macro expander, I still @@ -109,7 +109,7 @@ intend to make it fairly powerful, supporting: These will be turned off by default, so a decoded file cannot run arbitrary code, or maliciously embed `/dev/random`! The standard -"Zisp code decoder" configuration used to read program and library +"Xisp code decoder" configuration used to read program and library files will then enable these features. Splicing could be used for the same effect as an import, but import @@ -118,14 +118,14 @@ decoder rules could also be compiled into a binary, which the import mechanism could locate and use, instead of parsing the source file again every time. -Here's some imaginary Zisp source files demonstrating decoder use: +Here's some imaginary Xisp source files demonstrating decoder use: ```scheme -;; a.zisp +;; a.xisp -(#IMPORT "ht.zisp") ;may load compiled code of ht.zisp from a cache +(#IMPORT "ht.xisp") ;may load compiled code of ht.xisp from a cache -(define my-hash-table #ht((a 1) (b 2))) ;#ht imported from ht.zisp +(define my-hash-table #ht((a 1) (b 2))) ;#ht imported from ht.xisp (#DEFINE (#foo x y) (import (de tkammer my-helper-module)) @@ -141,15 +141,15 @@ Here's some imaginary Zisp source files demonstrating decoder use: (#DEFINE #bar '(+ 1 2)) -(import (zisp io)) ;imports the print function +(import (xisp io)) ;imports the print function (print #bar) ;will print 3 -(#SPLICE "b.zisp") +(#SPLICE "b.xisp") ``` ```scheme -;; ht.zisp +;; ht.xisp (#DEFINE (#ht & entries) (define ht (make-hash-table)) @@ -159,7 +159,7 @@ Here's some imaginary Zisp source files demonstrating decoder use: ``` ```scheme -;; b.zisp +;; b.xisp (define (foobar) (let ((data (#STRING "example.data"))) @@ -174,7 +174,7 @@ only example above that actually makes some sense is the one defining hash table syntax. Actually, since I want to make it possible to serialize absolutely -anything in Zisp, a regular macro could also be used to construct +anything in Xisp, a regular macro could also be used to construct hash-table literals. See the [serialization](250210-serialize.html) note on that. @@ -197,7 +197,7 @@ want to output code, with hygienic bindings. ```scheme ;; Can't do this with decoder rules -(import (zisp base)) +(import (xisp base)) (import (de tkammer my-module)) (define-syntax (my-macro x y ) -- cgit v1.2.3