Raspberry BASIC

Recent Posts

Pages: 1 2 3 [4]
ScriptBasic / Working with cURL
« Last post by John Spikowski on April 15, 2019, 05:06:58 AM »
This thread will be about using ScriptBasic and the cURL extension module. The first example is what I call my Hello Me cURL example. This is also included in the extension module test scripts I posted in the Resources thread.

Code: Script BASIC
  1. ' MyIP
  3. IMPORT curl.bas
  5. ch = curl::init()
  6. curl::option(ch,"URL","ipinfo.io")
  7. PRINT curl::perform(ch),"\n"
  9. curl::finish(ch)


pi@RPi3B:~/sbrpi/examples $ time scriba myip.sb
  "ip": "#4.#9.#1.#11",
  "hostname": "c-#4-#9-#1-#11.hsd1.wa.comcast.net",
  "city": "Anacortes",
  "region": "Washington",
  "country": "US",
  "loc": "48.5004,-122.6310",
  "postal": "98221",
  "org": "AS33650 Comcast Cable Communications, LLC"

real   0m0.334s
user   0m0.049s
sys   0m0.016s
pi@RPi3B:~/sbrpi/examples $

« Last post by John Spikowski on April 15, 2019, 03:33:17 AM »

Quote from: Your Web Site
The Raspberry Pi edition has an ARM assembler.

This was the reason I thought BBC BASIC was a BASIC to ASM compiler.

ScriptBasic / Resources
« Last post by John Spikowski on April 15, 2019, 02:07:05 AM »
The following resources are available for the Raspberry Pi.

ScriptBasic Runtime - RPi Zero (this version runs on all models of the Raspberry Pi)

ScriptBasic Runtime - Rpi ARMv7 (B / B+ Doesn't run on the Zero)

ScriptBasic Runtime - AppImage (ARMv7 single file no install)

DEB Install (installs needed dependences as well)
sudo apt install ./scriptbasic-2.1-linux-armhf.deb

Extract the sb file from the zip in a directory in the system path.

Note: The DEB installs use scriba to run scripts and the AppImage uses sb to run them.

The source can be found in the AllBASIC sandbox.

Extract your source download whch will create a sb-dev directory. Make sure you install the developer dependencies for the extension modules.

libmariadbclient-dev-compat (provides mysqlclient)

sudo perl jamal.pl -i    (this adds a Perl module the ScriptBasic build system needs but normally not installed by default)

./setup   (this builds the ScriptBasic runtime executables and include files created in the bin directory.

If all goes well, run the mkdeb.sh script to create the PACKAGES .deb install file or create a local install using mkdist.sh <dest dir>.

Documentation (User and Developer) can be found in the ScriptBasic Wiki.

Feel free to send me a PM (Private Message) or post your questions to the ScriptBasic forum board.

Attached is a set of scripts and data files I use to test the extension modules with.

Additional Extension Modules

GPM Fibo
Extract the zip and put the gmp.so extension module that should go in the /usr/local/lib/scriba directory.


* Unzip to a tmp directory.
* Copy libtinyscheme.so to your /usr/lib/ directory.
* Copy ts.so to your /usr/local/lib/scriba/ directory.
* Copy the remaining examples and init.scm to your ScriptBasic examples directory where ever that may be.

Note: The init.scm file is a Lisp script that adds additional syntax to your Lisp scripts.

BBC BASIC / Introduction to BBC BASIC
« Last post by Richard Russell on April 14, 2019, 09:58:19 AM »
BBC BASIC is the programming language originally specified and adopted by the British Broadcasting Corporation for its groundbreaking Computer Literacy Project of the early 1980s. It has since been extended and ported onto at least seven CPUs and more than thirty different platforms.  Today BBC BASIC is a modern, structured, language capable of most programming tasks.

The Raspbian edition of BBC BASIC is free and open-source.  It is highly compatible with the Windows, MacOS, Linux, Android and iOS editions, and generally BASIC programs will run on all these platforms with no modification, even if they use 2D or 3D graphics, sound, joystick input, file or network access etc. More than 100 example programs are supplied with BBC BASIC to demonstrate its capabilities.

Raspbian BBC BASIC needs at least an RPi 2; an RPi 3 or later is recommended for best performance.  It may be downloaded as a precompiled binary in the form of a Zip file or the source code, libraries and examples may be obtained from GitHub.  There is a makefile in the bin/raspi directory (the SDL2 development libraries must first be installed from the Raspbian repository).

Here are some YouTube videos which illustrate things that BBC BASIC can achieve on the Raspberry Pi:

Video games
2D graphics
3D graphics
Ceefax simulator
Music and 3D animation
Shader programming
Interpreters / Re: BBC BASIC
« Last post by admin on April 14, 2019, 05:19:31 AM »

I created a child board for BBC BASIC.

Interpreters / BBC BASIC
« Last post by Richard Russell on April 13, 2019, 03:57:06 PM »
Will there be a child board for BBC BASIC?
ScriptBasic / ScriptBasic Introduction
« Last post by John Spikowski on April 09, 2019, 07:16:57 PM »

Script BASIC is written in ANSI C with an object like API. The scripting engine is embeddable, with a thread safe memory manager and virtually unlimited expandability. The core language uses one source tree for all platforms. Variables are maintained in a variant like structure and typeless until used.

Script BASIC comes with an array of industry standard library extension modules and a multi-threaded proxy HTTPD application server running as an OS service.

Scripting doesn't get any easier and based on a language syntax we all grew up with.

ScriptBasic Forum

General Discussion / Forum Registration Information
« Last post by admin on April 09, 2019, 06:02:35 AM »
Welcome to the Raspberry BASIC forum!

Standard forum registration has been disabled due to the overwhelming abuse by spammers.

If you would like to join the forum, e-mail me at support @ scriptbasic.org with RaspberryBASIC in the subject title and the forum user ID you would like to use. I recommend using your real name.


John Spikowski
Pages: 1 2 3 [4]