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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,39579ad87542da0e X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.180.109.111 with SMTP id hr15mr2944080wib.1.1369279465964; Wed, 22 May 2013 20:24:25 -0700 (PDT) Path: fw11ni1137wic.0!nntp.google.com!feeder1.cambriumusenet.nl!82.197.223.108.MISMATCH!feeder2.cambriumusenet.nl!feed.tweaknews.nl!194.109.133.83.MISMATCH!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!news.panservice.it!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Seeking for papers about tagged types vs access to subprograms Date: Wed, 15 May 2013 22:56:55 +0200 Organization: cbb software GmbH Message-ID: <1e3jta3a4tpai.hsg15igw3fyt.dlg@40tude.net> References: Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: 15waz9CoS+eMakbyhTPyFQ.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Date: 2013-05-15T22:56:55+02:00 List-Id: On Wed, 15 May 2013 15:59:07 -0400, Peter C. Chapin wrote: > Yet who should deal with the structure of, say, a JPEG image? The implementation of the type if the OS were typed. > Should every > application that wants to manipulate such images duplicate the code > required to do so? The operations of the type could be shared. > Should the OS materialize the "JPEG file" abstraction > directly in its API? JPEG would implement the interface of some base image type. It is not much different from how OSes handle drivers. You can register new driver. A driver belongs to a class of devices (=implements some device interface, e.g. block device). The API of a driver is a kind of dispatching operation, e.g. Read/Write/Open/Close/IOCTL. It is very rudimental and not properly defined as a type, nonetheless. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de