A running list in the intersection of things I want to remember and things I don’t mind the internet knowing about me.
Picturing slice/concat/reshape operations on high-dim arrays gives me the same feelings as ASMR for some weird reason.
Here’s one I was just thinking about:
[4, 5, 3] -> SLICE@0, 4 * [1, 5, 3] -> concat@2 -> [1, 5, 12]
is not the same as
[4, 5, 3] -> RESHAPE(1, 5, 12)
To put it into words: Slicing + concat along different dimensions can’t be replaced by a single reshape, unless the slicing + concat operate on subsequent dimensions. So that means:
[4, 5, 3] -> SLICE@0, 4 * [1, 5, 3] -> concat@1 -> [1, 20, 3]
is the same as
[4, 5, 3] -> RESHAPE(1, 20, 3)
Although C++ is a powerful language, it’s quite easy to write ugly code. An example of the contrary is Glow. The graph optimizer code is a joy to read. Going to use this as an example of steller C++ code.
Graphs are amazingly useful structures. Wanted something that could generate
a single C++ header file given my project’s
Went around looking at pre-existing tools, but they either were not compatible
with my build system (good ol’
CMake) or too complex to set up.
quom looks promising as a general
Wrote my own
shadesmar-specific single header generator. It’s called
The core logic is embarrassing simple:
But as usual, the string handling (which is most of the code) was annoying. There’s a little bit more code to deal with file-specific include guard removal.
I recently got a new PC. To play games I installed Windows. I hate Windows. Read a blog post that encapsulates why I hate it. This is similar to another video by Jonathon Blow. That’s not to say Windows is the only thing guilty of this, there’s plenty of inefficient, janky softwares I use of a regular basis.
After playing games like Red Dead Redemption 2 over the last couple of days, I’m gobsmacked by people who write game engines. They are far less guilty of the above.
I’m going to try Proton now, and try to get started with some basic game engine work.
I accidentally deleted 6 hours of uncommitted work:
~/W/shadesmar> rm -rf * zsh: sure you want to delete all 21 files in /home/squadrick/Workspace/shadesmar [yn]? y
I thought I was in
build deleting compiled targets. Time to retype from memory.