I couldn't resist programming some C today.
The program that I worked on was a program to print unique lines:
rick@fedora:~/projects/cunique$ cat test.txt hello world hello there rick@fedora:~/projects/cunique$ ./cunique <test.txt hello world there
I managed to write it, but I also wanted it to perform well. When I try the above with a 1GB file it seems to take forever, but my Python equivalent finishes in around 5s.
That made me feel discouraged and made me think that I should work more on Computer, Enhance! before I think I have an idea about how to write performant C code.
However, I got to program C and that was fun.
in #c
Ran 5.26 km in 30:42 (05:50 /km).
Treadmill run before strength workout. Felt some slight pain in the achilles that went away again. Will rest now during the weekend.
Ran 5.26 km in 30:32 (05:48 /km).
First run in shorts this year.
Form felt good, and it felt easy. Pulse within zone 2 but pace still quite fast. Have I gotten better? Or am I just more well rested? It felt good anyway.
Ran 5.37 km in 32:09 (05:59 /km).
I felt some slight pain in my achilles after the 10k PB, so I'm taking an easy week and hoping it will go away. Didn't feel anything during this run.
Ran 5.12 km in 32:25 (06:19 /km).
What is Rickard working on and thinking about right now?
Every month I write a newsletter about just that. You will get updates about my current projects and thoughts about programming, and also get a chance to hit reply and interact with me. Subscribe to it below.