The Missing Bit

Posts

Testing Zig for embedded development
2022-06-22

I have been using rust as embedded language for cortex M MCU for a while.

While I like rust, embedded dev in rust has some friction, and a few things are a bit hard to do. Especially C interop and direct memory manipulation.

I decided to give zig a try, and while it is still in very early stage compared to rust, I was able to get a working hello world program quite quickly. And I was able to get RTT working with the SEGGER C library.

In this post, I'll share what I learned and a few gotchas.

TLDR: The repo is here: https://github.com/kuon/zig-stm32test

Read more

Configuring a Mail server on OpenBSD
2022-05-15

As certainly many of us do, I use email a lot.

Currently I am using fastmail, it works quite well, but I have a few issues:

  • Spam filter is hard to tune to my exact needs
  • IMAP is slow from my location

In this post, I'll share how I configured my own IMAP server.

This is part one of two, which focus on IMAP.

Read more

Configuring esbuild with phoenix and tailwind
2022-03-15

This is a quick setup for phoenix 1.6, live view and tailwind for CSS.

Read more

Configuring IPv6 with DHCP-PD on OpenBSD
2022-03-15

In this post I will share how I configured my OpenBSD router for IPv6 with DHCP-PD.

Read more

How to kill a TCP socket under linux
2022-02-21