Fanoplanes tildelog

whatever, really

Simple C Hello world

July 12, 2024 — ~fanoplanes

because why not

#include <stdint.h>
#include <stdio.h>

uint64_t thingies[8] = {6067222560, -14845362264, 13980265334, -6589377431, 1710792125, -248465651, 18919901, -588254};

uint64_t extraction(int);

int main() {
    for(int i = 1; i <= 8; i++) {
        for(int j = 0; j < 2; j++) {
            putchar((extraction(i) >> (8*(1-j))) & 0xFF);
        }
    }
    return 0;
}

uint64_t extraction(int point) {

    uint64_t output=0;
    uint64_t input=1;
    const uint64_t stable_input = point;
    for(int i = 0; i < 8; i++) {
        output += thingies[i]*input;
        input *= stable_input;
    }
    return output/5040;
}

When you run it, you get

Hello, besties!

read more...

Contour integration in Racket

June 02, 2024 — ~fanoplanes

I created the first half of this last year for pi day. Back then, I wrote it in C and just integrated 1/z along a square contour to get π. A few days ago I came back to it, and rewrote it in racket. But then I realized, I can actually make a function that integrates along any curve very simply.

read more...

Who or what is FanoPlanes

January 13, 2024 — ~fanoplanes

I’ve been radio silent on tilde team for quite a while now. I’ve been diligently watering my plants in botany and using the nice mailbox. Let’s say I had a bit of a situation. I dropped out of school because of some issues that don’t deserve to be mentioned. I now work as a quality engineer manager person etc. I can’t really give my position a name since it’s a small firm, so the ususal structures don’t easily map one-to-one. I’m basically the designated quality person. My new job happened to be quite a good fit for me, since I get to be the arcane bullshit understander. The company sells consumer electronics and home appliances And is in EU, meaning outside of the usual maintenance of quality of products, I also have to understand the rules of compliance with harmonized standard, which is a lot of reading of dense legalese (think BDG Unraveled OSHA video).

Anyway, having a personal webbed site might be nice.