Results 1 to 5 of 5

Thread: Why are some languages faster than other?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Mar 2006
    Location
    Pennsylvania
    Posts
    1,069

    Why are some languages faster than other?

    Aren't they all compiled into assembly/machine code? Wouldn't that make them all the same speed?

  2. #2
    Fanatic Member CodedFire's Avatar
    Join Date
    Aug 2007
    Location
    In Cog Neato
    Posts
    568

    Re: [serious] Why are some languages faster than other?

    Is it not the case that language a has ten megs of assembly/machine code, where as language b has 15. Therefore the memory footprint is bigger. At least thats how i would logicly view it!
    Languages: Visual Basic 05/08, C# 08
    IDE: Express Editions
    Framework: 2.0, 3.0, 3.5


    Lesson 5: Don't take domestic advice from perpetual singles. - Mendhak

  3. #3
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Why are some languages faster than other?

    Quote Originally Posted by Fromethius
    Aren't they all compiled into assembly/machine code?
    No. See compiled vs. interpreted vs. JIT-compiled.
    All models are trade-offs of varying degrees.


    Quote Originally Posted by CodedFire
    Is it not the case that language a has ten megs of assembly/machine code, where as language b has 15. Therefore the memory footprint is bigger.
    Memory footprint has nothing to do with speed. In fact optimisation often increases memory usage.



    Moved from Chit Chat

  4. #4
    Fanatic Member CodedFire's Avatar
    Join Date
    Aug 2007
    Location
    In Cog Neato
    Posts
    568

    Re: Why are some languages faster than other?

    Ive spent the whole day reading up on cil (formerly msil?) and just in time compilation. Its a pretty good system. Although from what ive read it can be at times faster than native code due to the fact that it optimises the code it compiles to suit the chipset family, Surely this cant be right? after all it is still an extra compilation step vs straight native code?
    Languages: Visual Basic 05/08, C# 08
    IDE: Express Editions
    Framework: 2.0, 3.0, 3.5


    Lesson 5: Don't take domestic advice from perpetual singles. - Mendhak

  5. #5
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Why are some languages faster than other?

    It depends on what your code does, and the features that are provided in the compiler. Presumably it can make use of things like MMX, SSE, and threading on multiple processor cores - all of which can dramatically improve speed.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width