Message from JavaScript discussions

June 2017

— Oh

— 

Lets have some scenario... lets say we went with nested precision char codes. We have to not only account for strings shorter than the precision setting, but also equal or higher...

— You're right

— Ugh..

— Hmm

— Imagine all of these are 65535-length arrays except for the last one, with each of those numbers being both an index and the char code (same thing). This is for string "ALOHA"

_list = [

  65: [

    76: [

      79: [

        72: [

          65: [

            5: [ "ALOHA" ]

          ]

        ]

      ]

    ]

  ]

]

Message permanent page

— Now that is with 5 precision... what if we add "HI"?

— It quickly gets messy!

— It would not work currently as we don't do any check to know "does THIS char code have a length array or just another char code array"?

Message permanent page

— It can have both, if we insert a string smaller than precision

— There has to be some way to use just two arrays... some sort of interval tree that overlaps maybe?

— The problem is we can't use a traditional object-based tree. Keeping everything numeric arrays is great for speed by a huge amount

Message permanent page