Thoughts about D

Adam D. Ruppe destructionator at gmail.com
Fri Dec 1 03:43:07 UTC 2017


On Friday, 1 December 2017 at 03:23:23 UTC, Walter Bright wrote:
> 26 bytes of inserted Bloaty McBloatface code and 15 bytes of 
> data. My proposal:

I suggest we break up the -release switch into different options. 
I never, never use -release since it implies no bounds checking. 
But if we wanted small asserts, we'd ideally like -slimassert 
perhaps to change that behavior without killing arrays too.

> 0011:           hlt                                // look ma, 
> 1 byte!

BTW, are you against using `int 3` as the opcode instead? (0xCC)

hlt kinda bothers me because it actually has a meaning. You're 
just abusing the fact that it is privileged so it traps on 
operating systems, but on bare metal, it just pauses until the 
next interrupt.

int 3, on the other hand, is explicitly for debugging - which is 
what we want asserts to be.


More information about the Digitalmars-d mailing list