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

The fix is not to sell important weapon components to everyone willing to pay.

comment 2y ago · link · parent

> nor can you audit every line of code all the time

You can if you distribute this job among volunteers or hire people to do that. There are millions of developers around the world capable to do this. But reality is that nobody wants to contribute time or pay for free software.

comment 2y ago · link · parent

You can as well find yourself on a host that doesn't have SSH or network that filters SSH traffic for security reasons.

comment 2y ago · link · parent

But the probability that 16-byte value will be split over two 64-byte cache lines is not very high (I think it is 1/8). Is it worth optimizing for an unlikely case?

comment 2y ago · link · parent

I don't understand why align 128-bit values to 16 bytes and waste precious memory if CPUs read and process data in 8-byte chunks anyway. Or is alignment necessary for SSE insructions? But SSE doesn't work with 128-bit integers.

Also, if program uses lot of memory (due to alignment) it can cause swapping and the performance will be much worse than with unaligned storage.

comment 2y ago · link · parent

I was thinking about this idea (using only additions for inference) before too. The article says about using 1-bit values for weights, but there is also another option: use integers for weights, but allow the output of a neuron take only 0 and 1 (for example, 1 if output is > 0 and 0 otherwise). In this case we do not need multiplications as well, but cannot save memory for storing weights. Maybe it has some other advantages, who knows. Never had time to research this further.

comment 2y ago · link · parent

The problem is that the bank will automatically enable online access and SMS-confirmed transfers for that 100 year old person who doesn't even know how to use Internet.

comment 2y ago · link · parent

Something that is critical to life should not be connected to Internet.

comment 2y ago · link · parent

> If the code is complex, there could be many more exploits hiding.

Then the code should not be complex. Low-level hacks and tricks (like pointer juggling) should be not allowed and simplicity and readability should be preferred.

comment 2y ago · link · parent

But poor people suffer much more from raised rent than rich people from losing little money on dubious cryptocurrency investments. If the punishment was based not on absolute dollar amount but on damage relative to person's total amount of money then it would be more fair.

comment 2y ago · link · parent

The problem with tool bars is that usually you cannot guess what 80% of the icons mean.

comment 2y ago · link · parent

If you make a scammy-looking cryptoexchange and promise I will get rich if I invest, you won't be able to steal a single cent. Only dumb people can believe that you can buy cryptocurrency and get rich without doing nothing.

comment 2y ago · link · parent

To be honest, isn't 25 years too much? He didn't beat or kill anyone, he simply found dumb people and took little of their money. It is not like he was robbing poor people by increasing their utilities bill every year or raising rent. Why is such a small, non-violent crime so severely punished? Of course he deserves a punishment but maybe not that much?

comment 2y ago · link · parent

In JS you can delete properties, assign anything to them (no typing), cannot add comments to them, cannot restrict access from outside. Also you can access non-existing properties and no error will be thrown.

comment 2y ago · link · parent

Swift is compiled, static-typed language and without tons of legacy like JS (for example, it has real objects, not dictionaries). Doesn't require an interpreter. It seems to be better than JS in every aspect.

comment 2y ago · link · parent

JavaScript is non static-typed and you'll spend time fixing bugs that can be prevented by static typing. Also, GJS is not well documented, as far as I remember.

comment 2y ago · link · parent

I don't understand why there are so many negative comments. Writing GUI in C looks like a stone age programming, and people are simply wasting their time to do routine work that can be diminished by using another language. One might use Python, but it is slow and memory-hungry.

Isn't it good that now there is an alternative to C?

comment 2y ago · link · parent

> The GNU FAQ for determining if two programs have been combined into a derived works asks “if the modules are included in the same executable file” and “if modules are designed to run linked together in a shared address space.”

Does it mean I can put GPL code into a separate binary, communicate with it over RPC and use it in a closed-source product without contributing anything back?

comment 2y ago · link · parent

"UltraScale" in name assumes ultra price? FPGAs seem to be an expensive toy.

comment 2y ago · link · parent

Redis was popular enough long before clouds.

Also, with AGPL-style license Redis will not become less popular. Anyone still will be able to use it as a cache, but not as a free work done by others that you can resell without contributing back.

comment 2y ago · link · parent

I don't understand what's wrong with AGPL-style licenses. If I wrote something that can be used in a cloud I would also prefer AGPL to prevent cloud companies from selling software and taking all the profit while contributing nothing.

comment 2y ago · link · parent

And what if someone doesn't label the video? What if someone has drawn a fake video in Photoshop? The whole requirement to label AI-generated videos is dumb. Typical decision from some old politician who doesn't understand anything in AI or video editing and who should have retired 20 years ago instead of making such dumb rules.

Why movies are not labeled but AI video must be labeled? What about comedians impersonating politicians?

If Google or govt is afraid that someone will use AI-generated videos for bad purposes (e.g. to display a candidate saying things that he never said) then they should display a warning above every video to educate people. And popular messengers like Telegram or video players must do the same.

At least add a warning above every political and news videos.

comment 2y ago · link · parent

What is the difference between taxi licenses and medieval monopolies (corporations)? Corporations had exclusive right to do some trade (e.g. make bread or produce salt) and nobody else was allowed to do it.

comment 2y ago · link · parent

> is there any safeguard against SIM swaps

There is. Some Russian banks detect when SIM identifier has changed and refuse to send SMS codes to a new SIM card.

comment 2y ago · link · parent

Some banks in Russia detect when the SIM identifier has changed and refuse to send 2FA codes to new SIM cards as a measure against SIM swaps.

comment 2y ago · link · parent

The whole system where a person can lose a license and permission to work for arbitrary reasons is unfair. The license should prove that the person has necessary knowledge and should not be used as a mean to punish someone for his views or for being too smart to profit from unfair laws. If you want to punish people, there is criminal code.

comment 2y ago · link · parent

Are pizzas and hamburgers healthy food though?

comment 2y ago · link · parent

Isn't there too much calories in steak and chicken? Better to have just 2 slices of bread with 2 pieces of cheese and tea.

comment 2y ago · link · parent

Actually it might be the other way round. Chinese will not care if you critisize US govt in private messages, but US platform might actually report you to FBI.
1
787980
185