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,545551cf46d41dea X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!grolier!usenet-fr.net!fdn.fr!glou.fr.eu.org!proxad.net!cleanfeed3-a.proxad.net!nnrp14-1.free.fr!not-for-mail Sender: sam@willow.rfc1149.net From: Samuel Tardieu Newsgroups: comp.lang.ada Subject: Re: ICFP Programming Contest virtual machine in Ada References: <87zmeobwtd.fsf@willow.rfc1149.net> <1154448852.738392.325930@p79g2000cwp.googlegroups.com> Date: 01 Aug 2006 20:53:26 +0200 Message-ID: <87vepcb849.fsf@willow.rfc1149.net> User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Leafnode-NNTP-Posting-Host: 2001:6f8:37a:2::2 Organization: Guest of ProXad - France NNTP-Posting-Date: 01 Aug 2006 20:55:43 MEST NNTP-Posting-Host: 88.191.14.223 X-Trace: 1154458543 nnrp14-1.free.fr 13473 88.191.14.223:37144 X-Complaints-To: abuse@proxad.net Xref: g2news2.google.com comp.lang.ada:6050 Date: 2006-08-01T20:55:43+02:00 List-Id: >>>>> "Hyman" == Hyman Rosen writes: Hyman> Did you verify whether it works properly on systems where text Hyman> and binary I/O are different? In the contest, the first thing Hyman> the machine needs to do is "decompress" a file, and both the Hyman> input and output contain sequences which will be mangled if the Hyman> normal text CR LF mapping takes place. I ran afoul of that in Hyman> my C++ version of the code and it took me a while to realize Hyman> what was going on. As you can see in the code, I used Stream_IO, which only considers raw bytes, so this is not an issue. Sam -- Samuel Tardieu -- sam@rfc1149.net -- http://www.rfc1149.net/