- Home
- Software
- Threads FAQ
- A glossary of terms used in threaded programming
- About the multithreaded programming FAQ
- After I create a certain number of threads, my program crashes [Unix]
- Asynchronous thread cancellation [Unix]
- How can I perform a join on any non-specific thread? [Unix]
- Mixing threads and signals [Unix]
- The history of threads
- What are the main families of threads?
- What is a thread?
- Why are reentrant library and system call interfaces good?
“Better protection against rare crashes on really huge volumes of data.”
What constitutes a “really huge volume of data”?
It sounds great. I did have one issue though – I upgraded, but the text-icu package on Hackage still seems to depend on text 0.9. Since I’m using the unicode normalisation from text-icu, I can’t use the new version of text. Is it easy/possible to get text-icu to work with the latest version of text?
Chris, thanks for bringing that to my attention. text-icu 0.6.2.1 is now out, with updated deps. Sorry for the delay!
Hi Bryan, I was wondering if I could make a request. In your text-icu library you have a function charFullName which takes a unicode character and maps it to the unicode character name (e.g. LATIN CAPITAL LETTER A WITH ACUTE).
I can’t find any way to go the other way, to start from a full name and get the unicode character which corresponds to it. Is there any easy way to do this that I’m missing?
If not, could I request if for some future release? I guess I could write a function myself just by scanning all the possibilities, but that is likely to be very slow.
Since I think you use Python as well, I can give an example of a function that does this. In Python, unicodedata.lookup(name) will map a name to the character that it corresponds to.
Sorry to keep spam you: just to let you know that I tried
lookupCharName name = head . filter ((==name) . charFullName) $ (map chr [1..])
(which is obviously unsafe) to see how fast it is, and is actually surprisingly speedy. Something similar but a bit safer is probably good enough for my purposes, although undoubtedly the ICU library will be able to do the mapping a lot faster than that function can.
Chris, I just uploaded text-icu 0.6.3.0, which has the function you need.
Hi Bryan, thanks a lot for your help. I appreciate it.