🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #39

Re: Optimization by programmers

#39
From: Terje Mathisen
Date: Sun, 11 Oct 2026 18:56
26 lines
2275 bytes
MitchAlsup wrote:
> 
> Terje Mathisen <terje.mathisen@tmsw.no> posted:
> 
>> Dan Cross wrote:
> ---------
>>
>> My old asm/C brain _knows_ that a slice of something with a known
>> address and total length is effectively the same thing as an unmutable
>> array.
> 
> Can I get a definition of what mutable in Rust means ??

It does mean that the function which receives a non-mut parameter, or 
itself declares som non-mut local variables, cannot modify any of them.

So yes, very similar to "not const".

You can discuss if its a good idea to make non-mutability the default 
instead of the opposite. Personally I like that part.

Terje

-- 
- <Terje.Mathisen at tmsw.no>
"almost all programming can be viewed as an exercise in caching"
Technical Details
Message-ID: <11agm4p$2tfut$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <1177fdi$26ea4$1@dont-email.me> <11a3ofn$2ak3s$1@dont-email.me> <11a5hd5$4qb$1@reader2.panix.com> <11a5lqo$2v5bq$1@dont-email.me> <11a6870$41j$1@reader2.panix.com> <11a6a6h$37i1n$1@dont-email.me> <1791742457-5857@newsgrouper.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: Terje Mathisen <terje.mathisen@tmsw.no>
Newsgroups: comp.arch
Subject: Re: Optimization by programmers
Date: Sun, 11 Oct 2026 20:56:23 +0200
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <11agm4p$2tfut$1@dont-email.me>
References: <1177fdi$26ea4$1@dont-email.me> <11a3ofn$2ak3s$1@dont-email.me>
 <11a5hd5$4qb$1@reader2.panix.com> <11a5lqo$2v5bq$1@dont-email.me>
 <11a6870$41j$1@reader2.panix.com> <11a6a6h$37i1n$1@dont-email.me>
 <1791742457-5857@newsgrouper.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 11 Oct 2026 18:56:29 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="3063773"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18eUcw/kS2LkKYqtamvKvXj6QUMZycP8fRHOvwz0iCJ0Q=="; posting-host="65be3d12542c25b2eed293c7f0956b96"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:140.0) Gecko/20100101
 Firefox/140.0 SeaMonkey/2.53.24
Cancel-Lock: sha1:YrtGZAw0bcW5exQLXcDS4sixM7Q= sha256:cvLHvlUT2N8+zg7sXZsiCZhhuieba6UIFnlAJOh3Ys4=
	sha1:ZDhDRREp/S7ZvnCRe98aZ/FEqJY= sha256:9kXUX8oSYK79sXKZAJqBvbGV6vvcmc8yWFqnfRH/znQ=
In-Reply-To: <1791742457-5857@newsgrouper.org>