C++ Logo

std-discussion

Advanced search

Re: C++ vs Python in terms of energy consumption

From: Jens Maurer <jens.maurer_at_[hidden]>
Date: Fri, 8 Nov 2024 09:35:10 +0100
On 08/11/2024 01.23, Phil Bouchard via Std-Discussion wrote:
> This is not a proposal but an important factor people dismiss which the power consumption of programming languages in this AI era. Basically there would be no power consumption issues if C++ was used instead of Python for AI algorithms.

The core of AI algorithms is not written in Python.
What is written in Python is the driver logic around it.

See, for example, https://github.com/numpy/numpy/tree/main/numpy/_core/src/npymath
for (a portion of) the C part of numpy, a popular package for
numeric computing with Python.

Can you point to a data-backed analysis that shows the current practice
of using Python for the AI driver logic leaves room for substantial
performance gains?

Jens

Received on 2024-11-08 08:35:19