Err(()).unwrap()

Partisanship is a cancer. Inaction is a choice.

Singular they. Or whatever you like, I won’t take offence.
Proud member of the Banned By Tesseract Club.

  • 9 Posts
  • 1.28K Comments
Joined 3 years ago
cake
Cake day: June 24th, 2023

help-circle



  • Err(()).unwrap()@lemmy.worldMtolinuxmemes@lemmy.worldscripts?
    link
    fedilink
    arrow-up
    4
    arrow-down
    2
    ·
    edit-2
    2 days ago

    Do you want regulatory overreach? Imagine forcing every small project or self-hoster to adhere to the rules set by the equivalent of the HDMI Forum, but controlled by the likes of Microsoft and Facebook.

    To redirect your other question: you should ask the web developers. If they’re honest, you’ll get a dozen legitimate answers that can’t be solved without locally running code. A chat web app, for example, needs to either poll the server at a given rate, or use a WebSocket to fetch incoming messages, both of which require Javascript. Then it needs to modify the DOM to display the new messages, which again requires Javascript. If it needs access to the microphone or webcam, it has to use some kind of local interface. I could go on. The point is, a lot of this arbitrary local code exists because there’s no other way to implement many features without it. Imagine having to reload an instant messaging app if you want to see if you’ve received anything. It would be like writing a GUI application using Qt or GTK, but without using any events.










  • Is it unstable, or resource intensive?

    Yes and yes. Most of the Steam client is implemented, poorly, as a web app running in a web view derived from (I believe) an old version of Chromium. It’s needlessly resource-intensive, even more so than Electron apps. The suite as a whole uses its own libraries in ~/.local/share/Steam/ubuntu12_{32,64} and I’m pretty sure it still depends on some 32-bit-only things. The overlay sometimes causes ridiculous performance issues related to input events (I move the mouse and the game drops to single digit framerates) even if the overlay isn’t active. The Steam Input config utility is poorly designed and horribly implemented.

    Lately it’s also been trying to murder my PC.

    I love Steam as a service, but the client is in an unacceptable state.









  • A blackout is just a loss of power. Nothing complicated about it. There are obvious human and societal consequences, but as far as the infrastructure is concerned, a blackout usually means that protection devices have been tripped and the system has protected itself from greater damage.

    A brownout means that the electric grid (or interconnection), for some reason, can’t supply enough power to satisfy the demand, but protection devices haven’t tripped yet. It can result in momentary power losses, drops in voltage, drops in frequency, or some generators getting desynchronized with the rest of the grid. If reactive loads (like HVAC motors) go offline momentarily, they can cause spikes in power consumption, which can overload circuits and trip safety devices.

    A UPS needs to immediately switch to battery power when there are signs of an imminent power loss. A brownout might cause a consumer-grade UPS to switch on and off repeatedly, which the inverter circuit probably doesn’t like.

    This channel is run by a real civil engineer, he’s released some great videos about the challenges of maintaining an electric grid.