Better HN
topnewbestaskshowjobs
Log inSign up

ComputerGuru

32,383 karma · joined Jan 3, 2008 (18y ago) · 8,295 submissions

mqudsi on most sites.
Submissions

comment 2y ago · link · parent

Because turning it back on is faster.

comment 2y ago · link · parent

That’s kind of my point. They’re clearly running a buggy codebase to begin with that I wouldn’t trust a crash to mean hardware failure.

comment 2y ago · link · parent

This seems like deflection to me. There’s no reproducer, no technical info, no objective facts besides what is basically a meta study that lumps their code quality with intel’s hardware correctness as one metric.

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

> I can read a 7-seg display from clear across a factory floor from almost any angle in the dark.

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

ESXi has great virtual switch support, more extensible, adaptable, and scriptable than Hyper-V so far as I’ve seen.

comment 2y ago · link · parent

This is billed as something revolutionary and forward progress but that’s exactly how we used to do async in $lang - including Rust - before language support for async/await landed.

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

Does Raspberry Pi fit your definition/mental model of a straggler? It doesn’t have mainline support either!

comment 2y ago · link · parent

The average (mean) age of vehicles on the road in the USA is, I believe, 12 years. I don’t know about Switzerland, but I presume it isn’t under five.

comment 2y ago · link · parent

Isn’t that rather a lot of current for what it is?

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

Do you have to get these programmed at the factory?

comment 2y ago · link · parent

They’re paying severance to anyone that says no.

comment 2y ago · link · parent

I have an assortment of low quality original encodes from the 90s (an assortment of thousands of mpeg and flv web videos, think divx and co) that I’ve refrained from reencoding in hopes that some day AI would get there and having the originals would pay off. But looking at all the “originals” in the demo, they’re all super blurry (blurry upscaling, I know, but also trademark h264 low bitrate or high deblocking). It would be ironic if I had to use h264/h265 as a deblocking upscale intermediate step before using something like this someday.

comment 2y ago · link · parent

No heat dissipation is a huge con.

comment 2y ago · link · parent

That’s the neat thing: as with all things AI, you don’t.

comment 2y ago · link · parent

Client side JS is absolutely no impediment to Google’s web crawler but using an image or svg might work!

comment 2y ago · link · parent

Yes, we had to remove the publication date from our archives because Google was heavily down ranking it. We left an “updated” date but are probably going to remove that as well. I fought hard against this until it became clear there really was no other option.

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.html

You 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

Another commenter mentioned it, I'm looking at it now.

SecureStore was launched in 2017 (initial version was .NET only): https://neosmart.net/blog/securestore-a-net-secrets-manager/

comment 2y ago · link · parent

We've had issues relying on ESXi host/guest time synchronization, depending on the guest OS, and found this to be a better solution.

comment 2y ago · link · parent

Happy to discuss a proposal to add asymmetric key support to the project in the GitHub issue tracker. Although I'm not sure how the security changes with an asymmetric key, as either way the worst case scenario is the same?

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

You keep the key wherever you want to keep the key, just don't commit it and don't distribute it. Put it in on a YubiKey for your devs, upload it out-of-band securely to prod.

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

/puts shell developer hat on

Not just sigpipe. Getting sigttou is part and parcel of how command line apps share control of the tty.

comment 2y ago · link · parent

We’ve been pushing for committing encrypted secrets for many years now, and have written an open source spec and implementation in multiple languages: https://github.com/neosmart/securestore-rs

comment 2y ago · link · parent

Link to original Twinkie is dead, here’s an archived copy: https://archive.is/EGxFi

comment 2y ago · link · parent

Unlike say, coreutils, ntp is something very far from being a solved problem and the memory safety of the solution is unfortunately going to play second fiddle to its efficacy.

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

It’s not anything special, it’s arm code compiled with the x64 abi. The theory behind it is simple enough.

comment 2y ago · link · parent

You are discarding both the chip and every consumable that went into making that chip, though.

comment 2y ago · link · parent

I think you might not fully grasp what happens on the scale of millions or billions of years. The entire crust folds in over itself repeatedly and everything (probabilistically) ends up boiled down into magma deep within the earth as new crust emerges to take its place. Nothing static survives.

comment 2y ago · link · parent

You mean via wasm hinting in general or embedded llm in specific? Because I don’t see why you need an llm for that.

comment 2y ago · link · parent

I agreed with you up until the x86 comment. Legacy x86 support is largely a red herring. The constraints are architectural (as you noted, per-core memory bandwidth, plus other things) more than they are due to being tied down to legacy instruction sets.
1
262728
277