Skip to main content

Programming

How not to write self-documenting code

·1 min
Self-documenting code is supposed to reduce the need for comments and increase readability, so here is a self-documenting CRC32 function to show exactly how it is done.

Benchmarking external command execution time

·2 mins
Bash is a command interpreter used in system scripts for calling external commands, so I wanted to compare the speed of Bash to the speed of other interpreted languages by doing a simple test.

Benchmarking arithmetic in different languages

·3 mins
This simple benchmark compares the speed at which different languages are able to sum values: ∑ i = 0 10000 i Unsurprisingly, the Rust implementation was the fastest.