Deutsch   English   Français   Italiano  
<v8d9oo$1j7eu$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: jseigh <jseigh_es00@xemaps.com>
Newsgroups: comp.lang.c++
Subject: Re: "Python is 71x Slower, Uses 75x More Energy, Than C" - YouTube
Date: Wed, 31 Jul 2024 08:13:11 -0400
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <v8d9oo$1j7eu$1@dont-email.me>
References: <v8bv49$18i9h$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 31 Jul 2024 14:13:13 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="912b433b66e6040c2d27c8e48acb739f";
	logging-data="1678814"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX182sbfOeUgAlhGZ7EOCPV/r"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:4JMhyHCTCPz0cSaqbzvb86DtHUg=
In-Reply-To: <v8bv49$18i9h$1@dont-email.me>
Content-Language: en-US
Bytes: 1888

On 7/30/2024 8:05 PM, Lynn McGuire wrote:
> "Python is 71x Slower, Uses 75x More Energy, Than C" - YouTube
>     https://www.youtube.com/watch?v=U4c6nFGt1iM

I don't know for sure but I suspect part of it is Python using reference counting for it's memory managment.  Maybe they should compare it to jython.
> 
> I am not buying that C++ is slower than Rust.
> 
Rustaceans make a lot of unsupported claims.  They also claim without any support that java is slower than rust.  Apparently they are completely ignorant of the fact that java uses JIT compilation and can dynamically tune performance hot spots, and if they are using reference counting to manage memory it's going to perform very badly compared to Java GC.

Rust uses the llvm front end, so somebody would have to explain how a Rust program would be faster than a C++ program compiled with llvm.

Joe Seigh