Re:The computers are fast, but you don't know it
by willis936 on Thursday June 16, 2022 @04:17PM
(#31770462)
Dozens of instances of a C GUI can launch in the time it takes to launch a hello world python program.
[ Parent
| on HN ]
Re:The computers are fast, but you don't know it
by geysersam on Thursday June 16, 2022 @04:50PM
(#31770815)
Yes but what kind of comparison is that:
1. How often do you need to execute 1000 GUI instances?
2. How often do you need to print "hello world"?
The right tool for the right job.
Re:The computers are fast, but you don't know it
by willis936 on Thursday June 16, 2022 @05:17PM
(#31771087)
This is a discussion about computers being slow. As in a person asks a computer to do something and the human waits while the computer does it.
So python isn't the right tool for any job that involves human interaction.
Re:The computers are fast, but you don't know it
by Nihilartikel on Thursday June 16, 2022 @06:55PM
(#31772026)
Python _is_ slow, but even back in 2006 on a pentium 4 I had no problem using it with PyGame to build a smooth 60fps rtype style shooter for a coding challenge.
One just has to not do anything dumb in the render loop and it's plenty responsive.
Of course, if you're going to interactively process a 50mb csv or something... But even then pandas is faster.
Re:The computers are fast, but you don't know it
by Narishma on Friday June 17, 2022 @06:07AM
(#31776127)
That's because a Pentium 4 is way overkill for such a simple game.
Re:The computers are fast, but you don't know it
by geysersam on Thursday June 16, 2022 @05:47PM
(#31771392)
Nah that's too general. A lot of website/app backends use Django or Fastapi and they work fine. Many more use PHP, also not a language famed for extreme performance.
It depends on the application. Personally I wouldn't use Python for a GUI (because I'd use JS/TS).
Re:The computers are fast, but you don't know it
by lmm on Friday June 17, 2022 @01:30AM
(#31774429)
But who wants dozens of instances of a C GUI?
I'd be the first to complain about latency where it maters, but launching a Python program is perceptually instant (and significantly lower-latency than many nominally "faster" languages, IME).