It is currently Wed May 22, 2013 6:22 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: What Can't PureBasic Do?
PostPosted: Sun Feb 12, 2012 7:02 am 
Offline
Enthusiast
Enthusiast

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


Top
 Profile  
 
 Post subject: Re: What Can't PureBasic Do?
PostPosted: Sun Feb 12, 2012 10:23 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Wed Dec 23, 2009 3:26 pm
Posts: 121
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


Top
 Profile  
 
 Post subject: Re: What Can't PureBasic Do?
PostPosted: Sun Feb 12, 2012 2:49 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Fri Jan 21, 2011 8:25 am
Posts: 548
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
ImageImageImage
"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


Top
 Profile  
 
 Post subject: Re: What Can't PureBasic Do?
PostPosted: Sun Feb 12, 2012 5:49 pm 
Offline
Enthusiast
Enthusiast

Joined: Tue Nov 09, 2010 10:15 pm
Posts: 794
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.

Top
 Profile  
 
 Post subject: Re: What Can't PureBasic Do?
PostPosted: Sun Feb 12, 2012 6:10 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Jun 24, 2004 2:44 pm
Posts: 4715
Location: Berlin - Germany
leonhardt wrote:
so far as I know ,with standard pakage,Pb can't produce .ocx,.sys.

PB can create *.ocx see here: viewtopic.php?f=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.11 | Windows 7 SP1 (x64) | Linux Mint 14 (x64) | RealSource

The use of EnableExplicit is free of charge and avoids errors.


Top
 Profile  
 
 Post subject: Re: What Can't PureBasic Do?
PostPosted: Sun Feb 12, 2012 6:52 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Apr 26, 2003 8:26 am
Posts: 1290
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.


Top
 Profile  
 
 Post subject: Re: What Can't PureBasic Do?
PostPosted: Sun Feb 12, 2012 9:27 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Tue Feb 14, 2006 9:27 pm
Posts: 370
Location: London, UK
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


Top
 Profile  
 
 Post subject: Re: What Can't PureBasic Do?
PostPosted: Mon Feb 13, 2012 7:54 am 
Offline
Addict
Addict
User avatar

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


Top
 Profile  
 
 Post subject: Re: What Can't PureBasic Do?
PostPosted: Mon Feb 13, 2012 8:48 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Tue Feb 14, 2006 9:27 pm
Posts: 370
Location: London, UK
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


Top
 Profile  
 
 Post subject: Re: What Can't PureBasic Do?
PostPosted: Mon Feb 13, 2012 9:13 am 
Offline
Addict
Addict
User avatar

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


Top
 Profile  
 
 Post subject: Re: What Can't PureBasic Do?
PostPosted: Mon Feb 13, 2012 4:03 pm 
Offline
Enthusiast
Enthusiast

Joined: Tue Nov 09, 2010 10:15 pm
Posts: 794
Quote:
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.


Top
 Profile  
 
 Post subject: Re: What Can't PureBasic Do?
PostPosted: Mon Feb 13, 2012 9:45 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Aug 15, 2009 6:59 pm
Posts: 1024
Tenaja wrote:
Quote:
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.


Top
 Profile  
 
 Post subject: Re: What Can't PureBasic Do?
PostPosted: Mon Feb 13, 2012 10:03 pm 
Offline
Addict
Addict
User avatar

Joined: Tue Nov 13, 2007 12:42 pm
Posts: 1307
Location: Manchester, UK
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:


Top
 Profile  
 
 Post subject: Re: What Can't PureBasic Do?
PostPosted: Mon Feb 13, 2012 10:32 pm 
Offline
Addict
Addict
User avatar

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


Top
 Profile  
 
 Post subject: Re: What Can't PureBasic Do?
PostPosted: Thu Feb 16, 2012 6:12 pm 
Offline
Enthusiast
Enthusiast

Joined: Mon Oct 24, 2005 1:05 pm
Posts: 386
Here is a guy who could use PureBasic!

Quote:
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye