News for hackers. Stuff that matters.
Re:Can’t send email more than 500 miles (2002) by sudobash1 on Tuesday September 19, 2023 @05:45PM (#37577249)
Every time I read this story the part that always surprises me again is the units command. Converting from 3 millilightseconds to miles is brilliant, and I am delighted every time that the units command can do this.
Re:Can’t send email more than 500 miles (2002) by dredmorbius on Tuesday September 19, 2023 @05:51PM (#37577340)
kragen posted a several of excellent comments highlighting the capabilities of GNU Units a couple of months back, these two in particular:

<https://news.ycombinator.com/item?id=36988917>

<https://news.ycombinator.com/item?id=36995046>

And Trey Harris's "500 mile email" story is what clued me on to GNU units and its capabilities.

Reminder: if you're on MacOS, or one of the BSDs, your default units is from BSD, not the GNU version, and is far less capable. GNU units can be installed on MacOS through Homebrew. The package is "gnu-units", the command is "gunits" once installed.

Edit: Corrected Homebrew package name.

Re:Can’t send email more than 500 miles (2002) by RobotToaster on Tuesday September 19, 2023 @06:24PM (#37577803)
It's also in chocolatey for windows
Re:Can’t send email more than 500 miles (2002) by dredmorbius on Wednesday September 20, 2023 @04:52AM (#37581966)
Should also be in Cygwin as well as be installable through WSL.

(I've not touched MS Windows in a couple of decades now.)

Re:Can’t send email more than 500 miles (2002) by dementik on Tuesday September 19, 2023 @05:58PM (#37577457)
Actually,

brew install gnu-units

Re:Can’t send email more than 500 miles (2002) by dredmorbius on Tuesday September 19, 2023 @06:24PM (#37577811)
Gah! Thanks, corrected above.

(I run the command far more often than I install the package.)

Re:Can’t send email more than 500 miles (2002) by chungy on Tuesday September 19, 2023 @07:55PM (#37578723)
GNU Units is also available in FreeBSD ports, just type "pkg install units" (or go to /usr/ports/math/units and "make install"). It likewise gets the binary name "gunits"
Re:Can’t send email more than 500 miles (2002) by ashton314 on Tuesday September 19, 2023 @05:53PM (#37577379)
My units command (on macOS) doesn't have it. :/ Is there a better version out there?
Re:Can’t send email more than 500 miles (2002) by drpossum on Tuesday September 19, 2023 @06:33PM (#37577928)
Yes, you want the gnu units. It's in homebrew as gnu-units (and you run it as gunits)
Re:Can’t send email more than 500 miles (2002) by searealist on Tuesday September 19, 2023 @07:24PM (#37578457)
He made the story up. When confronted with the fact that units didn't convert some of the units from his story his response was essentially "Oh yeah, well of course I always supplemented my units definitions on all my machines with obscure units.".
Re:Can’t send email more than 500 miles (2002) by Cyphase on Tuesday September 19, 2023 @07:37PM (#37578567)
Do you have a source for that?

EDIT: #19 here https://www.ibiblio.org/harris/500milemail-faq.html

Re:Can’t send email more than 500 miles (2002) by searealist on Tuesday September 19, 2023 @07:38PM (#37578579)
Check his own FAQ.
Re:Can’t send email more than 500 miles (2002) by vore on Tuesday September 19, 2023 @10:27PM (#37579745)
I don't think that's enough evidence to claim he made the whole story up.
Re:Can’t send email more than 500 miles (2002) by chungy on Tuesday September 19, 2023 @07:57PM (#37578740)
These potential anachronisms are easy to insert when retelling a story. It doesn't really mean he "made it up", but reverse engineering how the diagnostic was determined might lead one to use tools/definitions that didn't exist at the time.

It's also entirely plausible that a local definitions file was used to provide the unit that didn't come in the default install. Hence the anachronism is merely "potential" instead of "definite"

Re:Can’t send email more than 500 miles (2002) by dmckeon on Tuesday September 19, 2023 @07:59PM (#37578754)
Anyone who likes the units command should plan an evening where they can sit in a comfortable chair with an appropriate beverage, and read all the comments in the data file in the source. It is like a novel about the history of measurement.
Re:Can’t send email more than 500 miles (2002) by WillAdams on Tuesday September 19, 2023 @08:43PM (#37579074)
If only it had been written as a Literate Program, it would have been.