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

That's how any government works I think.

comment 7y ago · link · parent

Windows 7 also had lot of exploits. It runs many services like network file systems (NetBIOS) in kernel which makes it easier to gain access to it.

comment 7y ago · link · parent

Also, the maintainer of Linux distribution can be a local company so that public funds don't go to USA.

comment 7y ago · link · parent

Because "well maintained distro" won't fix issues as soon as possible and won't make necessary changes. For example, Linux is not friendly to proprietary third-patry software, but the government might need it. Or there could be bugs.Or they might need to support local encryption standards in browsers and document editors. Or support a specific hardware device.

So the working scenario is that a Korean company creates its own distribution, adapts it to the needs of government, sells it and then maintains it for the fee. This could also have a benefit of supporting a local vendor instead of sending public funds to US.

comment 7y ago · link · parent

It is actually much simpler. You should look at those who filed false reports without proper investigation of an issue and checking the circumstances. If they blindly trust their computer system that tells them "Report John Doe", it is their fault. They should have proper procedures to double check the details for such cases.

Programming bugs are unrelated to the issue.

I might be wrong, but if you submit false tax statements then excuses like "program bug" won't help you.

comment 7y ago · link · parent

But you have to prove that those IP addresses were used for crime. Maybe the purpose was only to earn money from reselling them.

comment 7y ago · link · parent

The author doesn't even understand what's wrong with large binaries and writes nonsence about Internet connection speed. Main problem is that statically built libraries are not shareable. For example, if you have two Electron applications, each with its own copy of Chrome, then every Chrome will take about 100 Mb only for code section (not counting data, stack which typically will be much larger) and together they take 200 Mb. But if those applications didn't ship their own copy of Chrome and used the same libraries then the code would be shared and took only 100 Mb of RAM. That is, 100 millions of bytes of RAM are saved.

The more RAM such applications take, the higher is probability that the system will get out of RAM and start swapping. And in this case the system will become so slow that it won't matter what kind of Internet connection you have.

The problem of non-shareable code is also actual for interpreted languages like Javascript, Python or Java. When running such applications, their code and byte-code generated from it often are not shareable. So if you run two copies of desktop JS application, that uses some JS library, you can get two copies of this library in memory. As I remember, Android uses some clever trick that allows sharing compiled Java code. Most other interpreted languages cannot do it.

Also, a fun fact: if you are using Gnome-shell on Wayland and the system starts swapping, computer can stop responding even to mouse movement, and you won't be able even to switch to other VT.

comment 7y ago · link · parent

While separation of powers is a great thing for protection of human rights, it doesn't change anything for international treaties. No matter whether country is democratic or not, they will try to push terms that are beneficial to them rather than to other countries.

comment 7y ago · link · parent

> The US and others spent a lot of resources building the free trade system of the world.

Are the sanctions against countries like Cuba, Iran or North Korea also a part of "fair" and "free" trade?

Of course, US is free to choose with whom they want or don't want to deal; just don't call it "free" trade please.

comment 7y ago · link · parent

They don't want to change places with people of Iraq or Syria either.

comment 7y ago · link · parent

20 years seems a little too much for the crime that doesn't involve violence. 2 or 3 years and a solid fine should be fair punishment in my opinion.

comment 7y ago · link · parent

I don't like that PEAR by default needs administrator privileges and installs packages into system directories. That's inconvenient because you might have many PHP applications, and each needs different versions of dependencies. What did PEAR developers think? That I will be working on a single app for whole life?

Installing libraries globally is inconvenient for developers. Sadly, most Linux package managers have same problem and do not allow you to install several versions of PHP or Node.

comment 7y ago · link · parent

It is not a leak, it just loads too much data into memory so you need about 1 Gb of RAM to run composer update.

comment 7y ago · link · parent

I don't like their code and architecture though. The code is ugly because it is built around static methods instead of proper OOP, and uses magic methods a lot. It is not easy to read.

Also, they love to invent their own names for existing things. For example, they named a folder with interfaces as "Contracts", although there are only interfaces.

You are using "Ruby on Rails" as some sign of quality, but if it uses magic and static methods like Laravel, I would consider it ugly too. Also, I remember reading somewhere that they were hotpatching imported modules. Luckily in PHP you cannot do it.

comment 7y ago · link · parent

It is much safer to put complex software into userspace. If there is an error, you won't get kernel panic.

comment 7y ago · link · parent

You can compile a static binary or distribute a private copy of libraries, but it doesn't get you integrated into the system. For example, your app will not be upgraded using a package manager.

And main reason for this is because package managers were not designed for third-party software. They were designed only to install software from a distribution and maybe from your private repositories.

That makes proprietary software "not welcome" in Linux distributions.

comment 7y ago · link · parent

Maybe there is a way to run them safely. For example, have an open source part running in kernel, and closed source part that is properly isolated in userspace.

comment 7y ago · link · parent

But as a user, I want to be able to use proprietary applications in a safe way, so that they cannot steal my browser cookies or read my MAC address, or patch my kernel. So I would prefer that Linux distributions support proprietary apps like Android Open Source Project does, rather than tell me what I should use and what I shouldn't.

comment 7y ago · link · parent

This is not a sane way to install third-party software because by adding their repository, you allow them to "upgrade" and package in your system, including Linux kernel, bash, sshd. Is your system secure if companies like Microsoft, Sublime Text, Slack Inc have root access to it?

So you either give them root access or install and update software manually. Because package managers like apt do not have a sane method to install third-party proprietary software.

And even with open source software, it is a bad method. For example, a developer that provides a Debian repository with different versions of PHP, has overwriten openssl library for users of his repository despite it can break something else.

So there should be a safer way to install third-party software.

comment 7y ago · link · parent

I think comparison with Israel/Palestine is wrong because Koreans do not explode bombs in Japan.

Also, I don't understand why anyone could dislike Korean people. They didn't invade Japan, and probably they never invaded any country.

comment 7y ago · link · parent

Linux still is not friendly to proprietary code. To install third-party software user often has either to run a bash script with root privileges that can potentially break the system, or add a proprietary repository (which allows its owner to replace any software on user's machine). Before flatpack and snapcraft there was no sane way to install third-party software.

The same problem is with drivers. Maybe there is a way to allow drivers with closed source code and get better hardware support? For example, what about copying or supporting Android's driver model?

comment 7y ago · link · parent

What an awesome thing. This is probably a rare example of using technologies like machine learning and face recognition for good.

Also, it means that we cannot trust photos anymore.

comment 7y ago · link · parent

Access to global object was intentionally restricted in strict mode and modules and now you (JS devs) want it back. That's not what rational people do.

comment 7y ago · link · parent

You use "global_env" only inside luaopen_js(). Why don't you just add it as an argument, for example:

function luaopen_js(L, global) { ... }

instead of writing this ugly hack?

comment 7y ago · link · parent

I don't understand why they need access to global variables. If you are writing a portable module using strict mode, you should't need access to "window" or "global". If you are writing non-portable code then you can access "window" or "global" by its name.

I mean, they intentionally closed access to global object through "this" in strict mode and now they want it back.

comment 7y ago · link · parent

What about a case when NSA was wiretapping phone calls of member of German governments, including Angela Merkel [1]? US got away with this without any consequences and Germany said nothing.

[1] https://www.telegraph.co.uk/news/worldnews/europe/germany/10...

comment 7y ago · link · parent

This doesn't solve the problem completely. What if two of the sensors fault the same way? What if the computer turns off, will the pilot be able to do what MCAS does, manually?

Maybe it would be better just to use old time-tested design instead of saving small money at the cost of safety.

comment 7y ago · link · parent

I doubt that. Pilots get used to flying on an autopilot and often make mistakes when they have to control everything manually. Recent example is a crash of SSJ100 in Moscow where the pilots failed to land the plane manually when the computer turned off.

If you make controls more complicated, pilots will make more mistakes in critical situation.

comment 7y ago · link · parent

There are already lot of things that pilots have to keep in mind and look after. Learning how MCAS changes the behaviour of the plane makes everything more complicated.
1
134135136
185