Do you do poison?
farcaster
According to the article this system also detects power outages and shuts off when they happen. Just like full-scale solar power systems. But yeah, no physical kill switch.
I enjoy opamps. Texas Instruments LME49723 is one of my favorites :P
By asking this question you're already ahead.
Be your genuine self. Share your wisdom. Love your child.
I'm guessing regular non-LP DDR works fine socketed in desktops because power is nearly a non-issue. Need to burn a few watts to guarantee signal integrity? We've got a chonky PSU, so no problem. On mobile devices however every watt matters..
I doubt doing it in software like that outperforms sqrtss/sqrtsd. Modern CPUs can do the conversions and the floating point sqrt in approximately 20-30 cycles total. That's comparable to one integer division. But I wouldn't mind being proven wrong.
Well, yeah, but you asked why they didn't use integer sqrt. It's something many programming languages just don't have. Or if they do, it's internally implemented as a sqrt(f64) anyway, like C++ does.
Most CPUs AFAIK don't have integer sqrt instructions so you either do it manually in some kind of loop, or you use floating point...
California somehow never fails to do the wrong thing when it comes to utilities.
The problem isn't people with a few solar panels on their houses, the problem is climate change and poorly maintained infrastructure leading to wildfires and massive liabilities. Perhaps if these liabilities would come out of PG&Es absurdly high profits they'll be motivated to rethink how maintenance and wildfire risk is mitigated.
The builtin u64.isqrt
seems to be available in nightly only, and additionally I guess the author didn't want to use any external crates as part of their self-imposed challenge. Though I think there may be an off-by-one result with f64.sqrt
I don't think this functionally breaks their u64 code because they loop to root_n + 1
.
https://doc.rust-lang.org/std/primitive.u64.html#method.isqrt
There isn't even any memory management in their code. And arguably the most interesting part of the article is implementing a bignum type from scratch.
The author pointed out they also could've just called openssl prime -generate -bits 1024
if they weren't trying to learn anything. Rebuilding something from scratch and sharing the experience is valuable.
Ah yes I should've specified. It's a Rumble 100. Yeah, that's a bass amp as I was primarily playing bass when I bought it. It does sound surprisingly excellent when I play clean-ish guitar through it, but with the GT-1 I can't quite get a satisfying overdrive tone, no matter what pre-amp simulation I select on the GT1. With the amp set to clean, 0 gain. The master volume is plenty to make it loud. But yeah, I just can't get this combination to reproduce what I'm looking for.
Perhaps it's the speaker cone itself which is holding it back. I hadn't considered that yet. Thanks.