1. Re: Muhahahaha

On Thu, 10 Aug 2000 22:52:47 -0700 Michael Nelson <MichaelANelson at
WORLDNET.ATT.NET> wrote:
>To Drake Ice:
>
>You are entitled to your opinions about Euphoria--though if you are
>convinced of their correctness, why are you on this board?  However, I must
>say that I find your behaviour in criticizing the intelligence and integrity
>of everyone on this board to be grossly inappropriate and rude in the
>extreme.  If you have no desire to engage in civilized discourse, please
>cease and desist from posting to this board.
>
>I would sincerely request that others who are offended by Drake Ice DO NOT
>respond to him in kind.  This board cannot afford to have insults hurled
>back and forth.  Flame wars almost destoryed this community once and we must
>not let it happen again.
>
>-- Mike Nelson

Do not worry, I have no intention to cause flame wars. I am as good as gone. I
just had this "Euphoria language" in the back of my mind for a long time now, and
couldn't resist to ask you newcomers to Euphoria to please consider it's reality.
A Euphoria application is simply way slower than a visual C++ application, not
"almost as fast as..." but waaaaay slower. There is no escaping it. If you do not
believe me, compile the following in Euphoria and C
respectively;

/* C program */
#include <stdio.h>

void doit(int val)
{
 int i;
 int v;
 for(i = 0; i < 50000000; i++)
     v = val;
}

main()
{
 puts("starting...");
 doit(50);
 doit(10);
 puts("done...");
}

/* Above code can *not* be stripped out by a C compiler because it features
random calls to a routine wich can not be pre-calculated because it can be called
at any given time with any given set of parameters, thus requiring
re-calculation. Meaning, there is no excuse for above code, it is executed, and
it is executed fast. */

-- euphoria version

procedure doit(integer val)
integer v
for ix = 1 to 50000000 do
    v = val
end for
end procedure

puts(1,"starting...")
doit(50)
doit(10)
puts(1,"done...")


Now run both, and maybe even add a timer, this is brute force and shear
performance, if the following is slow, then all those "Euphoria 3D Engines" will
be slow because above is what a 3D Engine depends on.
Now don't be shocked by the results, I warned you beforehand.

*********************************************
Want free email? Sign up at http://www.freeze.com !

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu