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,e7151167e0767ecc X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews2.google.com!not-for-mail From: wojtek@power.com.pl (Wojtek Narczynski) Newsgroups: comp.lang.ada Subject: Re: Feasibility of using Ada in new development Date: 9 Sep 2004 03:26:13 -0700 Organization: http://groups.google.com Message-ID: <5ad0dd8a.0409090226.154b7b11@posting.google.com> References: <8429999a.0408231027.2850e800@posting.google.com> <5ad0dd8a.0408302222.56282d6f@posting.google.com> <4135498c_1@news.tm.net.my> <5ad0dd8a.0409040738.3fff41b8@posting.google.com> <5ad0dd8a.0409060956.7fe744f6@posting.google.com> <5ad0dd8a.0409080110.1be46d74@posting.google.com> <16idnbx9y9hVMKLcRVn-gA@megapath.net> NNTP-Posting-Host: 62.111.211.178 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1094725574 8621 127.0.0.1 (9 Sep 2004 10:26:14 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 9 Sep 2004 10:26:14 +0000 (UTC) Xref: g2news1.google.com comp.lang.ada:3533 Date: 2004-09-09T03:26:13-07:00 List-Id: Randy, > It would actually be fairly easy to build a special I/O library that could > put a task to sleep (no threads here - only Ada :-). Just replace the > implementation of Read and Write. Are all the runtime sources included with the compiler so that a third party could do it for themselves? > Of course that wouldn't work for sockets, because sockets aren't I/O in > Windows. Well, right now I am interested only in sockets. There is a select call and also some nice looking WSA* (Windows Sockets 2 API) calls that could be tried. But, also, I'd prefer to have it working on unix. Yesterday I managed to patch and build the current fsu threads library http://www.informatik.hu-berlin.de/~mueller/ftp/pub/PART/pthreads.tar.gz and gnat 3.15p runtime together, so now I have complete working sources of a cooperative, or at least could-be-cooperative, runtime. Seems like a good starting point, as you also noted. Regards, Wojtek Narczynski