Hacker News new | ask | show | jobs
by schiffern 847 days ago

  > having data sort of embedded in the programming language, in standard libraries, where it's easy to get the number of calories in the moon if it were made of cheese or whatever. 
If you like this sort of thing check out Frink. https://frinklang.org/

I predict that within 100 years, computers will be twice as powerful, ten thousand times larger, and so expensive that only the five richest kings of Europe will own them. -- Professor John Frink

The units file itself is a worthy read just for the commentary.

https://frinklang.org/frinkdata/units.txt

2 comments

Ha! That's marvelous. The rants on `mol`, `hertz` and `candela` are astonishing. Well worth the price.

  // WARNING:  Use of "Hz" will cause communication problems, errors, and make
  // one party or another look insane in the eyes of the other.
  //
  // In other words, if you use the Hz in the way it's currently defined by the 
  // SI, as equivalent to 1 radian/s, you can point to the SI definitions and
  // prove that you follow their definitions precisely.  And your physics 
  // teacher will *still* fail you and your clients will think you're completely
  // incompetent because 1 Hz = 2 pi radians/s.  And it has for centuries.
  // You are both simultaneously both right and both wrong.  
  // You cannot win.
  // You are perfectly right.  You are perfectly wrong.  You look dumb and
  // unreasonable.  The person arguing the opposite looks dumb and unreasonable.
  //
  // Hz == YOU CANNOT WIN
  //
  // (Insert "IT'S A TRAP" image here.)
Is there any notion of integrating Frink as a library in other languages?