News for hackers. Stuff that matters.

melvyn2

Re:Debunking Zswap and Zram Myths on Tuesday March 24, 2026 @11:25AM (#47504046)

  echo 1 > /sys/module/zswap/parameters/enabled

It's in TFA.
Re:New Book-Sorting Algorithm Almost Reaches Perfection on Friday January 24, 2025 @05:21PM (#42817493)
These are sometimes called Galactic Algorithms: https://en.wikipedia.org/wiki/Galactic_algorithm

The very first example on the page has a pretty good quote describing their usefulness:

>>> An example of a galactic algorithm is the fastest known way to multiply two numbers, which is based on a 1729-dimensional Fourier transform. It needs O(n log n) bit operations, but as the constants hidden by the big O notation are large, it is never used in practice. However, it also shows why galactic algorithms may still be useful. The authors state: "we are hopeful that with further refinements, the algorithm might become practical for numbers with merely billions or trillions of digits."

Re:Stop Making Me Memorize the Borrow Checker on Saturday November 16, 2024 @07:36PM (#42160909)
The borrow checker exists to force you to learn, rather than to let you skip learning. To make an analogy, I think it would be weird if I complained that I had to "memorize the rules" of the type checker rather than learning how to use types as intended.
Re:How is the SSD installed – M4 Mac Mini (2024) on Friday November 08, 2024 @09:01AM (#42086904)
Obtaining a custom storage module seems to involving reverse engineering the PCB, printing it and sourcing the NAND modules, and then BGA soldering that all together: https://youtu.be/HDFCurB3-0Q

Not a user-friendly process, I think.

Re:Study: Cats Are Almost Liquid on Thursday October 17, 2024 @12:23PM (#41871106)
> Cats are also aided by their large and sensitive vibrissae, which are positioned on such locations of their head that the cat can detect nearby obstacles in closer encounters. Vibrissal sensation can compensate for the somewhat weaker vision in cats from closer distances or in poorly illuminated environments. Therefore, it is possible that cats approached the narrow openings in our experiment without differential hesitation, and they could use their vibrissae to assess the suitability of the apertures before penetrating them.
Re:Comma.ai: Refactoring for Growth on Monday August 12, 2024 @12:54AM (#41221256)
How many of those accomplishments were truly his, I wonder ? https://social.treehouse.systems/@marcan/109561314682149814
Here's a case study of 42: https://journals.sagepub.com/doi/10.1016/j.jfms.2009.09.018 And there's certainly many more cases than just those at a "referral hospital in Sydney, Australia."
AltStore is a bad joke, you can only install 2 apps (three, minus the altstore app), and you have to connect your phone to a MacOS computer and run the app every week.

Just let me click on an IPA to install it, it's really not that deep!

Re:Incognito Darknet Market Mass-Extorts Buyers, Sellers on Tuesday March 12, 2024 @12:36AM (#39676241)
For dark-net markets, server-side encryption is already seen as a failsafe rather than a feature, and smart users ALWAYS encrypt client side (PGP). That said, for activities like these, smart users are not necessarily the majority...
Re:VirtualBox KVM Public Release on Thursday February 08, 2024 @10:56AM (#39303443)
Could you link the change? At least a few days ago virt-manager still seemed to have scaling issues with guest displays, on nixos-unstable. I had viewer scaling on though as a workaround, so maybe I just didn’t notice.
Re:totally_safe_transmute, Line-by-Line (2021) on Monday January 08, 2024 @07:02PM (#38920376)
Calling C functions like process_vm_writev from libc requires unsafe code.
Re:There is an oom kill count in Linux on Sunday December 31, 2023 @08:40AM (#38823970)
For desktop use, nohang does what the name says.

https://github.com/hakavlad/nohang

Re:To revive Portland, officials seek to ban public drug use on Monday December 11, 2023 @08:05PM (#38607813)
Prohibition increased alcohol-related deaths and created a black-market of products so much worse than the regulated market before or after[0]. I would say that, in fact, prohibition did not work.

And neither does current drug prohibition. Fentanyl deaths are directly caused by the black-market supply of drugs in the US, and it isn't "decriminalized" cities like Portland that are leading these charts[1]. The current drug prohibition just means that the demand that will always exist is being supplied by mis-dosed poison instead of a well-regulated market like modern alcohol (and marijuana in some states).

[0] https://en.wikipedia.org/wiki/Consequences_of_Prohibition [1] https://www.cdc.gov/nchs/pressroom/sosmap/drug_poisoning_mor...

6500K is not really “extremely” blue, it approximates the color temperature of midday daylight. Most color specifications including Rec. 709 (basically sRGB) specify this color temperature through the D65 white point [1], so to display colors reliably close to spec you actually need this specific temperature/spectrum.

It’s certainly cooler than most indoor lighting, but 6500K bulbs in stores are as common as warmer ones (IME). Variable-temperature bulbs work well enough to output it too, and I would actually recommend using them to get a good matching daylight white when indoors during midday, while still being able to have warmer colors in the evening or at night (just as night color modes do for your monitor).

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

Re:Google vs. the Open Web on Wednesday July 26, 2023 @12:34PM (#36880501)
No, Valve is specifically noted for not having a kernel-driver anticheat in a landscape where most competitive games do use them. Notably, Easy Anti-Cheat, BattlEye, and Valorant's Vanguard all use kernel drivers, but no Valve Anti-Cheat has, because they've focused on server-side heuristics and crowed-sourced detection instead of trying to force the client to rat itself out.
Re:Buying an iPad Pro for coding was a mistake on Friday June 30, 2023 @09:12AM (#36534231)
The pixel, for example, already has a secure yet user-unlockable bootloader. So do modern x86_64 PC's. Statements like these, claiming that only apple can properly secure a device (and hence that users deserve to be locked out), simply show astounding ignorance.
Re:Buying an iPad Pro for coding was a mistake on Friday June 30, 2023 @09:04AM (#36534124)
As surprising as you may find it, Apple doesn't have a monopoly on good hardware. The stereotype of any non-macbook being a toaster is practically a strawman at this point (while people are so quick to forget the atrocity of the i9 macbook).
Re:Ask HN: Stock Android phone free of bloatware? on Friday June 30, 2023 @08:58AM (#36534042)
Because apple software has no telemetry?
Re:Rarbg Is No More on Wednesday May 31, 2023 @01:21PM (#36140941)
1377x is an ad-hijacking "clone" of the real 1337x
nftables is the new underlying kernel system, and the (unfortunately named) `nft` cli to manage it seems to be widely available.
Wayland is a more versatile protocol. OP is misrepresenting a little bit, the base protocol v1 is finalized but desktop use will need and already does use many standard extensions.

Nothing about being assholes, just a bureaucratic design.

SF has relatively low violent crime compared to other cities, while drug sales are to be expected where a significant amount of people think drugs should be decriminalized or legalized. I don’t think the city has much of anything to do with the point of vague “moral decay.”
Re:The Day Windows Died on Monday April 03, 2023 @01:59AM (#35419065)
B is clearly anti-consumer. Software running on “my” hardware should be in my control.
I was under the impression that the EK could be used to identify individual TPMs- why can’t it?
From wikipedia:

> Computer programs can use a TPM to authenticate hardware devices, since each TPM chip has a unique and secret Endorsement Key (EK) burned in as it is produced.

That EK is signed by the TPM manufacturer, and so it’s likely they’ll only trust the keys of physical TPM manufacturers. Good luck forging that in software.

Re:Homebrew 4.0.0 on Thursday February 16, 2023 @01:20PM (#34823034)
It does that by making a global location (/usr/local) user-owned, which I'd say is much worse.

Older »