From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,3ef3e78eacf6f938 X-Google-NewGroupId: yes X-Google-Thread: 108717,3ef3e78eacf6f938 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,gid5b1e799cdb,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Tue, 23 Mar 2010 07:31:15 -0500 Message-ID: <4BA8B492.1010606@cherrystonesoftware.com> Date: Tue, 23 Mar 2010 08:31:14 -0400 From: balson Reply-To: labrat@cherrystonesoftware.com Organization: Jim Balson - Cherrystone Software Labs User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.8) Gecko/20100205 SeaMonkey/2.0.3 MIME-Version: 1.0 Newsgroups: comp.lang.eiffel,comp.lang.ada,comp.lang.modula3,comp.lang.pascal,comp.programming To: Andrea Taverna Subject: Re: Alternatives to C: ObjectPascal, Eiffel, Ada or Modula-3? References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-kVe+Zumb2VniDlDLwqv9ss/gOP3a2apGoNaN8hPen6SbU80llojdU84dQWkGeRYwTdZKQ3iv77ZZdLY!K8Rtu3T+MP6vDP43AUnN6NT+9J6fP4ZX129cUWG4W9P+cVNtVYQgK7V5MYFvESZYpKU= X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 Xref: g2news2.google.com comp.lang.eiffel:564 comp.lang.ada:10667 comp.lang.modula3:133 comp.programming:16440 Date: 2010-03-23T08:31:14-04:00 List-Id: Andrea Taverna wrote: > Hi folks! > [snip] > In the past I used C, but now I have decided to change language. > I'm looking for a "better" one. > > Here follow the features it should have, ranked approximately by relevance: > > 0) open-source support and an alive community > 1) directly compiled to efficient code > 2) statically typed and object-oriented, better if multi-paradigm > 3) general-purpose libraries (possibly standardized, either by standard > or de facto), including containers and some math abstractions. > 4) garbage collected. As an alternative, provide memory management > policies via libraries (e.g. memory pools and such) > 5) optional run-time checks and some kind of control over compilation > and low-level issues > 6) "relatively simple and consistent" > Where's performance on this list? Do you not care how fast the applications run? Look at the following white paper to see if performance should or shoild not be high on your list if you are considering changing development languages: http://www.cherrystonesoftware.com/doc/AlgorithmicPerformance.pdf What this WP documents is we took 5 basic very common computer science algorithms and wrote them in different languages: C/C++, Java and C# and then benchmarked them against each other. If performance is of any concern to you, you'd stiff with C/C++. IOW, stay away from the likes of Java, C#, Pascal. Unless you have a very specific reason for going in that direction. Your performance will suffer. Now if you just want to learn a new language, that's different. But if you are in the commercial space and delivering to customers and that customer demands top performance, stick with C/C++. Jim > So I have considered these alternatives: FreePascal, Eiffel, Ada and > Modula-3. > I have taken a look at all of them and I'm still undecided. Below are > the impressions I got for each language. > Can you help me? Feel free to recommend other languages as well. > > TIA > --> Impressions I got for each language > > - FreePascal is a safe and modular alternative to C and C++, but it is > also close to the latter in terms of expressiveness. Moreover it doesn't > seem to have the libraries I need. > ==>Qualifies for 0,1,2,5. Not sure about 3 and 4 > > - Eiffel is geared toward application programming in medium/large-sized > teams relying heavily on OO modelling. It is designed for (re)usability, > correctness and efficiency in this order. My needs are somewhat > different though. > The main gripe I have with Eiffel is the lack of a well-documented > standard gpl'ed library. > GOBO and EiffelBase seem to have incomplete or non-free documentation > and I couldn't find tutorials; as such, I couldn't get a clear picture > about them. > ==> Qualifies for 0,1,2,4,5 and 6. Not sure about 3. > > - Ada is best suited for large teams and/or critical software, thus it > may be overkill for my work, OTH it could have anything I might happen > to need. > What holds me from jumping onto Ada is the potential complexity > It would be interesting to hear the experience of other people learning > Ada from the C/Java background. > As for memory management (requirement 4), I heard there are different > takes on the matter: > (a) Ada uses dynamic stack allocation a lot, and in a transparent way, > reducing the need of manual management (MM) > (b) Ada libraries adopt idioms that further simplifies MM issues > (c) Conservative garbage collectors such as Bohem's can be used with > Ada, and they are supposed to work "better" with Ada than with unsafe > languages such as C and C++ > > So can MM be said to be easier in Ada than in C? I hope Ada-ers will > mercifully shed some light on the issue. > > There seems to be a lot of Ada95 free documentation on the net, I guess > it's suitable for Ada05 as well. > ==> Qualifies for 0,1,2,3,5 and, partially, 4 > > - Modula-3 is simpler/smaller than Ada and has been successfully used > for system/application programming. > It seems to be the most consistent, simple and easy to grok, but I > couldn't find any container/math library ready to use. > ==> Qualifies for 0,1,2,4,5,6.