Or you can just stick to C, but do it in a completely memory safe way. Fil-C is the answer[0]
[0] https://fil-c.org/