- Sep 19, 2000
- 10,286
- 145
- 106
Delphi is such a putrid language, it is retardly slow, recent software for it looks like it was developed in the 90's (No joke, the 2006 version of it looks a heck of a lot like VB6 did). And the things it does to make things "Easy" ultimately just get in the way. And dang it, I miss my templates!
How bad is it? Bad, I had a simple problem of having to split text up by a given charactor. An easy task, right? So being the OO savey programmer that I am, I said "Hey, lets use the TStringList object, it'll work just like a vector or a queue!". I quickly found out that that is definitely not the case.
And don't get me started on the need to write begin, and end and then. It is retarded to be so explicit with simple scoping syntax.
I have no idea what memory Allocation scheme they employed, but it obviously was a terrible choice. By using the Tstringlist, opening my simple 1mb file quickly consumed 100's of MB in memory! Even after playing with TStringList members to the point where the data fit in a reasonable ram allocation, The retarded thing was taking forever, much longer then any sane program should take to execute.
So what was my solution? I created a C++ dll, and told delphi to interface with it. With C++, and almost identical code with strings and vectors, I saw an order of magnitude increase in speed and decrease in memory usage. (And that was even AFTER having to take the data from the string and put it into a char** for inter language operability).
The language is defunct, and borland or codegear, or embardico, (The company has traded hands MANY times), have no clue on what makes a good language.
So why am I using this god forsaken language? Because the boss is 60, been programming for 40 years, and he loves it. He has never been officially taught how to program (And it really shows in his code, Imagine giant blocks of code with repeated statements that scream "Make me a function").
He's a great guy, but man, I really hate having to work with his language of choice. I would really love to move away from the borland software suite and on to something like MSVS.
How bad is it? Bad, I had a simple problem of having to split text up by a given charactor. An easy task, right? So being the OO savey programmer that I am, I said "Hey, lets use the TStringList object, it'll work just like a vector or a queue!". I quickly found out that that is definitely not the case.
And don't get me started on the need to write begin, and end and then. It is retarded to be so explicit with simple scoping syntax.
I have no idea what memory Allocation scheme they employed, but it obviously was a terrible choice. By using the Tstringlist, opening my simple 1mb file quickly consumed 100's of MB in memory! Even after playing with TStringList members to the point where the data fit in a reasonable ram allocation, The retarded thing was taking forever, much longer then any sane program should take to execute.
So what was my solution? I created a C++ dll, and told delphi to interface with it. With C++, and almost identical code with strings and vectors, I saw an order of magnitude increase in speed and decrease in memory usage. (And that was even AFTER having to take the data from the string and put it into a char** for inter language operability).
The language is defunct, and borland or codegear, or embardico, (The company has traded hands MANY times), have no clue on what makes a good language.
So why am I using this god forsaken language? Because the boss is 60, been programming for 40 years, and he loves it. He has never been officially taught how to program (And it really shows in his code, Imagine giant blocks of code with repeated statements that scream "Make me a function").
He's a great guy, but man, I really hate having to work with his language of choice. I would really love to move away from the borland software suite and on to something like MSVS.