I can’t see a screw thread type actuator ever being viable, strong as hell though, and you'd get no ram creep!

Could it ever be quick enough though?... But possibly a rack and pinion might be more useable? LeTourneau was famously anti hydraulic, I believe, and used rack and pinions a lot, on a giant scale usually!
It could work, but I can’t see it ever matching the performance of modern hydraulic systems. Powering the hydraulic pump with another power source is the only way forward with current technology in my eyes. On large excavators, if going electric, the slew could be fully electric and probably be used to generate power in the form of a slew brake and I’m sure some clever fellows could utilise some return hydraulic flow from certain services at specific times to also put a little back into the batteries. But I’m sure they’ve thought of all this.
Having said all that, this electric revolution may have a small place, but has no chance of being the complete picture in the coming decades.
It’s all in the name of the
environment , but there are many negatives to the environment by going totally electric, batteries themselves are not exactly environmentally friendly. We will just be creating another huge industrial waste problem.
The 2030 target has got to be political posturing, if they are determined to stick to it then we are fooked! But I can see them going back on that.....