On Tuesday 22 March 2005 15:27, Michael Gogins wrote: > In my view, Csound would contain fewer bugs and run slightly faster if it > were coded entirely in C++. This view is based on experience and > experiments, not opinion. I am prepared to show code samples and > experimental results to support this view. I would of course be very > interested to review code samples and experimental results that demonstrate > the opposite. > My experience is not very extensive, so please correct me if I am wrong. The biggest problem I have seen with C++ is binary incompatability between libraries and applications using them. This is actually not that much of a problem for me, just the nuisance that upgrading the compiler means recompiling all my C++ libraries. And I don't upgrade my compiler that often :) But for distributing binaries of programs using a shared libcsound it is a real problem. The program won't run if it was compiled for a libcsound compiled differently. Even a different optimization flag will break binary compatibility I think. The only solution is to distribute a statically linked private copy of libcsound with your application. So I think that the ambition of csound5 as a platform independent library is best served by it being pure C. (And yes, I think including widgets in core Csound5 was/is a mistake. For one thing it assumes that csound will only be run on general purpose pc's, and that as long as you support windows, Mac and linux you are cross platform. My cell phone has a 400 MHz processor and stereo sound. Csound should run on that, and it will but without the widgets. Including C++ and widgets in the core csound, will just create a forks for other uses. ) Gerard ------------------------------------------------------- This SF.net email is sponsored by Microsoft Mobile & Embedded DevCon 2005 Attend MEDC 2005 May 9-12 in Vegas. Learn more about the latest Windows Embedded(r) & Windows Mobile(tm) platforms, applications & content. Register by 3/29 & save $300 http://ads.osdn.com/?ad_id=6883&alloc_id=15149&op=click _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net