32,383 karma · joined Jan 3, 2008 (18y ago) · 8,295 submissions
comment 2y ago · link · parent
If it’s as they say, switching to AMD shouldn’t lead to 100x fewer crashes, it should lead to no crashes.
Lumping both 13th and 14th gen hardware together makes it harder to take the claims as easily at face value. 13th gen have been around long enough that you’d think they’d be able to dig up a kernel mailing list bug report or some other corroboration of their accusation.
I clicked expecting basically an undocumented errata with specific, 100% reproducible instructions and a deep dive into the internal architecture changes that could have caused this. I’m tempted to flag the submission, honestly. Claims of such magnitude demand at least some baseline evidence.
comment 2y ago · link · parent
Ironically, this is true at lower power/brightness than higher. A few gas stations near me got newer super-bright displays and you can no longer make them out at a distance.
comment 2y ago · link · parent
The biggest productivity boost to my rust embedded firmware development was when I could stop manually implementing state machines and marshalling all local variables into custom state after custom state between each I/O operation snd let rust do that for me by using async/await syntax!
That’s, after all, what async desugars to in rust: an automatic state machine that saves values across I/O (await) points for you.
comment 2y ago · link · parent
I didn’t read the datasheet but I imagine it has to have a lower power mode than that. Much larger MCUs can manage an average power consumption far lower and power off the same battery for periods measured in years, not days.
This is simple enough you’d think you’d be able to power it off an EM field directly!
comment 2y ago · link · parent
comment 2y ago · link · parent
let mut line = String::new();
std::io::stdin().read_line(&mut line).unwrap();
And I just looked it up and it's right there in the docs, too: https://doc.rust-lang.org/std/io/struct.Stdin.htmlYou basically shouldn't use `tokio::io::stdin()` for what you want, as is documented at https://docs.rs/tokio/latest/tokio/io/fn.stdin.html
> For interactive uses, it is recommended to spawn a thread dedicated to user input and use blocking IO directly in that thread.
So the code under tokio would be
let line = rt.spawn_blocking(|| {
use std::io::stdin;
let mut buffer = String::new();
stdin().read_line(&mut buffer).unwrap()
}).await.unwrap();comment 2y ago · link · parent
SecureStore was launched in 2017 (initial version was .NET only): https://neosmart.net/blog/securestore-a-net-secrets-manager/
comment 2y ago · link · parent
Note that you don't have to leave the key "lying around" as you can secure it the same way you would an asymmetric key. And it certainly beats leaving the plaintext secrets themselves lying around in a .env file or similar.
EDIT:
I see you were saying "dev machine" exposes "prod secrets" but that's not the case. The protocol is designed so you would have secrets.json and secrets.prod.json, encrypted with different keys and (necessarily) managed separately but with the same tools and api. Dev machines being compromised compromises dev keys, not prod keys.
Read the last section in the README on GitHub for more on the dev/prod split.
comment 2y ago · link · parent
Whether it's a symmetric key or an asymmetric key, you have the same problem. Someone overriding your secrets is definitely not high on the list of concerns, and if they're committed to git then they can never be truly overwritten.
comment 2y ago · link · parent
comment 2y ago · link · parent
comment 2y ago · link · parent
For example, we only use chrony because it’s so much better than whatever came with your system (especially on virtual machines). ntpd-rs would have to come at least within spitting distance of chrony’s time keeping abilities to even be up for consideration.
(And I say this as a massive rust aficionado using it for both work and pleasure.)
comment 2y ago · link · parent