HackerLangs
TopNewTrendsCommentsPastAskShowJobs

codedokode

9,251 karmajoined vor 11 Jahren
PHP developer from Russia.

comments

codedokode
·vor 19 Stunden·discuss
> Off the top of my head, I think trained listeners can actually notice differences of 0.3 dB, though this sort of thing is going to be frequency dependent too.

But can they notice the difference on a random track, not on special test audio? Probably not.

> Just play some music on your laptop/phone speakers and move the device around a bit, and you'll hear striking differences in highs and lows.

My laptop has speakers directed downwards, so putting a palm under it (to reflect sound upwards) increases the quality.
codedokode
·vorgestern·discuss
There are at least two options to verify age without humiliating procedure of taking a selfie with a passport like a porn actor.

First, there are USB tokens that can hold a private key and sign messages. Such tokens could be sold at places accessible only to adults and verify that they are indeed adult. Obviously every token should hold the same private key.

Second, OS could implement "parent mode" which allows installing only white-listed, government approved apps (no Telegram or Whatsapp or other dangerous apps, but school apps are ok) and opening only white-listed government-approved websites. Put in jail the parents who did not set up a parent mode. Problem solved without passports and verifications.

If, however, the government insists on selfies, it means they just want to identify users and compile lists of "untrustworthy", "rebelious" and other persons of interest.

Also, employees who do verification, sometimes create internal chats where they post pictures of clients and mock their appearance. We had such case with Alfa-Bank in Russia, where the photo of a funny client with a passport and third-grader level comments leaked to Instagram account of employee's friend. The bank paid approximately $20 as a compensation.
codedokode
·vorgestern·discuss
Also, GLM 5.2 seems to be the best open-weight model, and it beats proprietary Gemini and older versions of Claude which is amazing. You can have a model at level of Claude Sonnet 4.6 at home without sharing anything, and maybe even uncensor it.
codedokode
·vorgestern·discuss
Sadly no tasks for C, especially for working with optimized low-level data structures. And with testing performance of a solution. Anyone can write Python, try writing optimized low-level code.

Also I wonder if models playing dumb to prevent learning on outputs affected the score.

Also interesting that Claude edits files by writing and running Python scripts, is that efficient?
codedokode
·vor 3 Tagen·discuss
> But they never ask themselves how the baker gets all his materials to the bakery.

You can allow transport for business (speed-limited to 30 km/h or ~20 mph) and ban individual's cars. There are busses, trams and subway and there is no need to have a car.
codedokode
·vor 3 Tagen·discuss
Sites that are backed by a billion dollar company typically have better antibot protection, and lot of expertise in this.

Also, patched browsers have existed since long ago, although they were not open-source.
codedokode
·vor 4 Tagen·discuss
The permissions are per-user, not per-app and that is the problem. The distibution developers assume that you trust the programs you run, but how can I trust commercial and proprietary software? How can I trust the code from a random guy on Github without a passport verification?
codedokode
·vor 4 Tagen·discuss
That's the problem with many Linux distributions - their developers assume that you trust programs you run and if you run malware it is your fault. But you cannot trust commercial and closed-source programs so Linux is not ready for using them. Instead of solving the problem they simply make it user's responsibility.

So as a responsible user I am slowly writing my own sandboxes, struggling with lack of documentation and designing workarounds.
codedokode
·vor 4 Tagen·discuss
Yes but not $1000 level expensive, right? It is just a tiny piece of metal, and on laptops there are no pins at all.
codedokode
·vor 4 Tagen·discuss
Different kernel modules might have different vulnerabilities.
codedokode
·vor 4 Tagen·discuss
[dead]
codedokode
·vor 4 Tagen·discuss
One server is enough for many small businesses. And for large business (like X or Instagram) it is economically more profitable to own their servers. For example, in my country top companies like VK or Yandex own their datacenters and sell cloud services instead of paying for someone's else cloud.

Also if you have several servers you do not need to hire a full-time sysadmin.

> Managing a non-trivial hardware fleet requires people, and people cost money.

People in AWS also cost money and guess who is going to cover this cost?
codedokode
·vor 4 Tagen·discuss
> LPE: On distributions such as RHEL, /dev/kvm is world-writable (0666), so an unprivileged user can also use this vulnerability as a reliable LPE to gain root.

Why on Linux device files are accessible by untrusted applications?
codedokode
·vor 4 Tagen·discuss
Then what's about using 4-8 cheapest motherboards with 64Gb DDR4 and a cheap CPU, and connecting them via PCIE x16 sockets?

And as for DRAM channels, typical cheap motherboard has 2 channels and 4 slots, it should not be super difficult to add 2 more channels.
codedokode
·vor 4 Tagen·discuss
> any costs for CPU, chip set, and motherboard redesign.

Yes they spent those costs to switch from DDR4 to over-priced DDR5 and I suggested the cost could be spent on adding more DDR4 channels instead.
codedokode
·vor 4 Tagen·discuss
Why is that so?
codedokode
·vor 4 Tagen·discuss
So what I am trying to say, industry took a wrong turn. Instead of moving to over-priced DDR5, they should just make even cheapest CPUs support 8/16 DDR4 channels. Because a 32Gb DDR5-4800 module costs $360, and two 32Gb DDR4-3200 modules cost $320, so you get twice more size, more bandwidth and it costs you less. DDR5 is just a rip off.
codedokode
·vor 4 Tagen·discuss
Please note that 8 x 16 Gb DDR4 modules cost $480, and have a bandwidth of 200 Gb/s, the only problem you need 8 DRAM controllers.
codedokode
·vor 4 Tagen·discuss
32 Gb DDR4 RAM module has a bandwidth of 25 Gb/s and costs $160. If you buy 8 of these, you get 256 Gb RAM with 200 Gb/s bandwidth at $1280. And if you buy 16 x 16 Gb modules (each at $60) then you can get 400 Gb/s of bandwidth for $960.

The only problem, you need 8 or 16 memory controllers. Memory controllers are not that expensive: Intel Core i3-14100F has 2 channel controller and costs $110, so we can estimate that 16-channel controller should cost not more than $880, and 8-channel controller should cost $440.

So isn't it better to make a cheap CPU with 16 DRAM controllers instead of this $4K gear having only 128 Gb? Or maybe 2 CPUs each having 8 RAM channels?

DDR5 costs 2 times more ($360 for 32 Gb) while not even having 2 times the bandwidth so it is not worth buying. It is more reasonable to make more RAM channels and stuff them with DDR4.
codedokode
·vor 5 Tagen·discuss
Consumers do not decide anything, they will buy whatever is in the store.