51 karma · joined Sep 4, 2023 (3y ago) · 19 submissions
comment 1mo ago · link · parent
- Chrome currently uses https://github.com/googlefonts/fontations to implement its font handling, and text is the main thing on most web pages.
- Windows' DirectWriteCore for font handling is also now written in Rust.
- Firefox's whole CSS engine and GPU 2D rendering engine are written in Rust.
comment 1mo ago · link · parent
It's not just me who prefers everything as fast as possible, but true of people in general. Google measured that slowing down loading a search page by only 400ms caused people to do fewer searches. And the biggest reason I heard people say they switched to Chrome was that it was faster than other browsers (which was true for the first couple years after release).
comment 2mo ago · link · parent
comment 3mo ago · link · parent
comment 5mo ago · link · parent
Looking at kernel commits, it looks like the driver may have been fixed since, but I'm scared to use it after it had such major brokenness in that version.
comment 6mo ago · link · parent
comment 8mo ago · link · parent
https://www.reuters.com/world/us/us-appeals-court-rejects-co...
comment 1y ago · link · parent
C++: https://en.cppreference.com/w/cpp/algorithm/clamp.html
.NET/C#: https://learn.microsoft.com/en-us/dotnet/api/system.math.cla...
Java: https://docs.oracle.com/en/java/javase/24/docs/api/java.base...
Ruby: https://ruby-doc.org/core-2.4.0/Comparable.html#method-i-cla...
Rust: https://doc.rust-lang.org/stable/std/primitive.f64.html#meth...
comment 1y ago · link · parent
I think it is misleading to conflate murder with people dying of health issues in detention after medical care.
comment 1y ago · link · parent
comment 1y ago · link · parent
https://en.wikipedia.org/wiki/List_of_Intel_Pentium_4_proces...
The Northwood chips were 50 to 70 W. HT chips and later Prescott chips were more 80 to 90 W. Even the highest chips I see on the page are only 115 W.
But modern chips can use way more power than Pentium 4 chips:
https://en.wikipedia.org/wiki/Raptor_Lake
The i5-14600K has a base TDP of 125 W and turbo TDP of 181 W, and the high-end i9-14900KS is 150 W base/253 W turbo. For example, when encoding video, the mid-range 14600K pulls 146 W: https://www.tomshardware.com/news/intel-core-i9-14900k-cpu-r...
More recent processors can do more with the same power than older processors, but I think for the most part that doesn't matter. Most people don't keep their processor at 100% usage a lot anyway.
comment 2y ago · link · parent
comment 2y ago · link · parent
√(2^256)×1.1774÷8000000000÷3600÷24÷365 = 1,588,059,910,945,875,138,261
UUIDs are more likely to collide but still basically impossible. You'd have to generate √(2^122)×1.1774 = 2714899559048203259 to have 50% chance of a collision. Just to store the UUIDs for that database would take 39,506,988 TB of space. If you aren't thinking about your database not fitting on millions of drives, don't think about UUID collisions.
comment 2y ago · link · parent
So I'm not sure it matters much whether APIs are copyrightable when what Google did was ruled fair use. I'd prefer if the courts ruled APIs weren't copyrightable, but I think it was still a good result because doing what Google did probably covers about any use case anyway.
comment 2y ago · link · parent
comment 2y ago · link · parent
1 kWh = 3.6 megajoules and 1 BTU = 1055 joules
The 6.6 kWh of the heat pump is 23.76 MJ which is 22,521 BTU of energy. Assuming that the power plant and distribution are 60%, it would take 37,535 BTU of gas to produce (22,521/60%).
Instead, using that 37,535 BTU of gas in an 80% efficient furnace would only produce 30,028 BTU of heat, which is worse than the 50,000 BTU from the heat pump.
I'm pretty sure even a poor heat pump will be more efficient than heating directly with gas. (Of course, they have drawbacks, like they can leak their refrigerant that causes more of a greenhouse effect than CO2.)