Live data from Hacker News

Rob Pike’s Rules of Programming (1989)

users.ece.utexas.edu

331–332 of 332 posts

Re: Rob Pike’s Rules of Programming (1989)

#331

Earlier quoted context omitted.

While true, that's too strict. An Abelian group (like any group) needs inverses. You get distributed computation if you've got an Abelian semigroup.

To be fair, Abel did not know (or care) about semigroups.

That matches my understanding, but the terminology is still (IME) common.

Re: Rob Pike’s Rules of Programming (1989)

#332

Earlier quoted context omitted.

Databases have support for a single type that encodes exactly like this. In postgresql a timestamptz shows as 'yyyy-mm-dd hh:mm:ss.123456+1234' but internally it's stored as UTC unixtime and tz offset.

Doesn't it actually store the timezone's IANA name and uses the tzdata to do conversions? That implies slightly more work than storing just the effective timezone offset, but is probably more correct when it comes to the timestamps in the future.

Docs aren't 100% explicit but it seems that it uses tzdata etc to convert to offset as necessary and stores offset--that wouldn't affect correctness as the conversion is done now not in the future.
Post reply on HN