polonius-rex

joined 5 months ago
[–] [email protected] 34 points 4 months ago* (last edited 4 months ago)

because piracy is a service problem

[–] [email protected] 8 points 4 months ago (1 children)

i'm not worried because an android that heavy couldn't even stand up

[–] [email protected] 6 points 4 months ago (8 children)

you really think ONE android could wipe out life as we know it?

[–] [email protected] 5 points 4 months ago

it's semantic

at the end of the day everything boils down to sequence and branchifs

[–] [email protected] 9 points 4 months ago* (last edited 4 months ago)

shut your mouth

[–] [email protected] 7 points 5 months ago (1 children)

it looks like something out of modern high fantasy

[–] [email protected] 1 points 5 months ago* (last edited 5 months ago) (1 children)

yeah i mean if you grok the underlying workings of scanf then there's no problem

i'd just argue that the problem is understanding what you need to understand is the problem with straight c, and with any language like c++ where you're liable to shoot thineself in thy foot

[–] [email protected] 2 points 5 months ago (3 children)

How? They go where they point, or to NULL, and can be moved by arithmetic. If you move them where they shouldn't go, bad things happen. If you deference NULL, bad things happen. That's it.

what part of that is explicit to how scanf works?

[–] [email protected] 2 points 5 months ago* (last edited 5 months ago) (5 children)

All of C++? That's unreasonable, it's even in the name that it's very expansive.

similarly, "all of pointers" is unreasonable

"all of pointers" can have a lot of unexpected results

that's literally why java exists as a language, and is so popular

Plus all previous operating systems, all supercomputer climate, physics and other science simulations, all the toaster and car and so on chips using bespoke operating systems because Linux won't fit, every computer solving practical engineering or logistics problems numerically, renderers...

sure, and the quantity of code where true low-level access is actually required is still absolutely minuscule compared to that where it isn't

[–] [email protected] 1 points 5 months ago (7 children)

Once you understand pointers

once you understand C++ the pitfalls of C++ are reasonably consistent

I'm not sure I'd class much of OS programming and all embedded and high-performance computing as small

there are like what, 3 operating systems these days?

assume those are all written entirely in c and combine them and compare that to all code ever written

[–] [email protected] 5 points 5 months ago (15 children)

a footgun isn't inherently bad, it just implies a significant amount of risk

yes, if you need the ability to code on a low level, maybe C is necessary, but the times where that is actually necessary is smol

also rust

[–] [email protected] 6 points 5 months ago (17 children)

exposing the machinations of the underlying CPU with no regard for safety is like, the definition of a footgun

view more: ‹ prev next ›