Python Forum
What is the future of Python? And which one is better Python or C++?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What is the future of Python? And which one is better Python or C++?
#4
(Sep-16-2020, 04:54 PM)Naheed Wrote: 1) What is the future of Python?
2) Which is more better Python or C++ ?
3) How we use Python to make Online Website?

  1. Python is a general purpose language. But now it's used in so many areas. It's hard to say. I guess Python will improve in future subinterpreters, which allows real multithreading. Only one Python-Instruction can run simultaneously. The subinterpreters will ship around the GIL. Each interpreter in the process will have its own Global Interpreter Lock. Currently, Python is famous for Web, Data Science, Machine Learning
  2. Yes*
  3. Django, Flask, Starlette, FastAPI and other 100 frameworks. You're free to choose.

*The 2. Point can't be answered right.
You can't compare them.

C/C++ is a statically typed language and Python is a dynamic typed language.
Both are compiled, but C++ runs on a CPU and Python runs on the CPYthon (standard) Interpreter
(or Jython, Stackless Python, Iron Python, PyPy, Micropython, Brython, ....).

The standard CPython interpreter is written in C.
Python was written to be dynamic, extensible and the ability to use C/C++ Libraries.

The biggest strength of Python is the connection to C.
But other languages do also have wrappers for Python and vice versa.
This is why all this famous AI/Machine Learning frameworks could run on your CPU/GPU fast enough.
The libraries for that are written in C/C++ and they are wrapped in Python functions and classes.
The calculation itself does not run in Python. This is the trick.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply


Messages In This Thread
RE: What is the future of Python? And which one is better Python or C++? - by DeaD_EyE - Sep-16-2020, 07:10 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Future of Jython now Python 2 support ended Wattletree 1 2,997 Mar-19-2020, 10:13 PM
Last Post: Larz60+
  Future of Python Ofnuts 1 3,513 Aug-23-2017, 08:28 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020