Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
glouwbug
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
71 ms
·
811.
▲
by
glouwbug
7y ago
That's literally less than one subscriber per video
812.
▲
by
glouwbug
7y ago
Never marry, am I right fellas
813.
▲
by
glouwbug
7y ago
A working train without tracks is non-working machinery. They only laid down a mile of tracks for the show
814.
▲
by
glouwbug
7y ago
Why not with an AVR? https://youtu.be/sNCqrylNY-0
815.
▲
by
glouwbug
7y ago
See how far you can get with: #define int const int #define float const float etc... It makes for some interesting patterns
816.
▲
by
glouwbug
8y ago
How many 40 year old projects have we maintained that has broken _some_ backwards compatibility? C++ is a triumph in engineering rivalled by something like a megacity transportation system - it's massive, some of it is dark and scary,
817.
▲
by
glouwbug
8y ago
I'm almost certain he isn't
818.
▲
by
glouwbug
8y ago
Why not just use an enum for the switch, and if strings need to reflect the enum, use an xmacro to expand the enum into an array of strings? https://github.com/glouw/andvaranaut/blob/master/src/Theme
819.
▲
by
glouwbug
8y ago
I started something similar 2 years ago and I'm now actively pushing for a release date 1-2 years from now. https://github.com/glouw/andvaranaut
820.
▲
by
glouwbug
9y ago
Thankyou for the kind words.
821.
▲
by
glouwbug
9y ago
Hi, I'm glouw. Structs on the stack I pass by value. Structs on the heap I pass by pointer. It's a mental thing that I find helps with large codebases.
822.
▲
by
glouwbug
9y ago
Thankyou, my friend ;)
823.
▲
by
glouwbug
9y ago
You're allowed to swear on the internet
824.
▲
100 line neural network library written in C99
(github.com)
4 points
by
glouwbug
9y ago
|
0 comments
825.
▲
Show HN: Gel – N64-like software renderer in C
(github.com)
21 points
by
glouwbug
9y ago
|
3 comments
826.
▲
by
glouwbug
9y ago
You are correct. On a much larger project with a similar software engine, if I change all structs I pass by value to pass by reference my instruction count shoots up by 40% according to cachegrind (flto + ofast). Amazing how powerful pass b
827.
▲
by
glouwbug
9y ago
Thats a very interesting name for your project
828.
▲
by
glouwbug
9y ago
I do so to enforce a single return value from functions. Given: static void damage(const Hero* hero, const Sprite* sprite); The const can easily dropped later in production from both entities, potentionally creating two return valu
829.
▲
by
glouwbug
9y ago
Correct. The doom adage was in reference to ceiling and floor casting support; wolfenstein painted the ceiling and floors a solid color.
830.
▲
A Tiny Wolfenstein-Like Software Engine
(github.com)
267 points
by
glouwbug
9y ago
|
44 comments
831.
▲
Delaunay Triangulation for Image Weaving
(github.com)
2 points
by
glouwbug
9y ago
|
0 comments
832.
▲
Weaver
(github.com)
2 points
by
glouwbug
9y ago
|
0 comments