[OT] Move semantics in a nutshell
monkyyy
crazymonkyyy at gmail.com
Tue Nov 11 17:35:38 UTC 2025
On Monday, 10 November 2025 at 16:53:28 UTC, Timon Gehr wrote:
> It's a prime example of undefined behavior in action that
> illustrates that the scenarios I brought up are realistic in
> the context in which you had placed them.
**well-defined undefined behavior**; rants in a spec.
I know that every math textbook possibly for every year of school
disagrees with 1/0==int.max(possibly those math text books out
number humans); and compilers are very very very clever detecting
when they can change how your code works obeying such a spec with
1000000 lines of code in llvm to enable what c++ does and this
takes an hour of computer to handle these massive projects. and
theres the cve database, theres the iso standards there nist,
ieee float spec and blah de blah
There was a 50 step process that created the last memory exploit
with hyper autists quoting formal texts for why they were right
to let it happen.
So much to know, such big words, all tabulated and organized.
---
... judge a tree by its fruits
Its called "undefined behavior" yet its in these books, we can
all just look at the results, theres plenty of learning resources
about each, theres rants on forums on each little elemental
design flaw and why its a "impossible to fix" problem.
The unknowable behavior is running 1000000 lines of code written
by 10000 people, and thats the cause of the ransom ware. It
wasn't the so called "undefined behavior" of being lazy and
missing a bounds check, each step of the long process is quite
aware people miss bound checks and we all have direct experience
with segfaults.
Its impossible to comprehend the ever growing machine, but you
can simply have the arrogance to say its wrong and just do
things. We are defining things all the time, make new elemental
pieces to solve problems even if people say they are hard and
require the big pile of complexity or cite the big pile of
complexity inability to solve it.
ez as `1/0==int.max`, yes, I know what a math book would say and
have seen a calculator. Cut the Gordian knot.
More information about the Digitalmars-d
mailing list