Post B0cwQubdXK7rvahn72 by ori@hj.9fs.net
 (DIR) More posts by ori@hj.9fs.net
 (DIR) Post #B0cuY6KCAJ6YOKqbU8 by neauoire@merveilles.town
       2025-11-26T04:45:32Z
       
       1 likes, 0 repeats
       
       I had this funny idea last night, when I have two stacks in memory, say a[0x80] and b[0x80], instead of putting them next to each other, in cases where I'm limited in space, I can overlay them on top of each other [a .. b] and make the second grow backward.So, the a pointer grows toward b, and the b pointer grows downward toward a. The first pointer to cross over the other throws a overflow error. @june called this tug-o-war memory model, I like it.https://git.sr.ht/~rabbits/drifblim/commit/2fe4f758986fd68275bdb2781ccf6020d6875acf
       
 (DIR) Post #B0cvAoU6Qd4GM3wP8C by neauoire@merveilles.town
       2025-11-26T04:52:31Z
       
       0 likes, 0 repeats
       
       Stay tuned for more insomnia induced commits that might not turn out to be that clever in the light of day.
       
 (DIR) Post #B0cvMuYdfsKifJpcKO by neauoire@merveilles.town
       2025-11-26T04:54:41Z
       
       1 likes, 0 repeats
       
       @lunabee @june ah! that's cool, I was wondering if there was examples of this in the wild, someone on IRC said that apparently some parts of TeX also worked that way.
       
 (DIR) Post #B0cwFwNyZz9eGJ5HPc by ori@hj.9fs.net
       2025-11-26T05:01:28Z
       
       1 likes, 1 repeats
       
       From early Unix: sbrk and the stack.It's a good idea.CC: @june@social.nouveau.community
       
 (DIR) Post #B0cwQubdXK7rvahn72 by ori@hj.9fs.net
       2025-11-26T05:02:06Z
       
       1 likes, 1 repeats
       
       From early Unix: sbrk and the stack.It's a good idea.CC: @june@social.nouveau.community
       
 (DIR) Post #B0cwSFGEEDJoHEKMlc by neauoire@merveilles.town
       2025-11-26T05:06:52Z
       
       0 likes, 0 repeats
       
       @ori @june I had no idea!https://www2.lawrence.edu/fast/GREGGJ/CMSC480/malloc/malloc.html
       
 (DIR) Post #B0d96o2dX4GXBH4rQG by netspooky@haunted.computer
       2025-11-26T07:28:37Z
       
       0 likes, 0 repeats
       
       @neauoireThere have been a few linux bugs related to this that seem relevant. I like the name "tug-o-war memory model"!https://www.qualys.com/2017/06/19/stack-clash/stack-clash.txt@june
       
 (DIR) Post #B0dC1RZ7yBVNt5PRNQ by neauoire@merveilles.town
       2025-11-26T08:00:34Z
       
       0 likes, 0 repeats
       
       @netspooky @june neat! Reading through it right now, it doesn't seem like this would be in issue in my case, the implementation is done entirely in userspace, and does boundary checking before each write, and each can't exceed 10 bytes in length.