Re:I'm Not a Fan of Strlcpy(3)
by taeric on Monday July 15, 2024 @10:02AM
(#40967994)
Honestly, any language where you are manipulating strings is a footgun. Especially if you are manipulating text, and not character data. You can avoid many errors, but almost certainly not all. And as soon as you have someone that thinks they can piecewise localize any text, heaven help you.
[ Parent
| on HN ]
Re:I'm Not a Fan of Strlcpy(3)
by bruce343434 on Monday July 15, 2024 @10:04AM
(#40968009)
With the up and coming browser LLM API, you could just have the LLM translate everything on the frontend. One of the few tasks that LLMs are consistently good at.
I feel this successfully upgrades a gun into a canon?
A modern artillery gun, where each shell costs upwards of $1K apiece, and lord have mercy on you if it ever goes off inside the barrel.
LLMs are not “consistently good” at translating UI text, because a proper translation requires understanding the application and the application context of each piece of text.
Re:I'm Not a Fan of Strlcpy(3)
by colejohnson66 on Monday July 15, 2024 @12:27PM
(#40969254)
Yes. Context is very important. Otherwise, you end up compressing files into a "postcode file".[0]