Page 7 of 8

Posted: Fri Feb 24, 2006 1:48 am
by rsts
Fred wrote:On a side note, you would probably have never found this langage if it was just called 'Pure' as most of you are migrating from another 'basic' ;). This point should be not negleted, being (small) part of a bigger community is always good to be able to let the product be found by more people.
100% correct. As my tagline indicates, I'm a basic programmer from the 70's and was looking for something I could relate to. Thank goodness for PureBASIC, and it's absolutely wonderful forum.

cheers

Posted: Sat Feb 25, 2006 4:44 pm
by yoxola
I'm really curious about that "10x slower" code,
how about posting it for test?

Posted: Sat Feb 25, 2006 8:42 pm
by blueznl
visual fred... :shock: :? :lol: :lol: :lol: :lol:

Posted: Sun Feb 26, 2006 4:55 am
by Amiga5k
I see this is your first post, yoxola!

Welcome to the PureBasic community!

Russell

Posted: Sun Feb 26, 2006 11:28 am
by yoxola
Greets Amiga5K!

Coming from Blitz Commnuity
(Both products are great!)

Aww.. it's painful to rewrite code to make it v4 compatible ;)
however PB4 is sooo noce.

Posted: Tue Feb 28, 2006 5:53 am
by Amiga5k
Howdy!

I'm also coming from the Blitz community, and I agree that they are both good. In some ways I prefer PB and in other ways I prefer BlitzMax or Blitz3D. They both are, as you say, excellent products.

For quick and easy coding (RAD prototyping) that doesn't require a OS-friendly GUI, I prefer Blitz3D (or BlitzPlus if 3D is not important to you). But for 'do-it-yourself' low-level power, with the GUI stuff thrown in to boot, I prefer PB. BlitzMax is another beast altogether, and suffers from extreme lack of documentation.

If I had to nit pick them, I'd say that:
- Blitz3D creates rather large exe's, even if the source code is small, and doesn't offer the kind of low-level access available with PB (BlitzMax does, but is not easy without docs...). On the plus side, it has a consistant and very well-thought out command set with good documentation, built-in Fmod (with zero license issues) and a very decent amount of support available (tools, IDE's, User Libs, etc).
- BlitzMax could be a huge knockout, but, as mentioned above, it has surprisingly terse documentation. It has no built-in FMod support, but several modules (libs) have been written that add some support. I find it really frustrating to have to go to forums to find out things that should have been in the included docs... On the plus side, it is almost totally cross platform, officially: The same code can compile on Linux, MacOSX and Windows with little or no changes. You can write really low level stuff if you want, but inline asm is not supported directly.
- PureBasic is great at many things, but I find that I am somewhat spoiled with the ease of B3D's command set, as PB requires many more additional steps sometimes to accomplish the same things. Example:

Open a screen and move some graphics around. Blitz, Blitz3D, BlitzPlus, BlitzMax:

Code: Select all

Graphics 800,600,16
img = LoadImage("image.png")
SetBuffer BackBuffer()
For a = 0 To 599
  DrawImage img, 0, a
  Flip
Next
The PB version is a bit more involved as you know. One feature that the Blitz Graphics command has that is REALLY handy, is that if you add a ",0" after the depth parameter, you get an "auto" mode that creates your program in a window when in debug mode, and full screen when not. This is very handy, let me tell you!

Anyways, don't get me wrong, I L O V E the fact that PB has very good docs, high speed, creates small exe's (and Dll's - Something that the Blitzez don't do easily) and has one of the best IDEs I've ever seen.

I also really like the new data types added with 4.0, and the "With/EndWith" feature. IncludeBinary, another favorite is also not directly supported with B3D (although it is possible to do with extra tools).

Well, the point is that none of these tools are perfect, but together they make an excellent arsenal of weapons for the would-be game programmer!

Russell

Posted: Wed Feb 04, 2009 5:04 pm
by astonfr
you really thought pi() is a keyword?

die noob

Posted: Wed Feb 04, 2009 5:24 pm
by Fluid Byte
Wow! Epic bump with no substance!

Die rapist of dead bodies!

Posted: Wed Feb 04, 2009 5:32 pm
by Kaeru Gaman
epic fail \ö_ö/

Image

Posted: Wed Feb 04, 2009 5:58 pm
by SFSxOI
I guess its important to remember that pi() might not be a keyword for some reason or other. I mean after all, if I were to not know that pi() might not have been a keyword, then I might miss out or misunderstand when someone says to me "would you like a piece of cherry pi()?" or I might not be able to distinguish between someone saying "Hi" and "pi()" which might lead me to say "What kind of pi() is it?" and that would be embarrasing. So since the only reason I can see that someone would dig all the way back to 2006 to say something like that about pi() is that they wanted to make us all aware or how important it is to remember that pi() might not be a keyword, I guess I would have to say thank you for reminding us. Oh yeah, and remember - noob is boon spelled backwards. :)


j/k

Re: truth and lie about purebasic

Posted: Wed Feb 04, 2009 8:33 pm
by LCD
Ralf wrote: Pi()
returns the value of Pi

Mod
returns the amount by which a number exceeds the largest integer multiple of the divisor that is not greater than that number.

ASin (number)
returns the smallest angle (in degrees) satisfying the arc sine (inverse sine) of the supplied argument.

ACos (number)
returns the smallest angle (in degrees) satisfying the arc cosine (inverse cosine) of the supplied argument.

ATan (float)
returns the angle from the X axis to a point (y,x).

Exp (number)
Returns the base of the natural system of logarithms e, raised to the power of the supplied argument.

Shl repetitions
performs binary shift left.

Shr repetitions
performs binary shift right.
PI()? WTF? Its #PI because PI is a constant!!! No need to calculate it with a function.
MOD: No problem, Use "%"
ASIN: In some BASIC dialects it is called ASN
ACOS: In some BASIC dialects it is called ACS
ATAN: In some BASIC dialects it is called ATN
SHL: <<
SHR: >>
So it is a bit like C, and better than other basic dialects
Whats missing:
Something like this: a+(test=0 OR variable)
In other dialects it will do the same as:
IF test=0 OR variable: a+1:ENDIF

Posted: Wed Feb 04, 2009 10:11 pm
by Psychophanta
:P
I don't remember almost a word from this thread, but
there would be interesting to create another titled:
"Truth and lie about uncle Ralf", who say less than 25% of true per each written word. :lol:

Posted: Thu Feb 05, 2009 1:36 am
by pdwyer
Fluid Byte wrote:Wow! Epic bump with no substance!

Die rapist of dead bodies!
:lol: ROFL

Posted: Thu Feb 05, 2009 11:59 am
by the.weavster
I just sat and read this thread not realising it had been bumped from a previous lifetime until I reached the end.

thefool wrote:Oh yeah! Sell purebasic interpretter
I'd really like the option of using a PureBasic interpreter. Fred?

Posted: Thu Feb 05, 2009 12:44 pm
by eesau
the.weavster wrote:I'd really like the option of using a PureBasic interpreter. Fred?
A small, fast, easy to use and to implement scripting engine using the PB syntax would be an awesome addition to the language, especially for game development. Maybe some day...