Re: [Tutor] python, speed, game programming

2014-01-04 Thread Keith Winston
Hi Danny, no, I don't think there's any disk access, and the memory of the two machines is rather different: one is 4 Gb or so, the other 9 changing to 12 any day... but I think I haven't been rigorous enough to justify a great deal more attention here. I am convinced that I should just keep develo

Re: [Tutor] python, speed, game programming

2014-01-04 Thread Danny Yoo
There's an assumption in the question here that all programs are CPU bound. I actually do not think so. From prior discussion about what the program is doing, I got the impression that it was trying to hold gigabytes of data in RAM. Isn't that still true? If so, then I would be very surprised i

Re: [Tutor] python, speed, game programming

2014-01-04 Thread Steven D'Aprano
On Fri, Jan 03, 2014 at 08:38:47PM -0500, Keith Winston wrote: > The thing that put me on edge was noticing that my simple > Chutes & Ladders game doesn't go ANY faster on a machine that benchmarks > perhaps 1000 times faster than another... Damn! You've discovered our secret! Hidden deep insight

Re: [Tutor] python, speed, game programming

2014-01-04 Thread spir
On 01/04/2014 02:38 AM, Keith Winston wrote: The thing that put me on edge was noticing that my simple Chutes & Ladders game doesn't go ANY faster on a machine that benchmarks perhaps 1000 times faster than another... You could say this about most programs in most langs. Actually, some even re

Re: [Tutor] python, speed, game programming

2014-01-04 Thread spir
On 01/04/2014 10:14 AM, Steven D'Aprano wrote: While I agree with Devin, it is possible to write absurdly slow code in *any* language. This is why is is better to write straightforward, simple code in preference to complicated, intricate code -- it is easier to understand simple code, which means

Re: [Tutor] python, speed, game programming

2014-01-04 Thread Steven D'Aprano
On Fri, Jan 03, 2014 at 02:11:21PM -0800, Devin Jeanpierre wrote: > On Fri, Jan 3, 2014 at 1:53 PM, Keith Winston wrote: > > I am gearing up for the next project (yeah, an eventual end to Chutes & > > Ladders!). It is a typing tutor, I am inclined to use it to learn Dvorak but > > I would expect i

Re: [Tutor] python, speed, game programming

2014-01-03 Thread Keith Winston
On Fri, Jan 3, 2014 at 11:14 PM, Mark Lawrence wrote: > On 03/01/2014 21:41, Keith Winston wrote: > >> -- >> Keith >> >> > Frankly I think you're lining up to jump fences when you're actually > riding on the flat :) > Fair enough, but I am thinking of the next project as a long-term dabbling: ho

Re: [Tutor] python, speed, game programming

2014-01-03 Thread Mark Lawrence
On 03/01/2014 21:41, Keith Winston wrote: -- Keith Frankly I think you're lining up to jump fences when you're actually riding on the flat :) -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence _

Re: [Tutor] python, speed, game programming

2014-01-03 Thread Keith Winston
Truth in advertising: I just realized a Core I7 only benchmarks about 10x faster than a Core 2 Duo, using Passmark. Wow, something like 6 years newer and only 10 times? Anyway, I'd STILL expect to see some of that in the program performance, though maybe once I get it ironed out it will be a little

Re: [Tutor] python, speed, game programming

2014-01-03 Thread Keith Winston
Just to be clear, what I'm asking this typing tutor to do is vastly more than normal, albeit still not seemingly very much. In most programs, they give you a sentence or paragraph to type, and then time how long it takes. I'm talking about timing every keypress, and modifying the text stream based

Re: [Tutor] python, speed, game programming

2014-01-03 Thread Alan Gauld
On 03/01/14 21:53, Keith Winston wrote: Ladders!). It is a typing tutor, I am inclined to use it to learn Dvorak but I would expect it easily adapted to QWERTY or anything else. ... My concern is with speed. This will have to keep up with (somewhat arbitrarily) fast typing, Lets see. The spee

Re: [Tutor] python, speed, game programming

2014-01-03 Thread Keith Winston
Okay, thanks, I'll probably be proceeding over the next few weeks, as I finish up my Chutes & Ladders project... I think I have to do a bit more code/manual reading in proportion to my coding for a bit, also. Thanks for the insights. K On Fri, Jan 3, 2014 at 6:12 PM, spir wrote: > On 01/03/201

Re: [Tutor] python, speed, game programming

2014-01-03 Thread spir
On 01/03/2014 10:53 PM, Keith Winston wrote: My concern is with speed. This will have to keep up with (somewhat arbitrarily) fast typing, while doing background processing, with a GUI of course. I wouldn't even bother. Try & see, you may be surprised. There are several factors at play: * The c

Re: [Tutor] python, speed, game programming

2014-01-03 Thread Devin Jeanpierre
On Fri, Jan 3, 2014 at 1:53 PM, Keith Winston wrote: > I am gearing up for the next project (yeah, an eventual end to Chutes & > Ladders!). It is a typing tutor, I am inclined to use it to learn Dvorak but > I would expect it easily adapted to QWERTY or anything else. > [snip] > > I hope Python is

Re: [Tutor] python, speed, game programming

2014-01-03 Thread Keith Winston
Just to be clear: this is equal parts learning Python project, prototype tutorial software project, OOP practice, and the beginning of a more general inquiry into learning styles/paradigms/parameters... I'm (slowly) writing some of these ideas up in a separate doc. On Fri, Jan 3, 2014 at 4:53 PM,

Re: [Tutor] python, speed, game programming

2014-01-03 Thread Keith Winston
Shoot, sorry for the empty message. Here's what I was going to say: I am gearing up for the next project (yeah, an eventual end to Chutes & Ladders!). It is a typing tutor, I am inclined to use it to learn Dvorak but I would expect it easily adapted to QWERTY or anything else. The basic idea is b

[Tutor] python, speed, game programming

2014-01-03 Thread Keith Winston
-- Keith ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor