anyway, fennel continues to be a super-cool language that i like lots, so it's cool finding excuses to use it more
oh, and if you are curious about the faces i drew in literally 5 seconds in mspaint because i needed something to test with, here they are!
the magic is that resuming a coroutine just jumps right back to the place i yielded from, so i can break this coroutine into tiny pieces that get rendered every frame
meaning, i only ever need to interact with it in once place after making it; it's completely self-contained!
(i wonder how this compares to how scheme continuations work?)
this is what the closure actually looks like if you're curious! https://gist.github.com/Archenoth/d189ce7b20ea922be3d3169f6b369fef
(i named it .clj because github doesn't recognize fennel)
basically, every tick, the coroutine to render a single line of dialogue resumes with a new time in scope, and based on that, renders a subset of text
after it renders a full line, it continues to a new yield loop to render the bouncy triangle at the bottom to note you can progress
and when the coroutine finally finishes, a new line takes its place
this is the *entire* code to use this
render-text literally is just a coroutine closure that gets resumed every tick, and automatically handles how to render it based on the current time
oh! i'm not sure how many emacs peeps follow me, but i finally updated Archemacs' readme so that it would be easier to setup for others~
i tend to try and stick pretty close to the defaults, so the end result is really light, and i use tangling to trim support for things you don't have installed making it even lighter!
the end goal is basically having a really light emacs that looks good (i use doom's dracula style), but also has a lot of modern niceties
(yes, this is pretty much the first time i've seen any indication that someone paid attention to a thing i did on there, why do you ask? hee)
huh! that's a higher ratio using it than i expected
(i wonder how much of that is from how they are a part of the default paradigm of linux desktops?)
oh hi! i do computers, and sometimes draw stuff~ i like lo-fi things and cute aesthetics!
i also probably like you
(also, tagged #abdl ahead, soooo 🔞)