www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - progress-dmd: compilation with a progress bar

reply FeepingCreature <feepingcreature gmail.com> writes:
https://gist.github.com/FeepingCreature/6c67479c99bc0f20544d1e455622ae82

Usage: DMD=<path> progress-dmd <args>

The script sets -v and then uses the code and semantic stages 
logged in the output to paint a cute little ANSI-colored progress 
bar, with one character for every file listed on the command line.

Problems:

  - lots of time spent in function compilation cannot be cleanly 
attributed to a source module
  - sometimes with very long progress bars, regular compiler 
output can leave pieces of progress bar behind
  - colored progress bar painting is surprisingly hard
Feb 22 2019
parent Stefan Koch <uplink.coder googlemail.com> writes:
On Friday, 22 February 2019 at 08:36:24 UTC, FeepingCreature 
wrote:
 https://gist.github.com/FeepingCreature/6c67479c99bc0f20544d1e455622ae82

 Usage: DMD=<path> progress-dmd <args>

 The script sets -v and then uses the code and semantic stages 
 logged in the output to paint a cute little ANSI-colored 
 progress bar, with one character for every file listed on the 
 command line.

 Problems:

  - lots of time spent in function compilation cannot be cleanly 
 attributed to a source module
  - sometimes with very long progress bars, regular compiler 
 output can leave pieces of progress bar behind
  - colored progress bar painting is surprisingly hard
Nice idea awesome stuff! Cheers, Stefan
Feb 23 2019