Re:Eric Engstrom, co-creator of DirectX, has died
by etaioinshrdlu on Monday December 14, 2020 @05:28PM
(#25424240)
Can you tell us what this giant asm macro program was?
[ Parent
| on HN ]
Re:Eric Engstrom, co-creator of DirectX, has died
by WalterBright on Monday December 14, 2020 @05:44PM
(#25424381)
I don't think Eric told me, and if he did, I forgot. In those days asm was often used for efficiency, as compilers weren't that good compared to hand-coded asm. He knew I'd purposely written the disassembler to produce MASM source code, and thought I'd enjoy hearing about the use he put it to (and I did!).
BTW, this anecdote is one of the reasons that I've strongly resisted adding macros to D.
Re:Eric Engstrom, co-creator of DirectX, has died
by localhost on Monday December 14, 2020 @07:01PM
(#25425157)
Pretty sure this is also the reason why Anders never added macros to C# either.
Re:Eric Engstrom, co-creator of DirectX, has died
by monocasa on Monday December 14, 2020 @05:49PM
(#25424435)
FWIW, most large asm programs from back in the day relied heavily on macros just to have some semblance of abstraction.
Re:Eric Engstrom, co-creator of DirectX, has died
by WalterBright on Monday December 14, 2020 @07:44PM
(#25425564)
I know. I did, too. But over time, I used the macros less and less. More than once I've used Eric's technique to figure out exactly wtf some wretched macro was actually doing.
I also purged my own C and C++ code of macro usage.