[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


[Advertise on 4chan]


File: IMG_1855.jpg (14 KB, 554x554)
14 KB JPG
Why does /g/ call every instance of UB going wrong a skill issue?
>>
>>109682723
No, you're just stupid.
>>
>>109682723
Prove it, you absolute nigger.
>>
File: IMG_1866.jpg (129 KB, 1200x885)
129 KB JPG
>>109682723
>>
>>109682706
skill issue? do you even know what UB is? i think you have no idea what you're talking about
>>
>>109682723
inb4 first post can't fpbp
>>
File: 1788003147940358.png (34 KB, 720x651)
34 KB PNG
I have never seen undefined behavior behave in an undefined way. It always either segfaults or harmlessly reads a garbage value into a variable.
>>
>>109684549
all undefined behavior has a behavior defined at runtime, do you expect your pc to start emitting rainbow colors and spiral up into space?
>>
What if the compiler prevented UB, instead of delegating the task to the programmer?
>>
All attempts to remove UB have compromised performance (Fil-C) or usefulness and ergonomics (Rust)
>>
>>109684549
Undefined behavior means it's undefined by the C standard, however in practice some UBs are defined by compilers, but this is compiler specific.
>>109685165
Not true
Some UBs will always be undefined, even at runtime, like reading an uninitialized variable.
consider for example:
int main() {
int a; //uninitialized value
return a;
}

When compiled and then run multiple times, this program will give different exit values, there is no reliable way of predicting its return value and hence its behavior is undefined even at runtime



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.