Posts: 63
Threads: 6
Joined: Aug 2020
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?
Posts: 1,950
Threads: 8
Joined: Jun 2018
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.
Posts: 2
Threads: 1
Joined: Sep 2020
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.
Posts: 2,125
Threads: 11
Joined: May 2017
(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?
- 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
- Yes*
- 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.
Posts: 63
Threads: 6
Joined: Aug 2020
Sep-17-2020, 06:23 PM
(This post was last modified: Sep-17-2020, 06:33 PM by Naheed.)
(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?
- 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
- Yes*
- 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?
- 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
- Yes*
- 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.
Posts: 1,838
Threads: 2
Joined: Apr 2017
Sep-18-2020, 07:22 AM
(This post was last modified: Sep-18-2020, 07:23 AM by ndc85430.)
You really don't need to quote previous posts in their entirety.
Posts: 4,647
Threads: 1,494
Joined: Sep 2016
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.
Posts: 5,151
Threads: 396
Joined: Sep 2016
Sep-19-2020, 07:58 AM
(This post was last modified: Sep-19-2020, 07:59 AM by metulburr.)
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.
Recommended Tutorials:
Posts: 4,647
Threads: 1,494
Joined: Sep 2016
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.
Posts: 63
Threads: 6
Joined: Aug 2020
(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.
|