HNHacker News
TopNewBestAskShowJobs

PythonicAlpha

1,352 karma · joined November 1, 2013

submissionscomments
PythonicAlpha··on US blogger fined 8,000 Euros by France for criticizing Société Générale
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.

PythonicAlpha··on Saving 9 GB of RAM with Python's __slots__
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.

PythonicAlpha··on Saving 9 GB of RAM with Python's __slots__
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.
PythonicAlpha··on Saving 9 GB of RAM with Python's __slots__
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)

PythonicAlpha··on Saving 9 GB of RAM with Python's __slots__
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.
PythonicAlpha··on Dear Googles: G+/YouTube Anschluss – you've done outed me
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.

PythonicAlpha··on Ask HN: Freelancer? Seeking freelancer? (November 2013)
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

← PreviousPage 31 of 31