Better HN
topnewbestaskshowjobs
Log inSign up

lopsidedBrain

129 karma · joined Feb 23, 2019 (7y ago) · 37 submissions

Submissions

comment 6y ago · link · parent

I think I'll disagree, and I'm someone with a native Asian language. A character doesn't mean anything in Asian languages, and any attempt to use a fixed-length encoding is pointless. The concepts you want instead are either a code point or a glyph. The concept of a code point is useful as a part (and not the whole) of Unicode-validating, encoding, and decoding. A glyph is useful mostly in rendering engines (i.e. webkit-internals and UI rendering frameworks). Okay, maybe they are also kind of useful for sorting and collating. But fixed-width character encodings are almost never useful, and invite programmer to make assumptions about how strings can be sliced.

Most server-side applications should never have to know what these concepts even are. Or any library that is not user-facing. They get bytes from the UI layer, and they can keep them as opaque bytes. For user-facing apps, you can ask your renderer library for a pixel-width or similar for a string, and let them handle how to parse it. Very little code ever needs to know about unicode.

Any kind of input-sanitization is vastly simplified in utf8, and that makes it worth it for me. For me the really troubling trends are conventions like Rust Utf8Error, where they can cause what I'd consider a UI-related exception in code that had no business even interpreting what those bytes are. Unfortunately, every API uses strings, so they are kind of hard to avoid. It introduces what I'd consider a software layering problem.

Maybe others here with more experience with internationalization can chime in and tell me I'm wrong.

comment 6y ago · link · parent

Huh, you're right. I guess I shouldn't be reading this on mobile.

comment 6y ago · link · parent

I would have really preferred a table of contents, either at the top or in a sidebar. It would have made it easier to skip over all the background materials that essentially rehashes an undergrad complier course.

comment 7y ago · link · parent

I've found it incredibly useful to seek out potential users, either in HackerNews, niche subreddits, or small local conferences/workshops. There you are likely to find small projects like your own, some of whom will find your stuff useful. A small community of even 3-4 people providing feedback and encouragement to your work can go a long way.

If I can't find anybody interested in my work, I will take a good look at whether my project is actually as useful as I thought it was, and if I need to reorient my goals. Usually it's because existing tools already solve the problem well enough, and I didn't do my background research. Or because I didn't even have a problem statement in mind to begin with. Or I'll find that I didn't write enough documentation. Feedback is invaluable.

Sometimes I will work on something just because it's fun, or because I'm learning new things. That's okay, but in that case I have made an explicit decision to not care about popularity or usage.

comment 7y ago · link · parent

Um, not really. Care to elaborate? If something is available open-sourced we're typically free to use it, as long as we are abiding by the license conditions.

comment 7y ago · link · parent

If you want to learn the underlying math for calculating these, I highly recommend Robert Gallager's "Stochastic Processes".

It was one of the more eye-opening math books I ever read.

comment 7y ago · link · parent

> Didn't find it added more value than other formal methods with less scope and ambition

For my own future reference, can you list a few other formal methods?

12