Frink

Aug 15

Frink

Frink: I’ve gotta say I’m a little intrigued with Frink.  It’s a programming language…sort of.  It’s more a calculation engine, really, for real world physics-related information, with all sorts of real-world constants built-in.

Need to convert feet to meters?

38 feet -> meters
11.5824

Simple enough.  How about finding out how many standard oil barrels filled with water it would take to equal a half-ton?

half ton -> barrels water
2.8530101742118243

How many gallons of water would it take to fill your bedroom?

10 feet 12 feet 8 feet -> gallons
552960/77 (approx. 7181.298701298701)

How much would that weigh?

10. feet 12 feet 8 feet water -> pounds
59930.84215309883

It goes beyond physics.  Frink does things with strings too:

"I will not buy this record; it is scratched." -> Spanish
No compraré este expediente; se rasguña.

"Én már nem vagyok fert?zött." -> guessLanguage
[hu, Hungarian, 0.42290825, false]

And dates:

#1969-08-19 16:54 Mountain# + 1 billion seconds
AD 2001-04-27 06:40:40.000 PM (Fri) Mountain Daylight Time

Money, in historical terms (how much would $1,250 from 1867 be worth today?):

1250 dollar_1867 -> dollar
14982.240769251547535000

Current exchange rates

600 baht -> USD
13.73724

You can embed Frink in Java.  Love to see an embeddable version for .Net.


Comments

Corey V. Corey V.
by Corey V.,   August 16, 2010 9:21 AM  

"I will not buy this record; it is scratched."

I love Monty Python, too. One of my favorite sketches ever.

http://en.wikipedia.org/wiki/DirtyHungarianPhrasebook



Add Comment