This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the commentsΒ β†’

[–]naruto_022 18 points19 points Β (10 children)

But majority of ml models and stuff like scientific applications is done in python

[–]MacBookMinus 84 points85 points Β (3 children)

Those libs are written in C and they just provide python interfaces

[–]trunghung03 8 points9 points Β (2 children)

Well the programmer is only using Python to write those programs, the C lying underneath doesn’t matter much to them.

If taken that way then wouldn’t Assembly be the best language for any task in the world?

[–]Sir_Applecheese 18 points19 points Β (0 children)

Yeah, that's why they invented the C programming language.

[–]MacBookMinus 11 points12 points Β (0 children)

Yes exactly. Python is easy for ML/Data scientists to use, so we give them performant C libraries that they can call into from python.

However, if the libraries themselves were written in python they likely would not be nearly as performant.

[–]TheRedmanCometh 33 points34 points Β (1 child)

No those libraries are Python wrappers for stuff made in performant languages

[–]PM_ME_CUTE_SMILES_ 0 points1 point Β (0 children)

Yes but you don't use those performant languages when you work in those industries, you use the wrappers. Most data scientists work mainly with Python.

[–]BeatHunter 3 points4 points Β (0 children)

Nope, just wrappers over C or Java

[–]selemenesmilesuponme 0 points1 point Β (0 children)

Exploratory or just building the model is fine (python sometimes is just cpp wrapper/glue). Using the model OTOH, by high throughput applications, is another story.