Skip to main content

Timeline for Literate Programming in Base 26

Current License: CC BY-SA 4.0

13 events
when toggle format what by license comment
Nov 13, 2023 at 0:11 comment added Jonathan Allan @doubleunary without using a bijective system a program would have the same value as itself with any or all leading zero-bytes removed, but these are clearly different programs.
Nov 12, 2023 at 23:50 comment added doubleunary The requirement to convert to base 256 using 1-256 seems artificial. In my book, base 10 uses 10 numerals with values between 0-9 and base 256 uses 256 numerals with values between 0-255.
Nov 12, 2023 at 23:04 comment added Jonathan Allan Does "an array of bytes" mean we may take a list of integer ordinals? (e.g. [99, 97, 116] in place of "cat".)
Nov 12, 2023 at 22:06 answer added Jonathan Allan timeline score: 7
Nov 12, 2023 at 20:51 comment added Command Master @corvus_192 regardless of your program containing letters, you look at its bytes, and perform the procedure in reverse to get the base 26 representation. For example, if your program has bytes [56, 63, 190] then its base 26 is hello.
Nov 12, 2023 at 20:48 comment added Command Master @NickKennedy no, I haven't
Nov 12, 2023 at 20:48 comment added Command Master @doubleunary \$57\cdot 256^2 + 64\cdot256+191\$ yields [56,63,190] because in bijective numeration the digits are 1–256, so we subtract 1 to get bytes. See the last step.
Nov 12, 2023 at 20:32 comment added corvus_192 If my programs contains non-letters, how do I represent them using base 26?
Nov 12, 2023 at 19:22 comment added Nick Kennedy Have you solved this yourself yet? From an initial attempt, this seems hard. Writing a program that meets the spec is relatively easy; modifying it to have a ‘literate’ reverse translation seems really hard.
Nov 12, 2023 at 17:40 comment added doubleunary Please also explain why \$57\cdot256^2 + 64\cdot256 + 191\$ yields [56, 63, 190] rather than [57, 64, 191]. Does that imply that byte 255 becomes 254?
Nov 12, 2023 at 16:58 comment added doubleunary Please show an example of how to apply the first rule: some code and what the code looks like converted to base 26 using bijective numeration.
Nov 12, 2023 at 2:50 history edited Command Master CC BY-SA 4.0
added 141 characters in body
Nov 12, 2023 at 2:35 history asked Command Master CC BY-SA 4.0