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,41100a78496a4c71 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-03-29 17:44:12 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed1.cidera.com!Cidera!cyclone.socal.rr.com!cyclone3.kc.rr.com!news3.kc.rr.com!twister.socal.rr.com.POSTED!not-for-mail Message-ID: <3CA51876.58FCFA50@san.rr.com> From: Darren New X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: AdaGames References: <98104da8.0203280310.143a1c18@posting.google.com> <3CA3CE3A.FA587CCD@san.rr.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Sat, 30 Mar 2002 01:43:52 GMT NNTP-Posting-Host: 66.75.151.160 X-Complaints-To: abuse@rr.com X-Trace: twister.socal.rr.com 1017452632 66.75.151.160 (Fri, 29 Mar 2002 17:43:52 PST) NNTP-Posting-Date: Fri, 29 Mar 2002 17:43:52 PST Organization: RoadRunner - West Xref: archiver1.google.com comp.lang.ada:21871 Date: 2002-03-30T01:43:52+00:00 List-Id: Marin David Condic wrote: > I don't know of any other > languages that have tasking built in as direct syntactic features of the > language. Err, as I said, Tcl and Java spring to mind, for example. Probably Python too. Eiffel, if it ever actually got implemented that way. Hermes. NIL. I'm not sure what you mean by "direct syntactic features". I'd count pretty much anything that's a defined part of the language, regardless of whether it happens to use the same syntax as other parts of the language. If I can count on the language providing threads even when the underlying OS doesn't, I'd call that part of the language, wouldn't you? Java certainly has reserved words for managing synchronization, and Tcl's syntax is such that you don't really distinguish stuff based on syntax (e.g., "if" is as much a procedure as "create_thread" is). > active objects that may be supplied with C++ or Java, my understanding from > other people is that you still need to do some work to control the > communication & synchronization between the tasks. The same as you do in Ada. In Tcl, it's even easier. As it is in Hermes. (As an example, Hermes doesn't even *have* procedure calls. *All* it has is task entries.) Java has "synchronized" classes, which are pretty much exactly like protected objects. Tcl has an event model (in addition to threads) that let you write things like servers that would normally be multithreaded without needing threads. I've written a multiplayer network game hosted by a server with a client doing its own animation and sound effects, and it was straightforward without needing any threads. > In general, I think it would be easier to do a multi-tasking application in > Ada than in most other languages. Agreed. Ada's tasking is nice. It's just not anything particularly special, until you get into the real-time stuff. > Now the "standard GUI" part is another story. AFAIK, C++ doesn't have a > "standard" GUI, but Java sort of does by virtue of its class libraries. As does Tcl. Good enough to be ported to a multitude of other languages. -- Darren New San Diego, CA, USA (PST). Cryptokeys on demand. Remember, drive defensively if you drink.