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 5mo ago · link · parent

I did not suggest that; what I suggested was that the programs should run in sandboxes.

comment 5mo ago · link · parent

This highlights the problem with legacy desktop OSes like Windows, Linux and MacOS: they allow a random program from Internet to get full access to the computer. Windows and Mac display a warning that the program might be malicious, but how is the user supposed to check it? Do Windows and MacOS developers expect every user to disassemble the program? That's just shifting responsibility instead of solving the root issue.

And Linux has no warning and no button to check the program with antivirus before running. How worse could it be?

In comparison, on Android and iOS there are sandboxes, and you can run any program relatively safely as long as you don't grant dangerous permissions and your kernel is not outdated. And even if you grant permissions, the malware still won't be able to read your browser cookies or the messages in your Matrix client.

Linux needs to be better that this. Linux seems to be built on presumption that you either download the code from official repository you trust, or write your own, and doesn't support safe execution of third-party or closed-source programs. For example, if you run proprietary software, it might scan through your data, silently collect your hardware identifiers (like motherboard serial number) to better track and identify you and Linux does not prevent this.

comment 5mo ago · link · parent

> Why do they delete a commit and push a new one every few hours?

Maybe they want to get into "trending" section, or to have higher position in search results (maybe Github or Google prioritizes repositories updated recently)?

comment 5mo ago · link · parent

The pagination is not always done with page numbers, sometimes there are "next" and "previous" tokens.

comment 5mo ago · link · parent

When adding new HTTP methods, they should have included protection against cross-domain requests into the method, i.e. the server should not response to QUERY requests from another domain by default and the browser should not include cookies and auth in cross-domain requests. This was a mistake not to disable cross-domain GET/POST requests and it should not be repeated.

comment 5mo ago · link · parent

I always wondered why US cannot pressure India to crack down on those scammers? They use phone network, it should not be difficult to find them. Some youtubers even hack into their computers and extract all the info. US probably has a leverage here, they could simply ban Indian companies from working with US if they don't cooperate.

US was so angry about "unfair" tariffs why are they not angry about criminals stealing from Americans?

comment 5mo ago · link · parent

Why not limit LLM access only to citizens? Do you want people in North Korea to use your LLM to automate their hacking?

comment 5mo ago · link · parent

To be fair, C is a pain to use, so it is better to improve Rust. It is annoying when for example, you have to free several allocated structures when there is an error in the middle of a functon.

comment 5mo ago · link · parent

Nobody is going to write "checked_add" because that's too long and people are too lazy. The checked addition should be "+" operator.

comment 5mo ago · link · parent

In case with coreutils, as I remember, there were mostly race conditions. Not memory safety issues. Maybe we just need better I/O libraries.

comment 5mo ago · link · parent

> DFVULN-123 (Integer Overflow): In the RTP LATM depacketizer (rtpdec_latm.c), latm_parse_packet() performs a signed 32-bit addition that overflows and bypasses its bounds check

Again there is another vulnerability caused by unchecked addition, and still modern languages like Rust or Go do not raise exception on overflow, and modern CPU architectures like RISC-V provide no overflow traps. And older languages like C or C++ do not have overflow checks also.

Ridiculous. It is obvious that humans cannot be trusted with writing correct arithmetics code.

comment 5mo ago · link · parent

If there are so many vulnerabilities, should not they change approach to development, for example, use memory-safe languages, static analysis, do not use dubious "hacks" that break it?

comment 5mo ago · link · parent

The LLM use should be restricted and not accessible to anyone because there are many hostile people around. Do you want North Korea to use American LLM to write malware? Do you want foreign scammers to automate their scams with LLMs? Do you want Iran and China to use American LLMs to make better drones and process satellite imagery? Then go ahead, remove the guardrails.

There are no enthusiasts training LLMs in their garage.

comment 5mo ago · link · parent

"damaged" by not paying 99 bucks.

comment 5mo ago · link · parent

This is why you should never consent to DNA collection because they will just keep it and sell it later without paying you a cent.

comment 5mo ago · link · parent

The future is with gene editing to fix invalid genetic code. However, the owners of good genes probably won't give them away for free so it would be available only to the riches.

comment 5mo ago · link · parent

This is unrelated to spam calls. Business will register thousands of phone numbers for "surveys" and will continue spamming with AI calls.

comment 5mo ago · link · parent

They can also use VoIP. So just banning calls from abroad is not enough, you need to better regulate VoIP services.

comment 5mo ago · link · parent

Foreigners must provide their biometric data to buy a local SIM card. They better just use a tourist SIM card.

comment 5mo ago · link · parent

In Russia you need an ID to buy a phone number, and almost every site or app requires it to sign up. As a nice bonus, you or any scammer can buy personal data on everyone for cheap in Telegram bots, because everytime there is a PII leak, these bots update their vast databases.

comment 5mo ago · link · parent

It is obvious that they edited the images to make blobs look shorter vertically. And in some cases, simply copy-pasted non-existing blobs.

comment 5mo ago · link · parent

I disagree. If you look at the photos the painting used to make black blobs shorter. As I understand, black blob vertical position is the weight of a molecule, and they want to hide the fact that there are heavier or lighter molecules. So originally there was a long blob, and they made it look shorter.

comment 5mo ago · link · parent

The problem with replacing exec/fork is that you usually want to configure new process: for example, set up signal handlers, close or open FDs, switch namespaces, setup seccomp, adjust permissions. And all the system calls to do it apply only to the current process and you need something to replace them. The proposal in the article was to create a new API for this.

My idea is that we could make a new syscall, for example "spawn", that creates a new empty process, loads some lightweight "loader" into it, and passes arbitrary configuration data. The loader configures the process and exec()'s the main program. This allows to avoid forking the memory and keep existing APIs, but still requires to fork file descriptors and other things.

comment 5mo ago · link · parent

USB modem, MIDI controllers, USB thumbdrives, external sound card.

comment 5mo ago · link · parent

Yes but monitor is not free, and you cannot travel (to the couch) with it.
1
192021
185