💾 Archived View for tozip.chickenkiller.com › 2022-07-25-pl.gmi captured on 2023-04-19 at 22:47:04. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-03-20)

-=-=-=-=-=-=-

Programming languages

Created 2022-07-25

I have a little clock app that I use on my Raspberry Pi 0. It is written in Go. The Pi0 is a slow machine, so compiling Go code is actually pretty painful, despite the language having a reputation for fast compile times.

An older version written in C acquitted itself rather well compile-time wise, and seemed AT LEAST as good as Go. Go has excellent cross-compile support, so my new strategy is to compile on my arm64, and copy the program to the Pi.

C++ is of course very slow to compile on the Pi. Cross-compiling is more difficult. There's a library that I'm thinking of linking to, and I haven't yet fathomed out how I'm going to do it.

I've no good understanding of threading, but I do like the features that C++ has. Stuff like lock_guard() is really sweet. It's actually go me to thinking that Golang's channels aren't that special, and that I should just use C-like concurrency mechanisms for the most part.

I can now see the advantages of languages with blazing-fast compile times. Easy cross-compilation is also a benefit.

I'm putting together a list of C "competitiors" out of curiosity's sake. So far, I've got:

C3

Hare

Jai (although that seems under wraps)

myrlang

Odin

Pony

Rust

V (a highly-controversial language on account of is accusations of hype)

Zig

Are there any other languages that you think should be added to the list?

Regards