Get the latest tech news

5 Years Later: The First Win


N3366 - Restartable Functions for Efficient Character Conversions has made it into the C2Y Standard (A.K.A., “the next C standard after C23”). And one of my longest struggles — the sole reason I actually came down to the C Standards Committee in the first place —

Doing things the right way meant I was signing up for not just a quick, clean, 1-year-max brisk journey, but a deep dungeon dive that could take an unknown and untold amount of time. I had to take a completely different approach from iconv and WideCharToMultiByte and uconvConvert and mbrtowc; I would need to turn a bunch of things upside down and inside out and come up with something entirely new that could handle everything I was talking about. The specification also makes it so they don’t have to accumulate data in the mbstate_t except for radical stateful encodings, meaning there’s no ABI concerns for their existing stuff so long as they’re careful!

Get the Android app

Or read this on Hacker News

Read more on:

Photo of years

years

Photo of win

win

Related news:

News photo

Marriott reaches $52 million settlement over years of data breaches

News photo

Uber CEO Says Autonomous Ride Margins Will Take Years to Grow

News photo

Nobel Chemistry Prize goes to AlphaFold, Rosetta creators - another win for AI