Skip to main content

BBC Basic

A competitor to Liberty Basic from across the pond entered my radar in recent months. It's called BBC Basic for Windows and it's maintained by Richard T. Russell -- a sort of British Carl Gundel.

I was sufficiently impressed to buy a license and try it out as a testing tool for a project.

BBC Basic has a rich history that involves the BBC Micro and Acorn computers. The history of Acorn Computers parallels that of famous American companies like Apple and Commodore.

BBC Basic for Windows is a little more complicated than Liberty Basic, but it is also much faster and more powerful. I'll post updated Sieve benchmarks comparing Liberty Basic, Run Basic and BBC Basic in coming weeks.

Liberty Basic and Run Basic were developed with different tools and differing philosophies:

  • Liberty Basic was written in Smalltalk and has some of Smalltalk characteristics like big strings and really big integers. To understand what I mean, open a workspace in Squeak Smalltalk and evaluate the following: 1024 factorial.
  • BBC Basic was written in assembly language. It's fast, but has legacy power-of-two limits like 65535 character strings and program lines that can't exceed 251 characters.
  • Liberty Basic has integrated user interface statements. BBC Basic, however, keeps the core language small and moves user interface functions to external libraries. Liberty Basic doesn't support code libraries.

My evaluation of BBC Basic continues, and I'll have more to say about it in future posts.

Comments

Popular posts from this blog

Run BASIC Hosting Service Launched

The new Run BASIC hosting service launched at midnight! Please visit http://runbasichosting.com for more details. Monthly and annual subscriptions are available. Run BASIC , a product by ShopTalk Systems, is a tool that makes it easy to create your own web applications. No computer science degree required . Run BASIC Hosting is a service that makes it easy to deploy your applications to the Internet. No IT experience required .

Hammurabi (on Run Basic)

To celebrate 50+ years of BASIC, I've published an early version of the classic simulation, Hammurabi, on the Run Basic Hosting site. It ran "almost" unchanged -- line numbers, GOTOs and all. I'll publish the tweaked Run Basic code later, but here is the link to the game if you want to try it out right away. If you're interested in the original source, here is a nice article on the game at the Atari Archives. Have fun!
Liberty Basic 4 is now in Alpha testing. It looks like it's going to be a big step forward for the language. Here's a brief list of the new features: True global variables. (declared using the new global keyword) Passing arguments to a sub or function by reference. (I complained about the lack of this feature in LB3 about 4 posts ago.) Handle variables and the new maphandle command. (liberation from static handles to windows, controls and files) Dynamic evaluation of Liberty Basic code inside of a running program. ( eval returns a numeric value and eval$ returns a string value) Subroutines can now be used for event handlers. (a better choice over branch labels for large programs) There are many other enhancements, but these are the big ones. The IDE also has a new feature that lets you create tutorials or lessons using a three-pane window. On the left pane is the outline of the lesson. On the upper right pane is the lesson text. On the lower right pane is LB code...