nostr is a band.
nobody says you are in it, but it exists in a certain way, it is a protocol, you show up every day, do your GMs or whatever version of that you do. you post your word5, whatever. but you are there every day. almost, i mean, plenty of rage pauses, but the real nostr band they always come back, because nobody else will have them, and the real nostr band doesn't say you aren't in, they just keep replying and sometimes zapping.
it's not a tribe. we are like pirates, nobody else wants us, because we don't care whether they approve or not.
what we care about is that you keep on clocking in, and keep on hunting the enemy, no matter what, and show up to say "i'm here, and today i'm hunting the enemy".
but the thing is, you can't hunt forever. and even if you do, you catch them, you turn them in, and then what, give them away so you can keep on hunting?
nostr needs a winter shelter. nomads always need a place to rest, or they wind up with a broken leg in the middle of the wilderness and all the booty they gave away can't be spent healing that tibia.
i've had an alarming, and lucid realisation.
i've got the exact constitution of a nomad. or a hunter. my whole motivation in life is chasing after the thing that is escaping from me.
once i find it, i'm bored, and look for another thing to chase.
but that's not how a real herder, or hunter lives. there has to be a rest point. you have to have the bbq and sleep it off. you have to huddle with your cows and hay in the winter shelter.
i've lived 30 years chasing the prey, taking it down every 7 years or so, and never having a jubilee. never salting and drying my harvest.
i had a hungarian police officer lady ask me, when they found me crossing the border from slovenia without a passport, having walked and ridden "borrowed" bicycles the whole time since nettuno, on a hunt for some citrus picking work to escape the winter of amsterdam homelessness, the winter shelter, literally.
"why do you live like a gypsy"
and that's the thing. some people are wired up to be hunters and herders. spending most of their life chasing after something that wantonly and determinedly refuses to be caught. and then, after you catch that bugger, you are supposed to come back to the village and rest for the winter.
i need my winter shelter.
moxie's memory management system is the final boss, it's based on Region-based Memory Management M. Tofte, J. Talpin Published in Information and Computation 1 February 1997 but slightly different in some ways. while that is grinding away, and it's getting close to eliminating all incorrect and egregious memory allocations and as much as possible reclaiming memory that has stopped being needed, i am doing a little side project that is going to be a background task for a while.
the task is this: how small can we make a programming language, such that it feasibly can fit within the kind of space that the Turbo Pascal compiler for DOS achieved - for a refresher, that was 38kb including editor and debugger. so we are gonna shoot for a similar total binary size, but no editor or debugger. this is just source files in (cc style) and binary code out. intermediate stage is going to be via LLVM IR code, but after we achieve this, the binary code generation step gets melded into it and probably we are talking about somewhere around 32kb of total source code, something that can live permanently in the cache of one thread of a 20 year old CPU, and make an OS that is strictly source code only.
so, it's quite fun, lots of steps. first, we strip features one by one. generics. interfaces. slices. maps. defer. multiple returns. the memory allocation machinery (arenas and relocated returns). spawn threads. channels, both intra-thread and inter-thread. variadics.
each rewrite step will eliminate the features one at a time, at first rewriting the actual code, and then testing that the compiler that does the whole thing accepts it, and success.
once all of those rewrite steps are complete, we don't need to regenerate the valid source code anywhere in this. first level parses to AST, and the AST is passed through a pipeline that rewrites the AST to eliminate each feature one by one until you have a final AST. that final AST will be representable as source code of a language that has about 3 or so less features than even a plain C compiler - no unions, no switches, no do/while, not even arrays!
the target is to achieve roughly the same kind of size as the legendary turbo pascal compiler, but not a language that you would legitimately write, though you could. it's a compiler that is the end of a pipeline of feature-stripping rewriters.
my goal here, is to have a full programming language preprocessor and compiler pipeline that can fit inside a hypothetical moxie-specific CPU, fabricated out of ~130nm,1990s era silicon, which is the last point at which a chip fab could conceivably fit into a small workshop, without a huge dependency on materials that are hard to source without 1980s era technology.
that means a transputer style chip, with no branch prediction crap, just an ALU, a 128kb block of memory (or so) and a 5 port (gigabit, i think) ethernet switch in one die. each chip runs code and proceses can be spawned on multiple chips that communicate over that ethernet port. oh yes, and a memory controller, not to forget the memory controller, that's gonna be most of the pins, 128 bit wide, and that gives us a gigabyte or so slow, ephemeral storage. this is to make a pancake style stackable computer, where you can pancake multiple boards on a pass-through connection pin header. there will be processors, such as a 16 chip 4x4 grid, there can be specialist components like storage adapters, frame buffers with accelerators and a number of these minimal, message passing processors with ethernet switches baked into them.
the design of moxie is precisely all about making it so you can delete the complexity of computer hardware, and promote extreme parallelism, as well as achieve minimal, sub-frame latency for everything.
modern computers have literally gone backwards in the metric of 60hz frame rate subframe latency for input and output. it affects my experience working with mobile phone touch screens, and right now, my $650 potato laptop with lpddr5, has noticably higher latency at everything than my lower price, 2020 era lenovo ideapad laptop, that i foolishly left behind in ... croatia? or madeira? i had no idea. latency has got worse in the last 5 years. anyone else who has been using computers since 1985 will agree with me, or at least concur "it seems like my lightning fast reflexes are broken on new systems" i remember playing stalker call of pripyat back in 2012 and i was absolute death to mutants. why not now? i should still be pretty good. nope. it's because of latency.
so the purpose of this exercise is all about rethinking computer architecture, based on source-based operating system, and extreme, message passing parallelism.
making a compiler that literally lives as a permanent resident of one core of a processor's cache is a key goal towards this.