Path: csiph.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Tim Rentsch Newsgroups: comp.arch Subject: Re: Optimization by programmers Date: Thu, 01 Oct 2026 06:58:09 -0700 Organization: A noiseless patient Spider Lines: 27 Message-ID: <86pkxtplou.fsf@linuxsc.com> References: <1177fdi$26ea4$1@dont-email.me> <119btc7$1n32h$1@dont-email.me> <86bj9hr91x.fsf@linuxsc.com> <20260928195833.00001d42@yahoo.com> <119j4g4$4kn$1@reader1.panix.com> <119jbt5$cn3a$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Date: Thu, 01 Oct 2026 13:58:10 +0000 (UTC) Injection-Info: dont-email.me; logging-data="1275193"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+0R00qrggCwT0gcBfjJc2Te7oQMAj387Q="; posting-host="18a74afe15b7c222d977d31c18068e17" User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux) Cancel-Lock: sha1:OMkD6lK43ySoNHqO2qjeo7i8ZEA= sha1:OuVIRpzU4Qc0muDDRuwwvSdeFuM= sha256:mKcnzppeaLMDL7aru2JCIS78x2uM1RcP9DysVeDmjmM= sha1:38XL2GPOdwvXXpaDf8N2jurAQAw= sha256:I5XE4VL61RXVvr+p+sFFtwE8lKfx3DerbYnksv6gyPs= Xref: csiph.com comp.arch:118350 Terje Mathisen writes: [on learning Rust] > Quite often, when "fighting the borrow checker", typically because > I'm updating a complicated data structure in two locations at the > same time, I'll fall back to "write Fortran in Rust", with every > access indexed. > > This is BTW one of those problems the brand new upcoming borrow > checker is supposed to be far better at figuring out: If I'm > updating totally separate parts of the same larger structure, > then it should be OK to mutate both at the same time. > > I do realize that there are far more Rusty ways to solve this > type of issue, they just don't come naturally to me yet. (Please excuse my pursuing this non-arch topic...) Question for any Rusters in the group -- What is the best was to learn the Rust programming language? Which books or other documents are the best introductory or reference materials? Disclaimer: My experience with Rust is more than zero but not a lot more than zero.