PDA

View Full Version : So... what's the fastest lang?



Lster
July 3rd, 2006, 11:23 AM
Speed is a real issue in my next project so I was wondering "What is the fastest language?". Probably G++ or GCC isn't it?

bieber
July 3rd, 2006, 12:15 PM
Assembly language.

dabear
July 3rd, 2006, 12:23 PM
Assembly language.
If you know how to code in ASM that may be true, but C is so close and has a good standard library.

LordHunter317
July 3rd, 2006, 02:50 PM
GCC and G++ aren't languages, they're compilers. Incidentally, they're some of the slowest out there for their respective languages.

Horsman
July 3rd, 2006, 04:10 PM
If you are a great Assembly Coder, you'll find it the fastest but its absolutely unuseable in terms of GUI and project development.

C is easily the fastest near-full feature language, best as compiled with gcc.

Daverz
July 3rd, 2006, 04:27 PM
The ocaml people claim near C++ performance. You might also check out sbcl.

LordHunter317
July 3rd, 2006, 04:43 PM
C is easily the fastest near-full feature language, best as compiled with gcc.I'm not sure how one really define fully-featured, but I'm certain no matter how you define it, C isn't it.

IYY
July 3rd, 2006, 04:51 PM
C.

Horsman
July 3rd, 2006, 05:07 PM
I meant that its not a language that only applies to one thing, like say data conversion or database management.

I too agree that C lacks in many things, but it's still a standard among many programmers.

Max Luebbe
July 3rd, 2006, 08:40 PM
Depends on how you're defining fastest!
If you're talking execution speed:
ASM followed by C

If you're talking about fastest time to deployment/finished product:
Probably either Python, Java or another language with managed memory, that may not execute as fast, but will save you lots of time hunting and fixing memory bugs.

jtull89
July 3rd, 2006, 09:30 PM
As I understand it, you can make usable programs in Perl with just a few lines. However, C and C++ run fast, if compiled and programmed well.

hod139
July 4th, 2006, 04:19 PM
I do believe fortran is faster than C, and the numerical libraries available for it are unbeatable.

LordHunter317
July 4th, 2006, 04:47 PM
Yes, for numerical stuff, FORTRAN is generally very hard to beat.

Max Luebbe
July 5th, 2006, 12:45 AM
Fortran cannot be beat for floating point work.

All the hardcore numerical simulations are done in it, and all the faculty at my former school's engineering dept swear by it anytime theyre doing intensive stuff like Fluid Dynamics.

Can't say I like to write Fortran though.

pharcyde
July 5th, 2006, 08:47 AM
What kind of work will this application be doing? I think it really depends on what target system you are looking to write it for and readability of code v speed v size. There are so many techniques when it comes to code performance it really depends on what you are tryign to do. More efficient algorithms and programmign techniques usually speed up a program more than using a particular language. Granted there are always exceptions to the rule.