Debugging Go using Helix and Delve

This is a short tutorial on how to setup and start debugging go in Helix. Assuming knowledge of how to use Helix’s basic editing and go. Helix has built in support for DAP (Debug Adapter Protocol). It can do things like step through a program, setup breakpoints, and inspect local varaibles. Currently not as capable as the debugging tools avaialble in Intellij or Visual Studio, but can be useful if you want basic debugging abilities without the need for a full GUI based IDE....

July 11, 2023
Our pet salamander: Corn

Adventures in Zig

Zig is a general purpose programming language, it is low level, type safe, and doesn’t allow values to be null, not unlike rust. Where zig differs from rust is mostly in what it lacks: it has no official package manager yet, functions are not first class citizens, and no traits or classes, making most of the code very C like and procedural. These differences were expected when trying out zig, some others I was not prepared for....

April 29, 2023

Mapping values in python

Learning python recently as well as choosing it as my tool for solving Advent of Code this year, I’ve seen a few ways to call a map type function on a list of data and get a new list based on the data inside. Most commonly I’ve seen list comprehensions. As a non python dev this is most jarring approach, but also one of the simpliest looking once you get the hang of seeing it....

December 5, 2021

Advent of Code 2021

Advent of code done in python. This is something I try every year but never fully finish. I also try to do it in a new language each year, this year was python. I started learning python earlier this year. I’ll try to update ealier solutions as I learn more syntax and efficient ways to do things. link to gist Index Day 1 Day 2 Day 3 Day 4 Day 5 Day 6 Day 7 Day 8 Day 9 Day 10 Day 11 Day 12 Day 13 Day 14 Day 15 As you can see I did not make it the full month unfortunately....

December 1, 2021

Learning Svelte

This post is my notes when creating All in pre Flop, a small svelte app used to determine the odds of winning a hand at hold’em. Svelte is very easy to get started, the starter command creates a minimal project. npx degit sveltejs/template all-in-pre-flop-svelte cd all-in-pre-flop-svelte npm install This creates a project with the following npm scripts "build": "rollup -c", // builds the app for production (exports files into public folder) "dev": "rollup -c -w", // starts a server serving on localhost:5000, rebuilds the app every file change "start": "sirv public" // starts a server pointing to the public folder There are no “controllers” in svelte, just components, these have extension ....

April 10, 2020