|
Post by kennn on May 31, 2019 17:50:40 GMT -6
I hear that Python is a very, very slow programming language. However, it is at position 4 in the following index! www.tiobe.com/tiobe-index/This is the bigger picture : Very Long Term History:
Programming Language | 2019 | 2014 | 2009 | 2004 | 1999 | 1994 | 1989 | Python | 4 | 7 | 5 | 9 | 26 | 21 | - |
|
|
|
Post by kennn on Jun 1, 2019 16:39:42 GMT -6
I downloaded and installed Python yesterday. Now I really like Python.
The reason is that it is very easy to find a lot of tutorials(PDF ebooks). These PDF ebooks are detailed and free.
Beginners should like Python very much!
|
|
|
Post by johnno56 on Jun 2, 2019 1:12:07 GMT -6
I have tinkered with PyGame. An interesting language. I like the way it puts things into classes and definitions. I can probably guess that this kind of structure can get quite confusing if ever the application/game begins to become too complicated... But, in the meantime, it's fun to use....
|
|
|
Post by kennn on Jun 2, 2019 15:59:35 GMT -6
I have tinkered with PyGame. An interesting language. I like the way it puts things into classes and definitions. I can probably guess that this kind of structure can get quite confusing if ever the application/game begins to become too complicated... But, in the meantime, it's fun to use.... Hi, thanks for your information!!! I will try by best to learn the language.
|
|
|
Post by johnno56 on Jun 2, 2019 16:23:40 GMT -6
I'm still working my way through tutorials. Trying to make sense of it all... But hey. It's free... This is a vertical shmup. There are about 14 videos. Step-by-step with explanations all the way through. This will take a lot of time to sit through. Each video will range from 10-15 minutes. I found it easy enough to follow and understand. This type of game may not be "your cup of tea" but that is not important. I think these tutorials are great for learning... Here is the link for the first video... www.youtube.com/watch?v=nGufy7weyGY(I did not notice any 'slowness'...)
|
|
|
Post by kennn on Jun 3, 2019 16:42:03 GMT -6
There are 14 parts in this Shmup series. Well done! Thanks a lot!!! Hey, I see.
|
|
|
Post by drfloyd on Jun 10, 2019 4:10:34 GMT -6
Python, popular... i don't understand why....
|
|
|
Post by kennn on Jun 10, 2019 6:47:22 GMT -6
|
|
|
Post by aurel on Jun 10, 2019 9:34:00 GMT -6
Python is one of the slowest interpreters . is not good and very much used on Windows like fans of this language wish. Do you know that after all this years python don't have native binding for Windows native API ? So you must all the time use 3party libs that you can work on windows. Python is pushed by big company like Google as replacement for BASIC. But real truth is that python never be like BASIC - any dialect of BASIC is faster than python including many versions of tiny basic too.
On Linux situation is much different there is python leader..
|
|
|
Post by tbird on Jun 10, 2019 11:58:44 GMT -6
I can't stand Python syntax....that's my .02 Welcome to the forum aurel
|
|
|
Post by johnno56 on Jun 10, 2019 15:32:10 GMT -6
Hi Aurel. BIG welcome!!
I hope that you will enjoy your stay here. Looking forward to to what we can learn from each other.
J
|
|
|
Post by aurel on Jun 11, 2019 0:11:25 GMT -6
Thank you guys,thank you ! I am not much in games ..i prefer to work on interpreters.. I see now that i must (this time) add sprites in my new interpreter. But also recently i like to play simple games...
|
|
|
Post by kennn on Jun 11, 2019 2:54:02 GMT -6
Python is one of the slowest interpreters . is not good and very much used on Windows like fans of this language wish. Do you know that after all this years python don't have native binding for Windows native API ? So you must all the time use 3party libs that you can work on windows. Python is pushed by big company like Google as replacement for BASIC. But real truth is that python never be like BASIC - any dialect of BASIC is faster than python including many versions of tiny basic too. On Linux situation is much different there is python leader.. Hello, thanks for your information. I only have limited knowledge.
|
|
|
Post by Tomaaz on Aug 6, 2019 9:52:30 GMT -6
Python is not slow! Even if simple loops and calculations will be faster than majority of (all) BASIC interpreters. But with more advanced features and libraries Python will crush every BASIC interpreter, easily. There was a word count challange on BP.org. The task was to count all and unique words in Bible then count how many times each unique word appears in it, sort the result by occurence and write it to the file. On a low spec machine, Python needs about one second to complete the task. You can try to implement it in RCBasic, SDLBasic or any other dialect and beat Python. Good luck. Here is the Python code. All done in 24 lines (sorry for variable names):
import re
print('Reading the file...') plik = open('Bible.txt', 'r') wszystkie = (re.sub('[\W\d]', ' ', plik.read())).lower().split()
print('Counting...') pojedyncze = {} wsz = 0 for x in wszystkie: if len(x) > 1 or x == "a" or x == "i": if x in pojedyncze: pojedyncze[x] = pojedyncze[x] + 1 wsz += 1 else: pojedyncze[x] = 1 wsz += 1
print('Sorting and writing to the file...') plik = open('words.txt', 'w') plik.write('All words: ' + str(wsz) + '\n') plik.write('Unique words: ' + str(len(pojedyncze)) + '\n\n') for y in sorted(pojedyncze, key=pojedyncze.get, reverse=True): plik.write(y + ' - ' + str(pojedyncze[y]) + '\n') plik.close()
print("Done!")
|
|
|
Post by aurel on Aug 6, 2019 12:35:38 GMT -6
"Python is not slow! " ....ha ha ha
look at this ...
"But with more advanced features and libraries Python will crush every BASIC interpreter, easily."
read like ,,without external libs created in C python is too slow... if you don't beleive just remove import re ...or any freakin import command and then put python into just simple loop to see how is snail fast..
ha ha ha
|
|