Delphi 2009 Handbook




Delphi 2007 Handbook




Essential Pascal




social web book








February 27, 2007

UI Frameworks and Efficiency, by Steve Teixeira

Steve, Visual C++ Program Manager Steve T and Delphi old-timer, has an interesting post on efficiency in .NET vs MFC.

Steve Teixeira, well know in the Delphi community for his books and his Delphi-related work, is now Group Program Manager for Visual C++. In his latest blog post, he addresses the problem of efficiency vs. UI frameworks. This originates from a video in which he introduces the idea of an interoperability layer to C++ developer replace MFC with WinForms, while keeping their core code in native C++. Interesting post. I have to say the he misses one of the efficiency points, as .NET applications with a UI slow down because of the marshalling and protection of the Win32 API calls, not because of the nature of IL.

However, that's not the main issue. In seeing the struggle of Microsoft to move everyone to .NET, of the developers to keep their code efficient, and of trouble in rewriting large portions of an applications (migrating MFC UI code to WinForms is a total rewrite), I'm reminded of how nice a solution we (in the Delphi camp) have at our hands with the ability of moving VCL code to VCL.NET almost seamlessly (OK, OK, I know there is a lack of third party components...) and even having a single source that targets both the native and the managed platform.

I think Delphi developers, in this respect, are in a much better position of the C++/MFC developers, even if (or because of?) they have a large company as Microsoft behind their tool. Can we say, "Delphi rocks"?





 

3 Comments

UI Frameworks and Efficiency, by Steve Teixeira 

I agree... I have a large-ish Win32 application which 
currently consists of a valuation engine and an 
interface. The interface is obviously going to take a 
bit of work if and when we port it, but just for fun 
a few months ago I decided to see how long it might 
take to convert the engine (by far the biggest 
investment in terms of complexity and lines of code) 
to .NET.

Amending it so that it compiled under .NET using 
Turbo Explorer took about 3-4 hours (mainly changing 
unsafe code), and then tweaking it further so it 
compiled using .NET CF (using your tip about changing 
the paths) was another couple of hours. Amazing. 

So now we have the option of porting the entire app 
to .NET or to CF, and we just have to concentrate on 
the interface, secure in the knowledge that we have 
one code base for the underlying engine. 

Comment by RichardS on February 27, 11:52

UI Frameworks and Efficiency, by Steve Teixeira 

oh dear, Delphi absolutely ROCKS!!!!! 
Comment by Roby on February 27, 14:26

UI Frameworks and Efficiency, by Steve Teixeira 

I am totally in agreement with you. Nevertheless, it
continues lacking Kylix (and some thing for MacOS) to
complete the equation of the portability. Anyway… yes
NOW Delphi rocks again.
Comment by Chandra on February 27, 16:24


Post Your Comment

Click here for posting your feedback to this blog.

There are currently 0 pending (unapproved) messages.