PureBasic
PureBasic
|
|
---|---|
The PureBasic editor |
|
Basic data
|
|
developer | Fantasy software |
Publishing year | 1998 |
Current version |
Windows : 5.72 (March 30, 2020) Linux : 5.72 (March 30, 2020) |
operating system | Windows , Linux , macOS , AmigaOS |
category | Procedural programming language |
License | Proprietary |
German speaking | Yes |
www.purebasic.com |
PureBasic is a procedural programming language for Windows , Linux , macOS and AmigaOS mainly developed by Frédéric Laboureur (Fantaisie Software, France ) , which is sold commercially.
General
PureBasic is a programming language based on BASIC . The key features are portability (currently Windows, Linux, macOS are fully supported and AmigaOS partially supported), the creation of very fast programs and the easy to learn BASIC syntax . In addition, PureBasic offers a large number of library functions that are clearly and simply structured. This makes PureBasic suitable for beginners as well as experts. Despite the beginner-friendly syntax, the advanced options such as B. pointers , structures, procedures and dynamically linked lists, fields and maps PureBasic to a versatile programming language. The use of inline assembler for time-critical code sections is also possible.
properties
- Comprehensive standard library, for example for GUI elements , graphics , sound, network , database , compression , cryptography , etc. v. a.
- Extendable range of functions through self-created libraries.
- Development environment with integrated 32-bit - or 64-bit - compiler , which is also in-line assembler supports.
- The integrated development environment contains a visual designer for creating the code for UI elements.
- Source code is portable between Windows, Linux, macOS and partly AmigaOS. A variant called Spiderbasic should make the source text executable in the browser. The source text is translated into HTML and JavaScript.
- Build applications do not require external DLLs or other external resources.
- Support of procedures for structured programming with local and global variables
- Full access to the programming interface (API) of the operating system used.
- Easy implementation of 2D and 3D games through integrated libraries possible ( DirectX , OpenGL , SDL , OGRE ).
history
The PureBasic inventor Frédéric Laboureur wrote many additional instructions in 68000 assembler ( assembly language for the Motorola 68000 family ) for the Amiga version of Blitz Basic at the end of the 1990s . Since Blitz Basic for the Amiga had been officially discontinued a few years earlier, he and Roger Beausoleil developed the first compiler that used the commands written for Blitz Basic. Even back then, this compiler supported various processor architectures (initially code generation for PowerPC and 680x0 ). It was later ported to the Windows, Linux and macOS systems supported today. The result was PureBasic. At first, Laboreur wanted to baptize its language Phoenix . However, he rejected this idea because he feared that users would not find this name in search engines without the BASIC appendix . Then he wanted to call it PowerBasic . But this name was already given for another programming language. In the end, Laboreur decided on PureBasic. With pure (German clear , pure ) he wants to express that PureBasic is easy to understand and easy to use. The first version of PureBasic that did not have beta status appeared on December 17th, 2000. Since November 4th, 2007 version 4.10 is available for Windows, Linux and macOS, with which it is possible for the first time, independent of the operating system to use the entire instruction set of PureBasic, which simplifies the portability of the source code.
License
PureBasic must be approved (licensed) for each user individually. This means that a user can set up PureBasic on any of his computers with the purchase of a license .
The license may therefore not be shared between several people. Exceptions to this are special licenses for school classes and companies, which then cover an entire class or a company location.
A PureBasic license is valid for all supported platforms, so it is not tied to a development platform. The license of PureBasic is therefore not free ( proprietary ) for everyone (except the manufacturer ). The only exception are the standard libraries of the version for AmigaOS , which are open source and freely available. A special feature of the license is the right to free updates to new versions for life.
example
The following source code represents a simple PureBasic program that outputs the message "Hello world!" In a notification window:
MessageRequester("Nachricht", "Hallo Welt!")
The output under Windows:
The following three commands output "Hello World!" In the command window (console):
OpenConsole()
Print("Hallo Welt!")
Input() ;wartet auf das Drücken der [Eingabe]-Taste
Output:
Development environment
The integrated development environment of PureBasic consists of many useful tools, a text editor , compiler , debugger and a visual designer. Syntax highlighting , code folding , line numbering and more are supported by using the editor component Scintilla . In addition, the development environment can be individually adapted to your own needs. For example, you can define your own colors for syntax highlighting or integrate third-party tools into the development environment.
Web links
- Official homepage with forum (German, English and French)
- pureVision - professional shape designer (English)
- PureProject - Portal Page (English)
- Link catalog on the topic of PureBasic at curlie.org (formerly DMOZ )
- PureArea.net - PureBasic support and order page (German and English)
- PureBasic on RosettaCode (English)