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

I meant use the name of the program that embeds SQLite, for example, McAfee, Google Chrome etc. This way the user could easily understand which program has created the files.

comment 3y ago · link · parent

This is a bad choice, I wouldn't understand that it needs to be read backwards. Why not use process's executable name instead?

comment 3y ago · link · parent

For AI communication with human might be really boring and not worth time spent. Imagine if human was thousand times slower in thinking, and produced thousand times less deep thoughts.

comment 3y ago · link · parent

Honestly, web platform is an ugly example of bad engineering, lot of legacy, weird choices, lots of privacy leaks, dangerous crossdomain requests enabled by default, etc. Instead of adding new APIs it would be better to freeze it and design a better platform.

comment 3y ago · link · parent

Apple will be the first to implement this, as history shows.

comment 3y ago · link · parent

> supply is limited by the surface area of the earth

But US is not a small country, how can there be not enough land?

comment 3y ago · link · parent

You cannot send cash online anonymously unlike gift cards. But I am for anonymous money transfer so I am ok with gift cards.

comment 3y ago · link · parent

Panic so that the invalid value doesn't get stored into the database or somewhere else. The developer then would notice the problem and fix it.

Silently using invalid value is the worst choice.

comment 3y ago · link · parent

As the amount of money is limited it is important to set priorities.

If you have extra money to give away then it is better to give them to parents to promote creating families, to pay for education for children from poor families, to improve free medicine, to create new jobs etc. It doesn't make sense to give money to people who are just lazy and got used to spending their parents' money instead of working. They will just spend money on alcohol, cigarettes or online games.

comment 3y ago · link · parent

Parents contribute to society by providing future workers and soldiers.

comment 3y ago · link · parent

Then almost anyone except software developers and riches won't be able to have kids, and 20-30 years later there will be nobody to serve in the army and protect your country. Great plan.

comment 3y ago · link · parent

This whole idea is stupid. How about giving proper financial support for parents and covering all expenses for raising a child and not just give away money to lazy people who don't want to work and contribute nothing to society.

comment 3y ago · link · parent

I don't understand why in Rust integers wrap around. It doesn't make sense and there are vulnerabilities caused by wrapping integers in C.

comment 3y ago · link · parent

It doesn't explain why GPUs that are integrated into a CPU (like AMD's ones) and use the same memory, cannot use it all.

If they could use all memory, you could cheaply run neural networks with 64Gb of RAM without buying a professional GPU. No wonder manufacturers don't want you to be able to do that.

comment 3y ago · link · parent

Very interesting but swing is so difficult to hear in real tracks. Also I noted that in the "swing" example, if I enable swing on bass and hi-hats then kick and snare (which are supposed to be straight) start to sound slightly off beat.

comment 3y ago · link · parent

> spam

How can you spam by creating a free domain? Or did you mean that search engines currently rely on fact that it is expensive to have many domains and their ranking algorithms get broken with free domains? Maybe they should just change their algorithms then, for example, have human-moderated search.

> and abuse of free domains

What harm can you do with a free domain? I don't understand.

comment 3y ago · link · parent

Wasn't whataboutism forbidden on HN?

comment 3y ago · link · parent

> Endpoint protection solutions can be installed in iOS devices.

How does "endpoint protection solution" protect from 0-day exploits? I guess it can do that only in marketing materials, not in reality.

comment 3y ago · link · parent

Because they were deceived by Apple's quality promises?

If Apple really wanted to improve security (instead of just producing marketing claims about it) they would provide anyone with debugging symbols, root privileges and anything else needed for research and debugging.

comment 3y ago · link · parent

I don't know anything about Zig except that it is a low-level language. Can someone please explain how it is better than Rust?

comment 3y ago · link · parent

You have given an approval to do anything with your laptop when you chose to install Windows.

comment 3y ago · link · parent

> You think "A theme shouldn't require file storage access" and then spend an hour looking up why it does and find out there is actually some strange but totally legitimate reason for it

No. You think it is suspicious and install another theme that doesn't request anything.

comment 3y ago · link · parent

If there was a permission dialog with boxes I would gladly check or uncheck them because nowadays I need to write bash scripts, create separate users or build containers for every third-party app. Why doesn't OS include necessary tools?

comment 3y ago · link · parent

> Applying capability models to these executables will require OS support or containerization, but the overhead for memory and disk will be huge.

This is because most OSes use outdated security model where the app gets all privileges by default and poor users have to build containers to revoke them, that's why there is an overhead.

If the extension only has access to project files then all applications launched by it should inherit its restrictions.

comment 3y ago · link · parent

If I am the one who decides what is locked (and not Google or Apple) then "smartphone" security model is good for me.

comment 3y ago · link · parent

Yes! Sadly, today nobody seem to care about the principle of least privileges. Take Linux as an example: every program you install gets full access to the system, and gets thousands of privileges it doesn't need. If your PDF reader is vulnerable, it will have both access to your SSH keys and to the Internet to upload them (and if you block Internet access for a PDF reader, it still can send the data by connecting to systemd DNS resolver via DBUS and exporting your keys as DNS requests).

Security is a joke in Linux in default configuration.

> . It should be an obvious red flag if a [theming addon] were to ask for those dependencies

No. Theming addons should not even be able to ask for those privileges.

comment 3y ago · link · parent

As I understand, VSCode extensions can run arbitrary shell commands and Microsoft didn't add any security measures (e.g. asking a user for confirmation). In this case it is only a matter of time, motivation and perseverance until all users who use extensions will get a back door.

Of course this applies not only to VS Code, but to any other software which allows to install third-party extensions like browsers, Gimp, Inkscape, DAWs like Ableton Live, etc. Their developers do not care about security and do not take measures to protect against malicious extensions.

comment 3y ago · link · parent

> All of this is try for multi-level electronics but even more so, making it easier and more reliable to work in binary than 3, 4, or more levels per bit.

You don't need many levels. IBM's tabulators used pulses to represent numbers in decimal (e.g. 6 pulses to transmit digit 6). That's why it is surprising that computer developers didn't reuse existing technology and went with a new system.

comment 3y ago · link · parent

I wonder how developers of computers came to idea to use binary numbers? As I remember, early calculating machines used decimal system (e.g. Babbage's machine, IBM's tabulators). For example, did Konrad Zuse invent floating-point binary representation himself when developing his machine or there were previous works which described how numbers can be added in binary system using relays or tubes?

So, were there any works on floating-point binary numbers and implementing operations with them before 1938?

Also, did he invent logic gates or there also were previous works?

comment 3y ago · link · parent

Also I think this thread is a good place to complain about the paper. The model is not described clearly. For example, try to find the size of input data vector for the model in the paper - it is not specified. There is also a misleading phrase

    All sub-layers in the model, as well as the embedding layers, produce outputs of dimension d_model = 512.
which makes the reader think that each block (Transformer) gets 512-dimensional vector as input and produces 512 numbers at the output. But this is wrong. 512 numbers is just a single word, not entire text or internal state. I could not understand this from reading just the original paper.

Also it is not written where do keys, queries and values for attention come from.

1
959697
185