Learning 'Programming'

Discuss Programming / Linux questions.

Moderators: scallenger, Sky, TresCom Support Team

Troodon

Re: Learning 'Programming'

Post 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
Dragonlord
Compsognathus
Compsognathus
Posts: 1070
Joined: Fri Jan 04, 2008 12:14 am
Location: Switzerland
Contact:

Re: Learning 'Programming'

Post 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?
Image
Leader, Head Programmer: Epsylon | Drag[en]gine ( Wiki )
Troodon

Re: Learning 'Programming'

Post 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.
Dragonlord
Compsognathus
Compsognathus
Posts: 1070
Joined: Fri Jan 04, 2008 12:14 am
Location: Switzerland
Contact:

Re: Learning 'Programming'

Post 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.
Image
Leader, Head Programmer: Epsylon | Drag[en]gine ( Wiki )
Troodon

Re: Learning 'Programming'

Post 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?
Last edited by Troodon on Wed Nov 26, 2008 12:31 am, edited 1 time in total.
User avatar
Shadow Wolf
Albertosaurus
Albertosaurus
Posts: 2275
Joined: Mon Nov 05, 2007 8:11 pm
Location: living underground in the middle of freaking nowhere
Contact:

Re: Learning 'Programming'

Post 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
post something intelligent before I go insane from a combination of exhaustion and boredom
User avatar
hppav
-=TresCom Forum Admin=-
-=TresCom Forum Admin=-
Posts: 6618
Joined: Sun Nov 10, 2002 9:40 pm
Antispam: No
Location: Peru, Indiana

Re: Learning 'Programming'

Post by hppav »

Calm down there Dragonlord. There's no reason to get crazy over a post on the internet.
Album 1 http://m.imgur.com/a/cRA26
Album 2 http://imgur.com/a/6tvKV
Jurassic World: Fallen Kingdom leaked and (few) official photos
Dragonlord
Compsognathus
Compsognathus
Posts: 1070
Joined: Fri Jan 04, 2008 12:14 am
Location: Switzerland
Contact:

Re: Learning 'Programming'

Post 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.
Image
Leader, Head Programmer: Epsylon | Drag[en]gine ( Wiki )
User avatar
RexHunter99
Albertosaurus
Albertosaurus
Posts: 2197
Joined: Mon Apr 24, 2006 12:12 pm
Location: Australia
Contact:

Re: Learning 'Programming'

Post 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.
~ They told me humans weren't real... I proved them wrong.
ImageAnthropology ~ A beautiful tale.
EpicZen
Carnivores Hub ~ Need the full games without all the hassle of torrents or viruses? Run on over to EpicZen's Carnivores Hub!
Troodon

Re: Learning 'Programming'

Post 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
Dragonlord
Compsognathus
Compsognathus
Posts: 1070
Joined: Fri Jan 04, 2008 12:14 am
Location: Switzerland
Contact:

Re: Learning 'Programming'

Post 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 ).
Image
Leader, Head Programmer: Epsylon | Drag[en]gine ( Wiki )
Troodon

Re: Learning 'Programming'

Post 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
Dragonlord
Compsognathus
Compsognathus
Posts: 1070
Joined: Fri Jan 04, 2008 12:14 am
Location: Switzerland
Contact:

Re: Learning 'Programming'

Post 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?
Image
Leader, Head Programmer: Epsylon | Drag[en]gine ( Wiki )
Post Reply