Free State Labs

Tools

I used to think it was kind of weird to write about one’s favorite tools (“EDC”, etc), but then I realized I actually found it fascinating to hear what other people used or did not use in their work. So here are my tools of choice for writing and writing code.

Writing

I write nearly everything on paper or in Markdown files. Recently, I’ve started to write by hand more and more, and I’m finally starting to actually run out of pages in my notebooks! I suppose Markdown is ubiqitous at this point in time, but I do find it a nice medium between hand-written HTML (lol) and plain text files.

I get a bit anxious about tools that hide your writing/data behind proprietary databases or file formats. I use Standard Notes for cross-platform notes syncing (its nice to be able to take notes on the go with a phone), which has several open-format export options. I don’t use the Apple Notes app or other productivity/notes tools for this reason.

For publishing websites, I now use Zine, which is a static site generator written in Zig. I’ve used both Jekyll and Hugo, and hated the first and never got the hang of the second. Zine has been fantastic so far and just gets the job done.

Editors

I generally use VSCodium on all of my computers. It has some weird bugs and I really couldn’t tell you how to configure it besides changing the theme, but it works for me, for the most part. I’d love to learn how to use a modal editor like Vim, Emacs, or Helix, but every time I try I immediately get disoriented and lost interest.

In the terminal, I like using nano for editing config files over SSH and such. I suppose that’s sort of a modal editor?

Computers

I’ve picked up a few computers over the years; I’m on my fourth desktop PC and fourth laptop (the symmetry is weird). Kind of crazy to think about how privileged that is compared to just a few decades ago.

My daily driver is a 14” 2021 M1 Macbook Pro with 16GB RAM. I picked it up at a nice discount and I’ve been amazed by the performance ever since. Physically it’s pleasant to carry about and type on, and it has a nice screen. The 6+2 processor and unified memory architecture really holds its own against workstation Intel CPU’s. I like the Unix-y dev environment, though I wish I wasn’t in the proprietary Apple ecosystem. My next laptop will probably be something repairable and hackable, running a flavor of Linux.

My main workstation is a 16-core 9950X (Zen 5) with 64GB DDR5-6000 and an RTX 3070 (8GB) running Ubuntu (boring, I know). This CPU is an absolute beast. Memory bandwidth wise, it “only” gets ~80-100 GB/s, but it totally smokes compute-bound tasks, especially since it supports AVX-512. I’m working on a matrix-free finite element solver and expect some pretty amazing results on both the CPU and GPU.

I also have an 8-core Zen 4 CPU + 32GB DDR4 running my server, as well as a much older 4790K + 16GB DDR3 waiting to be resurrected into something useful. The server is a fairly standard Proxmox setup running Ubuntu (yawn, again) on a few VM’s for Caddy, Technitium, Seaweedfs, Vikunja, Actual Budget, and Forgejo. Generally, I manage it in the terminal through SSH, plus a few choice rsync bash scripts for updating config files.

Software development

Languages

I started out learning Python as a kid in elementary school (thanks Dad!) and had a brief on/off stint with MATLAB in a few college courses and my first job. At some point, I thought I needed to learn C, but progress was slow - I had no idea what I was doing. At the end of grad school (2020), I discovered Julia and was off to the races. Julia wasn’t a perfect language, but it got me started down the path of doing useful things with software that I wrote. Also in grad school, I took a pretty serious course on OOP in C++, but nowadays you couldn’t pay me enough to write something using either of those two things.

I got on a performance engineering kick with Julia and spent some time fine-tuning magnetics simulations. However, I ran into a wall: Julia’s type system is “squishy”, and all of the interesting performance software engineering tutorials and tricks were in C. So, I went back to learning C. For all of its warts, I liked the idea that C gave me precise control over the computer (even though it often doesn’t do that..) and forced me to really reckon with what the computer is really doing (well, it definitely does do that!) Along the way, I got tired of writing header files and dealing with silly things like debugging (invisible) extra spaces at the ends of lines in a Makefile.

Then, in an effort to collaborate with a scientific software team at work, I started writing some serious projects in Rust. To date, my most impressive software projects are and have been in Rust. It’s an immensely productive language for me, despite actively avoiding approximately 75% of its features and as much of the crates ecosystem as possible. Most of my Rust projects serve as the computational core to a Python API. I hold firm in my belief that Python was never intended and should never be used for large software applications, though I have begrudgingly learned that it is pretty nice for scripting and telling the computer what you want it to do.

Recently, I’ve started learning Zig and am baselining most of my new projects in this language. After watching from the sidelines for some time, I’ve realized that the user base and dev team more closely align with my beliefs about software than the mainstream Rust community, though absolutely hats off to the core Rust team that made the language possible. If I was selling software products, I’d write them in Rust, but since I’m a hobbyist focused solely on the journey and much less on the destination, I’m choosing a language that helps me achieve that goal.

Libraries and Tools

Python

I feel that Python is incomplete without NumPy and Matplotlib. I also wouldn’t tolerate the language without uv, ty, and ruff. pyvista and pyside6/Qt are also pretty great.

Rust

Normally, I try to avoid most dependencies in my compiled code. When writing programs that have a Python API, I generally can’t really avoid pyo3 and numpy. For linear algebra, I’ve been using faer, though much of its design is over my head.

Generally, I don’t use rayon (std threads are often plenty for my purposes), serde, tokio, etc.

Zig

I’m new to this language and most of my in-work or planned projects completely avoid dependencies. I want to try ziggy instead of writing my own TOML parser, but I haven’t gotten that far yet.

C

I don’t use a lot of C libraries (for good reason - vendoring can be difficult!)

However, I do like raylib and raygui. I plan to use raygui as the core for a scientific simulation gui/plotting library I’ve been kicking around. I also heavily use the gmsh C and Python API’s for 3D meshing.

Typically I compile with either gcc or clang, I don’t have a preference. I use make for my builds but do not pretend to understand it.

Source Control

I version control all of my projects in git, another tool that I only pretend to understand about a tenth of its features. I prefer Sourcehut to GitHub and somehow can’t get an account on Codeberg.

Locally, I run an instance of Forgejo on my LAN and honestly like that best. Due to poor commit hygiene, I often end up with fairly large commits and like Sublime Merge for reviewing changes. I think thats the only closed-source tool on this entire list.

On the TODO List

I’d love to find time to learn:

Summary

Wow - when I sat down to write this, I didn’t realize I had so much to say!