Linked by Takuya Murata on Tue 18th May 2004 06:26 UTC
General Development My physics teacher likes to say that physics like to make problems they face look like ones that they know how to solve. A simple harmonic oscillation was one he frequently used in class, as is presumably the case in physics in general.
Permalink for comment
To read all comments associated with this story, please click here.
RE:GOTO?
by James Thorpe on Tue 18th May 2004 09:40 UTC

Goto is the most elegant (and fastest) way of implementing state machines. The beauty is that the CPU instruction pointer maintains the state for you.

Couple this with coroutines, which allow you to suspend execution and then resume again from where you left off, and you have a truly powerful combination for any parsing problem you care to name.

I use this combination a good deal.