WelcomeUser Guide
ToSPrivacyCanary
DonateBugsLicense

©2025 Poal.co

135

I did not know this but there exists something called a "long jump" which saves the current stack and execution pointer and can let the program jump back right to that state. It's mainly used for escaping signal handlers back to a working state in your code.

That mf'ing regex code that comes with the latest c++ standards is excellent. However for some reason it comes with stack overflow bugs on mildly sized / complex regex calls. In my situation I'm making 100s of thousands of calls, if one fails it's not a big deal. But what's a big deal is if the whole code crashes.

Also another thing about stack overflow signal handlers. They register as a segmentation fault because the compiler allows program to run past the allotted stack. However because it went past the allotted stack, there is no remaining stack for the signal handler. So you have to put in extra calls to add in an alternative stack just for stack overflow signal handlers.

Always cool working with signal handlers in a viable way since they're "old code" "from the forgotten days".

I did not know this but there exists something called a "long jump" which saves the current stack and execution pointer and can let the program jump back right to that state. It's mainly used for escaping signal handlers back to a working state in your code. That mf'ing regex code that comes with the latest c++ standards is excellent. However for some reason it comes with stack overflow bugs on mildly sized / complex regex calls. In my situation I'm making 100s of thousands of calls, if one fails it's not a big deal. But what's a big deal is if the whole code crashes. Also another thing about stack overflow signal handlers. They register as a segmentation fault because the compiler allows program to run past the allotted stack. However because it went past the allotted stack, there is no remaining stack for the signal handler. So you have to put in extra calls to add in an alternative stack just for stack overflow signal handlers. Always cool working with signal handlers in a viable way since they're "old code" "from the forgotten days".

(post is archived)

[–] 0 pt

That's pretty cool, man. I haven't written anything that low level yet, really. Some Arduino programming, but that's mostly just learning the sensor libraries and such.

Regex is a bitch in any language. I still need to finish reading Mastering Regular Expressions. It was pretty good, and I just stopped reading it for no reason.