Gambas

Uses your system voice; voice and rate in settings.

Q648124Snapshot

≈ 2 min read

Names in other languages

  • eoGambaso
  • العربيةجامباس
  • caGambas
  • DeutschGambas
  • ΕλληνικάGambas
  • EnglishGambas
  • EspañolGambas
  • laGambas

Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.

Gambas is an object-oriented dialect of the BASIC programming language, and an integrated development environment that accompanies it. Designed to run on Linux and other Unix-like computer operating systems, 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.

Gambas is an object-oriented dialect of the BASIC programming language, and an integrated development environment that accompanies it. Designed to run on Linux and other Unix-like computer operating systems, 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. 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.

Gambas also supports the += and -= shorthand not found in classic Visual Basic. Both of these are features of Visual Basic .NET however. Gambas also outlived two other attempts at implementing a Visual Basic style interface for Qt and GTK on Linux, those being HBasic and GNOME Basic, as well as the platform independent KBasic/Basic for Qt.

Similar style IDEs have since been developed as well for FreeBASIC, namely VisualFBEditor, and QB64, namely InForm. 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 Fabián Flores Vadell (Nov, 2010) How to Program with Gambas

Text derived from https://en.wikipedia.org/w/index.php?oldid=1377838442 under CC BY-SA 4.0; modifications have been made.

Sources cited in this revision

36 named source(s) extracted from the cited revision. A source with no author is shown by its publication; nothing is invented.