make handles bold.

This commit is contained in:
ed committed 2026-08-25 16:26:52 -04:00
1 parent f577242432
commit 69b87777e5
728 files changed
+3291 -3087

No files matched your search

@@ -26,9 +26,9 @@ parent_post_id: "1990462184170926463"
## Branch
**1/** @Cheezaight
**1/** **@Cheezaight** ^1990482324635725950
@valigo @NOTimothyLottes
**@valigo** **@NOTimothyLottes**
If this is not Timothy Lottes then who is it?
@@ -26,15 +26,15 @@ parent_post_id: "1990462184170926463"
## Branch
**1/** @mrsteyk1
**1/** **@mrsteyk1** ^1990467157357150599
@valigo
**@valigo**
His style goes a bit beyond that, judging by the defines used it’s similar to some form of literate programming but with C preprocessor. And the whole RAM thing iirc was for when he was hot reloading C, he said he later switched to GPU and it’s not exactly required anymore?
**2/** @NOTimothyLottes
**2/** **@NOTimothyLottes** ^1990502146979344767
@mrsteyk1 @valigo
**@mrsteyk1** **@valigo**
Oh I still use the RAM global struct and pointer even without using CPU side hot reload.
@@ -25,7 +25,7 @@ in_reply_to: ""
## Thread
**1/** @valigo
**1/** **@valigo** ^1990460012385522118
People who say "C is modern-day assembly" usually way undershoot it. This guy actually writes C like it's asm:
- No types - uints everywhere until a cast to actual type on access.
@@ -35,7 +35,7 @@ Is this how all GPU programmers write C?
![](https://pbs.twimg.com/media/G5-G1WZXoAIm5WW?format=jpg&name=orig)
![](https://pbs.twimg.com/media/G5-HR8yXoAEae5Z?format=jpg&name=orig)
**2/** @valigo
**2/** **@valigo** ^1990462184170926463
This is @NOTimothyLottes btw, with his "Fixing C" talk, it's very cool. I really like mixing up shader code and regular C code in the same file and just ifdefind it out depending on which compiler you runt it through: https://www.youtube.com/watch?v=RrL7121MOeA
@@ -26,21 +26,21 @@ parent_post_id: "1990506460531601538"
## Branch
**1/** @Ron172892111531
**1/** **@Ron172892111531** ^1990816225815875661
@valigo
**@valigo**
Wouldn't this make working with arrays more difficult? Array[1] would have to be Array[sizeof(data)] etc
**2/** @valigo
**2/** **@valigo** ^1990816587268452795
@Ron172892111531
**@Ron172892111531**
As I said somewhere else, it makes sense sizeof pointer math to be the default. I was just saying that it's confusing because "+1" is not actually "plus one"
**3/** @Ron172892111531
**3/** **@Ron172892111531** ^1990919087174672673
@valigo
**@valigo**
Ptr+1. It's not plus one byte (or int addition), it's plus one object. I think it's only confusing when people assume pointers are just fancy integers. They're meant to work with arrays, and they do flawlessly as long as one remembers that they are an extension of the array
@@ -26,7 +26,7 @@ parent_post_id: "1990506460531601538"
## Branch
**1/** @TheBonkMaykr
**1/** **@TheBonkMaykr** ^1990800281248936078
It is confusing if you aren't used to it, that is true. But if you care about portability, letting the C compiler decide what the size of a pointer is, and how to handle pointer arithmetic, is better long-term.
@@ -26,17 +26,17 @@ parent_post_id: "1990506460531601538"
## Branch
**1/** @attamayte1
**1/** **@attamayte1** ^1990701881744896485
@valigo
**@valigo**
Pointer arithmetic based on type sizes makes sense when considering aligned load/store memory operations.
I’d argue that even today, with relaxed rules, we commonly use typed arrays and calculate offsets in bytes only when working with generic buffers, like binary data blobs.
**2/** @valigo
**2/** **@valigo** ^1990702455730929959
@attamayte1
**@attamayte1**
Yeah it makes sense for it to be the default. It's still confusing :)
@@ -26,9 +26,9 @@ parent_post_id: "1990506460531601538"
## Branch
**1/** @furiouswhopper
**1/** **@furiouswhopper** ^1990793698985324939
@valigo
**@valigo**
For real I'm parsing through a binary array and trying to say "the next byte is a uint8_t, the next two bytes are a uint16_t" and the most elegant way to do it is mind-numbingly ugly pointer bullshit.
@@ -26,9 +26,9 @@ parent_post_id: "1990506460531601538"
## Branch
**1/** @mrsteyk1
**1/** **@mrsteyk1** ^1990655861749133343
@valigo
**@valigo**
I had the displeasure of being exposed to Hex-Ray’s decompiler for years so I have gotten used to it, but it is annoying ye…
@@ -26,9 +26,9 @@ parent_post_id: "1990506460531601538"
## Branch
**1/** @levs57
**1/** **@levs57** ^1993312449379127742
@valigo
**@valigo**
Interestingly, if you try to write Rust in this way, pointer provenance will cause misoptimizations that break everything.
@@ -25,28 +25,28 @@ in_reply_to: ""
## Thread
**1/** @valigo
**1/** **@valigo** ^1990506460531601538
When it comes to pointers, "just use 64 bit integer" is way more intuitive to me. I still remember how confusing it was that "pointer + 1" actually means "+ size_of(type_we_point_to)" when I learned all this stuff. It still kinda messes me up not gonna lie.
Branches: [[archive/threads/valigo/2025-11-17-when-it-comes-to-pointers-just-use-64-bit-integer/2025-11-18-mrsteyk1-i-had-the-displeasure-of-being-exposed-to-hex]], [[archive/threads/valigo/2025-11-17-when-it-comes-to-pointers-just-use-64-bit-integer/2025-11-18-attamayte1-pointer-arithmetic-based-on-type-sizes-makes]], [[archive/threads/valigo/2025-11-17-when-it-comes-to-pointers-just-use-64-bit-integer/2025-11-18-furiouswhopper-for-real-im-parsing-through-a-binary-array-and]], [[archive/threads/valigo/2025-11-17-when-it-comes-to-pointers-just-use-64-bit-integer/2025-11-18-TheBonkMaykr-it-is-confusing-if-you-arent-used-to-it-that-is]], [[archive/threads/valigo/2025-11-17-when-it-comes-to-pointers-just-use-64-bit-integer/2025-11-18-Ron172892111531-wouldnt-this-make-working-with-arrays-more]], [[archive/threads/valigo/2025-11-17-when-it-comes-to-pointers-just-use-64-bit-integer/2025-11-25-levs57-interestingly-if-you-try-to-write-rust-in-this]]
**2/** @onelivesleft
**2/** **@onelivesleft** ^1990525482295832860
@valigo
**@valigo**
Distinct syntax for pointer arithmetic would be good. i.e.
ptr += 1; // ptr = ptr + 1;
ptr ++= 1; // ptr = ptr + 1 * size_of(type_of(ptr));
**3/** @valigo
**3/** **@valigo** ^1990525680065577199
@onelivesleft
**@onelivesleft**
Not sure I agree with specific sign choice but I kinda dig the concept
**4/** @onelivesleft
**4/** **@onelivesleft** ^1990526589470482553
@valigo
**@valigo**
Well, you know, only applicable for languages that don't have a ++ :P