This is literally how LLMs work
Posts by Тsфdiиg
People often ask me why do I choose to do pre-increments in my for-loops instead of post-increments. The answer is actually very simple. I don't fucking know, stop asking me that.
I was annoyed that I had to set two fields instead of one.
Check it out! github.com/tsoding/ht.h
I made a Hash Table in pure C that you can just use like this:
I wonder how it compares to display tablets 🤔 (never used them, they are too expensive for me)
I decided this is gonna be my new profile pic. If you don't like it, well too bad. I already lost the previous one.
gn
Me when I take off my glasses
What I discovered by letting my normie relatives use my laptop is that if you use Linux with i3 window manager you don't need a screen locker at all.
STEM is like LGBT but with nerds.
omg this is great! Thank you whoever drew this!
OpenSSH is the best git server.
Smaller cursor is the system's cursor. The bigger one is the in-game cursor.
I've got a simple level editor working for my Software Rendered 3D Game
Man I'm watching Tech YouTube videos from ~10 years ago and they feel like a window to such a radically different world. People used to care about shit.
I grepped some things around. What I found so far
#no_aoc stands for "no arithmetic overflow check"
#no_abc probably stands for "no array boundary checks", but I'm not 100% about this one.
Cool insight about djb2 hash function from the Hash module that is shipped with Jai
Apparently strings.h is a thing. And string.h includes it. 😂
TIL libc provides a weird useless function called "index". I discovered it by renaming a local variable "index" (reasonable name for a variable) and having my code successfully compile but with a warnings saying "dude, you are comparing int to a function". And I was like wtf.
Inspired by @tsoding.bsky.social I've ported my OpenGL C++ Flappy Bird clone to wasm with HTML canvas, instead of using Emscripten. It was a fun journey making the game and engine platform agnostic.
From Emscripten to Wasm - Flappy Alien
a-nameless-ghoul.itch.io/flappy-gl/de...
In a somewhat recent Tsoding stream, I've heard about venation pattern algorithms, and tried to implement one (Runions et al.). You may try it yourself at chalier.fr/generative-a...
Uhm... You mean tablet? Just a cheap Wacom tablet like this one
It's ok. You can talk shit about me publicly. I don't mind. I'm huge proponent of freedom of speech. :)
Did this sketch recently. Still haven't found any motivation to color it or whatever. Maybe one day I will. Posting it here just in case.
Literally this
It's very telling that the bright picture of the future today is called *Retro*futurism.
It is cool! Here is a demo of it when it was called SparrowOS and Terry didn't decent completely into schizophrenia yet, so you can hear the actual thought process behind this awesome OS for Recreational Programming :) www.youtube.com/watch?v=zFJZ...
Somebody discovered my Crust videos 🥹