Category: Code

Python Packing Streams of Arbitrary Length

When starting out with IO and learning to efficiently read and write binary structures to and from Python most people will confront the problem of packing a string or list into a structure. Variations of this question plague Stack Overflow, here are two quick examples:https://stackoverflow.com/questions/3753589/packing-and-unpacking-variable-length-array-string-using-the-struct-module-in-py, https://stackoverflow.com/questions/34117620/how-to-unpack-variable-length-data-in-python-struct I have a rather simple solution I decided to […]

Tro reads __ series

Introduction: I’m hoping to start a new content series where I slowly read math-heavy non-fiction books and try to port them into programming languages as I go along. Usually I’d say it will be in Python, though if the situation calls for it I will use whichever language I believe is ideal for the task. […]

Online L-System Drawer
Online L-System Drawer

The L-System, or Lindenmayer system, named after it’s creator, Aristid Lindenmayer.L-systems were introduced in 1968 to describe the behavior of plant cells and model the growth of a variety of organisms. However, L-Systems are an incredibly versatile tool. In no way are they limited to biology; anywhere requiring parallel state changes can be modeled with […]

Back to top