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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d978d3056ed727b9 X-Google-Attributes: gid103376,public From: Brian Rogoff Subject: Re: Language Challenge 2000 - Update Date: 2000/02/03 Message-ID: #1/1 X-Deja-AN: 581221194 References: <38991E72.293907A4@sdynamix.com> <38992ADB.AC8748A8@mail.utexas.edu> <87bbro$9281@news.cis.okstate.edu> <87cg3u$8a21@news.cis.okstate.edu> Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: nntp1.ba.best.com 949608105 215 bpr@206.184.139.136 MIME-Version: 1.0 Newsgroups: comp.lang.ada Date: 2000-02-03T00:00:00+00:00 List-Id: On 3 Feb 2000, David Starner wrote: > On Thu, 3 Feb 2000 08:22:04 -0800, Brian Rogoff wrote: > >Unless I misread the results, some C and C++ teams (as well as Perl and > >Python teams) were correct, they just weren't in the top six. > > Sorry - two out of the nine C teams were correct. It was the two Perl > teams that got sunk. > > >> I didn't want to worry about not having garbage collecting > >> or hetrogenous lists, so I went with Icon. > > > >If you had a library, you could have heterogeneous lists and more in > >Ada. > You'd have to derive every thing from the same base tagged type, or > have a library with some serious C level pointer evil. Alternately, > I could set up variant records. I was thinking of the tagged type or variant option. Neither Ocaml nor Haskell has (untyped) heterogeneous lists, so I can't imagine that this is a serious problem. The winning OCaml team didn't even use the class system (and Haskell doesn't have OOP facilities) so variants are sufficient here. > >For GC, I suppose you'd have to use AppletMagic. > Or wrap the Boehm-Weiser GC library. Yuk! How about a real GC for Ada someone? :-) > >Another choice might be to use a language with GC, built in lists, a > >powerful module system with signatures, strong static typing (which Icon > >lacks), > > Of course, I would have found strong static typing in my way with those > hetrogenous lists. Explain why. The winning teams had no problem with strong static typing. Very rarely do I find strong static typing to be a nuisance. > >higher order functions, and an implementation with a rich tool set > >for constructing compilers. I wonder if there is such a beast? ;-) > Hmm? ML, I guess. The compiler part was only applicable to last year, > though. It's a Scheme-style syntax - it's not a big deal to parse. Yes you're right. > >> I would be deeply impressed > >> with anyone who got Ada into the victory circle. > > > >I think its tougher to write code quickly in Ada or C++ than in a good FP, > >like OCaml, and these contests favor speed of writing. > Yep. Ada, for all its good points, is not a language designed for quick > hacking. I find Ada to be far better for quick hacking than C, but not nearly as good as Ocaml. GNAT allows me to clean up my mistakes faster in hack mode than unadorned C, and provides a lot more freedom along dimensions I care about (genericity, nesting, overloading) while hacking. GNAT error messages put OCaml error messages to shame; that's still a big problem with type inference IMO. -- Brian