truth and lie about purebasic

Everything else that doesn't fall into one of the other PB categories.
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Post 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
User avatar
yoxola
Enthusiast
Enthusiast
Posts: 386
Joined: Sat Feb 25, 2006 4:23 pm

Post by yoxola »

I'm really curious about that "10x slower" code,
how about posting it for test?
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

visual fred... :shock: :? :lol: :lol: :lol: :lol:
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
Amiga5k
Enthusiast
Enthusiast
Posts: 329
Joined: Fri Apr 25, 2003 8:57 pm

Post by Amiga5k »

I see this is your first post, yoxola!

Welcome to the PureBasic community!

Russell
*** Diapers and politicians need to be changed...for the same reason! ***
*** Make every vote equal: Abolish the Electoral College ***
*** www.au.org ***
User avatar
yoxola
Enthusiast
Enthusiast
Posts: 386
Joined: Sat Feb 25, 2006 4:23 pm

Post 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.
Amiga5k
Enthusiast
Enthusiast
Posts: 329
Joined: Fri Apr 25, 2003 8:57 pm

Post 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
*** Diapers and politicians need to be changed...for the same reason! ***
*** Make every vote equal: Abolish the Electoral College ***
*** www.au.org ***
astonfr
New User
New User
Posts: 5
Joined: Sun Aug 03, 2008 8:04 am

Post by astonfr »

you really thought pi() is a keyword?

die noob
User avatar
Fluid Byte
Addict
Addict
Posts: 2336
Joined: Fri Jul 21, 2006 4:41 am
Location: Berlin, Germany

Post by Fluid Byte »

Wow! Epic bump with no substance!

Die rapist of dead bodies!
Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Post by Kaeru Gaman »

epic fail \ö_ö/

Image
oh... and have a nice day.
SFSxOI
Addict
Addict
Posts: 2970
Joined: Sat Dec 31, 2005 5:24 pm
Location: Where ya would never look.....

Post 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
Last edited by SFSxOI on Wed Feb 04, 2009 8:34 pm, edited 1 time in total.
LCD
Enthusiast
Enthusiast
Posts: 206
Joined: Sun Jun 01, 2003 10:55 pm
Location: Austria, Vienna
Contact:

Re: truth and lie about purebasic

Post 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
My PC
Ryzen 9 5950, 64 GB RAM, nVidia RTX A4000, Win 10
Ryzen 7 1700, 32 GB RAM, nVidia RTX A2000, Win 10
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post 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:
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
User avatar
pdwyer
Addict
Addict
Posts: 2813
Joined: Tue May 08, 2007 1:27 pm
Location: Chiba, Japan

Post by pdwyer »

Fluid Byte wrote:Wow! Epic bump with no substance!

Die rapist of dead bodies!
:lol: ROFL
Paul Dwyer

“In nature, it’s not the strongest nor the most intelligent who survives. It’s the most adaptable to change” - Charles Darwin
“If you can't explain it to a six-year old you really don't understand it yourself.” - Albert Einstein
User avatar
the.weavster
Addict
Addict
Posts: 1576
Joined: Thu Jul 03, 2003 6:53 pm
Location: England

Post 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?
eesau
Enthusiast
Enthusiast
Posts: 589
Joined: Fri Apr 27, 2007 12:38 pm
Location: Finland

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