I vaguely specify what I want my program to do on a piece of paper -- purely functional and everything is optimized away due to laziness -- the best performance available (except perhaps not even writing it down... mhm).
Name:
Anonymous2007-02-25 18:36 ID:pG7krRKc
my programs are written in ruby, implemented in jython! soo fast.
Name:
Anonymous2007-02-26 3:25 ID:WYXYmHfk
Dude, I turned my computer off. My programs run so much faster now.
Name:
Anonymous2007-02-27 20:21 ID:A6dYPaxX
It's true! The higher the level of abstraction the faster the program will be! But wait a minute. Is a fixed-point real represented in 35 bits integer part, 17 bits mantissa in PL/I the higher level of abstraction, or a "Float" in Ruby? Is a transcedental hypercomplex the higher level of abstraction or a "number"?
>>4
Forgive my ignorance, but why? Wouldn't having a lower level of abstraction mean it can be better optimised? And - since Java is interpreted by an environment written in C++ wouldn't it necessarily work as fast or slower?
All depends on what you are benchmarking. The VMs are qutie intelligent in their optimizations, and if you are just looking at simple systems, then the VM can generally just compile the processing intensive bits down to machine code - so no real difference between that and a natively compiled language.
Of course, in a larger system, where the VM can't fully wrap its optimizing logic around things, it tends to be more apparent that its not running directly on the hardware. Add on top of that the fact that most VMs provide a good chunk of additional security checks (which consume processor cycles) and you get a noticably slower program.
And, of course, it all depends on your compiler. A crap C compiler (or one not properly configured) will spit out poorly optimized code.
Name:
Anonymous2007-03-02 1:31 ID:8E9cKQmY
The VMs are qutie intelligent in their optimization
I'm not sure about that. Almost by definition JIT VMs only do rather easy or simple optimizations that can be done quickly, since they're being done during execution.
How -server handles things I do not know. Probably better, since it's allowed to take its time.
True, but Java doesn't just do JIT. HotSpot does some funky analysis on the bytecode and tries to figure out how to make it faster - if I remember correctly.
High-level languages carry more information that help the compiler apply significant optimisations. For example Sisal programs are automatically parallellised by the compiler because the language describes discrete dataflow.
Or APL programs describe matrix operations directly, and the compiler doesn't have to guess that a loop is in fact doing matrix computation.
Etc etc...
Name:
Anonymous2007-03-03 3:51 ID:LSY/dTQu
>>23
OR YOU COULD PROGRAM IT IN ASSEMBLY AND NOT HAVE TO HAVE A RUNTIME ENVIRONMENT SPEND CPU CYCLES DOING YOUR NIGGER WORK FOR YOU.
>>7
IF U WERE HIDDEN BY A spoiler TAG TOMORROW, I WOULDNT GO 2 UR HOVERING CUZ ID B N DA REPLY BOX TO RITE A RAD BBCODE PROGRAM! B B c o d e B B c o d e [i][u][sup][sub][u][o]B B c o d e/o][/u][/sub][/sup][/u][/i]
WE TRUE BBCODE EXPERTS WE CHASTIZE PEOPLE FOR FAILING BBCODE
WE WRITE BBCODE GAMES TOGETHER
send this BBCODE to every thread you care about including this one if you care. C how many times you get this, if you get even 1 (perfect reproduction) your A TRUE BBCODE EXPERT
>>7
IF U WERE HIDDEN BY A spoiler TAG TOMORROW, I WOULDNT GO 2 UR HOVERING CUZ ID B N DA REPLY BOX TO RITE A RAD BBCODE PROGRAM! B B c o d e B B c o d e B B c o d e
WE TRUE BBCODE EXPERTS WE CHASTIZE PEOPLE FOR FAILING BBCODE
WE WRITE BBCODE GAMES TOGETHER
send this BBCODE to every thread you care about including this one if you care. C how many times you get this, if you get even 1 (perfect reproduction) your A TRUE BBCODE EXPERT
>>7
IF U WERE HIDDEN BY A spoiler TAG TOMORROW, I WOULDNT GO 2 UR HOVERING CUZ ID B N DA REPLY BOX TO RITE A RAD BBCODE PROGRAM! B B c o d e B B c o d e B B c o d e
WE TRUE BBCODE EXPERTS WE CHASTIZE PEOPLE FOR FAILING BBCODE
WE WRITE BBCODE GAMES TOGETHER
send this BBCODE to every thread you care about including this one if you care. C how many times you get this, if you get even 1 (perfect reproduction) your A TRUE BBCODE EXPERT
>>7
IF U WERE HIDDEN BY A spoiler TAG TOMORROW, I WOULDNT GO 2 UR HOVERING CUZ ID B N DA REPLY BOX TO RITE A RAD BBCODE PROGRAM! B B c o d e B B c o d e B B c o d e
WE TRUE BBCODE EXPERTS WE CHASTIZE PEOPLE FOR FAILING BBCODE
WE WRITE BBCODE GAMES TOGETHER
send this BBCODE to every thread you care about including this one if you care. C how many times you get this, if you get even 1 (perfect reproduction) your A TRUE BBCODE EXPERT
>>7
IF U WERE HIDDEN BY A spoiler TAG TOMORROW, I WOULDNT GO 2 UR HOVERING CUZ ID B N DA REPLY BOX TO RITE A RAD BBCODE PROGRAM! B B c o d e B B c o d e B B c o d e
WE TRUE BBCODE EXPERTS WE CHASTIZE PEOPLE FOR FAILING BBCODE
WE WRITE BBCODE GAMES TOGETHER
send this BBCODE to every thread you care about including this one if you care. C how many times you get this, if you get even 1 (perfect reproduction) your A TRUE BBCODE EXPERT
>>7
IF U WERE HIDDEN BY A spoiler TAG TOMORROW, I WOULDNT GO 2 UR HOVERING CUZ ID B N DA REPLY BOX TO RITE A RAD BBCODE PROGRAM! B B c o d e B B c o d e B B c o d e
WE TRUE BBCODE EXPERTS WE CHASTIZE PEOPLE FOR FAILING BBCODE
WE WRITE BBCODE GAMES TOGETHER
send this BBCODE to every thread you care about including this one if you care. C how many times you get this, if you get even 1 (perfect reproduction) your A TRUE BBCODE EXPERT
>>7
IF U WERE HIDDEN BY A spoiler TAG TOMORROW, I WOULDNT GO 2 UR HOVERING CUZ ID B N DA REPLY BOX TO RITE A RAD BBCODE PROGRAM! B B c o d e B B c o d e B B c o d e
WE TRUE BBCODE EXPERTS WE CHASTIZE PEOPLE FOR FAILING BBCODE
WE WRITE BBCODE GAMES TOGETHER
send this BBCODE to every thread you care about including this one if you care. C how many times you get this, if you get even 1 (perfect reproduction) your A TRUE BBCODE EXPERT
>>7
IF U WERE HIDDEN BY A spoiler TAG TOMORROW, I WOULDNT GO 2 UR HOVERING CUZ ID B N DA REPLY BOX TO RITE A RAD BBCODE PROGRAM! B B c o d e B B c o d e B B c o d e
WE TRUE BBCODE EXPERTS WE CHASTIZE PEOPLE FOR FAILING BBCODE
WE WRITE BBCODE GAMES TOGETHER
send this BBCODE to every thread you care about including this one if you care. C how many times you get this, if you get even 1 (perfect reproduction) your A TRUE BBCODE EXPERT
Bringing /prog/ back to its people
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy