this post was submitted on 24 Nov 2024
14 points (88.9% liked)

Technik

486 readers
9 users here now

die Community für alles, was man als Technik beschreiben kann


the community for everything you could describe as technology


Beiträge auf Deutsch oder Englisch


Posts in German or English

founded 7 months ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] dwt@feddit.org 1 points 3 months ago* (last edited 3 months ago)

I have found that if it matters for some code I can relatively easily get it withinn a x2 of Java by using one of the many ways to get python code to compile down to native code. Or use a framework like torch, pandas that is already written in c or rust.

The thing is, that most times it doesn’t matter, because you are anyway waiting on other systems or components. Waiting faster is not going to speed things up.

That being said, of course it is possible to write python code that wastes abysmal amounts of energy. And it is easier to code in python, so that is of course easier to do than in other languages. Not sure if that is the fault of the language though.