We have good protocols for sharing programs. HTTP was designed to share stylized documents which it’s OK at. The browser probably should have stuck to rendering and left the p2p file sharing to a better protocol. It absolutely is not fit for the problem domain its been shoehorned into nor does it need to serve that role.
If one of us has a program and the other wants to use it, between the two of us we had better come up with the hardware. That’s the lesson of the last 20 years. Clouds and data centers have proven to be an ecological and privacy disaster. Compute needs to live at the edge and be truly owned by users and those making programs. Not rent seeking tech vultures.