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++?
#1
Hello,

I don’t have enough knowledge about Python. I have some questions from you guys.

1) What is the future of Python?
2) Which is more better Python or C++ ?
3) How we use Python to make Online Website?
Reply
#2
My answers:

1. In order to know the future one needs to consult psychic and even then your odds are not good.
2. Define “better”
3. You use Python as any other programming language - to write code in said language.
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy

Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Reply
#3
Usually the best language is the one you know. If you want to develop a special website, or one that does not depend on a particular web server (like Apache or Nginx), python is great: take a look at aiohttp and asyncio. Easy to use these two for the development of an application whose interface is http protocol.

As all scripting languages (TCL, Lua, javascript and python itself), if the application grows too much, things become more complicated to manage and maintain, and C++ is better.

Python has many of-the-shelf libraries which are very easy install and use. Python and docker are a great way of creating a bunch of small applications to solve a big problem.
Reply
#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.
My code examples are always for Python >=3.6.0
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply
#5
(Sep-16-2020, 07:10 PM)DeaD_EyE Wrote:
(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.

(Sep-16-2020, 07:10 PM)DeaD_EyE Wrote:
(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.
Thank you for your suggestions, this information has added to my knowledge.
Reply
#6
You really don't need to quote previous posts in their entirety.
Reply
#7
the future doesn't matter to me. i saved a copy and i can just keep on using it if it goes away.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#8
Quote: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 has got more popular recently. So it is not going away any time soon.
2)Its not a question about which one is better. Its a question about what tool do you need? If you are writing code for drivers, you will NEED c++, but for most tasks Python will do. It all depends on what you want to do. I came from c++ wanting to learn gaming. I started with it because everyone said "it was the best". After learning it, the thing i hated about it is the time it took to write code. When i came across Python, i was shocked that i could write the same code in a fraction of the time. Python's code was much shorter and less polluted. Thus i could understand it better and was less prone to errors. It was a no brainer to switch for me.
3) You are going to want to search DJango or Flask.
Reply
#9
i suggest to avoid Django unless you want to let it rule your life.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#10
(Sep-16-2020, 05:29 PM)perfringo Wrote: My answers:

1. In order to know the future one needs to consult psychic and even then your odds are not good.
2. Define “better”
3. You use Python as any other programming language - to write code in said language.

Hey,
Thanks for your insights on my question. So, first I need to contact a psychic.
So, I need to learn it and then can use Python as any programming language.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Future of Jython now Python 2 support ended Wattletree 1 764 Mar-19-2020, 10:13 PM
Last Post: Larz60+
  Future of Python Ofnuts 1 1,451 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