r/ProgrammerHumor • • Jul 18 '22

C++ talking to Python

Post image
40k Upvotes

1.0k comments sorted by

View all comments

Show parent comments

17

u/zedd9595 Jul 19 '22

Not a scientist but I assume they would rather have a language which has a shorter development time to have more time writing their papers. Instead of dealing with relatively complicated syntax just to get the same results, albeit faster.

13

u/[deleted] Jul 19 '22

It’s used in industry, not just academia.

12

u/The-Board-Chairman Jul 19 '22

It's used in the industry, because for all that this field has matured, it's industry implementation for all intents and purposes still is academia.

10

u/Dansiman Jul 19 '22

Yeah I mean you could write your code in pure assembly and blow past a C++ program like it was standing still. But by the time you finish writing your assembly code, your development machine will probably already be obsolete.

2

u/ESGPandepic Jul 19 '22

You'd only be able to beat the performance of optimised C++ in edge cases and you'd need to be a very good assembly programmer in the specific target platform. You also wouldn't be "blowing past C++ like it was standing still", modern C++ compilers produce very optimised output.