Pure speed of Purebasic

Just starting out? Need help? Post your questions and find answers here.
luke101
User
User
Posts: 36
Joined: Wed Sep 10, 2003 2:33 am

Pure speed of Purebasic

Post by luke101 »

Is there any other language besides C++ that is faster or the same speed as purebasic?? Also, is there any other that is as flexible as purebasic??
pentium 90mhz, 32mb ram, 1mb video ram, 1gb hd, windows 95.
If it can run on mine it can run on anything

Staight outta Compton
deadmoap
User
User
Posts: 79
Joined: Sun Feb 22, 2004 11:45 pm
Location: Riverdale, Utah
Contact:

Post by deadmoap »

IMHO, PB is the best BASIC language I have ever seen. It's the fastest and definately the most flexible. It's only downside is it's lack of support for games. I wouldn't recommend it for games, use Blitz3D for those. But PB is the best for applications. Executables are small, too. Smaller than Visual C++ at least.
luke101
User
User
Posts: 36
Joined: Wed Sep 10, 2003 2:33 am

Post by luke101 »

do you really think purebasic is faster than c++
pentium 90mhz, 32mb ram, 1mb video ram, 1gb hd, windows 95.
If it can run on mine it can run on anything

Staight outta Compton
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post by Kale »

do you really think purebasic is faster than c++
some speed tests have shown it can be.
--Kale

Image
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

it depends of the programmers skills
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
MadMax
Enthusiast
Enthusiast
Posts: 237
Joined: Mon Oct 06, 2003 11:56 am

Post by MadMax »

It's only downside is it's lack of support for games.
Why do you say that? I think PB is great for games, at least 2D games.

As for 3D, well, yes it's still a bit limited compared to Blitz3D. But hopefuly this will change. :D
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

For 2d games, look at this games from B-Games and you'll see that PB is a great language even in 2d

http://perso.wanadoo.fr/darkprograms/downloads.html
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
freedimension
Enthusiast
Enthusiast
Posts: 613
Joined: Tue May 06, 2003 2:50 pm
Location: Germany
Contact:

Post by freedimension »

Kale wrote:
do you really think purebasic is faster than c++
some speed tests have shown it can be.
Also depends on the C++ Compiler used. Beating an open source compiler like MinGW can't be to hard for a skilled programmer.
But speed isn't everything, it's only a part of the whole puzzle - and I like puzzling in PB more than in C++ ;-)
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Post by Karbon »

You can write slow ASM code if you don't know what you are doing. For the most part the speed of any software depends on how you write it more than what you write it in.. PB is very, very fast for sure, but you can probably get comparable speed out of other languages if you try hard enough :-)
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
User avatar
GedB
Addict
Addict
Posts: 1313
Joined: Fri May 16, 2003 3:47 pm
Location: England
Contact:

Post by GedB »

This is true. I remember one VB guru demonstrating that the right VB code could be as fast as C.

However, what's really important is a language that gives you performance for free. I like to concentrate on my code and the problem at hand. I don't want to be fretting about optimization.

One language that is lightening fast and very power is OCaml. It's a functional language related to Lisp. http://www.ocaml.org
Raven
User
User
Posts: 45
Joined: Tue Jul 15, 2003 4:03 pm
Location: England

Post by Raven »

How is PureBasic bad for games?
You can use DirectX and OpenGL natively, it actually means that you have free reign to create games however you see fit.

The only downside would actually be you don't have a built-in 3D engine to work from, but to be quite honest I think that is an advantage not a disadvantage.

If you want a good challenge to see how true this is, try converting Quake/Quake2 into PB; you'll find it alot easier than making it in DarkBASIC/Blitz3D/PlayBasic
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post by Kale »

PB does infact have a built-in 3D engine supplied by the OGRE engine. Admitedly this engine has not got a very mature command set yet but Fred has said more is coming. :twisted: Can't wait!
--Kale

Image
Raven
User
User
Posts: 45
Joined: Tue Jul 15, 2003 4:03 pm
Location: England

Post by Raven »

Yeah I know, but OGRE is very very limited.
It might be a better idea Fred to get in help so he can focus more on PB as a language; he could get an OpenGL and a DirectX guy/gal to work on an engine together.
Try to make it so that the engine commands are identical, allowing the developers to simply put down compiler ifs allowing the APi to be OpenGL if Linux and DirectX if Windows.

but allowing it so that the actual game code doesn't change one iota.
a nice cross-platforming. Just a suggestion though. 8)
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post by Kale »

he could get an OpenGL and a DirectX guy/gal to work on an engine together.
Why re-invent the wheel? OGRE is a great 3D engine, just at the minute not all commands are available in PB.
Try to make it so that the engine commands are identical, allowing the developers to simply put down compiler ifs allowing the APi to be OpenGL if Linux and DirectX if Windows.
The commands will be identical for the windows and linux version. The windows version will use directx and the linux one will use opengl.

Fred has also said in an earlier post that the ODE physics library will make its way into PB at some point too. :)
--Kale

Image
Post Reply