Unicode's transliteration rules are Turing-complete

(seriot.ch)

40 points | by beefburger 17 hours ago ago

9 comments

  • beefburger 17 hours ago

    I've been wondering for a while if anything in Unicode could accidentally compute. It turns out that UTS #35 transliteration rules are Turing-complete. I show how to compute Collatz with just 3 rewrite rules running on stock ICU.

    • bielok 16 hours ago

      Huh, very interesting find, and very lean website (:

  • ks2048 8 minutes ago

    Does the Latin-Katakana example given imply that some input value can cause it to not terminate?

  • dvt 15 minutes ago

    Who implements transliteration rules? I assume operating systems? Or text renderers?

    • kccqzy 12 minutes ago

      The ICU library. It’s so ubiquitous that it’s somewhat difficult to avoid this library if you are doing anything advanced with human text.

  • anankaie 35 minutes ago

    At this point it feels more difficult to ensure that your format cannot compute than to ensure it can

  • NooneAtAll3 36 minutes ago

    reminds me of Word's autocorrect being turing-complete https://www.youtube.com/watch?v=jlX_pThh7z8 (3:57, but whole video is fun)

  • linzhangrun an hour ago

    Waiting for someone to vibe a compiler targeting Unicode transliteration rules...

  • est 41 minutes ago

    Does it work on modern OS or just PyICU ?