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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,68b43b837fb71f2a X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-09-11 20:11:21 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!nntp-server.caltech.edu!attla2!ip.att.net!attbi_feed3!attbi.com!sccrnsc01.POSTED!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: Thoughts on the recent ICFP contest References: <3D7FFD66.9030805@telepath.com> X-Newsreader: Tom's custom newsreader Message-ID: NNTP-Posting-Host: 12.234.13.56 X-Complaints-To: abuse@attbi.com X-Trace: sccrnsc01 1031800281 12.234.13.56 (Thu, 12 Sep 2002 03:11:21 GMT) NNTP-Posting-Date: Thu, 12 Sep 2002 03:11:21 GMT Organization: AT&T Broadband Date: Thu, 12 Sep 2002 03:11:21 GMT Xref: archiver1.google.com comp.lang.ada:28845 Date: 2002-09-12T03:11:21+00:00 List-Id: > (3) A generic implementation of Dijkstra's Algorithm In the sense of an Ada "generic", or what? I would think a library version of the algorithm would be a single call, taking a graph representation as input and giving a shortest path as output, so the only novelty would be in devising convenient ways to build the input data structure or use the output. Or is this not what you're think of at all? > stream, with the various sockopt function codes implemented as > primitives on it. I'm curious if anyone else thinks something like this Can you give an example of a piece of code written using what you have in mind? > to transmit an entire buffer at once, rather than one component at a Like marshalling all those 'Writes to a buffer, then making one socket'write(buffer) call? > Since this is a speed optimization, copying the buffer would be missing > the point. That sounds more like creating a "channel program" to do "gather writes" when the IO is actually started. Is that what you mean?