What BASIC intepreters are available?
Was asked by a new Ubuntu user - who also wants to learn about programming - what he could use to run BASIC code. He was working through a BASIC book before trying out Ubuntu, and he'd like to continue without having to switch back to Windows.
It looks like there are a few BASIC packages in the standard repositories, as well as projects like Mono which may include some kind of BASIC support.
What would be a good recommendation from the standard repositories - or from a deb package - for someone learning the basics of BASIC and new to Ubuntu?
78 Answers
Searching apt reveals
basic256- educational BASIC programming environment for childrenyabasic- Yet Another BASIC interpreter
basic256 seems it might be a little better suited for the user, but I'm not sure how closely that dialect will match whatever is in his programming book, which might be frustrating.
Homepage here -
yabasic seems closer to standard BASIC, but I really have no first-hand experience with either.
Good luck.
Gambas is the nearest equivalent to Visual Basic (It is quite geared towards desktop apps), so would be good if your friend was using Visual Basic.
1Gambas is a free development environment based on a Basic interpreter with object extensions, a bit like Visual Basic™ (but it is NOT a clone !). Read the introduction for more information.
With Gambas, you can quickly design your program GUI with Qt or GTK+, access MySQL, PostgreSQL, Firebird, ODBC and SQLite databases, pilot KDE applications with DCOP, translate your program into any language, create network applications easily, make 3D OpenGL applications, make CGI web applications, and so on...
If he is more interested in making games, sdlBasic would be a better option:
2sdlBasic
is a small, efficient and multiplatform basic interpreter aimed to game creation using the power of SDL library, it was inspired by the old and glorious AMOS.
why not take look at this small but effective interpreter: my-basic written in C. It's portable. I consider it a good start for either playing a little BASIC or learning how to write a BASIC interpreter in C.
I still write some small stuff in QB64. But I'm mostly concerned with data and data manipulation and not graphics. Just finished a tiny program to convert info from one accounting package to another one. Took me a week to write it. Running the program successfully converted 6 years of info before my coffee got cold.
Small, compact, but very powerful. Only screen display was showing the file conversions taking place as well as a 'Start' screen and a 'Conversion Successful' completion screen.
I have never tried this but I suppose it would be possible to run something like QBASIC through an emulator like DOSBox. DOSBox is available from the repository but he'd have to get his own copy of QBASIC on it once installed.
If someone has tried this feel free to edit this answer with more details.
You may also consider blassic. Find it at -
1I Would reommend FreeBasic. There is versions for Linux and Windows. Only ARM version is still missing :(
I have used it in some large projects with no problems. The code is clean and there is a good forum for it:
2