News for hackers. Stuff that matters.
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.
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.
Re:I'm Not a Fan of Strlcpy(3) by taeric on Monday July 15, 2024 @10:12AM (#40968062)
I feel this successfully upgrades a gun into a canon?
Re:I'm Not a Fan of Strlcpy(3) by TeMPOraL on Monday July 15, 2024 @10:29AM (#40968192)
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.
Re:I'm Not a Fan of Strlcpy(3) by layer8 on Monday July 15, 2024 @11:16AM (#40968606)
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]

[0]: https://news.ycombinator.com/item?id=36231313