Pay as you go is really going to make a difference
IGotD-
nise at nise.com
Wed Jan 22 10:51:37 UTC 2020
On Wednesday, 22 January 2020 at 10:38:54 UTC, aberba wrote:
>
>> Just look at a simple - statically linked - "hello world" DMD
>> compilation result,
>> how many C64 times floppy discs (180KByte) you would need to
>> store?
>
> That's the issue I wanted to address with the thread. Why is a
> simple 5 lines of code compiling to such a large binary. That's
> a typical example of bloat.
You have the same problem with C++ if you statically link the C
and C++ library, then it will easily become over 2 MB. Many don't
care because default is that you dynamically link those libraries
in C++.
Problem is that D depends on the C library which can be
statically linked and then it also becomes bigger. Even if you
use just a very small portion of it, it has a tendency you just
include everything anyway.
Many languages suffer from the C lib dependency which is kind of
suboptimal. It is time to depreciate that dependency.
More information about the Digitalmars-d
mailing list