True 64-bit Applications in PureBasic and Huge Numeric Types
Posted: Tue Oct 25, 2011 6:03 pm
Hello, programming colleagues of mine!
Like many of you, I started with basic … BASIC — from GWBasic, to QuickBasic, to Microsoft PDS Basic, to Visual Basic. Meanwhile, I adopted also the PowerBasic console compiler (PBCC) of a much smaller company (probably a one-man show).
I preferred the speed of console applications (non-GUI or formless). It was also my beginning in DOS! The transition from 16-bit to 32-bit PBCC was adequately easy. I’ve written over 100 programs, mainly in mathematics, probability, lottery, and gambling:
http://software.saliu.com/
Transitioning to a new platform is NOT easy, even if it is from one Basic to another Basic. Here is why I want to move one to another platform: 64-bit computing. Computing moves very, very fast. Soon, all software will be 64-bit. PowerBasic does NOT seem capable of writing 64-bit software. I asked them (other programmers asked too) to offer 64-bit compilers. Years have passed and nothing has happened. I also asked them to offer a HUGE numerical type to take advantage of the 64-bit architecture. No answer, either. They still offer an 18-digt wide data type (QUAD). I heard a small BASIC interpreter offers a 2600-digit wide numerical type! It’s UBasic — but there is no validation for that data type from an organization like IEEE.
And thus I googled and googled and I found PureBasic. I sent first an email to support. They assured me that PureBasic can create TRUE 64-bit applications! I mean, it’s not the hybrid that Microsoft offers: a maximum object size of 2 GB like in 32-bit operating systems. I want all that 2 ^ 64 = 18,446,744,073,709,551,616 address space, etc.
I also want HUGE data types. I read through the FAQ and other sources. I haven’t been able to find the maximum size for numerical type; that is, the maximum number of digits in length. I need to make myself clearer. I mean DIGITS as in the 10-base numeric system, not binary. 2 ^ 10 = 1024 but 10 ^ 10 = 10,000,000,000. I can trust the CURRENCY data type in VB6: 300 digits. If it were not precise, Microsoft would have been destroyed by now in lawsuits!
1) So, PureBasic applications can be TRULY 64-bit software, not the 32-bit/64-bit hybrid.
2) What is the maximum data size for numeric values, digits?
3) Can I create formless applications, like in PBCC?
Thank you for your consideration.
Ion Saliu
Like many of you, I started with basic … BASIC — from GWBasic, to QuickBasic, to Microsoft PDS Basic, to Visual Basic. Meanwhile, I adopted also the PowerBasic console compiler (PBCC) of a much smaller company (probably a one-man show).
I preferred the speed of console applications (non-GUI or formless). It was also my beginning in DOS! The transition from 16-bit to 32-bit PBCC was adequately easy. I’ve written over 100 programs, mainly in mathematics, probability, lottery, and gambling:
http://software.saliu.com/
Transitioning to a new platform is NOT easy, even if it is from one Basic to another Basic. Here is why I want to move one to another platform: 64-bit computing. Computing moves very, very fast. Soon, all software will be 64-bit. PowerBasic does NOT seem capable of writing 64-bit software. I asked them (other programmers asked too) to offer 64-bit compilers. Years have passed and nothing has happened. I also asked them to offer a HUGE numerical type to take advantage of the 64-bit architecture. No answer, either. They still offer an 18-digt wide data type (QUAD). I heard a small BASIC interpreter offers a 2600-digit wide numerical type! It’s UBasic — but there is no validation for that data type from an organization like IEEE.
And thus I googled and googled and I found PureBasic. I sent first an email to support. They assured me that PureBasic can create TRUE 64-bit applications! I mean, it’s not the hybrid that Microsoft offers: a maximum object size of 2 GB like in 32-bit operating systems. I want all that 2 ^ 64 = 18,446,744,073,709,551,616 address space, etc.
I also want HUGE data types. I read through the FAQ and other sources. I haven’t been able to find the maximum size for numerical type; that is, the maximum number of digits in length. I need to make myself clearer. I mean DIGITS as in the 10-base numeric system, not binary. 2 ^ 10 = 1024 but 10 ^ 10 = 10,000,000,000. I can trust the CURRENCY data type in VB6: 300 digits. If it were not precise, Microsoft would have been destroyed by now in lawsuits!
1) So, PureBasic applications can be TRULY 64-bit software, not the 32-bit/64-bit hybrid.
2) What is the maximum data size for numeric values, digits?
3) Can I create formless applications, like in PBCC?
Thank you for your consideration.
Ion Saliu