Oh that brighten my mood. When I was in between jobs, I bought a bunch of ATTiny13A with similar specs and was genuinly surprised how much power such a little device has, given its ridiculously low energy consumption. I had zero HW experience prior to that, so to educate myself I started to implement firmware from scratch in zig, and advanced from UART to SPI to I²C and ended up on USB implementation, which I didn't finish because I got hired.
No particular reason. I've liked high-level capabilities that would translate into very low level code and amount of control, but on the other hand I couldn't use existing AVR backend because it produced very verbose code, so I ended up using Zig-to-C and avr-gcc, but it also produced subpar machine code which I was unhappy with. E.g. for loops that were bound by less than 255 iterations — 1 byte — it produced 4 instructions while 3 were enough, if I remember correctly). And for protocol implementations where timings are strict I've simply ended up with sprinkling code with ASM insets here and there to match timings. I also liked the fact that I could set ATTiny fuses straight in zig's comptime, but then they updated zig and that particular edge-case stopped to work.
Master Git and a novice were walking to the market to collect alms.
The novice asked: "Master, what is the advantage of unstructured text over structured? Is it not mere adoption?"
Master Git said nothing and pointed to the first shop, kept by the old scrooge Postgre.
As they entered, Master Git said quietly, shaping his mouth funnily:
SELECT weight/2 FROM shelf WHERE name = ''
Postgre, long weary of Master's wisdoms, took a weight of three from the nameless shelf and cut it unevenly. The whole piece he pressed into the novice's bowl; the larger part, he kept for himself.
Next stood a shop kept by a bright newcomer, Duck D'Bee.
Master Git repeated:
SELECT weight/2 FROM shelf WHERE name = ''
Duck D'Bee smiled, carefully took an unnamed jar from a vertical stack and handed over one piece and half of another.
Their journey ended at a giant abandoned building beneath a dead neon sign: ORCL. The door stood open. Inside, putrid odour and dust lay upon deflated balloons and faded banners saying A.I. The shelves were still full of unmarked boxes.
Master Git shouted into the dark:
SELECT weight/2 FROM shelf WHERE name = ''
Silence was the reply. At this point the novice became enlightened.
reply