Author Topic: C++ Vs. Freebasic ?  (Read 5394 times)

0 Members and 1 Guest are viewing this topic.

Offline ScottyBrosious

  • C= 64
  • **
  • Posts: 25
  • Karma: 3
    • View Profile
C++ Vs. Freebasic ?
« on: July 03, 2007 »
Is there any  speed difference between
the two like when it comes to simple loops?

Can one's runtime speed beat the other
during program exectution?

How about memory limits?
Can one surpass the other?

Is there proof?

What other differences are there between the two?

If so can someone explain why the jump would be worth it?

Thanks
Scotty B.





Offline benny!

  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4384
  • Karma: 228
  • in this place forever!
    • View Profile
    • bennyschuetz.com - mycroBlog
Re: C++ Vs. Freebasic ?
« Reply #1 on: July 03, 2007 »
@ScottyBrosious:

I don't know FreeBasic - so this is a general answer.

Comparing speed between two languages is IMHO rather hard. Both are
compiled by the compiler AFAIK - so it really depends which compiler (in
case of C++) you use.

Whats even more important is the program - the way you code. Badly
written C++ program may be much slower than a well written FB code.

What to prefer ???

Again, a simple and general answer. A basic language is supposed to give
you a more or less easy start into programming. You will achieve things
much faster in the beginning compared to C/C++.

More complex things are IMHO easier to code and to manage in C++
(C#, Java). But there are a lot of tutorials out there which helps you
with C/C++ even if you are new at programming.

So, if I were you I would give C++ a try. Maybe you like it ;-)
[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won:

Offline Stonemonkey

  • Pentium
  • *****
  • Posts: 1315
  • Karma: 96
    • View Profile
Re: C++ Vs. Freebasic ?
« Reply #2 on: July 03, 2007 »
Hi ScottyBrosious, imo fb is a very good basic language and I've found it a great for coding and now as a stepping stone to moving to c++ but I did  spend quite a while with fb to change some of my habits before I felt comfortable making that step.

Can't say I've really done any like for like comparisons between the two except for some triangle stuff where initially fb was faster due to the vc++ float-int standards but after getting round that c++ was the slightly faster of the two.

But as for achieving fast code, what benny's said about the importance of the way you code is probably more relavent, along with your algorithms.

Offline Agent Smith

  • ZX 81
  • *
  • Posts: 24
  • Karma: 3
    • View Profile
Re: C++ Vs. Freebasic ?
« Reply #3 on: July 05, 2007 »
You might also take a look at the Computer Language Shootout.