Quote from Elon Musk on Twitter:
"Side note: I hate the bloated mess that is modern C++, but love simple C, as you know what it will compile to in terms of actual CPU operations."
Source: https://twitter.com/elonmusk/status/1532274289893904384
Thread overview | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
June 02, 2022 Someone should tell him about D... | ||||
---|---|---|---|---|
| ||||
Quote from Elon Musk on Twitter: "Side note: I hate the bloated mess that is modern C++, but love simple C, as you know what it will compile to in terms of actual CPU operations." Source: https://twitter.com/elonmusk/status/1532274289893904384 |
June 02, 2022 Re: Someone should tell him about D... | ||||
---|---|---|---|---|
| ||||
Posted in reply to twinbee | On Thursday, 2 June 2022 at 10:36:24 UTC, twinbee wrote: >Quote from Elon Musk on Twitter: "Side note: I hate the bloated mess that is modern C++, but love simple C, as you know what it will compile to in terms of actual CPU operations." Source: https://twitter.com/elonmusk/status/1532274289893904384 Makes no sense. Clang is the same compiler for C and C++… |
June 02, 2022 Re: Someone should tell him about D... | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ola Fosheim Grøstad | On Thursday, 2 June 2022 at 10:43:40 UTC, Ola Fosheim Grøstad wrote: >On Thursday, 2 June 2022 at 10:36:24 UTC, twinbee wrote: >Quote from Elon Musk on Twitter: "Side note: I hate the bloated mess that is modern C++, but love simple C, as you know what it will compile to in terms of actual CPU operations." Source: https://twitter.com/elonmusk/status/1532274289893904384 Makes no sense. Clang is the same compiler for C and C++… Back in the early days of C vs C++ flamewars, there were these geek t-shirts, "my compiler compiles yours" from C folks. I guess we need an updated version of them. |
June 02, 2022 Re: Someone should tell him about D... | ||||
---|---|---|---|---|
| ||||
Posted in reply to twinbee | On Thursday, 2 June 2022 at 10:36:24 UTC, twinbee wrote:
>
Well, you know what they say:
"The weakness of the C language comes from its strength"
|
June 02, 2022 Re: Someone should tell him about D... | ||||
---|---|---|---|---|
| ||||
Posted in reply to forkit | On Thursday, 2 June 2022 at 11:51:30 UTC, forkit wrote:
> On Thursday, 2 June 2022 at 10:36:24 UTC, twinbee wrote:
>>
>
> Well, you know what they say:
>
> "The weakness of the C language comes from its strength"
Assembly instruction `mov rcx, [rax]`. Cost: 1 cycle. Or 500.
It's not 1980 anymore, there is hardly a benefit in looking at the assembler, you need to measure things. Musk is surprisingly bad at working from "first principles" sometimes.
|
June 02, 2022 Re: Someone should tell him about D... | ||||
---|---|---|---|---|
| ||||
Posted in reply to twinbee | On Thursday, 2 June 2022 at 10:36:24 UTC, twinbee wrote: >Quote from Elon Musk on Twitter: "Side note: I hate the bloated mess that is modern C++, but love simple C, as you know what it will compile to in terms of actual CPU operations." Sometimes it feels like people with a conservative bias live in a world where only "established" languages and brands exist. |
June 02, 2022 Re: Someone should tell him about D... | ||||
---|---|---|---|---|
| ||||
Posted in reply to twinbee | On 02.06.22 12:36, twinbee wrote:
> Quote from Elon Musk on Twitter:
>
> "Side note: I hate the bloated mess that is modern C++, but love simple C, as you know what it will compile to in terms of actual CPU operations."
>
> Source: https://twitter.com/elonmusk/status/1532274289893904384
Truth. In terms of actual CPU operations, it will compile to an arbitrary code execution exploit. The point about C++ is valid too.
|
June 02, 2022 Re: Someone should tell him about D... | ||||
---|---|---|---|---|
| ||||
Posted in reply to Guillaume Piolat | On Thursday, 2 June 2022 at 14:24:00 UTC, Guillaume Piolat wrote: >Sometimes it feels like people with a conservative bias live in a world where only "established" languages and brands exist. Sometimes it feels like people with a commie bias live in a world where all the established languages will be trivially replaced by the next thing they think up |
June 02, 2022 Re: Someone should tell him about D... | ||||
---|---|---|---|---|
| ||||
Posted in reply to twinbee | On Thursday, 2 June 2022 at 10:36:24 UTC, twinbee wrote: >Quote from Elon Musk on Twitter: "Side note: I hate the bloated mess that is modern C++, but love simple C, as you know what it will compile to in terms of actual CPU operations." Source: https://twitter.com/elonmusk/status/1532274289893904384 While I can understand the frustration of modern C++, the right tool for the right job is more important. Try doing string manipulation with the C standard library, in that case I would pick C++ over C any day. C is not always simpler. |
June 02, 2022 Re: Someone should tell him about D... | ||||
---|---|---|---|---|
| ||||
Posted in reply to IGotD- | On Thursday, 2 June 2022 at 17:00:35 UTC, IGotD- wrote: >While I can understand the frustration of modern C++, the right tool for the right job is more important. Try doing string manipulation with the C standard library, in that case I would pick C++ over C any day. C is not always simpler. Yeah, well, modern C++ doesn't add anything that affects performance bottle necks in a negative way. Sounds like he has talked with someone that has started coding before they knew what the requirements should be. C++ does not support evolutionary development… you have to know what you are going to do before you start coding. |