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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Niklas Holsti Newsgroups: comp.lang.ada Subject: Re: Oberon and Wirthian languages Date: Sat, 26 Apr 2014 09:29:04 +0300 Organization: Tidorum Ltd Message-ID: References: <1ljwj8f.1wqbhvuabsdw1N%csampson@inetworld.net> <51c7d6d4-e3be-44d5-a4ce-f7e875345588@googlegroups.com> <%J32v.70539$kp1.45343@fx14.iad> <8761m535e4.fsf_-_@ludovic-brenta.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: individual.net +qebV24yJB6tf32g3uwQpAHP1mEVfNOsrfbMTEUXcgWhjAi1hf Cancel-Lock: sha1:cjlbwsYrcBZP8cx8VHzLgd0gPZw= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 In-Reply-To: Xref: news.eternal-september.org comp.lang.ada:19596 Date: 2014-04-26T09:29:04+03:00 List-Id: On 14-04-26 00:55 , Randy Brukardt wrote: > To get assignment atomicity, probably extending the aspect syntax to > statements would be best. (The Parallel proposals are thinking in that > direction anyway. Do you have at hand a link to the "Parallel" proposals? Seems to be hard to find by web search -- a common word. >) Then something like: > > A := (A replacing C => D, E => F) with Atomic; "replacing" is a good word for this, I agree. > would mean to do an atomic update of A replacing the C and E components, > leaving the rest untouched. The 2011 C standard goes into various memory order semantics in great detail, not just "atomic". As I (weakly) understand it, that is necessary or useful for implementing lock-free and wait-free synchronization on modern architectures. Do you see any need to extend Ada in that direction? -- Niklas Holsti Tidorum Ltd niklas holsti tidorum fi . @ .