PureBasic Pros and Cons

Everything else that doesn't fall into one of the other PB categories.
PB&J Lover
Enthusiast
Enthusiast
Posts: 212
Joined: Fri Apr 22, 2005 2:07 pm
Location: U.S.A.
Contact:

PureBasic Pros and Cons

Post by PB&J Lover »

Hello All,

I've been using PB for a few weeks now and I've been able to cut my old programs down to 1/3!

I was just wondering, what are some of the pros and cons that you who have been using it longer have found?

What are its strengths and weeknesses? (This will help me to know what apps to use it for).

Thanks.
-- DB

Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius — and a lot of courage — to move in the opposite direction.

Albert Einstein
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6172
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

the bad parts...

- i'm missing quads (well, 64 bit ints, these are so damn necessary these days) and better precision in floats

- i think the whole expression evaluation thingy needs either a rework or an explanation, sometimes it is very unclear if things need or produce floats or ints, especially in long expression

- i could live with an unsigned byte var, although it's not essential it would speed up some code, using peekb(..) & $FF doesn't look very neat

- multiple case consitions, as in case 0,1 are missing

- the (old) editor, dunno about the new one yet, but i prefer japbe thus far

- better image manipulation, i would like to have more control over image depth independent of desktop resolution

- the 3d commands and sound features are not there yet

- some of the commands could use some streamlining, sometimes a 'use' statement is used, sometimes a paramter is given, this isn't too consistent, i'd rather have both syntaxes

- poor help file and documentation



the good parts

- compiles fast and runs fast, yeah there may be other faster products around, but it's fast enough for me... especially on this machine :-)

- exe sizes are small

- i simply like basic, and with a gfabasic background i like (most of) the syntax

- direct use of api... no let me rephrase that... DIRECT USE OF API... gotta love this!!!!

- pb has an incredible community

- free updates, free updates, free updates
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB - upgrade incoming...)
( The path to enlightenment and the PureBasic Survival Guide right here... )
USCode
Addict
Addict
Posts: 924
Joined: Wed Mar 24, 2004 11:04 pm
Location: Seattle

Cross-platform, gadget library

Post by USCode »

Pros:
The biggest pro for me is the native compilation of the executables (small size and fast execution) and yet it is still cross-platform.

Cons:
For me the biggest con is the Gadget library. I find it incomplete, inconsistent and unnecessarily complex. Something like what Tcl/Tk does with the Tk library would be ideal but I'd settle for more functionality and consistency with the existing library... :)
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Re: Cross-platform, gadget library

Post by Polo »

USCode wrote:Pros:
The biggest pro for me is the native compilation of the executables (small size and fast execution) and yet it is still cross-platform.

Cons:
For me the biggest con is the Gadget library. I find it incomplete, inconsistent and unnecessarily complex. Something like what Tcl/Tk does with the Tk library would be ideal but I'd settle for more functionality and consistency with the existing library... :)
I also think the Gadget library needs a complete rewrite: it's good in a certain way, BUT: as you said it's inconcsistent and incomplete, the CreateGadgetList stuff for example was perhaps a good idea at start but now :?
But of course there's some good reasons i'm using Purebasic, and these are the size of the executables which is incredible, the fast compilation, and the ability to create our own purebasic libraries with what we want :)
User avatar
GedB
Addict
Addict
Posts: 1313
Joined: Fri May 16, 2003 3:47 pm
Location: England
Contact:

Post by GedB »

I think the Gadget library is one of PBs biggest assets.

At the moment it acts as a thin facade, and if you want to do anything more complicated you have to drop to the native API, which is fine as long as you don't want cross platform.

If you don't want cross platform you get all the benefits of being able to build a GUI that is 70% there with simple commands. You can then, very easily, complete the other 30% using API calls. This works well, until you want cross platform.

Pretty soon a GTK option will be available on windows, so even the cross platform problem will be solved.
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post by Shannara »

Well, my turn :)

PROs:

1. Small executables.
2. It is quite fast in some areas, though BlitzMax and Visual Basic beats it in some areas.
3. Direct use of API ( WINDOWS Only!!!!)


CONs:

1. Keyboard library is broken, so it cannot be used.
2. Not really cross-platform yet (I understandf this will be fixed before 4.x).
3. Very long commands to use for simple calls.
4. Inconsistancy
5. No unsigned variables
6. poor documentation
7. Single pass compiler, places unnenessary (sp?) burden on the programmer and forces workarounds to be coded.
8. Requires Dx7 or higher, this forces textures to be dividable by 2. This has been fixed in Dx9 and the newest video drivers for decent video cards. There is no limitation to the sizes, but PB still has them!


---

There is a bit more to list above, but Im heading out with the family to enjoy the sun @ 53F degrees.
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post by Kale »

CONS:
1. Keyboard library is broken, so it cannot be used.
2. Not really cross-platform yet (I understandf this will be fixed before 4.x).
3. Very long commands to use for simple calls.
4. Inconsistancy
5. No unsigned variables
6. poor documentation
7. Single pass compiler, places unnenessary (sp?) burden on the programmer and forces workarounds to be coded.
8. Requires Dx7 or higher, this forces textures to be dividable by 2. This has been fixed in Dx9 and the newest video drivers for decent video cards. There is no limitation to the sizes, but PB still has them!
Shannara, you make me laugh! :roll: Apart from point 5 you are talking total nonsense.
--Kale

Image
SoulReaper
Enthusiast
Enthusiast
Posts: 372
Joined: Sun Apr 03, 2005 2:14 am
Location: England

Post by SoulReaper »

Hi to eveyone :D

I have been enjoying reading this thread and just want to say that Pure Basic
is one of the best that I have seen :)

ok it lacks a little bit but it is getting there given time i think it will go from strength to strength....

I am currently working on a 2d/3d shoot em up and have recently mastered Linked lists for baddies etc, my point being is that i never knew how to do this
in other languages c++ very complex so for me its pure basic... :lol:

Keep up the good work fred :)
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post by Shannara »

Kale wrote: Shannara, you make me laugh! :roll: Apart from point 5 you are talking total nonsense.
Lol, that is a great joke you made!! lol, made my day!
dracflamloc
Addict
Addict
Posts: 1648
Joined: Mon Sep 20, 2004 3:52 pm
Contact:

Post by dracflamloc »

He is correct about the keyboard library...
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post by Kale »

He is correct about the keyboard library...
How is it Broken? I use it all the time :?:
--Kale

Image
Berikco
Administrator
Administrator
Posts: 1326
Joined: Wed Apr 23, 2003 7:57 pm
Location: Belgium
Contact:

Post by Berikco »

Most of Shanara's problems come down to being an inexperienced coder.....
The keyboard lib is not broken.
Shanara like's to call everything he don't like or does not understand about PureBasic an inconsistancy..
Fred
Administrator
Administrator
Posts: 18351
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

Shannara: as always, your posts are very constructive, thank you. Why don't you choose another programming langage (regarding your PRO/CON it's quite obvious) ? Just an idea..
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post by Shannara »

Fred:

I believe since SoulReaper asked an honest question, he deserves an honest answer. I cannot help if people take offense to such honesty.

If you want, I will be more then happy to give a pro/con list to any language you suggest (in the off topic section of course :)
Fred
Administrator
Administrator
Posts: 18351
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

What about my suggestion ? I mean, choose another programming langage to code in.
Locked