What's the current state of the art for module compilation?
monkyyy
crazymonkyyy at gmail.com
Sat Nov 28 18:22:07 UTC 2026
On Saturday, 28 November 2026 at 14:18:55 UTC, Mengu wrote:
> I asked it to not to ignore the d spec meaning I believe you
> can leverage the tool a thousand times better than I can
Ignore the spec, its a wishlist and contains several impossible
things; `__trait(compiles` touches the halting problem, .di files
are impossible to be correct in general, theres one throw away
line about matching the c abi that turns out to effect 70%-ish
decisions in some way, etc. Always test what the compiler
actually does under abuse when considering patterns.
The spec all delusionally declarative when the compiler is
imperative with speed tradeoffs and consistency goals between the
compilers.
Look at the docs for countUntil, it can never be indexOf, why? I
eventually complained enough to get a partial warning about
strings but its still a declarative warning it declares its user
error to use it with strings and a pile of template constraints.
But its in the name the function "counts" "until" it finds the
filter, which cant be entirely correct given that popFront makes
no promises on distance travelled; hope the reader connected the
dots by themselves on that, hopefully they read
std.range.interface at the same time right. All the docs are
written in this ass backwards philosophy of ass-covering before
understanding-transmission.
I cant fix other peoples mental blocks on mine vs the standard
epistemology, if they wont practice the following conclusions in
a different mental model. I say 1/0==int.max, 95% of people cite
their math teacher or an different appeal to authority; blah blah
blah, they aint going to practice using the useful template bugs;
so they airnt going to see(and practice predicting) the effects
of template order of operations when its loudest.
More information about the Digitalmars-d
mailing list