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=2.1 required=5.0 tests=BAYES_20,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa705,4e5700f5f17e49f4 X-Google-Attributes: gidfa705,public X-Google-Thread: 103376,18a09885d036772 X-Google-Attributes: gid103376,public X-Google-Thread: f66ab,c2ed41f6f9544612 X-Google-Attributes: gidf66ab,public From: dacut@henry.ece.cmu.edu (David A. Cuthbert) Subject: Re: Is this ground dead? Also, info on Mach that's more recent Date: 1998/01/17 Message-ID: <69rdmb$j29$1@encore.ece.cmu.edu>#1/1 X-Deja-AN: 316936995 References: <34AE2AE8.ED17B2C6@gildea.net> <5lzpky66rq.fsf@tequila.systemsz.cs.yale.edu> <69jr4q$44j$1@encore.ece.cmu.edu> Organization: Electrical & Computer Engineering, Carnegie Mellon University Reply-To: henry.ece.cmu.edu!dacut Newsgroups: comp.os.mach,comp.unix.bsd.misc,comp.lang.ada Date: 1998-01-17T00:00:00+00:00 List-Id: Thomas G. McWilliams wrote: >David A. Cuthbert wrote: >: At any rate, relying on type safety for protection means that you >: can't use C, C++, or assembly, or anything written in those >: languages (so forget device drivers). Assembly is the killer here; > >Have you used Ada? Ada is type-safe and more powerful than C for >low level bit-twiddling. Ada is a natural for device drivers and >systems programming. Used, no; glanced at code samples, yes. My impression is that it looks rather neat (nicer than C++ in many respects), but I've invested too much into my C++ tools to even consider a switch. I'm somewhat confused as to how Ada can be "natural" for device drivers and systems programming. For example, how do I code a task switch or set up a DMA channel to a device in Ada? Relying on a library written in anything but Ada doesn't count. Of course, I have no idea how I'd do that in C or C++, either, without relying on nasty tricks like relying on assumptions about the compiler's code generation and purposely breaking the type system. -- David A. Cuthbert (dacut@ece.cmu.edu) Graduate Student Electrical and Computer Engineering Data Storage Systems Center, Carnegie Mellon University