Re: C++ vs. C# vs. Assembly Language
"Jon Skeet [C# MVP]" <skeet@pobox.co m> wrote in message
news:MPG.19f6d1 d6370e16a598988 8@msnews.micros oft.com...[color=blue]
> Jason Smith <jason@nospam.c om> wrote:[color=green]
> > Some numbers:
> >
> > I've been playing around with a program for solving the Rubik's Cube[/color][/color]
using[color=blue][color=green]
> > brute force. I wrote it in Java, C# using safe code, and C# using[/color][/color]
pointers,[color=blue][color=green]
> > each one faster than the last.
> >
> > C# using pointers: 6x
> > C# using safe code: 3x
> > Java (Sun 1.4) using code optimized for speed: 1x
> >
> > I haven't written it in C/C++, but seeing how much faster it is than Sun
> > Java for this particular task, I have to think it is getting in the same
> > ballpark.[/color]
>
> I'd be interested to see the code you're using there - C# and Java are
> roughly the same speed in tests I've done. C# certainly isn't 3 times
> as fast "in general".[/color]
How about Prolog? If you want fast brute-force searches...
"Jon Skeet [C# MVP]" <skeet@pobox.co m> wrote in message
news:MPG.19f6d1 d6370e16a598988 8@msnews.micros oft.com...[color=blue]
> Jason Smith <jason@nospam.c om> wrote:[color=green]
> > Some numbers:
> >
> > I've been playing around with a program for solving the Rubik's Cube[/color][/color]
using[color=blue][color=green]
> > brute force. I wrote it in Java, C# using safe code, and C# using[/color][/color]
pointers,[color=blue][color=green]
> > each one faster than the last.
> >
> > C# using pointers: 6x
> > C# using safe code: 3x
> > Java (Sun 1.4) using code optimized for speed: 1x
> >
> > I haven't written it in C/C++, but seeing how much faster it is than Sun
> > Java for this particular task, I have to think it is getting in the same
> > ballpark.[/color]
>
> I'd be interested to see the code you're using there - C# and Java are
> roughly the same speed in tests I've done. C# certainly isn't 3 times
> as fast "in general".[/color]
How about Prolog? If you want fast brute-force searches...
Comment