Category: programming

  • Recreating an old Visualizer I swear I saw

    I have vague memories of a visualizer that I will likely never encounter without looking for it again. It was a waveform display but it had these rectangles that would ride them like boats, not really like surfing. Now, you might be wondering why I’m doing this when my library creates, at best, video. Well,…

  • img-genner Switching away from cl-png

    cl-png is a long lived package that mostly works, but it contains a single flaw, it relies on the presence of a library and the competence of the implementation in getting to it. It grabs the source and tries to build it. That’s one reason that I don’t much care for it. As much as…

  • Rescaling Video Using img-genner

    There’s not much of a reason to do this because ffmpeg has a much faster and nicer scaler, but maybe we want to write common lisp to handle an effect. When I introduced img-genner, I wasn’t sure that this was the direction to take, but now it seems appropriate, if nothing else. You will most…

  • Animating direct to mp4 with img-genner

    Two posts ago I started talking about img-genner. Guiding my authorship of the library by using it. Today I made a change that allows for what I think are exciting possibilities. One of the best uses I’ve found for this library has been using it to generate animations, surprisingly I’ve started to take a liking…

  • Drawing with img-genner

    I talked about img-genner’s glitch functions last time. Now you get to see the messier part of the library, as of (january 15th 2022), the part that needs refactoring and reconsideration. For one thing it is enormously picky in terms of types. So much so that much of the code broke regularly with only slightly…

  • Introducing img-genner, a Common Lisp Image Synthesis Library

    I have been working on the img-genner library(repo here) for quite a long time now, over three years if my memory serves me correctly. It contains a number of different modules, and frankly, it is a bit of a Frankenstein. At first it was about polygon graphics, then it became about pixel ‘glitch’ effects, such…

  • Forth and Optimization

    Forth is a strange old language. It’s among a relatively small number of concatenative languages that achieved any measure of success. Anyway, this isn’t something we’re going to go into much here because we’re thinking about something nearly tangential to the language itself. How you can make it fast. Stacks are somewhat slow compared to…

  • SB-SIMD, Early and Promising

    Common lisp is a dream. Not always a great dream(such as when using strings), but it’s sufficient and SBCL is a remarkably interesting compiler. One that tells you how you might let it make the code faster, such as adding type hints, etc. More recently, I’ve had the opportunity to work with sb-simd, a library…

  • Optimizing Pointless things

    So, we’ve been playing rimworld a lot recently. One of the mods we use is called Rim Factory, which is quite nice overall for building automated bases(yes this breaks the game’s economy, what of it?). One of the mechanics it adds is a buildable object called a sprinkler, which, instead of watering your plants(this isn’t…

  • Trying Out Zig

    So, we have heard good things about Zig. These boil down to the following things: Good speed Fast compilation Decent type system Simple Syntax So far, a lot of these things seem to be born out by the experience we’ve had, though, we have some criticism that is probably more along the lines of our…