8,350 karma · joined Jan 8, 2015 (11y ago) · 7,539 submissions
comment 3d ago · link · parent
I think about a heat map of where solar is cheaper. 2 years ago it would have been small splotches live that property. But over time as solar got cheaper the splotches got bigger and bigger. And now we're in the place where some places solar is cheaper than grid connection fees.
comment 3d ago · link · parent
Big picture solar on houses, commercial buildings, parking lots is more expensive than just dropping solar on a 100 acres of flat dry scrubland.
comment 4d ago · link · parent
The development path they are setting up is the unit you're debugging has a crypto units with a secret key that can be programmed once and isn't accessible. The bootloader uses that crypto engine to validate the firmware.
Right now you're the one that can set it if you want. But in the future the company you work for, the OS vendor, or the manufacturer will set the key and flash the bootloader.
When that happens you'll need a connection to their servers to sign the firmware you are developing. And when they terminate your access you won't be able to flash new firmware.
comment 4d ago · link · parent
I swear it's de rigueur in C that if an operation requires 5 parameters to insure the operation is error free than the function shall only take 4 parameters.
Rewriting the function with idiot mode disabled
int EVP_EncodeUpdate(EVP_ENCODE_CTX ctx, buffer_t out, const slice_t in);
comment 1w ago · link · parent
That C doesn't support an arena allocator as part of the standard library points you to everything that's wrong with C. The standards working group.
Also the Intel 0x86 and 32bit architectures caused a lot of issues with C because the paltry number of registers.
comment 2w ago · link · parent
So 30mpg * .66 * 500gal/year equals 10,000 miles/year
Also on the internet 1 megawatt of solar requires 5-8 acres. Call it 6.67, so 150,000 watts/acre.
150kw * 2000 hours sun/year is 300,000 kwh
Electric car goes 3.5 miles/kwh
So 300,000kwh * 3.5 miles/kwh is 1,050,000 miles.
comment 2w ago · link · parent
Something around 2500W of solar can provide enough energy to drive an EV 12,000 miles a year.
When it comes to zoning. The state should require offices to install chargers for employees cars when the solar share of electricity generation is highest.
comment 2w ago · link · parent
That was a gut feel of mine 30 years ago. And it wasn't as bad then.
Newer gut feel but I remember a processor designer saying the same thing a few years ago. Modern systems the processor very often is doing basically jack all nothing 95% of the time. They aren't very power efficient in that mode. Where Cortex-M processors are.
A soft poke. An Arm Cortex-M4 is as powerful as an 486 of yore that was what people were running windows 3.1 on and playing DOOM.
comment 2w ago · link · parent
I think with C23 you got half a banana now. Still can't do it because C23 didn't adopt proposals to allow returns of untagged/anonymous structs.
If you could then you could write
auto rtn = Foo();
if(rtn.err)
printf("err=%i", rtn.err);
else
printf("Foo=%i\n", rtn.foo);comment 2w ago · link · parent
You are right, C with manual memory management, no lifetime management, lack of phat pointers and a culture of leet has problems with deranged maddening bugs that other languages don't have.
But this bug first shows how inband signaling is bad news usually. But worse it's a failure to adhere to the spec properly. If you implement a library and you don't adhere to the spec you're going to bone someone.
Perhaps even worse is obviously the spec doesn't come with any standard testing framework. That was also the root of Apples infamous goto bug.
comment 3w ago · link · parent
That's why you see houses for sale where they repainted everything grey, ripped out the mature landscaping and put down plastic and dyed wood chips.
comment 3w ago · link · parent
So for the same rate of investment you can decarbonize 2-3 times faster. And that doesn't figure the long lead times for nuclear vs solar, wind and batteries.