A lot here, but just on the formatting (see below):
 
In many cases a single-digit hits the sweet spot (up to 8 cores running
worker threads plus one 'master' thread).  An underscore or (my preference)
a blank before the thread number is good.
 
I don't see any value in 'two digits right-adjusted' ... unless matching
threads to cores for performance then there is no reason to limit the number
of threads (consider a web server like GoServe that gives each incoming
request a new thread, or a neuron simulation where each neuron has its own
thread).  If you have more than 9 you could well be in the hundreds or
thousands -- and you don't want to add any more padding than necessary.
Note, too, that for any given thread the number will be the same length so
the program text for that thread will line up correctly.
 
Mike

Maybe the legibility/spotting of the thread number could be improved (maybe
not) by injecting an underscore right before the thread number, the
two-digit thread number scenario could be probably handled by formatting by
default for two right-adjusted digits with underscore as pad character. 


So Mike's short example: 


14 *-*   dthen=dthen.i

   >C3>     DTHEN.I => "DTHEN.1"

   >V3>     DTHEN.I => "2023-03-26"

   >>3>     "2023-03-26"

   >=3>     DTHEN <= "2023-03-26"

would then look like:

14 *-*   dthen=dthen.i

   >C_3>   DTHEN.I => "DTHEN.1"

   >V_3>   DTHEN.I => "2023-03-26"

   >>_3>   "2023-03-26"

   >=_3>   DTHEN <= "2023-03-26"

or with two digits right-adjusted (keeping every number for better
legibility right adjusted and aligned even if more than nine threads are
executing) something like:

14 *-*   dthen=dthen.i

   >C__3>  DTHEN.I => "DTHEN.1"

   >V__3>  DTHEN.I => "2023-03-26"

   >>__3>  "2023-03-26"

   >=__3>  DTHEN <= "2023-03-26"




If foregoing the possibility that there are programs that parse such output
one could use a space instead of an underline as pad such that the output
would look like:


14 *-*   dthen=dthen.i

   >C 3>   DTHEN.I => "DTHEN.1"

   >V 3>   DTHEN.I => "2023-03-26"

   >> 3>   "2023-03-26"

   >= 3>   DTHEN <= "2023-03-26"

or with right-adjusted with two digits place would then look like:

14 *-*   dthen=dthen.i

   >C  3>  DTHEN.I => "DTHEN.1"

   >V  3>  DTHEN.I => "2023-03-26"

   >>  3>  "2023-03-26"

   >=  3>  DTHEN <= "2023-03-26"

 

_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to