r/learnpython • u/Strange_Till759 • May 23 '24
What's the best optimal language
What's the best optimal language to get into automating things, AI/ML and stuff like these. Is it python coz I see PPL directing every time things to python when I talk about this but I want to see what's the real experienced PPL have to say. Please someone respond !
6
u/dowcet May 23 '24
There is no "best optimal" at that level of generality. If you're interested in Python, it's a great place to start.
4
u/CaptainFoyle May 23 '24
That's a pretty vague goal description you give there, but python is good for ML
3
u/Apatride May 23 '24
Python on its own is ok, its biggest strengths are that it is rather easy to learn and gives good habits (indentation...) but then, there are the libraries and Python becomes a completely different beast. From a rather slow language it becomes very fast and powerful. The libraries are the real strength of Python.
2
May 24 '24 edited May 24 '24
Any language can be the `best` language, Python just happened to be the most popular and have lots of libraries. So it might `best` when you will need easy to find learning resources.
For most AI/ML libraries, they provide Python bindings (API) and addition C bindings so any language that compatible with C (most are) can be use.
1
May 23 '24
The best language is common lisp but no human on the planet is actually smart enough for macro metaprogramming at the scale it provides it, hence no-one actually uses it unless they're trying to go for a Cupid heart shot straight to Paul Graham (Y-combinator).
All other languages are Ok at best and live within spheres of influence where they are very competitive. Python has AI/ML, Data science, scripting, web apps with Django and general prototyping. It shares the accolades for the last 3 with Ruby, another dynamic scripting language with a strong backend framework, and the first two with Julia and R.
Python isn't good at distributed systems auxillary service stuff, like message queues, orchestration components, monitoring services. Java and Golang are arguably king here.
Python is also arguably not good at ultra-high-performance code. Databases, operating system kernels, trading systems, telephone switches are all the domain of C, C++, Zig and rust.
1
u/Allmyownviews1 May 24 '24
Python is widely used and has many people who share their code for ML and AI. It’s easy to learn and is becoming a very popular route. Is it the best for this for all tasks or people? No… eg ML in my industry is often using other software languages and everyone moans that i also use Python.. but I get to integrate other data engineering and output functions with Python that makes my workflow far more efficient with only their familiarity being the issue.
1
u/TheRNGuy May 25 '24
It's easier than C++ and you don't need to compile it.
You can even have C++ binding in Python if something was too slow (pure C++ would still be faster, at least after some point, but in Houdini most of Python API is calling C++ program and it's fast enough and you don't need to compile it, it's kind similar to how blueprints work in Unreal Engine)
-2
u/Kerbart May 24 '24
It’s just the fanboys who claim Python is great for AI. You want raw speed and C/C++ is the way to go.
8
u/Buttleston May 23 '24
Python is really commonly used for AI/ML stuff
I'd say it's also commonly used for automation
There's not really any such thing as best/optimal. Python is a powerful and useful language though, and capable of a lot of things.