comp.lang.ada
 help / color / mirror / Atom feed
From: Optikos <optikos@verizon.net>
Subject: Re: Microsoft is considering moving to Rust; potential opportunity for Ada2020
Date: Wed, 17 Jul 2019 17:29:47 -0700 (PDT)
Date: 2019-07-17T17:29:47-07:00	[thread overview]
Message-ID: <eccca795-6b5a-4add-a4de-9a7c52440e3d@googlegroups.com> (raw)
In-Reply-To: <871ryop74h.fsf@nightsong.com>

On Wednesday, July 17, 2019 at 6:35:12 PM UTC-5, Paul Rubin wrote:
> Optikos writes:
> > Yes, I also was wondering why Microsoft isn't fervently exploring
> > adding a Rust-esque borrow checker to C#
> 
> C# is garbage collected, I thought.  No need for anything like a borrow
> checker.

Yes, historically C# is automatic-garbage-collected (AGC), but, to serve as a successor to C & C++ in the development of OS kernel and high-performance services/infrastructure at user-space at Microsoft (or elsewhere), C# would need to trim back any .NET excesses.  AGC is widely perceived (outside of the .NET and JVM communities) as one of those bloated excesses in .NET and in JVM worlds.  One could imagine C# becoming yet another language where AGC is optional, such as via different syntax for introducing AGCed versus borrow-checked modes of operation for each subroutine or each coroutine, operating in the programmer's choice of native or managed (to use Microsoft's terms) or unboxed or boxed (to use other communities' terms), much like C++/WinRT does. (Although in C++/WinRT, the “different syntax” is 1) normal C++ syntax for native versus 2) C++/WinRT's language-projection template(-header-only-library) for managed-via-ATL-to-COM.

Just as an Xlang projection of Rust can wrap C/C++ unsafe legacy code, an Ada language projection in Xlang can bring all that to Ada too, where Ada could also be a memory-safe wrapper language that permits opportunistic rewrite of more & more unsafe guts in the everless-wrapper-veneer evermore-deeper-to-the-core Ada layer.  The Ada language projection in Xlang would mimic the Xlang support for other languages (e.g., Python, Go, Rust) that resemble Ada to greater or lesser degrees.  Indeed, Ada2020 could conceivably most closely mimic Rust support in open-source Xlang to be a fast follower of this Rust experimentation at Microsoft—or at least mimicking Rust support in Xlang closer than any of the further-afield languages such as Python.  Conversely, adding Ada language projections via Xlang would permit Ada to take advantage of the vast forest of Python libraries by invoking them via the Xlang language projection.  Xlang is open-source at GitHub:
https://github.com/Microsoft/xlang


  reply	other threads:[~2019-07-18  0:29 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-17 18:17 Microsoft is considering moving to Rust; potential opportunity for Ada2020 Optikos
2019-07-17 18:53 ` Maciej Sobczak
2019-07-17 22:59   ` Optikos
2019-07-17 23:35     ` Paul Rubin
2019-07-18  0:29       ` Optikos [this message]
2019-07-19 22:07       ` Simon Wright
2019-07-19 22:12         ` Paul Rubin
2019-08-06 17:01         ` Alejandro R. Mosteo
2019-08-06 17:49           ` Brad Moore
2019-08-07  9:09             ` Alejandro R. Mosteo
2019-08-08  2:13               ` Jere
2019-08-08  9:25                 ` Alejandro R. Mosteo
2019-08-06 17:56           ` Optikos
2019-08-06 20:04             ` Brad Moore
2019-08-07  9:07             ` Alejandro R. Mosteo
2019-07-25 18:40 ` G. B.
2019-07-26 14:12   ` Shark8
2019-08-15 15:39     ` Norman Worth
2019-10-01  8:04       ` Mehdi Saada
2019-10-02 17:11         ` Shark8
2019-07-26 14:11 ` Shark8
2019-07-27 20:03   ` Optikos
2019-07-27 20:17     ` Optikos
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox