right.. but its getting slower and it should be improved/better/faster
Hudson Collins
Python3 is a complete disaster. Even the print function got worse Back in the day: print "some shit without newline", Now: print("some shit without newline", end="")
Sebastian Bennett
install lua
Josiah Barnes
>stop using y install x thank you This is not the only thing unfortunately too many libraries are updated in favor of new versions I think I'll start studying C and stay in this area Bummer
Ian Stewart
You insulted me for shilling Perl but this is literally the next best alternative.
Dylan Evans
While Python 3 is slower than Python 2, the latter is still slow as shit. Use another language if you need something fast (which you probably don't).
Mason Gray
>4.5 seconds is anywhere near a sane amount of time for one million integer prints
>literally the next best alternative why do you think so JAVA and PHP are still exist >(which you probably don't) Why do you suppose that? The most important thing in the software is ultimately speed Anyone who thinks differently is mentally handicapped
Elijah Reed
both are slow as fuck even JavaScript is faster
Ayden Bell
In urban form it is true to laugh about it But do not forget that if I need to write software What will take you to write in Python 10 minutes will take you considerably more time in any other language
If you care about speed and are using python then you don't care about speed, otherwise you would be using something else from the start.
Hunter Reyes
I want the blue python to fuck me in the ass while I fuck the yellow one in the cloaca.
Jackson Nelson
printing to the console has a huge overhead you absolute fucking faggot. take it out and the speed will prob 10x
Asher Perez
If you care about performance you will choose the other language even if it takes you literally 12 minutes instead of 10, of which 1 minute is spent in the optimized production compilation.
Be real, 7 of those 10 minutes are for thinking how to solve the problem, 3 for typing it. Python is not that much easier to type than other stuff. Specially when other languages have IDEs that can do half the typing for you because they can infer types (heh) to offer better autocompletion.
Christian Sullivan
it's like python2 isn't handling unicode properly and writing to a terminal is slow and doesn't matter
Leo Lopez
What do you want to get out of there exactly? It has a total of 2 print commands It's the same code for short
Aaron Reed
I do not know what you did. It works fine on my machine also this fagot confirm
Isaiah Perez
This. Even fucking shell scripts can be faster
Nathan Bailey
>using print() as benchmark retarded.
Aiden Morgan
Yeah, but look at the memory footprint.
Asher Martinez
>The most important thing in the software is ultimately speed Don't tell me you actually believe that. Speed is second in importance to correctness. And in most cases, the important time to measure is from when you start coding to when you're done and not run time of the software itself.
Also, note how I said 'probably'. You might have a use case where runtime performance is important. But that's not most software. And again, if you have such a use case, Python might not be the best language for that.
Alexander Adams
Imagine being this pants-on-head backwards retarded. >It only took me 5 minutes to write! It doesn't matter that it take 500x longer to run than yours! I replaced a python script for equirectangular conversions that took 3-4 hours per image with a C++ implementation that took 2 minutes, and then I further moved it onto CUDA which took less than a second. What used to take us entire fucking weekends to process, check, then have to reprocess with tweaked settings now takes us less than the time it takes the type in the command line arguments.
Don't be a moron.
Andrew Baker
2020 we pull the plug on py2 life support. Finally the headache dealing with 2 versions will be gone.
Landon Lee
> performance doesn't matter
Luis Jenkins
Imagine being this illiterate. See >You might have a use case where runtime performance is important
Josiah Edwards
me either m8 i've only helped yellow girls with their course work. hasn't really panned out for me yet but they smell nice so it's ok
Jose Wood
>Finally the headache dealing with 2 versions will >be gone. fuck off python3 amateur
Gavin Adams
Enjoy your tauthon or some other "maintained" fork youre going to use, faggot. Want to see your face when all the newer packages drop py2 support.
Elijah White
If there is any performance issue in this very primitive example, it's likely due to how python3 strings actually dont suck and how range use a generator that may induce more compute overhead for such a trivial example.
Landon Morris
This
Xavier Sullivan
This works on Python 2.7, but not 3 def f(x): exec("y = 0") print y
The fact that Python 3 takes away some of these awesome dynamic programming power is absolutely niggerlicious.
>print function Print in python 2 was a statement not a function, which was why it changed in 3.
Carter Long
Works until 2020
Landon Torres
def f(x): exec("y = 0") print(y)
This works in python 2 and 3
Owen Sullivan
Beautiful support from you in 1000 projects made and going to be destroyed Because of pointless nonsense
Carson Anderson
it meant for that faggot
Anthony Butler
The only pointless thing is supporting two very similar languages. Py2 was chosen to be destroyed and that is what is going to happen. Tbh should never have extended eol from 15 to 20.