re: advent of code, day 2
https://gist.github.com/Archenoth/4256a377c186b702e046f57130ae8ee9#-day-2-dive-
part one was literally just a case in a loop, not a lot interesting to say about that!
(loop [[[dir dist] & rem] input
horiz 0
depth 0]
(if-not dir
(* horiz depth)
(case dir
"forward" (recur rem (+ horiz dist) depth)
"down" (recur rem horiz (+ depth dist))
"up" (recur rem horiz (- depth dist)))))
part two was just a slightly different recur, so there's not a lot to say about that either
(loop [[[dir dist] & rem] input
aim 0
horiz 0
depth 0]
(if-not dir
(* horiz depth)
(case dir
"forward" (recur rem aim (+ horiz dist) (+ depth (* aim dist)))
"down" (recur rem (+ aim dist) horiz depth)
"up" (recur rem (- aim dist) horiz depth))))
also, this was when i decided to use clojure to read in the data itself too, since it seems like passing larger datasets in my version of ob-clojure seems to blow the class size limit since it just plops the entire data structure into a let
i fixed how ob-clojure handles passed-in lists, but i haven't yet fixed how it loads larger datasets (though i still need to sign the fsf papers if i want to contrib it back upstream anyway, which is kind of a hassle :s)
re: advent of code, day 1
https://gist.github.com/Archenoth/4256a377c186b702e046f57130ae8ee9#-day-1-sonar-sweep-
there wasn't anything particularly tricky about this day; i just basically added to the accumulator whenever the two numbers differed in the right way
(loop [[num & rest] input
increases 0]
(if-not rest
increases
(recur rest (if (< num (first rest)) (+ 1 increases) increases))))
part 2 was a little more interesting because i broke out the ##Inf constant to avoid the addition from happening in the first run. also destructuring made it a cakewalk to grab any number of numbers for the window~
(loop [[a b c & _ :as all] input
last-sum ##Inf
increases 0]
(if-not c
increases
(let [sum (+ a b c)]
(if (< last-sum sum)
(recur (rest all) sum (+ increases 1))
(recur (rest all) sum increases)))))
advent of code, days 1-3
and so, i've finally thrown together some advent of code stuff!
https://gist.github.com/Archenoth/4256a377c186b702e046f57130ae8ee9
i started pretty late, but i decided pretty quickly that I'm probably going to bias towards using clojure for these challenges, and so far everything has been solvable pretty easily with loop and recur!
oh hey #dev nerds
black socialists in america is working to design a better online meeting platform and could use help with money but also coding!
abdl
like, i once posted this picture in a kink-positive chat: https://awoo.space/@thingywott/103778239895339900
and someone who wasn't an abdl said i looked stylish as heck??
nothing could have made me feel better then that, hahah
abdl
why is the best compliment someone can give when they see you in a diaper "they suit you!"?
i guess i feel like others look great in diapers! but even though i wear them, i'm still a little self-conscious that i look bad, and that compliment is just really reassuring!
like, what makes me feel comfy and cozy is also natural to others who know! and that it's not just acceptance on their part--but also positive thoughts??
for realsies though, this article (and the roguelike radio episode linked in it) kick so much ass
i initially got curious when i learned that there's a community of low-sight and blind roguelike players who can play these games with a screen reader
one of the more popular roguelikes, dungeon crawl: stone soup was a popular choice because of a lot of the accessibility features and tweaks made to streamline the game
and upon learning this, the crawl devs were both surprised, but also apparently started thinking of other ways to improve playability with screen readers
https://www.rockpapershotgun.com/playing-roguelikes-when-you-cant-see
it really does shine a pretty massive spotlight on the things that still aren't very accessible though
imo it's a worthwhile experience for even just that awareness, but also like...it's also really cool!
plus, if more people tried this, maybe more things would become more accessible by default
re: abdl sketch
i also drew an entry for the renshuu kaocoin contest, where you can draw kao in theme with a word in the dictionary
hee, i figured i'd offer some of my expertise..!
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 🔞)