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 3y ago · link · parent

> Because fundamentally, if you ask people if they want to work 2 more years, very few will say yes

What's the point of democracy if you don't let people decide anything? (also what's the point of having a Parliament that doesn't decide anything). If people don't want to work, then lower the pensions to realistic figures.

comment 3y ago · link · parent

It is often said that electric cars are simpler than ICE, why are they more expensive then?

comment 3y ago · link · parent

First politicians make unrealistically high pensions to gain votes and then they find out that economy cannot sustain paying them. What a surprise. And now poor 62-year old Frenchmen have to work hard to pay for those politicians' mistakes.

Also, I wonder, if the law is such controversial, why not hold a referendum? Why not let people decide for themselves, whether they want to raise the pension age or lower the pension to more realistic figures? I think that would be the most democratic way to resolve the issue instead of beating people by police.

comment 3y ago · link · parent

> Why not then, dip into your bank account?

The government does it every time when it prints money. Note that with cryptocurrency or golden money that would become impossible. Maybe that is why government set up obstacles for buying gold or cryptocurrency.

comment 3y ago · link · parent

PPP is a misleading figure. If your PPP-adjusted income is 2 times higher than someone's else does it mean that you can buy 2 times more MacBooks or trips to Korea?

comment 3y ago · link · parent

This must be April 1st article.

comment 3y ago · link · parent

In case anyone is wondering how much CPU Flash emulator uses: "Isolated Web Co" - 12%, Firefox - 16%, gnome-shell - 25%.

comment 3y ago · link · parent

Dlopen() "sees" only functions marked as exported (with macro like DLLEXPORT on Windows), not every function or am I wrong? Is C that bad?

comment 3y ago · link · parent

Why should every function start with endbr64 command? Aren't functions usually called directly?

Also, is it required to insert endbr64 command after function calls (for return address)?

comment 3y ago · link · parent

Also, regarding houses and land prices, there is no monopoly, but the prices are extremely high in large cities. So "it is a monopoly" doesn't sound like an explanation, but "charge the buyer as much as they can afford and a bit on top of that" is more realistic. And as for education, there seems to be no monopoly too.

comment 3y ago · link · parent

Almost every country is capitalist, including Russia. I didn't try to compare capitalist vs non-capitalist countries, I tried to show that in capitalist countries the price of services is not related to expenses. In both countries mobile providers use similar equipment which probably cost the same, but the price they charge from consumers is significantly different.

comment 3y ago · link · parent

Let me explain. If a Russian mobile provider would ask customers to pay $45 starting next month, then majority of users would say: "No thanks, I don't really need mobile data that much. Also by law you must provide us with free access to VK (social network) anyway so it makes no sense to pay you $45 for this". But is US, customers are paying and do not complain, because for them it is not that big price. This is what I meant by "customers are ok".

Yes, mobile providers market is not a free market, as there are small number of companies both in US and in Russia. But the price they charge customers is different in these countries despite they use similar equipment which probably has the same cost. So the difference in prices can be explained by what people in different countries consider "cheap" and "expensive". The provider charges as much as possible, but less than a customer would consider "too expensive".

And the same thing is about housing prices, they do not really correlate with expenses to build them. It takes the same amount of money to build an apartment in Moscow and in a small city in Siberia, but the price for the buyer will be very different.

comment 3y ago · link · parent

Could it be because in capitalism, the seller tries to take as much money as possible from buyer and the price is not related to expenses?

Let me give an example that can illustrate this: a typical mobile plan from Verizon in US costs $45/month and gives you 15 Gb of traffic. At the same time in Russia one can get 30 Gb for $9/month. Are expenses for maintaining a cell network 5 times higher in US? Unlikely. It is just customers in US are richer and are ok to pay more for the same service.

I don't know how this effect is called, but couldn't the same thing happen to education, land or housing costs? These are obviously things that everyone needs desperately so the seller will squeeze the maximum they can, and the price is unrelated to how much the lecturer earns or how much the bricks cost. The house will cost you almost all your life's earnings no matter where you live.

comment 3y ago · link · parent

> P.S.: I didn't want to open the box of performance issues of microkernels

Why are there performance issues? Are there any reasons for them except for context switch costs (which are only due to legacy CPU architectures that were optimized for outdated insecure OSes)? Is microkernel architecture somehow incompatible with good performance?

comment 3y ago · link · parent

> while production systems are generally hardened with SELinux and AppArmor out of the box, making practically exploiting them much harder.

Is it really so? I get an impression that SELinux is a so complicated that nobody wants to bother with setting it up and everyone disables it as soon as possible.

comment 3y ago · link · parent

4,000 liters per day is too much. It is 10 full bathtubs. Do Americans leave the tap open or do they take a bath 10 times per day?

comment 3y ago · link · parent

As I understand, before getting 50-cent water you need to pay a billion dollars upfront. Why so expensive?

comment 3y ago · link · parent

The author have mentioned that water with more than 1-2 promille of salt is considered not drinkable. But I have a bottle of carbonated mineral water from the mountains and the label says it contains 6-9 g of salts per 1 liter. So I guess it depends on which salt it is.

Also, the author mentions that people in US use 1100 liters per day (which is too much in my opinion), but not all this water needs to be drinkable, one probably can not drink more than 3-4 liters per day, and the rest of the water can be salty.

comment 3y ago · link · parent

It is obvious to me that third-party sites are motivated to employ every trick to increase ad views. Google cannot show ads to bots, because it will be a fraud, but a third-party site can because they are in a different country and you won't hold them responsible anyway.

comment 3y ago · link · parent

As I understand, the problem here is that Google wants to run your ads on third-party sites (to earn more), but you don't want to run ads there because third-party sites employ every trick possible to generate impressions even if real user never sees the ads.

If you care about money spent, you should calculate ROI for each third-party site and filter out those which give low returns. And not expect that Google will do that for you.

comment 3y ago · link · parent

If "children" make such media themselves, is it still considered an "abuse"?

comment 3y ago · link · parent

Should we make ordinary laws also paid? The lawyers earn ridiculous profits so it is only fair that they share some of it with law authors.

comment 3y ago · link · parent

Also, I remembered, there is /dev/pts, a weird file-based API that you need to use to create pseudo-terminals.

comment 3y ago · link · parent

> The goal is to do it once

There is an universal interface, it is called "system call". Rather than build unnecessary layer on top of it, improve the syscalls if you don't like them, and get rid of ioctls, /proc, /sys and other pseudo-syscall abstractions.

comment 3y ago · link · parent

Why not make real syscalls rather than emulate them using socket-like interface? Doesn't make much sense to me. For example, if you want to filter syscalls then it becomes more difficult (need to remember which type of socket it is, need to parse the structures and so on).

comment 3y ago · link · parent

> This interface is probably a good one.

This interface is a bad one because if you want to filter syscalls then it will be difficult to distinguish write to a file from sending a signal.

comment 3y ago · link · parent

Your calculations might be wrong. If the distance is 1000 km (1M meters), and inverse square law is correct, then the sound would become 1M*1M = 1T times more silent. 1M times smaller is 120 dB less, and 1T times smaller is 240 db less, so the amplitude of sound should be at 210 - 240 = -30dB less than threshold of hearing.

Also, I wonder, if sound of explosions propagate that well, can one install multiple sensors to detect and map source of gunfire and artillery positions in realtime? (I hope I haven't disclosed NATO military secrets here).

comment 3y ago · link · parent

> it would be great if everything was a file

This is a bad design. Process is not a file because you cannot send signals to a file, or cannot debug a file. Network socket is not a file because you cannot get file's peer address. Shared memory is not a file. And so on.

comment 3y ago · link · parent

"Everything is a file" is not a good idea, because different objects have different interfaces. For example, a network socket is not a file because you cannot seek it. A process is not a file because you cannot send signals to a file.

This also caused appearance of syscalls like ioctl - very ugly solution. Ioctl is a large and undocumented API. Pseudo-filesystems like /proc or /sys are also examples of undocumented APIs.

Instead of "everything is a file", "everything implements well-documented object-oriented interfaces" would be much better idea.

1
939495
185