Max Haughton

Results 103 comments of Max Haughton

> These switches are surprisingly useful in understanding how the dmd backend generates code. They used to be available only in debug builds of dmd, but they are so useful...

> This isn't good, I had to check but LDC doesn't offer debugging of the backend as cli options (at least via --help). > > Most people should never need...

It's also probably worth noting that git is not really a model for UI or UX

Pahole has been doing this for years and works fine today. The only issue is that it hasn't kept up to date with certain modern DWARF constructs, but it works...

Also, this is probably going to be useful to people, but re: dmd memory usage. I didn't find anything particularly egregious inside dmd data structures when just taking padding into...

Now, pahole again: The output will do look something like this. This is dmd's debug info after compiling itself. ```c struct _Array_char { ulong length; /* 0 4 */ /*...

The keen eyed observer of my previous comment may notice that dmd debug info is ~~crap~~ subpar, e.g. in this short example we can see that even on a 64...

> > It's trivially done with core.reflect. https://forum.dlang.org/thread/[email protected] > > Again, this is not about what's possible, it's about what's _trivial_ for _any_ user, newbies included, to just activate for...

See my above comment about pahole. For cache misses specifically, you can optimize to get more bounce to the ounce (i.e. you can fit more ints than longs in one...

This is solely intended to be available to things like dub so one can depend on multiple versions of a given module in the same dependency tree. I guess in...