Date: Thu, 31 Jul 2025 21:21:28 +0300
On 31 Jul 2025 21:15, zxuiji wrote:
> You can't just redfine the meaning of a pointer, asm defined it years
> ago and C etc just have to follow on, and asm defined it to have
> arithmetic so arithmetic it shall, *always*. If a vendor decides to make
> the add instruction throw an exception then the CPU is already dead in
> the water because no gamer will want it, no business will need it for
> their server more than one that allows it, there is literally no value
> to disabling pointer arithmetic and only cons.
I'm sorry, but this is just pure nonsense. ASM has nothing to do with
anything, being just a textual representation of hardware instructions.
I take it you argue that conventional hardware doesn't provide dedicated
instructions for checking pointer validity, but you have been told that
such hardware does exist and is deemed useful.
And C++ is not ASM on steroids, mind you. While it does allow quite
low-level code, if you want it, it does provide its own abstractions and
rules that allow it to be portable across variety of hardware. In
particular, pointers, as they are defined in C++, are distinct from
integers, which is something low-level programmers tend to forget at times.
PS: Please, don't top-post.
> You can't just redfine the meaning of a pointer, asm defined it years
> ago and C etc just have to follow on, and asm defined it to have
> arithmetic so arithmetic it shall, *always*. If a vendor decides to make
> the add instruction throw an exception then the CPU is already dead in
> the water because no gamer will want it, no business will need it for
> their server more than one that allows it, there is literally no value
> to disabling pointer arithmetic and only cons.
I'm sorry, but this is just pure nonsense. ASM has nothing to do with
anything, being just a textual representation of hardware instructions.
I take it you argue that conventional hardware doesn't provide dedicated
instructions for checking pointer validity, but you have been told that
such hardware does exist and is deemed useful.
And C++ is not ASM on steroids, mind you. While it does allow quite
low-level code, if you want it, it does provide its own abstractions and
rules that allow it to be portable across variety of hardware. In
particular, pointers, as they are defined in C++, are distinct from
integers, which is something low-level programmers tend to forget at times.
PS: Please, don't top-post.
Received on 2025-07-31 18:21:32