Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Sep 2024 19:01:02 +0000
From:      Paul Floyd <paulf2718@gmail.com>
To:        freebsd-hackers@freebsd.org
Subject:   Re: The Case for Rust (in any system)
Message-ID:  <4cd2a84b-ec98-4270-a698-c7832402799f@gmail.com>
In-Reply-To: <CAGBxaXnwfKeODg86Y40HjgzycRU2UKB7r4LS-EZE=BeTTH7AJQ@mail.gmail.com>
References:  <CAOzHqcJ0rOR4CoL84WgZQNcgY2G9vuiHccE4XT_otJ2R51KJ3Q@mail.gmail.com> <2EE309BF-CE1D-48AD-9C53-D4C87998B4A0@freebsd.org> <CAOzHqcJs2Ls9rG-X9%2Bjsc=Z2XHvh_eo=5jyFSaTDc6kUMK8vPg@mail.gmail.com> <2D0F93DC-36DA-4FB9-BFD2-D7678EC03CD7@FreeBSD.org> <CAGBxaX=N_%2BvtF1HpM9OqUN-6O3AFTPj65UA04d8h74D=Y6Kf2g@mail.gmail.com> <9924d197-1b3f-4781-9fe0-20579c8e9066@gmail.com> <CAGBxaXnwfKeODg86Y40HjgzycRU2UKB7r4LS-EZE=BeTTH7AJQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help


On 13-09-24 12:24, Aryeh Friedman wrote:
> On Fri, Sep 13, 2024 at 7:59 AM Paul Floyd <paulf2718@gmail.com> wrote:

> 
> Incorrect a pointer by definition points to a memory region of

It's really difficult to follow what you are banging on about. One 
moment it's allocators and the next it's pointers.

> *UNKNOWN* size and it is only the runtime environment that keeps track

I'm well aware of that.

> Malloc is not the *ONLY* way to allocate memory at the system level an

You could also implement your own custom allocator based on mmap.

> Go read CLRS it is a very clear and obvious algorthm the only thing

You mean this bit

"10.3 Implementing pointers and objects
How do we implement pointers and objects in languages that do not 
provide them?"

What is the point. We are discussing languages (C, C++ and Rust) that DO 
have them.

> you have to be careful of is it is not O(1) so you need to time it
> carefully when I do the expanson/contraction instead of just letting
> the runtime environment do it for you.    An extreme case of this
> going very wrong happened in July 1969 here is the transcript:
> 
> 4 06 42 10 CC
> Eagle, Houston. You're GO for landing. Over.

Space cadet?

A-
Paul




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4cd2a84b-ec98-4270-a698-c7832402799f>