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-Thread: 103376,2cc84c0fee9046c0 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!proxad.net!134.158.69.22.MISMATCH!in2p3.fr!irazu.switch.ch!news-zh.switch.ch!switch.ch!news.hispeed.ch!linux2.krischik.com!news From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: Various Language Architecture Questions Date: Sun, 25 Sep 2005 16:24:14 +0200 Organization: Cablecom Newsserver Message-ID: <1690255.oD9LSmUu1M@linux1.krischik.com> References: <1127615832.540718.246970@g43g2000cwa.googlegroups.com> <1lj1ewtykmmp4.j6srtz43enc4.dlg@40tude.net> <1127652977.471484.203180@g47g2000cwa.googlegroups.com> NNTP-Posting-Host: 84-73-3-68.dclient.hispeed.ch Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.hispeed.ch 1127659516 1266 84.73.3.68 (25 Sep 2005 14:45:16 GMT) X-Complaints-To: news@hispeed.ch NNTP-Posting-Date: Sun, 25 Sep 2005 14:45:16 +0000 (UTC) User-Agent: KNode/0.9.2 Xref: g2news1.google.com comp.lang.ada:5138 Date: 2005-09-25T16:24:14+02:00 List-Id: frankgerlach@gmail.com wrote: > Whatabout the following examples: > 1.) Simple,unportabe Network Data Transport: To transport a C struct, I > just cast it to char* and then write sizeof(myStruct) bytes to the > Socket. This is very fast and works in a homogeneous network. You use 'Output and 'Write to achieve that in Ada: http://en.wikibooks.org/wiki/Ada_Programming/Input_Output#Stream_I.2FO You won't need a type convertion. > 2.) Using Unchecked_conversion() in Ada kills range checking ? That > seems to be inferior to java... Then don't - there are lots of other conversions available in Ada. Unchecked_conversion is for system programming not to gain speed. Martin -- mailto://krischik@users.sourceforge.net Ada programming at: http://ada.krischik.com