PureBasic
|
|
This article includes a list of references, but its sources remain unclear because it has insufficient inline citations. Please help to improve this article by introducing more precise citations. (June 2011) |
| Paradigm(s) | structured, imperative, procedural |
|---|---|
| Appeared in | 2000 (Windows), 1998 (AmigaOS) |
| Designed by | Fantaisie Software |
| Developer | Fantaisie Software |
| Stable release | v4.60 (November 6, 2011) |
| Influenced by | BASIC |
| OS | cross-platform: Microsoft Windows, Linux, Mac OS X (active) AmigaOS (discontinued, open source) |
| License | commercial |
| Usual filename extensions | .pb |
| Website | www.purebasic.com |
| Family | BASIC |
PureBasic is a commercially distributed procedural computer programming language and integrated development environment based on BASIC and developed by Fantaisie Software for Windows 32/64-bit, Linux 32/64-bit, and Mac OS X. An Amiga version is available, although it has been discontinued and released as open source. The first public release of PureBasic for Windows was on December 17, 2000. It has been continually updated since.
PureBasic has a unique "lifetime license model". As cited on the website, the very first PureBasic user (who registered in 1998) still has free access to new updates and this is not going to change.[1]
PureBasic compiles directly to x86, x86-64, PowerPC or 680x0 instruction sets, generating small standalone executables and DLLs which need no runtime libraries beyond the standard system libraries. Programs developed without using the platform-specific application programming interfaces (APIs) can be built easily from the same source file with little or no modification.
PureBasic supports inline assembly, allowing the developer to include FASM assembler commands within PureBasic source code, while using the variables declared in PureBasic source code, enabling experienced programmers to improve the speed of speed-critical sections of code.
PureBasic has an extensive set of over 1200 native commands[2][3] and direct access to most OS API calls. The editor has full project support and the compiler is thread-safe with a powerful debugger that supports breakpoints with stepping mode, variable viewer and watcher, and other debugging features common to major BASIC products. It includes a multiplatform GUI editor, and is extensible with custom made libraries in DLL form or to incorporate at the linking stage (only used functions to reduce final size).
PureBasic supports and has integrated the OGRE 3D Environment. Other 3D environments such as the Irrlicht Engine are unofficially supported.
PureBasic is used to create tools[4][5] and games in a fast and easy way.[6] The very active users community[7][8][9][10][11] share large amounts of open-source code.[12]
PureBasic has its own form designer to aid in the creation of forms for applications, but other third-party solutions are also available.[13][14][15]
Contents |
[edit] Hello World example
The following single line of PureBasic code will create a standalone executable (3.00 KB (3,072 bytes) on Windows version) that displays a message box with the text "Hello World".
MessageRequester("Message Box", "Hello World")
And the following variant of the same code, which instead uses an inline Windows API call with no need for declarations or other external references, will create an even smaller 2.00 KB (2,048 bytes) standalone executable for Windows.
MessageBox_(0, "Hello World", "Message Box", 0)
[edit] Further reading
- Willoughby, Gary (2006). Purebasic: A Beginner s Guide to Computer Programming. ISBN 1427604282.
- Basic Compilers: Quickbasic, Purebasic, Powerbasic, Blitz Basic, Xbasic, Turbo Basic, Visual Basic, Futurebasic, Realbasic, Freebasic. ISBN 1155324455.
[edit] Bibliography
- Hale Light, Michael (2010). Malware Analysts Cookbook Tools for Thwarting Malicious Attacks.. Indianapolis, IN: John Wiley & Sons Inc. pp. 241. ISBN 0470613033.
- Galbreath, Nick (2002). Cryptography for Internet and database applications : developing secret and public key techniques with Java. Indianapolis, Ind.: Wiley. pp. 300. ISBN 978-0471210290.
- "Learning to Crack Code". Manly Daily. Jun 24 2009. http://imageshack.us/photo/my-images/190/purebasicmanlydaily25ju.jpg/.
- Georges, Philippe. "La programmation avec PureBasic". PROgrammez (141). http://www.programmez.com/magazine_articles.php?titre=La-programmation-avec-PureBasic&id_article=1538&magazine=141.
[edit] References
- ^ FAQ, lifetime licence details
- ^ Documentation, Official documentation.
- ^ Nightlive PureBasic, PureBasic Survival Guide.
- ^ Gnozal's Purebasic place, PureFORM and jaPBe alternative editor
- ^ Horst Schaeffer's Software Pages
- ^ BGames studios, Old-school video games designers.
- ^ English forum, Official forum.
- ^ German forum
- ^ French forum
- ^ Russian forum
- ^ PureArea, PureArea
- ^ CodeArchiv, Andre Beer's code archive.
- ^ PureVision, Professional form design for PureBASIC.
- ^ ProGUI>, DLL library comprising more than 100 well documented commands to quickly incorporate rich, customizable GUI components into your applications.
- ^ PureFORM, Freeware form designer.
[edit] External links
- Official website
- Online Documentation
- Official support forum
- PureBasic at the Open Directory Project