Frink
frinklang.org
Frink
1–10 of 66 posts
Re: Frink
#2Frinky's not loading so good right now, HN.
Re: Frink
#3Re: Frink
#4Mirror: https://web.archive.org/web/20180812184707/https://frinklang...
Re: Frink
#5Re: Frink
#6 Let's say you wanted to fill your bedroom up with water. How much water would it take? Let's say your room measures 10 feet by 12 feet wide by 8 feet high.
10 feet 12 feet 8 feet -> gallons
552960/77 (approx. 7181.298701298701)
It would take approximately 7181 gallons to fill it. Note that you get both an exact fraction and an approximation. (If you don't want to see the fraction, put a decimal point in any of the numbers, like 10. or 10.0.) How much would that weigh, if you filled it with water? Frink has the unit "water" which stands for the density of water.
10. feet 12 feet 8 feet water -> pounds
59930.84215309883
So it would weigh almost 60,000 pounds. What if you knew that your floor could only support 2 tons? How deep could you fill the room with water?
2. tons / (10 feet 12 feet water) -> feet
0.5339487791320047
So you could only fill it about 0.53 feet deep. It'll be a pretty sad pool party.
This sits firmly in the "Neat, and now I'm sad I don't have a practical use case for this"Re: Frink
#7Mirror: https://web.archive.org/web/20180812184707/https://frinklang...
I'm surprised the site died. It looks like a static website, and even a small webserver in a default configuration can serve thousands of files per second.
Re: Frink
#8The units file (and its comments) makes a thrilling read https://frinklang.org/frinkdata/units.txt
> In short, candela = EPIC FAIL.
Re: Frink
#9I love these examples: Let's say you wanted to fill your bedroom up with water. How much water would it take? Let's say your room measures 10 feet by 12 feet wide by 8 feet high. 10 feet 12 feet 8 feet -> gallons 552960/77 (approx. 7181.298701298701) It would take approximately 7181 gallons to fill it. Note that you get both an exact fraction and an approximation. (If you don't want to see the fraction, put a decimal…