LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-20-2004, 10:55 PM   #106
blackzone
Member
 
Registered: Jun 2004
Posts: 256

Rep: Reputation: 30

Quote:
Originally posted by Xagafinelle
I've seen programs written in java beat the living snot out of programs written in C as far as speed goes. I've seen programs written in C beat the living snot out of programs written in java in many other respects as well, and I've seen loads of other langueges win out in a variety of ways.
Java programs need to run on top of JVM no? So if it uses the same algorithm. It should run slower on a machine?

Program langauge is just syntax. But different compiler interept code differently and create somewhat different machine code. So it does affect the speed somewhat?? But it might have to do more with compiler and not the program language.

I understand what you are trying to say. Using which ever program laugauge probably won't matter much. Program language is just a tool.

I think it have to do more with standard. It makes people's life easier. Code reuse, library, learning curve, and habit is what stick people to use whatever language they use.

Unless people can find drastic improvment on using one language instead of the other. People won't find the need to change.
 
Old 08-21-2004, 02:09 AM   #107
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Java programs need to run on top of JVM no? So if it uses the same algorithm. It should run slower on a machine?
While it's true the interpreting byte code process done by the JVM is unlikely to beat natively compiled C or C++ code, the speed gap is getting smaller now that the inner JIT compilers are getting more and more efficient.
Quote:
Program langauge is just syntax. But different compiler interept code differently and create somewhat different machine code. So it does affect the speed somewhat?? But it might have to do more with compiler and not the program language.
Right, different compilers interpret the source differently and produce various quality of code. The gnu compilers, the most widely used, can be beaten by other compilers targeted to a narrower architecture and O/S
Speed also has to do with the programming language, some mathematical algorithms are still processed faster in fortran that in C. Anyway, if you really want the highest possible speed, nothing can beat assembler, but you loose portability.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DISCUSSION: How To Do Eveything With DD AwesomeMachine LinuxAnswers Discussion 23 03-09-2017 06:50 AM
Discussion LinuxRam General 5 08-24-2004 06:58 AM
A Discussion On Certification LinuxRam Linux - Certification 2 07-31-2004 11:49 PM
webmail discussion illtbagu Linux - Software 2 11-11-2003 11:03 PM
Serious Discussion nbjayme Linux - Newbie 2 09-24-2003 10:49 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration