summaryrefslogtreecommitdiff
path: root/notes/260102-full-stack.md
diff options
context:
space:
mode:
Diffstat (limited to 'notes/260102-full-stack.md')
-rw-r--r--notes/260102-full-stack.md32
1 files changed, 16 insertions, 16 deletions
diff --git a/notes/260102-full-stack.md b/notes/260102-full-stack.md
index 3870bf5..4acaf06 100644
--- a/notes/260102-full-stack.md
+++ b/notes/260102-full-stack.md
@@ -3,7 +3,7 @@
_2026 January_
As I become more and more ambitious with my dreams about what I want
-Zisp to become, it becomes less and less likely that I'll actually
+Xisp to become, it becomes less and less likely that I'll actually
create and finish the language, ever. But I just can't help it.
The notion of a "full-stack programming language" was first widely
@@ -52,7 +52,7 @@ write your code and having its own mind on how to actually do things
at run-time, which tends to be the case with higher level languages.
It would mean that the language is not for the faint of heart. Though
-I want it to be possible to write high-level Zisp code without having
+I want it to be possible to write high-level Xisp code without having
to think of any of the more complex mechanisms, offering an experience
comparable to writing Python or JavaScript -- or rather, Scheme -- the
real power of the language would only show itself to those who are
@@ -61,12 +61,12 @@ of languages. A seasoned developer could take control of the behavior
of the garbage collector to fine-tune it for the allocation patterns
of their application, or even write modules that entirely avoid GC,
opting for less automatic memory management strategies such as pools
-or totally manual alloc/free. They could have Zisp produce highly
+or totally manual alloc/free. They could have Xisp produce highly
optimized machine code (while remaining cross-platform) by providing
all the static type declarations necessary to eliminate run-time
overhead, and use a low-level record type system that allows defining
the exact in-memory layout of data records so as to make the best use
-of CPU cache lines and whatnot. A Zisp code-base could be as simple
+of CPU cache lines and whatnot. A Xisp code-base could be as simple
as a beginner-level Python code-base, or as complex as an advanced C
code-base.
@@ -74,7 +74,7 @@ In some sense, Emacs has a similar philosophy, but applied to making a
text editor. At its core, it's a lisp machine, containing a bunch of
primitives that are conductive to creating a text editor; and then the
text editor is implemented on top of that and has a flexibility you
-won't find in many other editors. Zisp would be something akin to a
+won't find in many other editors. Xisp would be something akin to a
set of tools useful to creating a programming language, and then kind
of a "default" language constructed with those tools. It's like the
language is telling you: "You can either give me a very simple high
@@ -92,22 +92,22 @@ Could be a great source of inspiration though; I'll have to take a
closer look one day.
To finish off this note, I want to provide an example of how a little
-Zisp snippet could look when written in the high-level "don't care"
+Xisp snippet could look when written in the high-level "don't care"
style, and then transformed into a lower-level style to take control
of more details of its run-time behavior.
This is an imaginary script that walks through a directory and creates
HTML files from Markdown files.
-Note that this is essentially pseudo-code. The Zisp parser that
+Note that this is essentially pseudo-code. The Xisp parser that
exists as of the time I'm writing this should be able to parse the
snippets, but everything beyond that is fantasy and not necessarily
-representative of what actual Zisp code will eventually read like.
+representative of what actual Xisp code will eventually read like.
```scheme
-(import (zisp base)) ;import Zisp base language & stdlib
+(import (xisp base)) ;import Xisp base language & stdlib
-(link (zisp regex)) ;dynamically link regex library
+(link (xisp regex)) ;dynamically link regex library
(link (de tkammer markdown)) ;dynamically link a Markdown library
(define (md2html from to)
@@ -154,17 +154,17 @@ libraries also provide sufficient type information at compile time,
this program could be entirely statically type-checked, if I'm not
mistaken.)
-Some of the optimizations we will perform are not tied to any Zisp
+Some of the optimizations we will perform are not tied to any Xisp
specialty; any sane language would, for example, allow you to read
`head.html` once and save the string for re-use. Nevertheless, the
transformation of the program will provide some examples of what I
-want Zisp to be capable of.
+want Xisp to be capable of.
Here's the transformed code:
```scheme
-(import (zisp base)) ;import Zisp base language & stdlib
-(import (zisp regex)) ;import regex library (compile-time)
+(import (xisp base)) ;import Xisp base language & stdlib
+(import (xisp regex)) ;import regex library (compile-time)
(link (de tkammer markdown)) ;dynamically link a Markdown library
@@ -234,8 +234,8 @@ All in all, I guess I've ended up demonstrating nothing more here than
the possibility of adding some static types to a program written in a
Scheme-like language to eliminate some dynamic type checks it would
otherwise need to have. Big deal. I really hoped that this little
-snippet would be conductive to demonstrating a bunch of other Zisp
-features enabling "low-level programming" (imaginary Zisp features,
+snippet would be conductive to demonstrating a bunch of other Xisp
+features enabling "low-level programming" (imaginary Xisp features,
that is) but I guess I should have come up with a better example.
In fairness to me, it's easy to underestimate just how efficient a