Better HN
topnewbestaskshowjobs
Log inSign up

PythonicAlpha

1,352 karma · joined Nov 1, 2013 (13y ago) · 986 submissions

Submissions

comment 12y ago · link · parent

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.

comment 12y ago · link · parent

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?

comment 12y ago · link · parent

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

comment 12y ago · link · parent

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.

comment 12y ago · link · parent

>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!

comment 12y ago · link · parent

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

comment 12y ago · link · parent

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

comment 12y ago · link · parent

   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.

comment 12y ago · link · parent

Intellectual property is a wording that shows, what the intention is:

Making ideas and thinking property, thus de-valuating it

What is the property of "property": Property is owned by somebody independently from the creator of the property. Thus, the person that has the ideas becomes less important -- important is only the owner and the money, that was paid for the property.

Without "IP", rich people can live from their money, and their money pays them a living, just from the interest they "earn". But with IP they can also own your ideas and we all become slaves to the rich.

comment 12y ago · link · parent

2FA based on mobile phones is a very weak method of security. It goes worse, when using smartphones. When you use your smartphone to access internet services (worse: make banking) secured by 2FA, your 2FA is reduced to 1FA, Trojaner prone security.

There are also already cases known, where attackers just made phone companies send a "replacement" sim card and the attackers intercept those. Thus the second factor was very simple out. Some phone companies are more aware now, but all is very much prone to social engineering.

So: 2FA is only a good idea, when using some dedicated device, else it just makes the barrier a little higher, sometimes not so much, as you think.

comment 12y ago · link · parent

I don't know if I understand you right (my English is not perfect), but when you mean, that using Bitcoin could prevent this from being illegal: I don't think so. The problem is not the amount of payment or the type of payment, but that it is a sales contract (at least in Germany, every sale would be made via a contract, if explicitly written or not -- also a handshake could be seen as contract). And the law just says, how any sale contract must be made ... There must be a good visible button that clearly states the intention: "Buy with costs" or something similar. The customer must be very clearly informed about the sale and the fact that he is making a sale now. Your demo informs afterwards in a rather weird way. Just giving a link and say "read further" or similar would be accounted to be a fraud, I guess. I am also not sure that having a different text would be enough.

I am no lawyer, but one remedy could be to have some kind of "frame contract" where you buy an amount of readings in advance -- and the readings afterwards could be accounted for with such a system. But such a frame contract would of course counter your ease of use goal -- and of course would bind the customers what would counter your goal to lower barriers.

comment 12y ago · link · parent

Currently this kind of embedding (user interface) could cause some problems in some countries like Germany.

In Germany there is a law that when any contract of purchase is made on the web, the decisive button must conform to strict regulations. That is because in the past there where many frauds in Germany where contracts where made by clicking some buttons with and giving the address of the customers that lead to huge recurring costs -- and the customers believed that they just joined a user base without costs. To prevent such frauds, this law was given, but the regulations are rather strict. So the button must clearly tell, that a sale is to be made. I believe thus, a service like in the demo would be illegal in Germany.

comment 12y ago · link · parent

I often read that the Bitcoin system has limits for the amount of transactions processed worldwide in a given time frame. I think it has to do with the block chain and the mining, but I am no expert in this topic.

When such payment systems spread, couldn't they overburden the system?

To make it clear: I am a huge friend of alternative payment systems, particularly if they make it possible to have smaller amounts paid on the web without hassle and with less transaction fees. But there are always the people that warn against Bitcoin because of diverse reasons (keywords: inherent limits, Ponzy scheme).

What do you think/know?

comment 12y ago · link · parent

Of course you loose a little platform independence, but that is something you don't have anyway when you program in C++ or that kind. Also you get rather rich support for makefiles that are cross platform. I had no problems till now with C code I wrote that integrates into the Python environment. When you don't need OS specifics and have knowledge how to implement things CPU independent (given a common >=32bit architecture) in C, you will have little to no trouble at all.

Also one little hint: Use Cython for enhancements. Cython is great for implementing small enhancements when you don't want to hassle with refcounts and the normal Python API. Also your enhancements are automatically compatible to Python 2 + Python 3. You can also call C functions from Cython very easily for full speed. Cython is really great, when you don't need to optimize to the last nanosecond.

comment 12y ago · link · parent

Wow, did not know that either. I know some tools working under Windows, but they are rather complicated. This one is neat.

comment 12y ago · link · parent

I have none, it is my personal experience, since I programmed in C++ (and other languages) before. So cite me, if necessary.

comment 12y ago · link · parent

Yes, Python is slower in execution than some other languages, but:

   ... efficient use of development time ...
That is the reason, why Python counts (not only references). Python has many very good libraries, is a good OOP language, easy to learn, but still very, very powerful. You can express in Python some things in a single line, where you need hundreds of lines in C++ or other languages.

The few percent of running speed that you might loose, are neglect-able in most cases against the win in development speed.

In many applications you don't need the full CPU power, but often times you are hindered by e.g. the disk speed or other factors ... and than you don't lose anything when you are a little bit slower in some minor tasks.

comment 12y ago · link · parent

Thank you very much. Did not know that website!

comment 12y ago · link · parent

To sad, that there is no mp3 or ogg download version available.

740.

Keith Alexander Interview: Obama makes almost the same decisions as Bush(afr.com ↗)

16 points · by PythonicAlpha · 12y ago · 3 comments

comment 12y ago · link · parent

Or for women: Having been raped ....

(I don't find the link now, but there was a news about a European woman, that was raped and when she was going to the police, she was arrested for adultery and threatened with jail (I think) or else she should marry the rapist. I am not sure, if it was Saudi Arabia or a neighboring country, but such a thing just makes me ill!)

comment 12y ago · link · parent

The same thing happened to me. KDE3 was one of the best desktops. Then things where going downhill, at least from my perspective.

There was also Kmail, once a very usable tool for me (I think, the best version also came with KDE3). Then after the update (I guess with KDE4) there where some bugs on receiving eMail that happened again and again. It was nasty (I still can't get it, how they managed to kill the simple POP3 handler) but I could use my mail still. After that with the next update came a version that did not manage to import my old mailboxes that I had managed with Kmail for years. They simply killed this once good application for me! Just for gimmicks. Today I use webmail, though I don't like it. Also they managed to cripple KDE4 more and more ... The desktop applications did not do what was documented and they fixed bugs, that did not exist, thus removing or crippling once valuable options ... There was also a bug filed for that, but the developers just did not listen.

Now I use another desktop, but I fear, one day I also need to kick this one, since I see similar behavior -- adding or removing features, complete rewrites, just because it is a nice mind-game or in fashion. I also where thinking to use a really old desktop that nobody uses anymore, just to be free from feature-creep and fashion-ism. I need the computer to work with, not playing mind-games and update-platformers!

comment 12y ago · link · parent

When the software business was young, software was not patent-able at all. And that was good so, because if it where in the same degree as today, I guess we all would still have DOS on our desktops or worse.

Just think, quicksort would have been patented. Or binary trees, or arrays.

The horror scenario that you give is just a bad example that could have been constructed by patent attorneys.

Of course you can not just rip-off the software of a competitor, because the software itself is copyrighted.

We all are profiting from the fact, that many things in the software world are just not patented. Because in the knowledge world and more so in the software world, nobody just sits on his island and makes something totally new ... everybody depends on the work of others.

The patent system taken to extreme: Only a handful companies dominate the market and nobody else can do anything anymore. As much I understood, in the hard disk business we have this situation already -- three to five big corporations dominating the market, because they own the key patents.

comment 12y ago · link · parent

The problem is deeper. The USPTO just does not want to ask further questions.

The reason: It is funded from granted patents. If patents are not granted, the funds are down. And no director will like it to say at the end of the year, that US companies are less innovative than in the last year -- or worse, less innovative than ... (name a country).

comment 12y ago · link · parent

I also have my information from real patent attorneys.

This little example just shows, how distorted the whole patent system has already become. (and it is not the only example)

comment 12y ago · link · parent

Most of today's patents don't contain any valuable knowledge that could be useful for the public. Also the invention does not. <irony>So it is not that bad.</irony>

Of course, there are some patents that could contain some valuable information, but today's patent attorneys are drilled to hide any valuable information from public.

comment 12y ago · link · parent

I would say, that the USPTO is naturally not interested in such stuff. They will have all possible explanations, but never tell you the one true thing: The USPTO is earning more money on successful patents than on neglected ones.
1
242526
33