On dmd 2.112, future releases, and LTS

monkyyy crazymonkyyy at gmail.com
Sat Jul 26 03:41:06 UTC 2025


On Saturday, 26 July 2025 at 00:53:45 UTC, Walter Bright wrote:
> On 7/15/2025 10:05 AM, monkyyy wrote:
>> its shocking how much of my weird template code on "all 
>> compilers" fails because of my habit of "import std;"
>
> "import std;" is probably something to be avoided:
>
> 1. it's going to make your compile s l o o o w

1. no, import std is less impactful on compile times then the dub 
overhead that the majority of the community thoughtlessly pushes. 
My code compiles effectively instantly and always has.

> 2. if something goes wrong, you've got a giant morass of code 
> to slog through, 99% of which will be irrelevant to your program

I treat this language as black boxes; I dont trust the spec, I 
dont read the page long rants called docs, when something breaks 
I write 10 lines of code and not untangle your 1000 line 
implementation.

It makes no difference how I import phoboes, as everything in 
phoboes imports everything else. its all a mess, its all complex, 
its all hard to read, 10000 lines or 100000 lines doesn't matter 
Im not functioning on a level where I can do anything but declare 
bankruptcy when it breaks.

Your 30 or 40 years of experience with one code base may say 
otherwise, but you have so much tech debt here. Theres no 
catching up to your expertise; its a brick wall.

I push for heavy syntax testing, which is to say minimizing buggy 
code preemptively, assuming the bugs are there because so often 
they are; its better to write 10 lines of code around an 
untrusted black box to see it it can be trusted then write 1000 
lines and *when* the bug hits you iterate down to the 10+ some 
piece of phoboes/template bugs that break.


More information about the Digitalmars-d mailing list