troll_hacks

38 Followers
21 Following
20 Posts
In part 3 of writing a #brainfuck #compiler in #assembly and C++ we start the reimplementation and introduce some useful abstractions:
https://thacks42.github.io/2024/05/04/writing-a-brainfuck-jit-for-fun-and-profit-part-3.html
Writing a Brainfuck JIT for fun and profit. Part 3

Rewriting in C++

Low-level Shenanigans
it is time
Must've felt really down when I designed this one...
#pcb #kicad #hardware
In part 2 of my series on writing a #brainfuck #compiler in #assembly we discuss (and implement) some simple optimization passes and draft a way forward to more complex ones...
https://thacks42.github.io/2024/02/10/writing-a-brainfuck-jit-for-fun-and-profit-part-2.html
Writing a Brainfuck JIT for fun and profit. Part 2

Real compilers optimize

Low-level Shenanigans

Did you ever hear about Turing completeness, #brainfuck or spent too much time with a CS-theory major? Did you ever think about writing a #compiler but had no idea how to even start?

For whatever reason I wrote a brainfuck compiler in #assembly and c++ and finally managed to finish the first part of my blog article about it:
https://thacks42.github.io/2023/10/30/writing-a-brainfuck-jit-for-fun-and-profit.html

Writing a Brainfuck JIT for fun and profit. Part 1

Did you know that X is Turing complete???

Low-level Shenanigans
Sooo... someone told me there's a black market for these and they are worth a lot...?
RJ-45 connectors are cheap, durable, and have a decent mechanism for retaining cables.
Patch cables are cheap as well...
#kicad can't shout at us for abusing them...
So just use them for whatever data you need to get from A to B :P
Wohl eins der größeren #Hardware Projekte @neotopia in the making!
Für mehr Frischluft im Space 👾

Need to use #fixedpoint numbers on your #embedded target because it lacks a #FPU
Don't like using clunky C libraries to chain function calls if you just want to do some basic math?
Care about #performance?

Then this might be for you:
<https://github.com/thacks42/fixed_point_math>

Supports #floatingpoint literals,
all basic arithmetic operations,
boolean expressions,
and more!

try it out on godbolt:
<https://godbolt.org/z/1qr631MKe>

GitHub - thacks42/fixed_point_math: a templated header-only fixed point math library for C++

a templated header-only fixed point math library for C++ - GitHub - thacks42/fixed_point_math: a templated header-only fixed point math library for C++

GitHub
render your kicad schematics in unicode.
inspired by @janamarie https://github.com/thacks42/kicad-to-unicode
GitHub - thacks42/kicad-to-unicode: renders kicad schematic files in unicode

renders kicad schematic files in unicode. Contribute to thacks42/kicad-to-unicode development by creating an account on GitHub.

GitHub