all repos — gemini-aaoth.xyz @ fadc7b5d64683d56da65d78f6d9f2830c1bca80b

aaoth.xyz gemini capsule (archive)

gemlog/2021-06-03-c-is-tough-but-i-like-it.gmi (view raw)

 1# c is tough but i like it
 2
 3* date: 2021-06-03
 4* author: la-ninpre
 5* tags: programming tokipona
 6
 7once i created little python script that spits out random toki pona phrase. but then i thought 'well, this is nice. but i wanna go further'. i had an idea that it would be awesome to attach this script to a webpage, so that it's different every time it is loaded (in other words, i wanted it as cgi script). but to do so with python is, eh, i dunno.
 8
 9so i thought 'hmmm, i always had hard time thinking what i can program to learn c' and this was like a flash. yes! let's code this little thing. though, i never thought that it would be so, well, i n t e r e s t i n g.
10
11i knew that c involves memory management, and, you know, this was very good opportunity to kinda learn how it all works.
12
13i need to say that even though it was pretty tough, the result is pleasing for me. by the way, it works here on my machine (archlinux with zen-kernel) and it works on my debian vm and, hell, of course it runs perfectly on my openbsd server. needless to say that the former was the special target for this program (who else would be serving it anyway?).
14
15yes, i know that all that is weird and maybe even stupid, but c'mon. i do tech related stuff just for year now. i mean, i tried before, but if we only count serious attempts, than it's a year.
16
17it is running!
18
19=> /cgi-bin/nimisewi on gemini
20=> https://aaoth.xyz/nimisewi on web
21=> https://fsl.aaoth.xyz/nimisewi.c and here's the source code
22
23## links
24
25=> /gemlog/ back to post list
26=> /cgi-bin/gemlikes/view?2021-06-03-c-is-tough-but-i-like-it.gmi like and comment!