Ivan Drucker’s BASIC to Python


Filed under Musings;
Comments Off on Ivan Drucker’s BASIC to Python

Ivan Drucker is an unsung hero of the Apple II community. His line of programming utilities, networking tools, and Raspberry Pi applications might pigeonhole him as a software savant, but his contributions to the Apple II community extend across multiple media, including KansasFest presentations and Juiced.GS cover stories.

It’s no surprise, then, that someone so prolific would be comfortable in many programming languages. His latest contribution to the community is a Python translation of an Applesoft BASIC program:

This is a line-for-line conversion of an edited version of CLOCK.PATCH from the System Tools 2 disk in GS/OS 6.0.1. It’s not good Python, but I thought it would be an interesting exercise. In general I have tried replicate each line as closely to BASIC as possible.

For those of us who never learned a programming language that doesn’t have line numbers, this Rosetta stone of classic and modern languages is fascinating. Since each translation performs the same function, seeing how similar concepts are expressed in different environments makes it easy for someone unversed in one language to follow the other.

Applesoft & Python

I don’t know the practical value of this exercise, but that’s what makes Ivan so great: he pursues goals he’s passionate about because he finds them cool and fun. That’s the epitome of the retrocomputing enthusiast.