Click here to Skip to main content
16,020,315 members
Home / Discussions / Java
   

Java

 
GeneralRe: .properties file added to database Pin
David Skelly26-Jan-11 22:23
David Skelly26-Jan-11 22:23 
GeneralRe: .properties file added to database Pin
Richard MacCutchan26-Jan-11 22:54
mveRichard MacCutchan26-Jan-11 22:54 
AnswerRe: .properties file added to database Pin
TorstenH.23-Jan-11 22:47
TorstenH.23-Jan-11 22:47 
Questionbytecode_programming Pin
geniuspc19-Jan-11 9:45
geniuspc19-Jan-11 9:45 
AnswerRe: bytecode_programming Pin
Richard MacCutchan19-Jan-11 21:52
mveRichard MacCutchan19-Jan-11 21:52 
GeneralRe: bytecode_programming Pin
David Skelly19-Jan-11 22:36
David Skelly19-Jan-11 22:36 
GeneralRe: bytecode_programming Pin
Richard MacCutchan20-Jan-11 1:34
mveRichard MacCutchan20-Jan-11 1:34 
AnswerRe: bytecode_programming Pin
Cedric Moonen19-Jan-11 22:19
Cedric Moonen19-Jan-11 22:19 
geniuspc wrote:
i think if it is possible to program using bytecode the program itself would be more neat and faster as well as it is when u program in assembly.


That's certainly far from being true, otherwise why would there be any high-level languages like Java ? You tend to forget that designing a very big program in assembler becomes very quickly something totally unmaintainable and with probably a lot more bugs than if you would write in in C++ (for instance). Most of the time, the compiler is smart enough to generate efficient assembly code from your C++ code and the higher-level abstraction forces you to avoid certain "errors".
What you seem to forget is that a well-written C++ code will probably run faster and with less errors than a badly written assembler code. And the assembler language is not really well suited for writing large applications which might need to be refactored or adapted in the future.

To finish, I will simply refer to a quote from Donald Knuth: "Premature optimization is the root of all evil". Which is what you are trying to do in your case: assembler is faster than C++, so I will write my code in assembler (and you forget about the humain in the chain that would write more efficient code in C++ than in assembler).
Cédric Moonen
Software developer

Charting control [v3.0]
OpenGL game tutorial in C++

AnswerRe: bytecode_programming Pin
David Skelly19-Jan-11 22:29
David Skelly19-Jan-11 22:29 
AnswerRe: bytecode_programming Pin
_Erik_20-Jan-11 3:48
_Erik_20-Jan-11 3:48 
AnswerRe: bytecode_programming Pin
Nagy Vilmos20-Jan-11 4:56
professionalNagy Vilmos20-Jan-11 4:56 
Questionthread does not return from Runtime.exec Pin
WernerP19-Jan-11 1:55
WernerP19-Jan-11 1:55 
AnswerRe: thread does not return from Runtime.exec Pin
Peter_in_278019-Jan-11 12:31
professionalPeter_in_278019-Jan-11 12:31 
GeneralRe: thread does not return from Runtime.exec Pin
WernerP19-Jan-11 12:52
WernerP19-Jan-11 12:52 
GeneralRe: thread does not return from Runtime.exec Pin
Peter_in_278019-Jan-11 13:07
professionalPeter_in_278019-Jan-11 13:07 
GeneralRe: thread does not return from Runtime.exec Pin
WernerP19-Jan-11 23:27
WernerP19-Jan-11 23:27 
GeneralRe: thread does not return from Runtime.exec Pin
WernerP20-Jan-11 6:32
WernerP20-Jan-11 6:32 
QuestionAbout Calculate.... Pin
Khalil Adam19-Jan-11 0:45
Khalil Adam19-Jan-11 0:45 
AnswerRe: About Calculate.... lt compiles but the calculating is always false......could someone help me to correct this code..... Pin
Cedric Moonen19-Jan-11 1:35
Cedric Moonen19-Jan-11 1:35 
GeneralRe: About Calculate.... Pin
Khalil Adam19-Jan-11 2:31
Khalil Adam19-Jan-11 2:31 
GeneralRe: About Calculate.... lt compiles but the calculating is always false......could someone help me to correct this code..... Pin
Cedric Moonen19-Jan-11 2:59
Cedric Moonen19-Jan-11 2:59 
GeneralRe: About Calculate.... Pin
Khalil Adam19-Jan-11 3:10
Khalil Adam19-Jan-11 3:10 
GeneralRe: About Calculate.... lt compiles but the calculating is always false......could someone help me to correct this code..... Pin
Richard MacCutchan19-Jan-11 3:14
mveRichard MacCutchan19-Jan-11 3:14 
GeneralRe: About Calculate.... Pin
Khalil Adam19-Jan-11 3:26
Khalil Adam19-Jan-11 3:26 
GeneralRe: About Calculate.... Pin
Cedric Moonen19-Jan-11 3:29
Cedric Moonen19-Jan-11 3:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.