News for hackers. Stuff that matters.
Re:Emoji Under the Hood by goto11 on Friday March 26, 2021 @11:56AM (#26593581)
No it is not a program - at least not anymore than an ASCII string is a program.

It is just that there isn't a simple 1:1 correspondence between bytes and characters and glyphs as in unicode, so you cant just extract an arbitrary byte-sequence from a string and expect it to render correctly.

Re:Emoji Under the Hood by mojuba on Friday March 26, 2021 @01:00PM (#26594369)
> there isn't a simple 1:1 correspondence between bytes and characters and glyphs

There isn't a simple 1:1 correspondence between anything at all. The only definitive thing about Unicode strings is the beginning where you should start your parsing.

Then the way things are supposed to be displayed to be Unicode-compliant look more like some virtual machine analyzing the code. How is this different from any other declarative language?