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, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d1533431e7e9d2eb X-Google-Attributes: gid103376,public From: Ted Dennison Subject: Re: Nontrivial examples of C interface with Ada Date: 2000/05/25 Message-ID: <8gk6ee$ti8$1@nnrp1.deja.com>#1/1 X-Deja-AN: 627322630 References: <8gjqpo$kjv$1@nnrp1.deja.com> X-Http-Proxy: 1.0 x55.deja.com:80 (Squid/1.1.22) for client 204.48.27.130 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Thu May 25 21:37:20 2000 GMT X-MyDeja-Info: XMYDJUIDtedennison Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.7 [en] (WinNT; I) Date: 2000-05-25T00:00:00+00:00 List-Id: In article , tmoran@bix.com wrote: > >any further abstracting of the binding to make it simpler is going to > >inevitably loose some of the power of the original. Sure, it will be > >easier to use, but you won't be able to do as interface. > The escape hatch is to have routines that let you get at the lowest > level entities and then make whatever system calls you want. But for that escape hatch to be of any use, you need thin Ada bindings! > >But then how do I set my sockets to non-blocking? > That's just a question of how thorough is the coverage of the thick > binding. Right. But this goes right back to the power issue. The more of the power that was in the original that you put in your bindings, the more it starts looking like the original interface. > A lot can be done with a Text_IO style interface to blocking > sockets, with asynchrony being provided by suitable Ada tasking. In Ugh! That's exactly the kind of heavy solution to a simple problem that ticks off folks who are used to the easy solution. "Ada Ghetto" syndrome. Why should I have to create a whole new task, plus God knows what else to synchronize data between them, simply to do a non-blocking I/O? Plus with some compilers, a blocking I/O blocks the entire Ada program. If I were using C it would be a simple call. -- T.E.D. http://www.telepath.com/~dennison/Ted/TED.html Sent via Deja.com http://www.deja.com/ Before you buy.