Better HN
topnewbestaskshowjobs
Log inSign up

codedokode

9,867 karma · joined Aug 20, 2015 (11y ago) · 5,528 submissions

PHP developer from Russia.
Submissions

comment 7y ago · link · parent

Someone must have a lot of free time to do this instead of work.

comment 7y ago · link · parent

> If you had slices you could easily return a portion of the string without mutation or copy).

In this case you get another problem: how to free memory when there might be many slices pointing at it.

comment 7y ago · link · parent

What surprises me in C programmers is that bugs like buffer overflow have been known for several decades but they still use raw pointers for strings and unsafe pointer arithmetics. At least in open source projects I often see this. C is really a language that doesn't move forward.

Also, no proper package manager.

comment 7y ago · link · parent

Also, those leaked images can be used for bullying and blackmailing.

comment 7y ago · link · parent

When I was at school, the fights were either behind the school building or sometimes in front of it, but usually not inside. So installing microphones and cameras inside won't change anything. The bully will just say to a student: "Let's talk after school, if you are not a chicken".

comment 7y ago · link · parent

A message sent to millions of people will be either public or will be leaked. So it doesn't make sense to ban encryption for such messages. Better ban riots. Also, there is something wrong in the country if millions of people are ready to riot.

comment 7y ago · link · parent

What about foreign companies from countries like China or Russia? How will they make them comply?

comment 7y ago · link · parent

It won't stop foreign developers in countries that don't extradite people to US like China, Iran, North Korea or Russia. You will have to find an excuse to cut those countries from Internet or implement a border firewall.

comment 7y ago · link · parent

In Russia, we have a law that requires companies that own messenger apps, to retain and provide contents of messages at request or provide information necessary to decrypt the message (encryption keys). There is no responsibility for using encryption for end users, and for companies it is either a large fine or being added to a registry of blocked URLs. So it is difficult to enforce such a law in practice.

comment 7y ago · link · parent

The law had different purpose, to prevent other countries from obtaining good encryption algorithms. That law didn't forbid developing encryption software abroad and downloading it.

comment 7y ago · link · parent

How are you going to enforce using such a scheme? What would stop people from downloading software with real encryption? Also, how do you oversight that the government is not abusing the system to track political activists for example?

comment 7y ago · link · parent

Also, Rome and Greek city states.

comment 7y ago · link · parent

It is much easier to hide information masqueraded as image or video compression artifacts. Imagine how much you can hide in a single Youtube video.

comment 7y ago · link · parent

Then maybe it is better to change the rules, e.g. limit speed and make roads curved and narrow so that you cannot drive fast?

comment 7y ago · link · parent

It is interesting that Russia already has a similar law (IM apps are required to retain and provide the content at request; they are required to ask a phone number for registration; websites having a specific amount of visitors must do the same). Luckily, some foreign companies like Telegram openly ignore it and decentralized messaging apps like Tox are unable to comply with the law.

It would be difficult to enforce such a law without implementing network filters.

comment 7y ago · link · parent

You are comparing harmless messages to dangerous weapon. It would be ridiculous if one could buy a rifle with a range of hundreds of meters but couldn't use an algorithm to encrypt a message.

comment 7y ago · link · parent

Does not New York have additional restrictions on carrying or buying weapon?

comment 7y ago · link · parent

You cannot murder anyone with just a message. If you want less murders, maybe it makes sense to stricten regulation on firearms?

comment 7y ago · link · parent

It might be easier to find a 0-day vulnerability in Intel ME and exploit it.

comment 7y ago · link · parent

Intel CPUs have a closed-source management engine inside, does it matter if there will be one more backdoor?

comment 7y ago · link · parent

How keeping production away from China will help the oppressed?

comment 7y ago · link · parent

Why would Assange, who is neither citizen nor resident of US, need a pardon from US? That's a political case.

comment 7y ago · link · parent

As far as I know, Putin says that he doesn't use mobile phones and computers. Can it be considered a security measure? Other officials, like PM Medvedev, are better with technology and had their devices hacked: [1]

Regarding Yandex, they have good talents there so what they say might be true.

[1] https://www.theguardian.com/world/2014/aug/14/dmitry-medvede...

comment 7y ago · link · parent

If Chinese manufacturers infringe on patented technologies, then it will be easy to ban import of their products. If they don't infringe and make something innovative then there is no problem. Having more competition is better for consumers.

Also, as AMD entered the deal voluntarily, it means that it was considered profitable despite the risks.

And I don't see the problem with building a supercomputer. Is it a privilege that shouldn't be available to developing countries?

comment 7y ago · link · parent

But I think there actually are many similarities between China and US. China doesn't allow some Western companies to do business in their country, but US is also banning some Chinese and Russian companies without even a court decision, just because some guy from Trump's administration have decided so. And if we compare the volume of international sanctions imposed by both countries, China will not be a winner here.

comment 7y ago · link · parent

To me it is obvious that passwords are insecure. Just think how many people are saving them in a browser without a master password, share them in internal chats, use same password everywhere because it's difficult to remember several passwords etc.

comment 7y ago · link · parent

Does "expansion of peace" include peace in Kosovo, Lybia, Syria, Iraq and other countries? The list of military operations by US [1] is nowhere near empty. That "authoritarian nation" didn't do anything close to it.

[1] https://en.wikipedia.org/wiki/Timeline_of_United_States_mili...

comment 7y ago · link · parent

"USA wants free trade", and that's why they are creating obstacles for Huawei without even a court decision.

comment 7y ago · link · parent

I hope they will be replaced by cryptocurrencies without passports, sudden account blocking and other stupid bureacracy.

comment 7y ago · link · parent

No sources, no links, nice comment. Aren't you working for a competitor?
1
129130131
185