I write a simulator from scratch in Nim and visualize on the web with D3!
Table of Contents The setup Sensor data probing Prometheus Grafana The build During the COVID pandemic all of us had to work from home. The rapid change from work being at the office now being completely at home came with many challenges such as work-life balance, good ergonomics and ensuring enough exercise to keep your body (and mind) healthy.
Table of Contents Introduction The problem Step 1: Reaching the target area. Step 2: Determining the max height Finding the trajectory with the max height. Reflections and conclusions Introduction Over the years I have grown quite fond of solving riddles.
Table of Contents What are header files? Cython pure mode Benchmarks Summary In coding there is a trade-off between writing abstract code, and high performant code. This trade-off is often embodied in different languages.
One of the traditional models that come up time and time again is the Ising model. Originally developed to study ferromagnets, the model is considered one of the simplest models that exhibits “complex” behavior and has been applied to study a variety of phenomena such as opinion dynamics, neural dynamics, segregation, and even criminal systems.
Designing and building a splitkeyboard from hardware to firmware!
In a previous post, I created the fastest chicken alive! I implemented a chicken in cpp and provided bindings in cython and python. However, our chicken Carl needs some friends. Today, I will implement a friend for Carl, in another morer niche language called nim; and I will show how nim can produce similarly fast chickens that can be called from python.