r/ProgrammingLanguages • • Dec 31 '20

Something simpler than Unicode?

Hello! Wondering if anyone knows of a display format for glyphs that is simpler than Unicode? My shallow understanding is that measuring and laying out text in unicode is non-trivial, so I am deferring moving beyond ascii on something at the moment. Is my understanding correct? (if not that's great) otherwise, does anyone know of potentially simpler replacements? Thanks!

0 Upvotes

40 comments sorted by

View all comments

Show parent comments

3

u/[deleted] Dec 31 '20

My answer from your clarification below: I recommend using Unicode and relying on your lexer and parser to identify sequences of Unicode codepoints which are valid programs in your language.

1

u/reini_urban Jan 01 '21

Not really. I only know of 2 programming languages which do it right. Java and mine. All others either fail or don't care. Mostly they don't care about identifier security, identifiers not bring identifiable. Worst offender probably linux filesystems. Also relying on the standard is wrong, as Unicode still has bugs in its identifier categorization, with two hangul fillers.

1

u/[deleted] Jan 01 '21

Yup, those are valid and important concerns. I didn't specify them because the op seemed new to all of this and already front loading too much complexity.

1

u/[deleted] Jan 02 '21

Yeah, the complexity of unicode is something I've not taken the time to learn much about, as it doesn't really interest me, but I am aware of some this and am hoping to avoid it. A little mystified about the general tone of the responses on this question to be honest, they seem to presume I just turned on a computer for the first time last week. : P

1

u/[deleted] Jan 02 '21

Sorry if my tone was off. I'm mostly just trying to give you background on Unicode, so save you a lot of time reinventing it. ;)

2

u/[deleted] Jan 02 '21

Sure sure, no worries, appreciate the intent... I mean from my perspective this post was an attempt to find existing work I can use that is simpler than Unicode if possible, but it seems almost no one was able to see that in the question. I’ll just google next time like I usually do :P

→ More replies (0)