Page 3 of 3

Re: Learning 'Programming'

Posted: Tue Nov 25, 2008 8:15 pm
by Troodon
RexHunter99 wrote:From what I've gathered and heard, Delphi is a slower form of C++ (Not too slow, just slower)
Below are the combined benchmark results from http://www.osnews.com/story/5602 and http://www.dellapasqua.com/delphibench.txt:

Visual C++ = 48.8
Delphi = 51.9
Visual C# = 65.3
gcc C = 73.0
Visual Basic = 85.9
Visual J# = 90.4
Java 1.3.1 = 97.6
Java 1.4.2 = 103.1
Python = 1679.0

Re: Learning 'Programming'

Posted: Tue Nov 25, 2008 8:33 pm
by Dragonlord
These values have to be taken with a HUGE grain of salt. The test is done on Math and IO operation. These depend a lot on two factors:
1) Is the language compiled or interprated ( aka VM )?
2) How is the functionality for IO/Math coded in the native libraries?

Hence these results are very useless since VM languages are NOT made for number crunching as compiled languages are. Tell me please what the hell you want to proof with this out-of-thin air results?

Re: Learning 'Programming'

Posted: Tue Nov 25, 2008 8:40 pm
by Troodon
Dragonlord wrote:Tell me please what the hell you want to proof with this out-of-thin air results?
"please" and "what the hell" go well together ;)

What I "want to prove" is, if your project is CPU-intensive (including math and graphics) then you'll probably want to go with C++ or Delphi rather than with Java or Python.

Re: Learning 'Programming'

Posted: Tue Nov 25, 2008 9:03 pm
by Dragonlord
Look at your post above and tell me what you just said has anything to do with what you posted. You didn't post this for comparing compiled vs interprated... you tried to counter the argument above with a flawed argument so don't try to vanish into a dark alley hoping nobody notices this.

Re: Learning 'Programming'

Posted: Tue Nov 25, 2008 9:40 pm
by Troodon
I'm confused, mate... from where I'm sitting, it looks like this:

- RexHunter said that Delphi is slower than C++;
- I posted benchmarks from another site that showed Delphi to be just slightly slower than C++ (total score);
- you argued that the results should be looked at with caution as different languages have different internal designs for different purposes and wanted to know why the hell I posted those benchmarks anyway;
- I replied that, the bottom line is, Delphi is as good as C++ for developing CPU-intensive applications;
- you replied that I didn't post this for comparing compiled vs interpreted and warned me not to "try to vanish into a dark alley hoping nobody notices this".

What gives?

Re: Learning 'Programming'

Posted: Tue Nov 25, 2008 9:53 pm
by Shadow Wolf
Troodon wrote:I'm confused, mate... from where I'm sitting, it looks like this:

- RexHunter said that Delphi is slower than C++;
- I posted benchmarks from another site that showed Delphi to be just slightly slower than C++ (total score);
- you argued that the results should be looked at with caution as different languages have different internal designs for different purposes and wanted to know why the hell I posted those benchmarks anyway;
- I replied that, the bottom line is, Delphi is as good as C++ for developing CPU-intensive applications;
- you replied that I didn't post this for comparing compiled vs interpreted and warned me not to "try to vanish into a dark alley hoping nobody notices this".

What gives?
must admit I'm a little lost too, DL you're an ok guy and sure as hell not a n00b but sometimes you can come across as a little confrontational

Re: Learning 'Programming'

Posted: Wed Nov 26, 2008 1:13 am
by hppav
Calm down there Dragonlord. There's no reason to get crazy over a post on the internet.

Re: Learning 'Programming'

Posted: Wed Nov 26, 2008 1:37 am
by Dragonlord
Troodon wrote:What I "want to prove" is, if your project is CPU-intensive (including math and graphics) then you'll probably want to go with C++ or Delphi rather than with Java or Python.
This one I mean. If you want to show that C++ and Delphi are not too much off each other in terms of speed concerning math and IO then yes but you started to compare here with Java and python as being slow using this benchmark to base that opinion on. This is plain wrong since it's comparing apples with pears there. Hence you switched argument mid-air there which has to be interpreted as trying to back out even if this is not the case.

Re: Learning 'Programming'

Posted: Wed Nov 26, 2008 2:25 am
by RexHunter99
DL has a point.

Anyways, I know from personal experience that with most of my projects that Delphi is slower than C++... it performs crappily with loops.

Re: Learning 'Programming'

Posted: Wed Nov 26, 2008 3:06 am
by Troodon
Okay DL, now I understand what got you upset. Perhaps including Python was farfetched but there are Perl modules for creating sophisticated graphics. And would you believe that some do CPU-intensive 3D graphics in Java? See this: http://jsomap.sourceforge.net/ee547/FinalReport.htm

Re: Learning 'Programming'

Posted: Wed Nov 26, 2008 2:51 pm
by Dragonlord
Yes that's true, such people do exist. Granted it is possible if for example you use a library ( written in a compiled language ) for doing the number crunching stuff and using Java as the director ( like using a compiled game engine with LUA for example to drive the logic where managed memory and OO is in advantage ). This hybrid approach is the best way to handle it. Granted some try to do all in java and that's a bit... meh... ( although one has to remember that JIT can do some amazing things... but this is then again "compiled" and no more interprated ).

Re: Learning 'Programming'

Posted: Wed Dec 03, 2008 1:39 am
by Troodon
Found something nice... http://www.saschawillems.de/?page_id=99

While browsing that guy's site check out his "Newton Playground": http://www.saschawillems.de/?page_id=80

Re: Learning 'Programming'

Posted: Wed Dec 03, 2008 3:03 am
by Dragonlord
Newton Engine... wait a minute... that's this guy with an ego bigger than anything else on this earth. He once wrecked havoc on Coumans Bullet Physics forum ( before getting banned ). He's damn full of himself. Looks like he has some skills to back up his project but as a person he sucks. Nice page... kinda like NeHe what he does then?