What Can't PureBasic Do?
What Can't PureBasic Do?
Today I downloaded and installed Lazarus (based on Free Pascal) just to see what it is like.
With PureBasic you simply write code and voila! You have a working program. With Lazarus there is so much bla bla bla and complexity and baggage that you don't just start writing code and have it run. I don't know why people bother with that kind of thing.
Here is the question: What can these other languages do that PureBasic can't? What is the benefit of using some other language?
I will eventually take Lazarus off my computer. I will then have to use Lysol to get rid of the smell.
With PureBasic you simply write code and voila! You have a working program. With Lazarus there is so much bla bla bla and complexity and baggage that you don't just start writing code and have it run. I don't know why people bother with that kind of thing.
Here is the question: What can these other languages do that PureBasic can't? What is the benefit of using some other language?
I will eventually take Lazarus off my computer. I will then have to use Lysol to get rid of the smell.
Re: What Can't PureBasic Do?
so far as I know ,with standard pakage,Pb can't produce .ocx,.sys.chris319 wrote:Today I downloaded and installed Lazarus (based on Free Pascal) just to see what it is like.
With PureBasic you simply write code and voila! You have a working program. With Lazarus there is so much bla bla bla and complexity and baggage that you don't just start writing code and have it run. I don't know why people bother with that kind of thing.
Here is the question: What can these other languages do that PureBasic can't? What is the benefit of using some other language?
I will eventually take Lazarus off my computer. I will then have to use Lysol to get rid of the smell.
poor English...
PureBasic & Delphi & VBA
PureBasic & Delphi & VBA
Re: What Can't PureBasic Do?
I don't know about Lazarus but usually that bla bla bla is exactly what helps you once your applications grow larger thanchris319 wrote:With Lazarus there is so much bla bla bla and complexity and baggage that you don't just start writing code and have it run. I don't know why people bother with that kind of thing.
a simple image converter or a tetris game...
Best is you search the forums to get your answer more quickly...there are like dozen threads about this somewhere hidden on this site.
Blog: Why Does It Suck? (http://whydoesitsuck.com/)
"You can disagree with me as much as you want, but during this talk, by definition, anybody who disagrees is stupid and ugly."
- Linus Torvalds
Re: What Can't PureBasic Do?
The basic language was developed (mid 60's) to introduce "outsiders" to computers and programming.
Pascal was designed (late 60's) to be a beginners language for techies--with a goal of encouraging good programming habits. As such, the equals sign ( = , used in comparisons) is not the same as the the assignment sign ( := ). It also prevents you from assigning an Int to a Byte, without specifying that it is intentional. (Just to name a couple.) In addition, due to the lack of memory available at the time, Pascal was also pretty much designed to compile with a small and efficient compiler, and generate moderately reasonable code.
Ironically, if you remove all of the safeties built in to Pascal, you pretty much end up with PB--so as far as what it "can't do", the answer is "almost nothing."
Without those safeties of Pascal, the syntax is almost PB, a typical a second-generation basic. (Third gen adds oop.) PB gets someone up and programming as fast as possible, but the default settings in its "safety" category encourage poor programming habits, just like the original Basic.
...oh, yeah, I almost forgot. Pascal probably has a LOT more libraries available to work with it, but they will not likely be as simple to use (Fred made them "commands" in PB, complete with Help files), and those libraries will not be in one central location as the commands in PB.
Pascal was designed (late 60's) to be a beginners language for techies--with a goal of encouraging good programming habits. As such, the equals sign ( = , used in comparisons) is not the same as the the assignment sign ( := ). It also prevents you from assigning an Int to a Byte, without specifying that it is intentional. (Just to name a couple.) In addition, due to the lack of memory available at the time, Pascal was also pretty much designed to compile with a small and efficient compiler, and generate moderately reasonable code.
Ironically, if you remove all of the safeties built in to Pascal, you pretty much end up with PB--so as far as what it "can't do", the answer is "almost nothing."
Without those safeties of Pascal, the syntax is almost PB, a typical a second-generation basic. (Third gen adds oop.) PB gets someone up and programming as fast as possible, but the default settings in its "safety" category encourage poor programming habits, just like the original Basic.
...oh, yeah, I almost forgot. Pascal probably has a LOT more libraries available to work with it, but they will not likely be as simple to use (Fred made them "commands" in PB, complete with Help files), and those libraries will not be in one central location as the commands in PB.
Last edited by Tenaja on Sun Feb 12, 2012 6:21 pm, edited 1 time in total.
Re: What Can't PureBasic Do?
PB can create *.ocx see here: http://www.purebasic.fr/english/viewtop ... 12&t=49057leonhardt wrote:so far as I know ,with standard pakage,Pb can't produce .ocx,.sys.
And a *.sys is only a DLL with the extension *.sys, PB can create DLLs
It is many work, but PB can produce it without problems.
Greetings - Thomas
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Re: What Can't PureBasic Do?
Programming languages have different features in terms of syntax and semantics.chris319 wrote:What is the benefit of using some other language?
They have different expressive power, abstractions, type systems, and can support
different programming paradigms.
http://en.wikipedia.org/wiki/Programming_language
http://en.wikipedia.org/wiki/Programming_paradigm
http://en.wikipedia.org/wiki/Comparison ... _paradigms
Maybe the question could be: how much does a specific programming language help you
to express what you want?
How much does it help you to prevent programming errors or help to find them? That's inter-related
with the compiler, type system etc.
Re: What Can't PureBasic Do?
Because when PureBasic can't do things, you have to use programming languages like that to make it have those functions. Most of these extra libs for PureBasic are created in C/C++ or are wrappers of libs originally created in those languages.chris319 wrote:With PureBasic you simply write code and voila! You have a working program. With Lazarus there is so much bla bla bla and complexity and baggage that you don't just start writing code and have it run. I don't know why people bother with that kind of thing.
PureBasic is good for getting the program up and running quickly, but when you need things it doesn't have you still have to go to the language that you avoided in the first place or find a lib/piece of code that was written in that language and convert it for PureBasic
It's good for writing personal tools and utilities though.

Re: What Can't PureBasic Do?
PureBasic can do almost anything. There is no need to go to another language to add anything to PB, all this C libs could be written in plain PB as well.moogle wrote:Because when PureBasic can't do things, you have to use programming languages like that to make it have those functions. Most of these extra libs for PureBasic are created in C/C++ or are wrappers of libs originally created in those languages.chris319 wrote:With PureBasic you simply write code and voila! You have a working program. With Lazarus there is so much bla bla bla and complexity and baggage that you don't just start writing code and have it run. I don't know why people bother with that kind of thing.
PureBasic is good for getting the program up and running quickly, but when you need things it doesn't have you still have to go to the language that you avoided in the first place or find a lib/piece of code that was written in that language and convert it for PureBasic
It's good for writing personal tools and utilities though.
Its the coder that limits it, not the language.
Re: What Can't PureBasic Do?
So you don't need to know C or ASM to convert it to PB?Thorium wrote:PureBasic can do almost anything. There is no need to go to another language to add anything to PB, all this C libs could be written in plain PB as well.
Its the coder that limits it, not the language.
How would you understand the libs/code otherwise?

Re: What Can't PureBasic Do?
I dont speak about converting, i speak about writing them in PB from scratch. You dont need C to add functionality to PB you can just use PB.moogle wrote:So you don't need to know C or ASM to convert it to PB?Thorium wrote:PureBasic can do almost anything. There is no need to go to another language to add anything to PB, all this C libs could be written in plain PB as well.
Its the coder that limits it, not the language.
How would you understand the libs/code otherwise?
You also can just import C libs without any convertion.
Re: What Can't PureBasic Do?
Actually, that is not entirely true. While PB can "do" just about anything, that does not make necessarily make it as "limitless" as any other language. According to Fred, C compilers have dozens of programmers focusing on optimization. PB has two programmers who do not work on optimization. There is a reason that Fred writes all of his current libraries in C...because it is that much more optimized than PB. If PB was "as good as C," then he would probably write his libraries in PB.PureBasic can do almost anything. There is no need to go to another language to add anything to PB, all this C libs could be written in plain PB as well.
Its the coder that limits it, not the language.
Re: What Can't PureBasic Do?
Thats why there is inline ASM in PB. Still you can do anything in plain PB, it's just not as fast as in C. Even in C you might need to handoptimize with ASM. This is true for C compilers that compile to ARM. The ARM compilers are not nearly as optimized as the x86 compilers. So if you care about speed optimization there is nothing better than ASM.Tenaja wrote:Actually, that is not entirely true. While PB can "do" just about anything, that does not make necessarily make it as "limitless" as any other language. According to Fred, C compilers have dozens of programmers focusing on optimization. PB has two programmers who do not work on optimization. There is a reason that Fred writes all of his current libraries in C...because it is that much more optimized than PB. If PB was "as good as C," then he would probably write his libraries in PB.PureBasic can do almost anything. There is no need to go to another language to add anything to PB, all this C libs could be written in plain PB as well.
Its the coder that limits it, not the language.
Re: What Can't PureBasic Do?
And if you care about coding speed, there is nothing better than PB.Thorium wrote:So if you care about speed optimization there is nothing better than ASM.
Re: What Can't PureBasic Do?
Right, thats why PB and ASM are a great combination. Do rapid development and then optimize with ASM where it's actualy needed. The ASM codes are typicly very small for such optimizations.Foz wrote:And if you care about coding speed, there is nothing better than PB.Thorium wrote:So if you care about speed optimization there is nothing better than ASM.
For example my image decoder beats libpng by 2 times speed with same compression and same filtering. Written in PB with ASM optimization.
Re: What Can't PureBasic Do?
Here is a guy who could use PureBasic!
I am working with Express 2010. Still, no luck. 3 days and I still cannot compile and run something as simple as 'Hello World.' Getting the Help file to work on either online or local help is also a disaster and finding help on anything that actually helps these issues is a lost cause.
There has to be something criminal about making it impossible to find help on getting help!!!!
Ever feel as if you just wasted 3 solid days of your life? Thanks Microsoft. Next time you release something, don't make it so difficult to find some help. I challenge you to put someone who knows nothing about your website or a given program they are having trouble with to find help on an issue in a REASONABLE amount of time without... well... help. It's spaghetti. Frustrating. Enraging.
I guess I'll go find a compiler that really WORKS and has working HELP and SUPPORT.


