Funny how one of the examples for translation >"I will not buy this record; it is scratched." -> Spanish >No compraré este expediente; se rasguña. is wrong x).
Frink
51–60 of 66 posts
Re: Frink
#52For people in Python-world, I've tried many units packages and tend to prefer https://pint.readthedocs.io For the bedroom example someone posted, here's the equivalent in pint: import pint # Possibly my least favorite thing about Pint is # the verbose importing/instantiating dance u = pint.UnitRegistry() q = u.quantity() # there are multiple ways of making objects: volume = q('10 feet') * q(10, 'feet') * (10 * u.feet…
> https://frinklang.org/frinkdata/units.txt I haven't even tried the software yet, but that file is a great read. An excerpt (part of a rant about the definition of the candela): // What really annoys me is that the official definitions // don't come right out and say, "okay, we're sorry, this // is obviously a useless definition for any other // wavelength, and it doesn't even make sense for *that* // wavelength. We…
Also, for reference, the closing " is in the following paragraph, but I'm not quoting it because the 2 paragraphs after that one made opening the link worth my time.
Re: Frink
#53Earlier quoted context omitted.
There are some great notes in there and also things that you will almost certainly not know already. Beware the SI's broken definition of Hz. You should treat the radian as being correct, as a fundamental dimensionless property of the universe that falls out of pure math like the Taylor series for sin[x], and you should treat the Hz as being a fundamental property of incompetence by committee. [...] Either way, if I…
Easy to fix Hz == 1 revolution / sec revolution == 2 Pi radians The problem of not having the revolution as the conversion unit is the massive oversight.
Re: Frink
#54Earlier quoted context omitted.
As far as I know, facts and information can't be copyrighted, which means at the very least the raw data in units.txt can be used freely with flagrant disregard for licensing.
Careful! Collections (databases) of fact can often be copyrighted.
Re: Frink
#55Re: Frink
#56Re: Frink
#57Earlier quoted context omitted.
A map is not copyrightable. It is just a diagram of facts. Mapmakers protect themselves by inserting fake data which they can then use to claim copyright.
It looks like it's the other way around: https://en.wikipedia.org/wiki/Trap_street#Legal_issues >In Alexandria Drafting Co. v. Andrew H. Amsterdam dba Franklin Maps, the court ruled that "fictitious names may not be copyrighted" and "the existence, or non-existence, of a road is a non-copyrightable fact". Maps are copyrightable (I think?), but the trap streets themselves aren't. They're only there to detect when some…
Re: Frink
#58I 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…
How much air in your room weighs?
What power do you need to transfer energy at the same rate as when you fill tank of gasoline?
Re: Frink
#59For people in Python-world, I've tried many units packages and tend to prefer https://pint.readthedocs.io For the bedroom example someone posted, here's the equivalent in pint: import pint # Possibly my least favorite thing about Pint is # the verbose importing/instantiating dance u = pint.UnitRegistry() q = u.quantity() # there are multiple ways of making objects: volume = q('10 feet') * q(10, 'feet') * (10 * u.feet…
> I'm wondering about an importer for the Frink ones... but https://frinklang.org/frinkdata/units.txt doesn't seem to have a license?) That data is almost all taken from GNU Units, including the descriptions, which means it might be under the GPL. Frink itself doesn't seem to be open source at all? I wrote a parser and interpreter [1] for the GNU units descriptions a while ago, you can see the parsed json here [2] (k…
Re: Frink
#60The units file (and its comments) makes a thrilling read https://frinklang.org/frinkdata/units.txt