What Can't PureBasic Do?

Everything else that doesn't fall into one of the other PB categories.
chris319
Enthusiast
Enthusiast
Posts: 782
Joined: Mon Oct 24, 2005 1:05 pm

What Can't PureBasic Do?

Post 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.
User avatar
leonhardt
Enthusiast
Enthusiast
Posts: 220
Joined: Wed Dec 23, 2009 3:26 pm

Re: What Can't PureBasic Do?

Post 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.
poor English...

PureBasic & Delphi & VBA
User avatar
Shield
Addict
Addict
Posts: 1021
Joined: Fri Jan 21, 2011 8:25 am
Location: 'stralia!
Contact:

Re: What Can't PureBasic Do?

Post 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.
Image
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
User avatar
Tenaja
Addict
Addict
Posts: 1959
Joined: Tue Nov 09, 2010 10:15 pm

Re: What Can't PureBasic Do?

Post 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.
Last edited by Tenaja on Sun Feb 12, 2012 6:21 pm, edited 1 time in total.
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: What Can't PureBasic Do?

Post 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
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.
Image
User avatar
Danilo
Addict
Addict
Posts: 3036
Joined: Sat Apr 26, 2003 8:26 am
Location: Planet Earth

Re: What Can't PureBasic Do?

Post 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.
moogle
Enthusiast
Enthusiast
Posts: 372
Joined: Tue Feb 14, 2006 9:27 pm
Location: London, UK

Re: What Can't PureBasic Do?

Post 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.
Image
Thorium
Addict
Addict
Posts: 1314
Joined: Sat Aug 15, 2009 6:59 pm

Re: What Can't PureBasic Do?

Post 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.
moogle
Enthusiast
Enthusiast
Posts: 372
Joined: Tue Feb 14, 2006 9:27 pm
Location: London, UK

Re: What Can't PureBasic Do?

Post 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?
Image
Thorium
Addict
Addict
Posts: 1314
Joined: Sat Aug 15, 2009 6:59 pm

Re: What Can't PureBasic Do?

Post 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.
User avatar
Tenaja
Addict
Addict
Posts: 1959
Joined: Tue Nov 09, 2010 10:15 pm

Re: What Can't PureBasic Do?

Post 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.
Thorium
Addict
Addict
Posts: 1314
Joined: Sat Aug 15, 2009 6:59 pm

Re: What Can't PureBasic Do?

Post 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.
Foz
Addict
Addict
Posts: 1359
Joined: Tue Nov 13, 2007 12:42 pm
Location: Manchester, UK

Re: What Can't PureBasic Do?

Post 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:
Thorium
Addict
Addict
Posts: 1314
Joined: Sat Aug 15, 2009 6:59 pm

Re: What Can't PureBasic Do?

Post 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.
chris319
Enthusiast
Enthusiast
Posts: 782
Joined: Mon Oct 24, 2005 1:05 pm

Re: What Can't PureBasic Do?

Post 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.
Post Reply