News for hackers. Stuff that matters.
Re:Text Editing Hates You Too by eesmith on Tuesday October 29, 2019 @03:44AM (#21384917)
It seems less than graceful to respond to articles which point out the existence and difficulty of problems by saying it's fixed. The entire point is to show how it's more difficult than many think, not elide the issues.

What does POSIX have to do with anything? Eg, the tz database isn't POSIX.

Re:Text Editing Hates You Too by ggm on Tuesday October 29, 2019 @04:11AM (#21385036)
The POSIX spec of date time specified conversions into a neutral form. Maybe it's C centric thinking but it felt like a problem which has existed and been solved by writing a 'russian interpreter' solution: convert the values on the edge to a canonical form and use functions which manipulate the canonical form. The TZ files i only mention because within the limit of modern epoch Times and dates they do a pretty good job of handling the minutia of what a local time means in any given period.

I'm sorry if I came across as churlish. Do you feel this is a problem of concept in abstract, or in java, or in java implementation or what? I feel it's a problem which I solve, by standing on the shoulders of smarter people and using the code they wrote. I don't reimplement the wheel because I distrust my own wheelmaking skills.

I'm sure there are heaps of non-trivial corner cases I don't have to deal with and I do not mean to minimise work done to explain a problem.

Re:Text Editing Hates You Too by ptx on Tuesday October 29, 2019 @05:14AM (#21385272)
The problem would be, I think, when your business logic is concerned with some subtle aspect of Russian, you translate into canonical English and the detail you're interested in disappears.

When it comes to timestamps, how do you handle midnight for example? 24:00 today represents the same instant as 00:00 tomorrow. The difference might matter to the user but disappears when converted to Unix timestamps.

Re:Text Editing Hates You Too by eesmith on Tuesday October 29, 2019 @05:42AM (#21385403)
dvt's top-level comment was "Things we take for granted are hard."

Your response took things for granted.

dvt originally wrote "We stand on the shoulders of giants."

You commented "I feel it's a problem which I solve, by standing on the shoulders of smarter people and using the code they wrote."

It came across as totally missing dvt's point.

I picked Russian because I was thinking of an essay by Douglas Hofstadter. Quoting myself at https://news.ycombinator.com/item?id=16289783 :

> I think it was in Godel, Escher, Bach where he talks about the problem of translating a line from Russian, along the line of "He lived on B____ street." It's possible from the story, which takes place in a real city, to figure out which street that was. Let's say it was "Main Street". Does the English translation keep the original Russian word and initial? Does it translate to "Main Street" and replace the "B" with an "M"?

You can use a Russian-English translator to get a translation into English. But that doesn't help understand the hard problems involved, which was the point of Hofstadter's essay. (See, for example, his "The Shallowness of Google Translate" in The Atlantic; HN comments at https://news.ycombinator.com/item?id=16267363 and in dupes.)

Re:Text Editing Hates You Too by chrisweekly on Tuesday October 29, 2019 @08:28AM (#21386347)
This reminds me of Milan Kundera's "Testaments Betrayed", which expresses the profound challenge (near impossibility) of translations doing justice to original works.
Re:Text Editing Hates You Too by Loranubi on Tuesday October 29, 2019 @09:53PM (#21393944)
Popular instance of that example is R.A.B. from Harry Potter.