From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-65-14.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Paul Rubin Newsgroups: comp.lang.ada Subject: Re: Carbon Date: Sat, 27 Aug 2022 18:32:25 -0700 Organization: A noiseless patient Spider Message-ID: <87ler9ywye.fsf@nightsong.com> References: <993af397-b615-44e7-ae8d-ec706f9b6098n@googlegroups.com> <5f819cdd-e763-4a96-aed5-545d57edac23n@googlegroups.com> <877d2u21ps.fsf@nightsong.com> <8735di1y6a.fsf@nightsong.com> MIME-Version: 1.0 Content-Type: text/plain Injection-Info: reader01.eternal-september.org; posting-host="29dde52fbcac84634dec39f37e61d211"; logging-data="463904"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/uMFQnZ0Afuy+gW+EGaXm9" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Cancel-Lock: sha1:YQOHDAwRFxOz9CBLS0WIS1Yf6WY= sha1:nKCYzOkVN1U2RjKriGxU5yvozcs= Xref: reader01.eternal-september.org comp.lang.ada:64233 List-Id: John McCabe writes: > However I've now come to believe the aim of the Carbon team is to re-create > C++ but in a way that doesn't require new features and changes to go > through the standardisation hoops that C++ goes through, i.e. so they can > basically change it at will (makes me think of early Java, where > depreciation was very, very common). Have they been changing Go at will? I don't have that impression. I do think they want to shed a lot of assumptions that were valid or sensible at the time C++ was first designed, and also to not have their design choices constrained by C++ legacy support. Go is sort of a recreation of C, with garbage collection and cooperative multitasking baked into the language. It otherwise has a fairly similar execution model and type system. It's not a C++ replacement both because of its GC dependence and its weaker type system. I haven't used Rust, but from what I can understand, its type system is Haskell-inspired and more modern than either C++'s or Ada's. Compared with C++, it gives its user better hope of code correctness through its use of safe defaults like immutable values and unique pointer ownership. You can override the defaults and get similar non-safety to C++, if you need that for some reason. What then is Carbon? I don't know, and I'm not convinced that you do either.