💾 Archived View for freeside.wntrmute.net › log › 2020 › 20201130-gemlog.gmi captured on 2022-01-08 at 13:40:48. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2021-12-05)

-=-=-=-=-=-=-

Back to gemlog

Gemlog generator

2020-11-30 13:20 PST

I ended up implementing Gemini subscriptions, and created that cgi endpoint. It's now at

My subscriptions

You ever have the time dilation effect? Once I started working on a gemlog tool, I looked up at the clock and it was almost midnight. Then, it was after 2am. How does that happen? Anyways, I now have a working gemlog generator. Along the way, for testing, I had the feeds redirecting to localhost; I'd left gemsrvwd running and it took me a good hour to realise I'd left the gemlog defaulting to localhost links (even live!), so gemsrvwd got some good battle testing. It works. Anyways, now I have gemlogs done that way I want them to be done, which includes being able to refill paragraphs; this is really nice in mg(1), because it doesn't do long lines real well.

I've realised that I'm a C++-style programmer (in Go). My code isn't elegant, it's all based on structs and really defensively programmed, as well as being standalone. I can't help but compare solene's vger to srvwd, or a Makefile-based gemlog generator I saw to my own code. The gemini package code (not including the tools) is almost a ksloc according to cloc(1), and the gemlog generator code is almost 600 loc. That being said, gemsrvwd will autogenerate TLS keys on start, lots of URL verification and cleaning is done, things are kind of defensively programmed. I'm writing a lot of the functionality myself, making a tool that doesn't rely on system tools. vger, on the other hand, needs relayd and external tls handling. Two philosophies, I guess. I'm more of the "don't assume a friendly environment" kind of person, probably because I like to have throwaway environments. Toss a config file and a binary up on the server and have at, make sure you open a firewall port as needed.

vger

Also I managed to buy a Kaypro 4 that should be available for local pickup. It's got a 4 MHz (screaming fast!) Z80 CPU, an RTC, builtin modem, and a pair of DS/DD drives that I want to replace with CF drives (or at least replace one of them).

Kaypro 4/84

Got the Pi 4 [a] set up with Alpine with the touchscreen, so I'm going to see if I can start getting that setup the way I want it. Hopefully 4G is enough to get everything I want on the installer. Otherwise, I'm falling back to Raspbian [b].

So, some things on my list of stuff to do tech-wise:

While I was cleaning out books, I found my copy of the Architecture of Symbolic Computers staring at me, so I'm gonna pick that back up and start working through it.

The Architecture of Symbolic Computers

Now, off to meetings at work.

Footnotes