Hacker Newsnew | past | comments | ask | show | jobs | submit | more PythonicAlpha's commentslogin

I am not sure, if the paper sizes (A4, ...) are belonging to the metric system ... but of course, here a standardization would be nice. At least software producers seem to know (most of them) now, that there are also other formats as the "standard US formats".


A0 is a square meter, and everything in the A series has an aspect ratio of sqrt(2) and different sizes are achieved by simply folding (or cutting) in half. It's actually pretty neat... check out:

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


Oh, did not know that!

The reason: I don't think, that this fact is essential to the A series. It is neat, yes, but when do you have A0 paper in your bureau? (When you are not in the printing-business).

The thing with cutting in half is more essential to it, than that it is based on square meter. Also, even when it is an square meter, the sides are something "odd" because the ratio is fixed.


They're not part of the metric system, simply based on it. The 1:sqrt(2) ratio used is extremely convenient as it scales up and down nicely, and the other series are such that an Ax sheet fits nicely into a Cx envelope, and a Cx sheet fits nicely into a Bx envelope.


How are factors of 2 and sqrt(2) "based on metric"?

At some level you could say that the U.S. measurements are "based on metric" since almost all of them are defined in terms of metric units. You just have to apply the proper factor (which is a decimal, but a terminating one --- unlike the sqrt(2) business).


I never wrote that the factors were based on metric. ISO paper sizes are based off of an A0 sheet having an area of 1m². That's it.

The 1:sqrt(2) ratio has to do with subdivision. An A0 sheet subdivides into two A1 sheets, which subdivides into two A2 sheets, and so on. 1:sqrt(2) width/height ratio used in ISO pages sizes allows this, which makes dealing with paper significantly easier when it comes to slicing up pages, folding, packing, &c.


By that standard, the U.S. liquid measures could also be described as "metric". 2 cups->pint, 2 pints->quart, 2 quarts->pottle (rarely used, more commonly called a "half gallon"), 2 pottles->gallon.


You appear not to understand the actual utility behind the page width/height ratio used in ISO/DIN page sizes.

Also, the word "metric" has a very precise meaning: that of being part of the internationally agreed system of decimal measurements. The thing you've mentioned don't fit that definition, and US customary units are simply defined in _terms_ of metric units, but are not metric units themselves.


"You appear not to understand the actual utility behind the page width/height ratio used in ISO/DIN page sizes."

I do understand it. It's exactly the same reasoning as being able to divide liquid measures in half.


No. Here's what you wrote:

> By that standard, the U.S. liquid measures could also be described as "metric"

The ratio has nothing to do with metric. The base sizing of the A0 page is, on the other hand, defined as having an area of 1m² in that regard, DIN/ISO paper sizes are _based_ on metric. However, _never_ did I state that they _were_ metric.

So no, by the standard that I gave, you _couldn't_ say that US customary measurements for liquid measures could also be described as "metric".

Go back and read my original comment. The first sentence was this:

> They're not part of the metric system, simply based on it.

Here I was making reference to A0 sheets being defined as having an area of 1m², thus the sheet sizes are _derived_ from metric, not _part_ of the metric system.

The next sentence was a _completely_ independent statement about the utility of the page ratio used in ISO/DIN paper sizes:

> The 1:sqrt(2) ratio used is extremely convenient as it scales up and down nicely, and the other series are such that an Ax sheet fits nicely into a Cx envelope, and a Cx sheet fits nicely into a Bx envelope.

I can't fathom how you somehow got from an innocuous pair of statements about paper sizes to powers of two in US customary measurements for liquids somehow being "metric".


U.S. units are defined in terms of metric units.

The official definition of the inch is 2.54 cm (exactly).

An inch isn't a nice round number of cm, but neither is an A(whatever) piece of paper (other than A0). A4 is 21.0 cm × 29.7 cm. for instance.

"The next sentence was a _completely_ independent statement about the utility of the page ratio used in ISO/DIN paper sizes"

And I pointed out that the exact same argument applies to U.S. liquid measures. They're easy to divide or multiply by two.


Ok. I'll be super explicit about this. The page measurements don't matter. What matters is that all the standard page sizes have exactly the same width:height ratio when halved or doubled to obtain the next size up and down. That's the magic property that the 1:sqrt(2) width:height ratio used in the ISO/DIN page sizes gives you. The fact that an A0 sheet is defined as having an area of 1m² is a distraction. It's the width:height ratio that matters.

Your comparison to liquid measurements misses the point. It's irrelevant. Your statement that the US units are defined in terms of US units is irrelevant.

What is relevant is the preservation of the width:height ratio between pages sizes in the ISO/DIN paper size series.


"That's the magic property that the 1:sqrt(2) width:height ratio used in the ISO/DIN page sizes gives you."

Which is very similar to the "magic property" that you get when you have measuring units that are powers of two rather than factors of ten. So, no, I"m not "missing the point" at all.

That you think this is "irrelevant" indicates to me that you haven't done a lot of cooking.


Yes you are, because _this has nothing to do with factors of ten vs factors of two_. This is nothing to do with US customary units vs metric. _The units are irrelevant._ That's what you're not getting. What is relevant is that the same page width/height ratio is maintained between the different page sizes.


In the EU, when we had to change from national currencies to Euro, the outcry was big -- because everybody was only able to "measure" money in the old currency. That even exactly this currency changed over the past decades very much, seemed to be not in the minds.

I guess, there are still people out there, which recalculate into Francs or Marks, or whatsoever -- but I think most Europeans have adapted.

So, when "old Europe" can change -- why not "modern USA"?


I must admit, that one hits the nail directly on the head!

That is often times, how management sees programmers: Dudes that must have experience with rocks and brown to fit the job. And that is also the way, they want to pay them.


Pun intended?

I once shot myself with a nail gun. Pro tip: Don't hold whatever you're nailing in your hand.


Py2 -> Py3 is not that hard (when you don't step into troubles with system functions and Unicode) but porting libraries can be very hard, because some of them are rather complex and many include C coding -- and porting that stuff is much harder.


The problem is not only Unicode.

If it only where for unicode, the problem would not so big. But they seemed not to bother at all about backwards compatibility at all in the first Py3 version. Later, they did try to change some things, that unnecessarily(!!) blocked adoption, but many projects already decided to ignore Py3.

I guess, you don't mean what you said in the last paragraph? Was it just a joke?

Unless you can replace all libraries that exist only as Python 2 version, you can not move -- you can use zero Python 3. That is a huge problem to real projects -- of course, if you only have some University (educational) - projects, all is fine and you can play around as you like.

Also there is the problem, that it is not trivial to have Python2+3 on the same installation. Most Linux distros still run with Py2.


> Also there is the problem, that it is not trivial to have Python2+3 on the same installation. Most Linux distros still run with Py2. >

Actually, it's trivial nowadays with projects like pyenv. You can even have different python versions in a per-project-directory basis.

Check out the installation guide (https://github.com/yyuu/pyenv#installation) and a commands reference (https://github.com/yyuu/pyenv/blob/master/COMMANDS.md)

There's also an extension that provides virtualenv integration - https://github.com/yyuu/pyenv-virtualenv


Thanks, that looks interesting. I will note it for the time, I have the problem.


This is the same problem addressed by the ancient, universally known tool named virtualenv. How are you delivering pronouncements about the unsuitability of Python 3 when you don't have solid knowledge of how things are done in Python?


I did not "deliver pronouncements about the unsuitability of Python 3". I did only say, that it is not trivial to have both versions on one installation.

And who are you, something like the "Python purity police"?

I will ask you something, that you did not work with till now -- and when you give a wrong or incomplete answer, I will also say "how dare you"!


In what distros is that a problem? I have Python2+3 on Debian running fine side-by-side.


When you have several Python programs, where does /usr/bin/python point to?

I must admit, that I did not think to much about it until now, but normally there is only /usr/bin/python in the scripts.

Of course, if everybody has /usr/bin/python3 inside his Python3 programs, everything could work (unless some of your apps need special environment vars like PYTHONPATH, what could make it troublesome again).

But still, the standard installation of Debian (and others, as much I know) does not include Python3 by default, you at least have to add it to your installation. That is something, you must tell your customers, when you ship Python3 programs.


/usr/bin/python should never point to Python 3. Because of the compatibility break, the convention (and default for the Python build scripts) is to always name the Python 3 binary python3, so there should be no conflict. It's understood that during the (very long) transition period there will be need to run both side by side.

A handful of ditros have gone ahead and named it python anyway. A stated motivation has been to encourage adoption of Python 3, but practically they're just shooting themselves and their users in the foot, and ensuring incompatibility with the shebangs defined for every other OS. (I don't think there's any plan to ever switch the default binary name from python3 to python, so this incompatibility may never be resolved.)


Arch switched from Python 2 to Python 3, keeping the /usr/bin/python binary as pointing to their newest version of Python before the convention of naming it /usr/bin/python3 was standardised.

It was specifically in response to the troubles caused by having /usr/bin/python be python3 in Arch that the guideline came about: http://legacy.python.org/dev/peps/pep-0394/


Thanks for the reference; I somehow failed to find the origin of this convention in previous searches.


Most package managers allow you to specify a dependency on Python 3, so you shouldn't even need to tell your customers. Otherwise, you can always use virtualenv and ship Python with your code.

And yes, if you're targeting Debian or Debian-like systems, make a deb. It's really not that hard, especially with newer tools like fpm.


Thank you for mentioning fpm, I'd never heard of it and often wished for something like it. Commenting to bring attention to it, and so I don't forget!


> When you have several Python programs, where does /usr/bin/python point to?

/usr/bin/python should always point to python 2 (or nothing) /usr/bin/python2 should always point to python 2 (or nothing) /usr/bin/python3 should always point to python 3 (or nothing)

scripts using a shebang line should not, however, rely on /usr/bin/python pointing to python2, and should only use it when they are source-compatible with both python2 and python3.

http://legacy.python.org/dev/peps/pep-0394/


I remember, when Py3 first came out, everything was incompatible -- unnecessary incompatibilities like the u" notation for Unicode string literals that was dropped. Unnecessary incompatibilities in the C-extension-module implementation layer. And so on. The list of incompatibilities was just huge.

Later several of them where dropped, like the string literal trouble ... But than the trouble was already done. Many extension modules where not lifted to the new version, since the overhead was to big.

I think, many more projects would have adopted Py3, if more extension modules would support it.

The huge library of extension modules was always the strength of Python. Now we have many projects still running on Py2, because Py3 did ignore this strength.


I don't know, if the author of SQLite also reads here, but ...

I am not sure, if having a single key space seems to have possible counter-productive effects on the overall speed.

One example: You want to scan all db entries of one table and the key are random English words. The table itself only has several hundred entries, but there are also tables with text keys with millions of entries.

When I understand the concept right (I don't know), wouldn't that mean, that a huge (common) index would have to be searched and many, many entries skipped, because you use one single key space? Wouldn't that hurt performance very much for that specific operation?


The real "unproductive" people in the world are those, that just "earn" money by interest from the money, they also had not earned themselves.


>because the creator is ensured a return.

No it is not. There can be ideas and "copyright" without having IP. But IP does also mean that the "property" can be owned by people that did not create it. This notion is fundamentally wrong and de-valuates any creative work. In patents you can already see it (most inventors are getting just a little fixed money -- the most of the value goes to the companies) -- but also in copyrighted work. The most of the value goes not to the performers of the art (eg music) but to the distributors.


Why is it "fundamentally wrong"? I created the work, I'm free to do with it as I please. I can give it away for free. I can charge $10 a copy. I can come to an arrangement that someone else has the right to set the price, in return for something else I want. That many musicians choose to sell their creations to distributors is entirely their choice. It obviously didn't "devalue" it to them at the point of sale, else they wouldn't have sold it. That many patents are owned by companies is because they were created by employees whose creative output was owned by the company in exchange for a salary.

If creative output has a value, then people should be free to exchange their creations for anything they like. To create restrictions that prevent people from writing a book then making an arrangement with a publisher, is just to prevent people from actually being able to do anything with their creations.


>I created the work, I'm free to do with it as I please.

Under the current law: NO!

That is just a dream from the people that are pro-IP -- they know, that is a dream, but they want you to dream it.

If you are working for a company and have an idea, the company gets the patent and you get (if you are lucky) a fixed amount (~$500 is a typical amount in my country) and the patent belongs to the company -- you don't even have the right to use the stuff for yourself.

IP means, in its conclusion, that the creators are disowned and the "owners" own your ideas. You created it, you are busted!


I'm guessing you're being deliberately obtuse here. You were completely free to do with your work as you please, and you "pleased" to sell your work to a company in exchange for some consideration. If you don't want IP transfer, or first-refusal fixed price patent transfer, then don't sign that employment contract. I had them negotiated out of my last agreement, and I'm free to spend my personal time creating whatever I want, knowing the rights to it will be owned entirely by me.


No I am not "obtuse".

I guess, you are.

When you still find an employer, that makes a contract like that, call yourself lucky. In my country, it is a law -- and you can't cancel out laws in my country in contracts.

Not everybody is so lucky, that he has enough money or finds fitting freelancer work.

Ask the music people. They (oftentimes) can't sell their music without having contracts with big companies -- and they have to sell out all their rights.

But it seems that you just view the world from your standpoint -- fading out any negatives -- and everybody that has different experiences as you do, is just stupid or "obtuse" in your view. With such an attitude on your side, a discussion makes little to no sense.


>But IP does also mean that the "property" can be owned by people that did not create it. This notion is fundamentally wrong

How is that that "fundamentally wrong"?? It's just a natural extension of giving exclusivity to the creator of the work. Are you saying it's "fundamentally wrong" to, say, commission a creative work from an artist for your exclusive use, the way it was done for thousands of years?!? Treating creative works as a kind-of property, greatly simplifies things.

>and de-valuates any creative work.

HOW?!?! How is _paying_ for a creative work, devaluing it? I'm sure there are multitudes of examples when the artist was screwed out of profiting from their work, then again there are multitudes of examples when artists greatly profited from their work (Hey there, George Lucas).

>The most of the value goes not to the performers of the art (eg music) but to the distributors.

Sometimes that's true, and sometimes that isn't true. But even in the former case, there are good reasons why that may happen. Furthermore, it's not like this is limited to music or creative works. A condo developer may sell a piece of (physical) property, for moderate profit, to a savvy real estate agent who then flips it for twice the amount. Did the developer get screwed? Maybe, maybe not. That's just the way things are.


   It's attempting to reward investments in really pushing the line forward ...
No, I don't think so. IP was never meant to help innovative people. IP -- at least as it was created in the last decades (before, nobody talked about IP, but patents and trademarks and ideas -- no IP) -- is a fighting term that was coined to create a new form of property -- thus, after having things and than land, now also have ideas "own-able". Ideas are no property. How can they? That is just a bad, bad word.

And when you say, that the intent would be to help people with ideas, I can not consent! It is something to make investors and owners happy! To make rich people happy and steal from those with the ideas.


It's an attempt to make ideas, inventions, etc. into something like physical goods that can be put on balance sheets like physical goods. Accountants like that, investors like that. But it doesn't seem to work very well.


Exactly. Ideas don't fit into their system of wealth and money -- so they try to put it into the system. But it does not fit and only brings much trouble, since ideas can not be measured. The patent system is awfully broken because of this and it will go downhills more and more if nobody stops it (it does not seem so, because the neo-capitalism is still going strong and has more might than all governments together).


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: