Re: OOP in Mathematica
- To: mathgroup at smc.vnet.net
- Subject: [mg37637] Re: OOP in Mathematica
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Thu, 7 Nov 2002 06:41:24 -0500 (EST)
- Organization: Universitaet Leipzig
- References: <A06E01A4-F12D-11D6-ADE7-00039311C1CC@tuins.ac.jp> <aqb22v$mkh$1@smc.vnet.net>
- Reply-to: kuska at informatik.uni-leipzig.de
- Sender: owner-wri-mathgroup at wolfram.com
Hi, > In my opinion it is not the main criterion, that a program runs fast in that > programming language. you say that speed doesn't matter ? The extensive usage of Compile[] and the PackedArray[]s inside Mathematica say just the opposite. The point is, that in one of your "larger programs/applications" you accumulate the creepiness of your OO-functions. A slow execution destroy also your "easy creation" of the program. Because you have to test your code during the development and if it takes to long to make a test run your "easy creation" take so long that you can't call it "easy" anymore. BTW it it much more compilcate to understand a class hierachie of an OO program than to overload the function definitions. Regards Jens Hermann Schmitt wrote: > > Hello, > I think, when Mathematica was created, OO was not yet existent in > programming languages. I am astonished about the OO-like features, which are > built into Mathematica despite of this. Into older languages OO must be > built after they were created, and this is also done. > In my opinion it is not the main criterion, that a program runs fast in that > programming language. If this was the case you should program in assembler > language. The fact, that Mathematica is an interpreted language shows, that > other considerations were prominent, when the language was designed. > Compiled languages are faster. > The main criterion is in my opion is, that the program can be created easily > and yet more important, that it can be easily understood and modified > afterwards. > I think, Mathematica is well suited, to integrate an OO-System. > Hermann Schmitt.