r/cpp • • Jun 10 '15

Hitler on C++17

https://www.youtube.com/watch?v=ND-TuW0KIgg
444 Upvotes

248 comments sorted by

View all comments

912

u/bstroustrup Jun 10 '15

I'm rather more optimistic about modules than "Hitler": http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/n4492.pdf The presentation version of that paper was well received at the Lenexa meeting.

0

u/[deleted] Jun 11 '15

[deleted] — view deleted comment

88

u/gundams_are_on_earth Jun 11 '15

You owe him and must name at least one of your future children after him.

37

u/themeatbridge Jun 11 '15

Bjarne is foreign enough to most English speakers to work for a boy or a girl.

16

u/[deleted] Jun 11 '15

Dane here; you monster.

13

u/choikwa Jun 11 '15

Biar-neh. Biar-nella.

20

u/GaiusMagnus Jun 11 '15

You can say that but all I'm hearing is nutella.

→ More replies (2)

12

u/_F1_ Jun 11 '15

*own

→ More replies (6)

50

u/[deleted] Jun 11 '15

Please be merciful, currently more than half of Effective Modern C++ is devoted to rvalue reference caveats, and things like enable_if in the standard library rely on very esoteric trickery, and we need that trickery if we are to support forwarding references for constructors with many arguments.

C++ needs simplification, or else it will become an engineering marvel that nobody can use to its full potential

72

u/fluorihammastahna Jun 11 '15

Not an engineering marvel. It's a huge old tool that gets the job done, and is just getting patched up all the time. Unfortunately everyone has agreed that it's the ultimate language because you can get very low level and optimize stuff. For me working with C++ is like having one single tool that will let me build a whole house from the bottom up, but then I'll even have to make my own screws.

38

u/hyperblaster Jun 11 '15

I find it simpler to use Python and C. Plain old C for the optimized bottlenecks, Python for everything else.

43

u/[deleted] Jun 11 '15

I work in scientific computation, and more and more of us are just gravitating back to using Fortran, except this time we're just wrapping it all up in Python because F2Py is fucking brilliant and simple. So what you get in the end is a blazing fast number cruncher that you execute with a clean, idiot-proof Python API.

13

u/choikwa Jun 11 '15

C, while fantastic for low level, is hard to optimize. While indirection is an easy abstraction, it makes compiler optimization harder due to limited type based aliasing.

7

u/hyperblaster Jun 11 '15

Most of the C code I end up writing for resolving python bottlenecks don't use non-optimizable indirection. Most of it is scientific computation working on large arrays and scaling in parallel is my biggest priority.

Much of the difficulty in optimizing C comes from coding styles using indirection that cannot be resolved at compile time.

3

u/choikwa Jun 11 '15

large arrays of primitives is always going to be aliased to itself. A problem for optimizers is to recognize disjoint access and perform some kind of flow based aliasing. This in turn guarantees safety for things like reordering load/store, vectorization, etc. Often, the cost to do these things in an array is to perform runtime check because the language couldn't tell us things are disjoint. Good news is these runtime checks are mostly going to be highly biased (assuming datasets will be disjoint) and branch prediction will do its job.

→ More replies (5)

5

u/[deleted] Jun 11 '15

Cython?

7

u/[deleted] Jun 11 '15

More like Cthul-on

→ More replies (3)

6

u/[deleted] Jun 11 '15

It's a good tool for what it does, but by trying to make it even better we risk making it too hard to use

→ More replies (1)
→ More replies (4)

11

u/CubbiMew cppreference | finance | realtime in the past Jun 11 '15 edited Jun 11 '15

That book is a bit misleading, C++ became simpler to use. C++ compilers became harder to write.

9

u/beartotem Jun 11 '15

C++ needs simplification, or else it will become an engineering marvel that nobody can use to its full potential

Isn't that already the case? I can use C++, but i am in no way a specialist.

→ More replies (2)
→ More replies (26)

16

u/thesuperbob Jun 11 '15

Why not do an AMA? Maybe get some people from the commitee to help out or provide different perspectives and talk this over the Reddit way.

33

u/bigoldgeek Jun 11 '15

Upvote just for being Bjarne Soustroup. You've done some great work, sir.

30

u/TotesMessenger Jun 11 '15

I'm a bot, bleep, bloop. Someone has linked to this thread from another place on reddit:

If you follow any of the above links, please respect the rules of reddit and don't vote in the other threads. (Info / ^Contact)

→ More replies (39)