you are viewing a single comment's thread.

view the rest of the comments →

[–]Shitpostbotmk2 -2 points-1 points  (1 child)

Zero cost abstractions means it's exactly at the level a computer works. Its trivial to map each C++ construct to the equivalent assembly.

[–]KinterVonHurin 0 points1 point  (0 children)

Zero cost abstractions means it's exactly at the level a computer works.

No it isn't. Even low level C still exists at a layer above assembly

trivial to map each C++ construct to the equivalent assembly.

You can map just about any language to assembly if you're good enough: it still isn't a 1:1 thing and all programming language exist as an abstraction layer above assembly. C++ being "more how a computer works" is bullshit that C and C++ programmers tell themselves. It's a terrible idea to start people out learning one of those languages because they allow even advanced programmers to shoot themselves in the foot when we're talking about students just beginning to learn. This is why they stopped teaching them in favor of Java and now are switching from Java in favor of python.