holy hell python doesnt even have a built in red-black tree implementation, just a hashmap style Dict... There is a third party implementation but the best one is something like 8 months since the last release and the repo only has 6 commits...

How do people even survive in ?

@freemo python is mostly for people who want to learn programming, and it’s mostly used for mathematics and machine learning / ai libraries
.

Follow

@louiscouture while it is often a first choice in programming language for the noobs I wouldnt say its limited to that at all. It is often used for some pretty advanced math/AL/ML which is why it surprises me it lacks such fundamental features as a tree map considering they are pretty necessary to make a lot of those things if you want them to run efficiently.

Β· Β· 1 Β· 0 Β· 0

@freemo I’m still a student in software engineering and hasn’t really reached AI yet but doesn’t it make no sense to do some demanding calculations on a language that is really slow.

I get the appeal of interpreted languages as it can be run on multiple machines, but then why not use faster alternatives, like Java ?

@louiscouture most mature languages will be close enough to as fast as any other not to matter in and of itself. It isnt that python isnt fast, its more that python doesnt make it easy or pleasant to make your code fast.. ITs multiprocessing element is shit and requires you to jump through hoops and many of its built-in libraries dont leverage multiple CPUs and obscure things away in such a way that it isnt always easy to build that in.. But all that said it can (and many examples of where it has been) made to do things as fast as any other language.

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.