HNHacker News
TopNewBestAskShowJobs

codedokode

9,555 karma · joined August 20, 2015

PHP developer from Russia.
submissionscomments
codedokode··on A Cold War Spy Satellite Named After Farrah Fawcett Just Blew Apart in Orbit
Doesn't it look like it self-destructed at the end of life to protect its secrets?
codedokode··on The End of a Fair Price: Dynamic Pricing and the Normalization of Gouging
The house insurance in this case is a part of a mortgage contract or voluntary insurance? And if it is a part of a mortgage (as an extra payment), how does one predict how much they will have to pay for unexpected things like fixing the roof, and how does one estimate the full cost of a loan?

Also if it is a part of the mortgage why doesn't the lender pay for it? They need it, not the homeowner.

Is insurance company affiliated with companies doing the repairs?

codedokode··on Reducing undefined behavior in the C language
I wish they added some simple form of generics so that one could, for example, create types like "list of files", "list of processes" without duplicating the code.

Also, something for RAII, so that one could automatically deallocate allocated memory.

codedokode··on C's Flexible Integer Sizes Were Not a Design Mistake
I think it didn't work out well, because "int" being different size makes programming difficult. For example, a system must manage up to 100 000 records. Can I use int for record number? What if it is 16 bits? What if I need to send data between machines, how can I use "int" if it can be different size?

Probably someone noticed that it is inconvenient, and on 64-bit machine ints are still 32-bit and not 64.

The computers with 16-bit ints or 9-bit bytes are long gone, but the language still has to carry that legacy.

codedokode··on There are no "rogue" AI agents
Better not to say, I think.
codedokode··on In an $80 motel room, a discovery to shed light on the origins of life
I am not from US and with that money I could rent a tiny apartment for 2-3 days. However, I prefer cheaper accomodation. $80 is super expensive if you have no other place to live.
codedokode··on In an $80 motel room, a discovery to shed light on the origins of life
So $80 is considered a "cheap room"? How is a person supposed to earn $80 a day to pay for it and have something left?

Also, cells can have scales? Amazing.

codedokode··on Meta Blocks President Lula's Facebook Page, Campaign Ads 2 Weeks from Election
And also you can masquerade political ads as ads for a newspaper article, for example: "Governor A opens a new school" or "Party A declares amazing plans for next 5 years" (actually done here by ruling party, to work around election ad laws and limitations).
codedokode··on The Murky History of Soviet-Born Tetris
It is weird how they use the letter Я ("ya") as a "Russian" version of R. The Russian (actually Cyrillic) version of R is "P". So I read the name with flipped "R" as "Tetyais" and it makes no sense.

Also I wonder how Vadim Gerasimov managed to obtain an IBM PC-compatible computer: where he got the money and what store would be selling that. This shows how unequal and unfair the society became when reforms began at the late USSR. In earlier USSR, everybody would equally and fairly have no computer.

codedokode··on Breaking Up with Google Play: Why Conversations Is Now Free
What I do not like about Android is how difficult it is to unlock the bootloader without ever connecting the device to Internet. Any device with flash memory should be re-programmable and it should be illegal to prevent user from doing this or adding measures (like locking components to CPU via cryptography or adding anti-reverse engineering measures) that make it difficult.
codedokode··on Entering and Breaking the Avast Antivirus Sandbox Part 2
Antivirus is not a bad thing. Imagine running a company where there are 100 employees that click every link and open every attachment. Definitely safer with an antivirus.
codedokode··on CVE-2025-13032: Entering and Breaking the Avast Antivirus Sandbox Part 2
No, it is unfit for this purpose. The reason is:

- you need to specify the rules before starting an application. How one is supposed to guess what application will do? Figuring out the correct rules may take lot of time and is impossible for non-programmers. Imagine I want to install 10 apps per day and they should work perfectly, how much time will I be spending writing rules?

- the rules cannot be changed in runtime, for example, giving access to a camera for 1 minute

- the rules are too limited. You can restrict access to a file, but can you restrict access to a DBUS bus? Can you restrict access to audio, video, GPU etc? To /proc filesystem? To a DNS domain? The rules feel like they were written for computers with teletypes from 70s and not for modern machines.

- they do not allow providing fake data, for example, a fake list of WiFi points so that the app thinks it has the access to your geolocation while in reality is doesn't.

So it is some outdated technology unfit for modern day.

What does a user want? The user wants to be able to run anything without any risk and without writing any config files. Obviously it takes a skill to write such OS, and there is definitely a lack of people with this skill among Linux distribution creators.

A system where installation is done using "curl + sudo bash" is the opposite of a safe OS.

codedokode··on Meta takes down a critical video about meta AI Glasses after filming at Meta
Didn't Meta make the glasses in question?
codedokode··on Meta takes down a critical video about meta AI Glasses after filming at Meta
> I can't wait for smart glasses with facial recognition and a name tag that hovers over everyone.

What stops you from using a notepad? I do not want my face uploaded to Facebook.

codedokode··on Meta takes down a critical video about meta AI Glasses after filming at Meta
They made the glasses for filming people without permission?
codedokode··on Meta takes down a critical video about meta AI Glasses after filming at Meta
A person is being treated disrespectfully and your point is that they should do nothing with it. Filming without permission is no different than harassing or bullying. A weak person would bear with it, a strong one would punch in the face.
codedokode··on Meta takes down a critical video about meta AI Glasses after filming at Meta
There is not only law but respect and politeness. If you disrespect other people do not expect being treated respectfully.
codedokode··on Meta takes down a critical video about meta AI Glasses after filming at Meta
That would be the right thing. You want to film something, you don't use people passing by as a free extra and don't publish the details where and with whom they were going online. Is is just some American thing that they do not care about feelings of other people.

If you have any respect, don't film other people or at least blur them.

codedokode··on Meta takes down a critical video about meta AI Glasses after filming at Meta
Yes but isn't that what those glasses were made for by those Meta employees?
codedokode··on Two-tier encryption in the UK
Interesting, the government can demand creating a backdoor and doesn't let anyone tell about it. Basically, outlawing E2EE.
codedokode··on Swap, ZRAM, Zswap and Hibernate on NixOS
> I mostly want to note that swap files can complicate hibernate.

Only in Linux - Windows has no problem with swap in a file. Swap partition is an awful idea because you cannot easily resize it.

Zram is also a bad idea, when it is filled, the system starts swapping to a disk, and old pages nobody needs are kept in RAM forever. Zswap is better in this aspect - old pages are pushed to the disk and newer ones kept in memory. But Linux distributions use zram by default.

Also, it seems that many distributions now place /tmp in RAM (tmpfs). Whoever made such decision is not very bright. When you place a large file in /tmp (for example, viewing a large compressed archive which is automatically unpacked into a temporary location), it fills the memory and the systems locks up completely, including mouse and GUI - because bright people developing Linux cannot think of reserving resources for desktop environment to prevent exactly this situation. Why reserve memory for GUI? Obviously files placed into /tmp are more important. Who needs GUI nowadays when you can easily connect over SSH from another machine and kill the misbehaving program.

If you are making a Linux distribution, do not place /tmp into memory. Or at least check how much RAM user has, and add a limit on tmpfs after which files are pushed onto the disk. Also, do reserve memory for window manager with high priority.

codedokode··on Tokens Too Cheap to Meter
> We are likely to see LLMs integrated into every part of computing as infrastructure, not just as a product, in the next year or two.

Of course, for collecting better telemetry using local AI for analyzing video from camera and audio from a microphone.

codedokode··on There's a high chance of devices being sold with GrapheneOS preinstalled in 2027
The problem with those free OS is that they usually work on top models which cost like 4 ordinary smartphones. It is experimental software that doesn't work perfectly, and it makes no sense to pay that much for it. So with high prices they are push away potential users.

Also, I would like no DRM, no serial id, no support for device verification, no trusted environments, re-programmable IMEI, no locked bootloaders, no proprietary code and no telemetry in any form or shape.

codedokode··on Transit rewards
For another comparison, Moscow Central Diameters system (electric trains traveling from Moscow to nearby small towns) has 4 lines, 137 stations, 188 miles total length. It uses united fare payment system with buses and subway and transfer from a train to the subway is free of charge. Fare is about $1-$3 depending on the route. To be fair, it goes through Moscow at a slow speed and takes an eternity to get anywhere, and its range is limited [1].

Moscow subway [2] has 17 lines and 309 stations. In newer cars, 2 USB-A sockets are available near every seat, ready for robots.

[1] https://en.wikipedia.org/wiki/Moscow_Central_Diameters

[2] https://en.wikipedia.org/wiki/Moscow_Metro

codedokode··on Spymarks, not Watermarks
There are other LLMs including open-weight ones. They cannot put your ID into the image.
codedokode··on Study: Young users (9 to 18Y) ditch Google for AI, with unknown consequences
Yes if you search anything in Google, you typically get sites that have a cookie panel, ask to allow notifications, show "Login With Google" popover taking the keyboard focus, and lot of ads before you can even read the content. No wonder people do not want to use Google anymore.
codedokode··on Spymarks, Not Watermarks
What about asking LLM to re-draw the image from scratch? Or pass through AI editor?
codedokode··on Spymarks, Not Watermarks
How can you prove that the photo is taken by real person and not brought by men in black suits and signed by Apple?
codedokode··on Spymarks, Not Watermarks
Yes? What other answer could be there?
codedokode··on Spymarks, Not Watermarks
This is another reminder that commercial companies will always rat you out and betray.
Page 1 of 34Next →