PureBasic Programming Language
I know that now everyone is writing on the pros, sharps, etc. But I want to draw your attention to an interesting programming language - PureBasic. This language will be useful for both beginners in programming (since the syntax of the language is very easy) and advanced programmers (due to the great capabilities of this language).
This article does not pretend to be a manual in this language, but I hope that you at least take a look at PureBasic with one eye and you won’t frown on the word “Basic”.
The main advantages of this language are the very small size of the programs and the absence of the need to “carry around” additional DLLs. Let me explain that PureBasic translates all the code into assembler (FASM). FASM creates an object file ( * .obj), and then the PureBasic linker collects the EXE or DLL. Therefore, in PureBasic, you can use assembler inserts in the FASM format.
By the way, PureBasic is available for Windows 98/2000 / XP / Vista / 7/8, Linux, MacOS and AmigaOS.
Download PureBasic from the official site . A demo version is available there (the main limitations of the demo version are the lack of direct access to the OS API, the inability to compile DLLs and programs with more than 800 lines of code). However, there are activated versions on the root tracker, so we will leave this question.
When reviewing programming languages, they usually start with the “Hello world!” Program. Well, let’s start and we:
Here is the result of this program:
At the same time, the size of the program is only 4087 bytes!
The language contains all the functions for working with windows, files, console, memory, date, etc. If the built-in functions are not enough, the OS API will come to the rescue. The OS API functions in PureBasic are called like this:
OS API name _ _ (parameters) We
remake our first program on the Windows API: The
language functionality can also be expanded using user libraries (User Library). Many libraries have already been created, but most of them work only with older versions of the compiler. But some of them are constantly developing and working under new versions of the compiler: PBOSL and Droopy - many different functions, XP_Menu_Lib - creating menus with Office 2003, Windows XP, PB_IO styles - designed for direct access to computer ports (in Windows NT, direct access to ports blocked), and many others.
Well, offhand a couple of programs written in PureBasic:
Hope the article helped someone somehow.
This article does not pretend to be a manual in this language, but I hope that you at least take a look at PureBasic with one eye and you won’t frown on the word “Basic”.
The main advantages of this language are the very small size of the programs and the absence of the need to “carry around” additional DLLs. Let me explain that PureBasic translates all the code into assembler (FASM). FASM creates an object file ( * .obj), and then the PureBasic linker collects the EXE or DLL. Therefore, in PureBasic, you can use assembler inserts in the FASM format.
By the way, PureBasic is available for Windows 98/2000 / XP / Vista / 7/8, Linux, MacOS and AmigaOS.
Download PureBasic from the official site . A demo version is available there (the main limitations of the demo version are the lack of direct access to the OS API, the inability to compile DLLs and programs with more than 800 lines of code). However, there are activated versions on the root tracker, so we will leave this question.
When reviewing programming languages, they usually start with the “Hello world!” Program. Well, let’s start and we:
MessageRequester("PureBasic","Hello world!")
Here is the result of this program:
At the same time, the size of the program is only 4087 bytes!
The language contains all the functions for working with windows, files, console, memory, date, etc. If the built-in functions are not enough, the OS API will come to the rescue. The OS API functions in PureBasic are called like this:
OS API name _ _ (parameters) We
remake our first program on the Windows API: The
MessageBox_(0, "Hello world!", "PureBasic", 0)
language functionality can also be expanded using user libraries (User Library). Many libraries have already been created, but most of them work only with older versions of the compiler. But some of them are constantly developing and working under new versions of the compiler: PBOSL and Droopy - many different functions, XP_Menu_Lib - creating menus with Office 2003, Windows XP, PB_IO styles - designed for direct access to computer ports (in Windows NT, direct access to ports blocked), and many others.
Well, offhand a couple of programs written in PureBasic:
Hope the article helped someone somehow.