News for hackers. Stuff that matters.
Re:UTF-8 is a brilliant design by btown on Friday September 12, 2025 @03:48PM (#45225970)
This is Python; finding new ways to subscript into things directly is a graduate student’s favorite pastime!

In all seriousness I think that encoding-independent constant-time substring extraction has been meaningful in letting researchers outside the U.S. prototype, especially in NLP, without worrying about their abstractions around “a 5 character subslice” being more complicated than that. Memory is a tradeoff, but a reasonably predictable one.

Re:UTF-8 is a brilliant design by meindnoch on Saturday September 13, 2025 @08:36AM (#45231559)
>without worrying about their abstractions around “a 5 character subslice” being more complicated than that

Combining characters still exist.