Live data from Hacker News

Frink

frinklang.org

51–60 of 66 posts

Re: Frink

#51
post #23

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).

I think that is the joke, it's a reference to a Monty Python sketch about a (deliberately?) wrong Hungarian phrasebook. "I will not buy this record, it is scratched" is one of the examples in the sketch.

Re: Frink

#52

For 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…

Wow, I completely agree that file is a great read.

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

#53
post #19

Earlier 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.

That wouldn't work because revolution would simply be a dimensionless number which would define Hz as 2Pi/s. Which it isn't.

Re: Frink

#54
post #43
post #32

Earlier 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.

The artistic expression of the collection is protected not the facts themselves.

Re: Frink

#55
post #43

Earlier quoted context omitted.

Careful! Collections (databases) of fact can often be copyrighted.

The artistic expression of the collection is protected not the facts themselves.

Depends on the jurisdiction. In the EU databases can be copyrighted under some conditions.

Re: Frink

#56
Frink has been around for a long, long time, and the author has had a great sense of humour about some of the units he's thrown in. While I rarely need the tool, it's great to know that I can deal with cubits whenever I need to.

Re: Frink

#57

Earlier 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…

Heh, I actually learned about trap streets when talking to a cartographer who made the muni map of SF you find at all the bus stops (much like this one: http://www.mobilemaplets.com/thumbnails/261_thumbnail-1024.j...). He told me he added a small alleyway in the map named after his family that doesn't actually exist, and they catch people violating their copyright all the time with it.

Re: Frink

#58
post #6

I 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…

There are lot's of cool ones:

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

#59

For 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…

As far as I can tell there's no license. No thank you, I don't need a legal headache.

Re: Frink

#60
post #5

The units file (and its comments) makes a thrilling read https://frinklang.org/frinkdata/units.txt

Thank you for the links, there's a lot of good comments!
Post reply on HN