Pages: 1
Yeah. I made a program that can open a counter project (it counts from 1 to 100000) in a second.
Random screenshot of input.
What do you think?
Offline
MathWizz wrote:
Yeah. I made a program that can open a counter project (it counts from 1 to 100000) in a second.
Random screenshot of input.
What do you think?
Maybe post some code or the Scratch script?
Offline
MathWizz wrote:
Yeah. I made a program that can open a counter project (it counts from 1 to 100000) in a second.
Random screenshot of input.
What do you think?
I made some time ago a thing called "Fast Java player" it countes in 1 second to 1 000 000
Offline
ZeroLuck wrote:
MathWizz wrote:
Yeah. I made a program that can open a counter project (it counts from 1 to 100000) in a second.
Random screenshot of input.
What do you think?I made some time ago a thing called "Fast Java player" it countes in 1 second to 1 000 000
![]()
And that was in Java... 0.o I thought C# was faster. I will have to look at your execution code and see if mine is poorly optimized.
Offline
MathWizz wrote:
And that was in Java... 0.o I thought C# was faster. I will have to look at your execution code and see if mine is poorly optimized.
![]()
Java isn't really slower than C or C#!
Why should it?
Offline
In terms of high level languages, C is probably the fastest (if properly done) although if you wanted to be ultra fast, you could code it in assembly
Offline
rookwood101 wrote:
In terms of high level languages, C is probably the fastest (if properly done) although if you wanted to be ultra fast, you could code it in assembly
![]()
No.
You can't say "everything which is programmed in high level languages or assembly is fast" !
If you don't know much assembly your program would be probably slower than C.
If you write something bad (like a primfactor programm) your programm will be much slower than a optimized JavaScript script!
Last edited by ZeroLuck (2012-01-13 10:58:43)
Offline
ZeroLuck wrote:
MathWizz wrote:
And that was in Java... 0.o I thought C# was faster. I will have to look at your execution code and see if mine is poorly optimized.
![]()
Java isn't really slower than C or C#!
Why should it?
C is compiled into machine code. C# is compiled into byte code (am I right?) then compiled again at runtime. Java is just compiled into byte code. I haven't read much about this, but I think I am right...
TRocket wrote:
you didn't blur your name, just in case you didn't want people to know you real name
![]()
Oh mai... Forgot about that.
Last edited by MathWizz (2012-01-13 11:36:05)
Offline
MathWizz wrote:
C is compiled into machine code. C# is compiled into byte code (am I right?) then compiled again at runtime. Java is just compiled into byte code. I haven't read much about this, but I think I am right...
I know.
Did you already compare the speed of a C program and the speed of a Java program?
I did...
Offline
ZeroLuck wrote:
MathWizz wrote:
C is compiled into machine code. C# is compiled into byte code (am I right?) then compiled again at runtime. Java is just compiled into byte code. I haven't read much about this, but I think I am right...
I know.
Did you already compare the speed of a C program and the speed of a Java program?
I did...
therefore what I said was at least somewhat true, C is faster than java, as java has to be 'run twice'. Assembly code if well written should be the fastest, as it enables you to be essentially coding in machine code (although more readable), making it more efficient.
In order of fastest to slowest I would say it was:
Assembly, C, Java
Offline
ZeroLuck wrote:
MathWizz wrote:
And that was in Java... 0.o I thought C# was faster. I will have to look at your execution code and see if mine is poorly optimized.
![]()
Java isn't really slower than C or C#!
Why should it?
C is usually faster than both Java and C#. C# can be faster than Java, but not necessarily.
Offline
Pages: 1