{{pfw:banner.png}} ====== Programming Pearls ====== In this section we would like to collect and discuss examples that show idiomatic (Forth) programming style. * [[en:pfw:day-of-the-week|Day of the week]]: work with string sequences, map from number to string * [[en:pfw:print-hex|Print Hex]]: print hex numbers with variable number of digits, w/o <# # #> * [[en:pfw:condicompi|Conditional Compilation]]: process part of the program text depending on conditions and variants, ICE concept * [[en:pfw:population_20count|Population Count]]: counting the number of set bits in a byte or word * [[en:pfw:2log]]: The 2LOG routine converts a linear input into something with a more logarithmic character.