Gambas
Error creating thumbnail: convert: no images defined `/tmp/transform_856c09ae38e5.png' @ error/convert.c/ConvertImageCommand/3229. Error code: 1 | |
Designed by | Benoît Minisini |
---|---|
First appeared | 1999 |
Stable release | 3.18.4
/ September 21, 2023[1] |
OS | Linux, FreeBSD; versions for Mac OS X[2] and Haiku drafted; Microsoft Windows through Cygwin and WSL |
License | GNU GPLv2+ |
Website | http://gambas.sourceforge.net |
Influenced by | |
Visual Basic, Java[3] |
Gambas is the name of an object-oriented dialect of the BASIC programming language, as well as the integrated development environment that accompanies it.[4] Designed to run on Linux and other Unix-like computer operating systems,[5] its name is a recursive acronym for Gambas Almost Means Basic. Gambas is also the word for prawns in the Spanish, French, and Portuguese languages, from which the project's logos are derived.
History
Gambas was developed by the French programmer Benoît Minisini, with its first release coming in 1999. Benoît had grown up with the BASIC language, and decided to make a free software development environment that could quickly and easily make programs with user interfaces.[3]
The Gambas 1.x versions featured an interface made up of several different separate windows for forms and IDE dialogues in a similar fashion to the interface of earlier versions of the GIMP. It could also only develop applications using Qt and was more oriented towards the development of applications for KDE.[6] The last release of the 1.x versions was Gambas 1.0.19.
The first of the 2.x versions was released on January 2, 2008, after three to four years of development. It featured a major redesign of the interface, now with all forms and functions embedded in a single window, as well as some changes to the Gambas syntax, although for the most part code compatibility was kept. It featured major updates to existing Gambas components as well as the addition of some new ones, such as new components that could use GTK+ or SDL for drawing or utilize OpenGL acceleration. Gambas 2.x versions can load up and run Gambas 1.x projects, with occasional incompatibilities; the same is true for Gambas 2.x to 3.x, but not from Gambas 1.x to 3.x.
The next major iteration of Gambas, the 3.x versions, was released on December 31, 2011.[7] A 2015 benchmark published on the Gambas website showed Gambas 3.8.90 scripting as being faster to varying degrees than Perl 5.20.2 and the then-latest 2.7.10 version of Python in many tests.[8] Version 3.16.0 released on April 20, 2021, featured full support for Wayland using the graphical components, as well as parity between the Qt 5 and GTK 3 components.[9]
Features
Gambas is designed to build graphical programs using the Qt (currently Qt 4.x or 5.x since 3.8.0) or the GTK toolkit (GTK 3.x also supported as of 3.6.0); the Gambas IDE is written in Gambas.[10] Gambas includes a GUI designer to aid in creating user interfaces in an event-driven style, but can also make command line applications,[11] as well as text-based user interfaces using the ncurses toolkit.[12] The Gambas runtime environment is needed to run executables.
Functionality is provided by a variety of components, each of which can be selected to provide additional features.[13] Drawing can be provided either through Qt and GTK toolkits, with an additional component which is designed to switch between them.[14] Drawing can also be provided through the Simple DirectMedia Layer (originally version 1.x, with 2.x added as of 3.7.0),[15] which can also be utilized for audio playback through a separate sound component (a component for the OpenAL specification has also been added). GPU acceleration support is available through an OpenGL component, as well as other hardware functionally provided by various other components.[14] There are also components for handling other specialized tasks.[13]
With Gambas, developers can also use databases such as MySQL or PostgreSQL, build KDE (Qt) and GNOME GTK applications with DCOP, translate Visual Basic programs to Gambas and run them under Linux, build network solutions, and create CGI web applications. The IDE also includes a tool for the creation of installation packages, supporting GNU Autotools, slackpkg, pacman, RPM, and debs (the latter two then tailored for specific distributions such as Fedora/RHEL/CentOS, Mageia, Mandriva, OpenSUSE and Debian, Ubuntu/Mint).
Gambas since version 3.2 IDE has integrated profiler and it started to use just-in-time compilation technology.
Differences from Visual Basic
Gambas is intended to provide a similar experience as developing in Microsoft Visual Basic, but it is not a free software clone of the popular proprietary program.[16] The author of Gambas makes it clear that there are similarities to Visual Basic, such as syntax for BASIC programs and the integrated development environment; Gambas was written from the start to be a development environment of its own and seeks to improve on the formula.[17][18][19]
Its object model, each class being represented in a file, as well as the archiver to package the program is all inspired by the Java programming language. Gambas is intended to be an alternative for former Visual Basic developers who have decided to migrate to Linux. There are also other important distinctions between Gambas and Visual Basic. One notable example is that in Gambas array indexes always start with 0, whereas Visual Basic indexes can start with 0 or 1.[20] Gambas also supports the += and -= shorthand not found in classic Visual Basic. Both of these are features of Visual Basic .NET however.
Gambas also succeeded two prior attempts at implementing a Visual Basic style interface for Qt and GTK on Linux,[21][22] those being HBasic[23][24] and GNOME Basic,[25][26] as well as the platform independent KBasic/Basic for Qt.[27] Similar style IDEs have since been developed as well for FreeBASIC, namely VisualFBEditor,[28] and QB64, namely InForm.[29]
Adoption
Several programs and many forms of example code have been written using and for Gambas. Freecode (formerly Freshmeat) listed 23 applications that were developed using Gambas,[30] while the Gambas wiki listed 82;[31] several other specialized sites list Gambas applications and code.[32][33][34] A Gambas written application, named Gambas3 ShowCase, acted as a software center to download or install Gambas 3 applications.[35] It has since been discontinued following the launch of the first party Gambas Software Farm integrated into the IDE since 3.7.1, which contains nearly 500 applications and demos.[36][37] Several community sites, including community forums and mailing lists, also exist for Gambas.[38] A notable application written in Gambas is Xt7-player-mpv, a GUI frontend for mpv player contained in a number of Linux software repositories.[39][40][41] The comisat Games Collection are early examples of video games written in Gambas.[42]
Availability
Gambas is included in the repositories of a number of Linux distributions, such as Debian, Fedora, Mandriva Linux and Ubuntu. A Microsoft Windows version of Gambas was run under the Cygwin environment, although this version was significantly less tested than its Linux counterparts and was command-line only; Cooperative Linux and derivatives have also been used,[43] as well as specialized Linux virtual machines.[44] [45] An independent contributor, François Gallo, also worked on porting Gambas 3.x to Mac OS X and FreeBSD, based on using local versions of the X11 system.[46] Gambas from version 3.2 can run on Raspberry Pi, and offers just-in-time compilation there from version 3.12. It can also be ran from the cloud using rollApp.[47]
In November 2013, the future portability of Gambas was discussed, listing the main concerns being Linux kernel features utilized in the interpreter, components using Linux specific software and libraries, and primarily X11-tying in the Qt, GTK and desktop integration components. However, partly due to the need to upgrade to newer toolkits such as GTK 3 (added as of 3.6.0) and Qt 5 (as of 3.8.0), future versions would be less X11 tied, making projects like Cygwin or utterly native versions on other platforms more possible. Benoît Minisini stated that he intended to "encapsulate" X11 specific code to aid in any attempt to replace it,[48] with the X11 support in the desktop component moved to its own component as of 3.6.0.
On October 27, 2016, a screenshot and setup guide was released from the main page for running Gambas fully through Cygwin, including most components, graphical toolkits, and the complete IDE.[49][50] The relevant patches were mainlined as of version 3.9.2.[51] This replaces the prior recommended method of using freenx forwarding from a Linux server.[52] It has also been successfully run using the Windows Subsystem for Linux.[53] This was usually done using an X terminal emulator such Mobaxterm on Windows,[54] as WSL did not support X11 graphics directly until Windows 11.[55]
Example code
A "Hello, World!" program with graphical user interface.
Public Sub Main() Message("Hello, World!") End
Program that computes a 100-term polynomial 500000 times, and repeats it ten times (used for benchmarking).
Private Sub Test(X As Float) As Float Dim Mu As Float = 10.0 Dim Pu, Su As Float Dim I, J, N As Integer Dim aPoly As New Float[100] N = 500000 For I = 0 To N - 1 For J = 0 To 99 Mu = (Mu + 2.0) / 2.0 aPoly[J] = Mu Next Su = 0.0 For J = 0 To 99 Su = X * Su + aPoly[J] Next Pu += Su Next Return Pu End Public Sub Main() Dim I as Integer For I = 1 To 10 Print Test(0.2) Next End
See also
References
- ↑ "Releases · Gambas / gambas · GitLab". https://gitlab.com/gambas/gambas/-/releases.
- ↑ Gallo, François (2011-06-16). "Gambas 3 OS X". https://allbasic.info/forum/index.php?topic=118.0.
- ↑ 3.0 3.1 "Gambas Documentation Introduction". Gambas Website. http://gambaswiki.org/wiki/doc/intro?nh&l=en.
- ↑ Huges, Matthew (2015-03-03). "The BASIC Guide to GAMBAS: All You Need To Know". https://www.makeuseof.com/tag/basic-guide-gambas-need-know/.
- ↑ Upfold, Peter (2008-09-08). "Gambas — Almost Visual Basic for Linux". FOSSwire. http://fosswire.com/post/2008/09/gambas-almost-visual-basic-for-linux/.
- ↑ "Gambas: A Fast Visual Basic for Linux". CodeFez. http://codefez.com/gambas-a-fast-visual-basic-for-linux/.
- ↑ "Gambas 3.0 for BASIC with bug and security fixes". The H. http://www.h-online.com/open/news/item/Gambas-3-0-for-BASIC-with-bug-and-security-fixes-1403082.html.
- ↑ "Benchmarking". Gambas Website. http://gambaswiki.org/wiki/doc/benchmark.
- ↑ "3.16.0 release notes". Gambas Website. http://gambaswiki.org/wiki/doc/release/3.16.0?nh.
- ↑ "Frequently Asked Questions". http://gambaswiki.org/wiki/doc/faq.
- ↑ An Alphabet of Computer Languages: BASIC, PCLinuxOS Magazine
- ↑ Dee, Steve (2017-03-27). "Gambas cli programming: ncurses text based user interface". http://captainbodgit.blogspot.com/2017/03/gambas-cli-programming-ncurses-text.html.
- ↑ 13.0 13.1 Fernandez, Daniel (2004-11-11). "Regarding Gambas". OSNews. http://www.osnews.com/story/8849/Regarding_Gambas/page1.
- ↑ 14.0 14.1 "Gambas RAD". Linux.co.uk. http://old.linux.co.uk//docs/center/featured-software/gambas-rad.
- ↑ "Why a new SDL component?". Gambas Mailing List. http://git.net/gambas-development-environment-basic/msg17384.html.
- ↑ Allen Holm, Joshua (2014-04-24). "BASIC programming with Gambas for the beginner programmer". https://opensource.com/education/14/4/beginner-programming-basic-gambas.
- ↑ Mark Alexander Bain (2008-08-28). "Gambas -- Almost Visual Basic on Linux". Suite101. http://gambas-data-grid-codes-database.blogspot.com/p/vb-for-linux.html.
- ↑ Frank Wieduwilt (October 2008). "Programming with the Gambas Basic IDE". Linux Pro Magazine. http://www.linuxpromagazine.com/Issues/2008/95/Gambas-Basic-IDE/.
- ↑ AWC Electronics. "Physical Computing with Linux: A Rapid Approach using Gambas". http://www.awce.com/gp3-gambas.html.
- ↑ "Differences from Visual Basic". Gambas Website. http://www.gambaswiki.org/wiki/doc/diffvb.
- ↑ "HBasic – Menghadirkan VB di Linux". 2005-12-06. https://dgk.or.id/archives/2004/12/16/hbasic-menghadirkan-vb-di-linux/.
- ↑ "BASIC for Linux". http://www.fredshack.com/docs/linuxbasic.html.
- ↑ "HBasic IDE and language". 2007-01-16. https://hbasic.sourceforge.net/.
- ↑ Macoratti, José Carlos. "VB para Linux.". https://www.macoratti.net/vb_linux.htm.
- ↑ "GB - Basic for GNOME". http://www.gnome.org/projects/gb/.
- ↑ Perr, John (2003-01-01). "BASIC programming with Unix". http://www.linuxfocus.org/English/January2003/article277.shtml.
- ↑ "KBasic: A VB-Like Rad/IDE For KDE". https://dot.kde.org/2000/09/29/kbasic-vb-radide-kde.
- ↑ Speed, Richard (2022-05-06). "RAD Basic – the Visual Basic 7 that never was – releases third alpha". https://www.theregister.com/2022/05/06/rad_basic_alpha_3/. "FreeBASIC, which implements much of what lurked in Microsoft QuickBASIC (and has a nifty IDE in the form of VisualFBEditor)."
- ↑ Rogoz, Ivan (2022-04-07). "Blast from the past - QBasic 4.5". https://warped3.substack.com/p/blast-from-the-past-qbasic-45. "QB64 comes with a WYSIWYG IDE editor called InForm which brings it closer to everyday use as a quick and dirty language for automation for Windows."
- ↑ "23 projects tagged "Gambas"". Freshmeat. Archived from the original. Error: If you specify
|archiveurl=
, you must also specify|archivedate=
. https://web.archive.org/web/20130928005822/http://freecode.com/tags/gambas. - ↑ "Application Repository". Gambas. http://www.gambaswiki.org/wiki/app.
- ↑ "GAMBAS BASIC Web site". GAMBAS BASIC. http://gambaslinux.eg2.fr/index.php?lng=en.
- ↑ "Gambas Examples". Piga Software. http://pigalore.miraheze.org/wiki/Gambas_Examples.
- ↑ Gambas games - Libregamewiki
- ↑ "Gambas3 ShowCase". gbWilly. http://gambasshowcase.org/.
- ↑ Gambas Farm
- ↑ Gambas Farm Server Protocol - Gambas Documentation
- ↑ "Mailing Lists & Forums". Gambas Web site. http://gambaswiki.org/wiki/doc/forum?nh&l=en.
- ↑ xt7-player-mpv - linux-APPS.com
- ↑ XT7-Player – Best Video Player for Kubuntu / KDE - Ubuntu Handbook
- ↑ Xt7-Player Is A Fully Featured Mplayer GUI - Web Upd8
- ↑ "comisat Games Collection 0.5.2 review". https://nixbit.com/software/comisat-games-collection-review/.
- ↑ Gambas on Windows - Alternative
- ↑ Morgan, R. (2014-06-29). "How to Run Gambas on Windows". http://www.gambasmag.com/article/how-to-run-gambas-on-windows.
- ↑ Running Gambas Programs in Windows - PigaLore, the Piga Software Wiki
- ↑ Gallo, François. "A step forward in Gambas!". http://gambas.8142.n7.nabble.com/A-step-forward-in-Gambas-td15054.html.
- ↑ New version of Gambas 3.15.2 is already available on rollApp.
- ↑ Gambas Future or what kind of Gambas we want , Gambas Mailing List
- ↑ Cygwin Install Guide - Gambas Wiki
- ↑ gambas3 package - Cygwin website
- ↑ Morgan, R. (2014-06-29). "How to Run Gambas on Windows". http://www.gambasmag.com/article/project-spot-light-gambas-on-windows/.
- ↑ How To Run Gambas On Windows - Gambas Wiki
- ↑ Gambas on Windows, Gambas-One
- ↑ Vasques, Daniel (2023-01-09). "How To Run Gambas In Ubuntu". https://elmeson-santafe.com/how-to-run-gambas-in-ubuntu/.
- ↑ Windows 11, Gambas-One
Further reading
- Mark Alexander Bain (Apr 28, 2006) An Introduction to Gambas, Linux Journal, issue 146, June 2006 (in print)
- Mark Alexander Bain (Dec 3, 2004) Gambas speeds database development, Linux.com
- Mark Alexander Bain (Dec 12, 2007) Creating simple charts with Gambas 2.0, Linux.com
- Fabián Flores Vadell (Nov, 2010) How to Program with Gambas
External links
Wikimedia Commons has media related to Gambas. |
- Gambas on GitLab
- Gambas documentation
- Gambas mailing list
- Gambas One, English community
- Gambas India, community and source code repo
Original source: https://en.wikipedia.org/wiki/Gambas.
Read more |