HotPaw Basic on iOS
While looking at Chipmunk Basic yesterday, I noticed that Ron Nicholson also has a BASIC for iOS, HotPaw Basic. I’m not sure how useful it is, but it’s insanely fun. It appears to be based off of the Chipmunk code, and so works similarly. It also includes functions for accessing the touchscreen, the accelerometer, and the GPS location.
This is very simple code for drawing random circles wherever you’re touching the screen.
Compared to the other programming environment I have on my iPad, Pythonista, the built-in editor is archaic. It has one-line-at-a-time editing pretty much just like I remember it from the early eighties—but even toward the late eighties, I was using a full-screen BASIC editor on OS-9. This is more like the old interactive BASICs where you replaced a line by retyping that line number; you can also edit a line by typing “edit” and the line’s number.
Type just the line’s number to delete that line.
Just like in the old days, it is very easy to program an endless loop; however, even these tiny computers we carry in our pockets are so fast that an endless loop can be impossible to break out of. My initial circles program just drew random circles at random locations on the screen; it locked up HotPaw Basic—the Stop button failed to work. Unlike the old days, however, one rogue program is less likely to lock up the entire system. The iPad itself experienced no slow-down and I was able to easily exit HotPaw Basic and restart it.
HotPaw automatically saves your current program in “tmp.bas”. You can also save it using the “save” command, load new ones using the “load” command, and view all programs using “dir”.
It does not support iCloud, which means that programs written on the iPad do not automatically transfer to HotPaw BASIC on your iPhone or other devices.
If you’re one of those people who look back fondly on BASIC, or if you have some BASIC programs you’d like to run on your iPhone or iPad, take a look at it. Most of the other BASIC languages I’m seeing on the app store are recreations of specific computers of the past, such as Commodore BASIC, or don’t even look like BASIC any more. Chipmunk Basic, while hardly modern, has been and continues to be updated for use today.
- Chipmunk Basic: Ronald H. Nicholson
- “Chipmunk Basic is a fast and reliable cross-platform interpreter for the BASIC Programming Language. Chipmunk Basic presents a vintage traditional command-line console programming environment, and supports a very simple, old-fashioned, and easy-to-learn Basic Programming Language syntax. The Chipmunk Basic language also supports a few more advanced extensions.”
- HotPaw Basic: Ronald H. Nicholson
- “Calling all early-personal-computing fans, remember typing Basic programs into your home computer? HotPaw Basic recreates the retro-experience of a text-mode Basic interpreter, and it runs right on your iPhone or iPad. You can also use HotPaw Basic as a programmable calculator or for displaying simple line graphics. Advanced scientific functions include a built-in FFT.”
More BASIC
- Simple game menu for the Color Computer 2 with CoCoSDC
- This simple menu provides one screen for cartridges saved in the CoCoSDC’s flash ROM, and any number of screens for your favorite games for your friends to play.
- BASIC tokenization examined
- Why do old BASIC programs have strange characters in their .BAS files? Why do they look like they’re compiled code?
- Read BASIC out loud
- Reading BASIC out loud is a great tool for verifying that what you’ve typed in from an old-school magazine or book is correct.
- Convert PCBASIC code to TRS-80 Extended Color BASIC
- If you have a book of code written in PCBASIC, it usually isn’t hard to convert it to other Microsoft BASICs, such as on the TRS-80 Color Computers.
- SuperBASIC for the TRS-80 Color Computer
- Make BASIC Fun Again. Use loops, switches, and subroutines while writing Extended Color BASIC code for the Radio Shack Color Computer.
- Six more pages with the topic BASIC, and other related pages
More iOS apps
- Photo Resize, Rotate, Flip & Compress
- This is a simple app that fills a surprising gap in Photo apps: it allows resizing and compressing images with automatic recalculation of file size.
- Must-have iOS app: Editorial
- Editorial stands out among Markdown editors by being far more flexible and at the same time easier to use.
- Must-have iOS apps
- Apps for the iPhone and iPad that make doing things incredibly easier.
- Must-have iPad app: Inkpad
- The Inkpad app makes it easy to not only create vector (SVG) graphics on the iPad, but also to add them to existing photographs.
- Apple goes to the Swift
- The most exciting part of the WWDC keynote last Monday wasn‘t the new operating systems for the Macintosh and iDevices. It was the announcement of the new Swift programming language for MacOS and iOS. A new programming language is my equivalent of “one more thing…”
More iOS programming environments
- Flashcards for iPad using Pythonista
- Build a simple flashcard app for foreign phrases or whatever using photo albums and Pythonista.
- Preflighting blog comments in the Pythonista share screen
- I now use Pythonista’s sharing extension to ensure that comments on other people’s blogs are appropriately formatted.
- DieSquare for iOS
- Are your dice biased? Perform on-the-fly chi-square tests using your iPad or iPhone and Pythonista.