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

I think, that was the only chance, they saw.

But that's what a patent-troll is for: Being paid. They are like highwaymen, they want to be paid, for what, is not important. If the money is OK, they will even go on their own kind.


It does nearly never protect small inventors and small companies. In the current time of big lawsuits and big money for lawyers, big is what succeeds. Small companies either:

- can not afford to patent everything they do - can not afford to find potential infringing companies - can not afford patent lawsuits

Even when they patent, and even when they know, that some other company infringes their patent, they just are not able to take the risk of patent lawsuits. In the case of a big other company it also can be the same as suicide. There is an anecdote, that one big company (everybody knows) send their patent lawyers to a small company, saying, they are infringing their patent X. The small company proved to the lawyers, they did not. But those hard-boiled lawyers just said: Look, we have X-thousand patents. We will find many others, you infringe and sue you, unless you pay us now for this patent! They paid, of course!

The patent system has become like highwaymen -- many see the big money without effort -- and it is. Those that are robbed, oftentimes are the real creative persons. And so, the patent system just has become the opposite to what it pretends to be. And of course, patent-attorneys, lawyers and even politicians defend a corrupted system, because they benefit from it.

Best example is Bill Gates: In his early time he stated, that patents on software would harm the software industry. Today he is one of the biggest proponent of the system, since his company today is big and he things it would profit from it. But in the end, even for M$, I doubt.


Couldn't RICO be used in such cases? It is racketeering at best if this is worded like that.


I don't see so much difference in France, the US or other countries:

Money has not become king in our society, no! It has become God and the money-people are the priests of our religion! We are not so much better as the middle ages where.


PyPy is not an option everywhere. Since as much I know, many, many enhancements and libraries are just not available for PyPy but just for plain old CPython.

PyPy might be an interesting project with much potential, but there seams to me a long way until it can be an one-shot replacement for CPyton.


That's the cost of being a dynamic language. Since Python objects can be dynamically enhanced everywhere (also from inheriting classes and even from outside of the class) it needs dictionaries. But those can be very memory inefficient, specially on modern 64bit Hardware. One dict can easily take 1-2k for very few stored attributes (size can even depend on actual names used, because of the nature of dicts). So when it comes to millions of object instances, it is better to use __slots__ but those come with a cost: Those objects are not enhance-able any more. You have to know all attributes of the objects in advance. So you should only use it on objects that are really used a lot or are really simple.


> That's the cost of being a dynamic language.

No, this is a cost of this particular style of dynamic object model. Not all dynamic languages are dynamic in this way.

> Those objects are not enhance-able any more.

I don't see any reason why Python can't do what Clojure's defrecord does: Provide fixed fields for pre-declared slots, while still using a dictionary for extensions. It has been a while since I've used python, but I'm almost certain that there is some __special__ magic that can make this work with relative ease.

It's also worth pointing out that most modern JITs, like V8 or PyPy, can automatically detect "hidden classes" like this and optimize these objects to pack such static fields.


"modern JITs" aren't so modern at all. All that work was originally done on Smalltalk in the 1980s — it's also entirely tangential to JITing compilers, as it can easily be done with interpreters too, so it's not even a cost of this particular style of dynamic object model — it's a cost of this implementation strategy of this particular style of dynamic object model. The fact that PyPy manages fine shows it is not the language, or any model to which it subscribes, that is at fault.


I did not say, that every dynamic language has to implement it this way, but Python does. And Python was not intended to be a language for building up huge data masses in memory, though it does not so bad in most cases (leaving out the mentioned ones).

Pythons style has some advantages though. Simplicity and really a huge quantity of flexibility are two of them.

(Traditional) Python normally is not a truly compiled language -- it is just a rather simple precompilation step that makes life easier for the interpreter. When you compile or "JIT" the code, you have more options. You see the whole program. The precompiler of Python does not! It just sees the local module. So, it can not find all classes that might enhance a base class.

If you have any ideas, how to implement a better language, why don't you implement your own? It's up to you! (I guess, creating new (more or less useful) programming languages is the hobby of computer scientists anyhow)


No, this is an implementation issue. Not all Python implementations suffer from this.

While language semantics do influence the quality of what is possible implementation wise, they are not the same thing.


It's an implementation issue.

I posted this as a comment to the article:

-- I'm working on a Ruby compiler and have taken pretty much [the PyPy] approach [of automatically using slots when possible]: Any instance variable names I can statically determine are candidates for the equivalent treatment (allocating a slot at a fixed offset in the object structure).

Anything else will still go in a dictionary. In practice my experience is that a huge proportion of objects will have a fairly static set of attributes, and the dynamic set is often small enough that having pointers them included in every instance is still often cheaper than using dictionaries. ---

In a static language, your options are generally to either statically allocate slots, or explicitly use a dictionary anyway.


You are right. But the normal application of Python is in circumstances, where you are not under such pressure anyway and flexibility and ease of use is more a requirement than having maximum speed or minimal memory requirements. And of course it is particularly the CPython implementation that I described ... but CPython is still the implementation that is used most and the one where most enhancements, libraries and so exist. Other implementations might do better in many ways, but what made Python great, is still available in its original form, the CPython environment.


That's CPython specific though, PyPy doesn't need it.


It's also true that you gain benefits out of this trick when you've got lots of instances.

This is usually true when, say, analyzing some data. If your design pattern is good, those object would be immutable anyway.


Google just did not get the point up to this date. They want to press us into their ad-network, but the way they do is just annoying. I am also planning now to drop my Google account, because it just does get to much. Every time, I have to log in, I am asked about telephone number or to "add some little extra information" -- I nearly got trapped recently. Just at the second look, I saw it was not "just some extra information" but they wanted me to sign up for G+. I will not and I will never. Because privacy is more worth than some candy they will give to you in return.

Facebook and Google don't care about your privacy, but you should, if you don't want to be abused in the new world of lost paradise.


SEEKING WORK - REMOTE only (Germany based)

- Python, C++/C, wrote several Python Extensions with and without Cython, Performance Optimization, OOA/OOD, UML, Database Design & Development, Web-Development, JavaScript, Tornado

- very dependable, looking at the whole application not only short term fixes

- looking for longer engagements, but only an utilization of 20-60%

Contact: hnalpha.pythonic /at/ spamgourmet.com


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

Search: