Page 1 of 2

What Can't PureBasic Do?

Posted: Sun Feb 12, 2012 7:02 am
by chris319
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.

Re: What Can't PureBasic Do?

Posted: Sun Feb 12, 2012 10:23 am
by leonhardt
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.
so far as I know ,with standard pakage,Pb can't produce .ocx,.sys.

Re: What Can't PureBasic Do?

Posted: Sun Feb 12, 2012 2:49 pm
by Shield
chris319 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.
I don't know about Lazarus but usually that bla bla bla is exactly what helps you once your applications grow larger than
a simple image converter or a tetris game... :wink:

Best is you search the forums to get your answer more quickly...there are like dozen threads about this somewhere hidden on this site.

Re: What Can't PureBasic Do?

Posted: Sun Feb 12, 2012 5:49 pm
by Tenaja
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.

Re: What Can't PureBasic Do?

Posted: Sun Feb 12, 2012 6:10 pm
by ts-soft
leonhardt wrote:so far as I know ,with standard pakage,Pb can't produce .ocx,.sys.
PB can create *.ocx see here: http://www.purebasic.fr/english/viewtop ... 12&t=49057
And a *.sys is only a DLL with the extension *.sys, PB can create DLLs :wink:

It is many work, but PB can produce it without problems.

Greetings - Thomas

Re: What Can't PureBasic Do?

Posted: Sun Feb 12, 2012 6:52 pm
by Danilo
chris319 wrote:What is the benefit of using some other language?
Programming languages have different features in terms of syntax and semantics.
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?

Posted: Sun Feb 12, 2012 9:27 pm
by moogle
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.
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.

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?

Posted: Mon Feb 13, 2012 7:54 am
by Thorium
moogle wrote:
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.
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.

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.
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?

Posted: Mon Feb 13, 2012 8:48 am
by moogle
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.
So you don't need to know C or ASM to convert it to PB?
How would you understand the libs/code otherwise?

Re: What Can't PureBasic Do?

Posted: Mon Feb 13, 2012 9:13 am
by Thorium
moogle wrote:
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.
So you don't need to know C or ASM to convert it to PB?
How would you understand the libs/code otherwise?
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.

You also can just import C libs without any convertion.

Re: What Can't PureBasic Do?

Posted: Mon Feb 13, 2012 4:03 pm
by Tenaja
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.
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.

Re: What Can't PureBasic Do?

Posted: Mon Feb 13, 2012 9:45 pm
by Thorium
Tenaja 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.
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.
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.

Re: What Can't PureBasic Do?

Posted: Mon Feb 13, 2012 10:03 pm
by Foz
Thorium wrote:So if you care about speed optimization there is nothing better than ASM.
And if you care about coding speed, there is nothing better than PB. :wink:

Re: What Can't PureBasic Do?

Posted: Mon Feb 13, 2012 10:32 pm
by Thorium
Foz wrote:
Thorium wrote:So if you care about speed optimization there is nothing better than ASM.
And if you care about coding speed, there is nothing better than PB. :wink:
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.

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?

Posted: Thu Feb 16, 2012 6:12 pm
by chris319
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.