searching is suffering which is enduring time it leads to more holes to search that lead to seemingly endless more same thing for knowing so guess what internet leads to time and time again just more of the same disease of search
Every now and then I get an urge to do something new. Usually it involves picking up a new language or a framework or a project to spend time with and on. Implementing a gemini server sounded like a nice exercise and since I was starting to feel the urge, I picked a new language as well. As you read in the title, it was Raku[1]. To tick all the boxes, I also jumped straight into using Cro[2], but more on that later.
[...]
Everything seemed to work using print+socat based cli client, it seemed to work with amfora, but with lagrange, the server got stuck on second request. Turned out lagrange by default resumes TLS sessions which was tripping up whatever the server was doing.
A thing I didn't see coming was how resource intensive it is. Just for the hell of it I tried downloading a 4GB disk image from it. The whole transfer took ~25 seconds, but while the file was being sent over, the raku process was eating up around 200% cpu. I know looking at htop is rather unscientific method of measuring cpu usage, but still I wouldn't expect it to be so intensive. It is quite possible I'm doing something silly in there.
* Gemini (Primer) links can be opened using Gemini software. It's like the World Wide Web but a lot lighter.