None of it is the same thing, outside of linux, if you are being honest. You can't run a macOS script in web production. period. end of story. So with all platforms, sans linux proper, we resort to funny business to get things working locally and then do it different when it comes time to deploy. What are we doing? Just use linux... or MSFT/.net as it were.
The funny thing in all of this is that Apple have nothing to share with the rest of the world, sans swift. They got the underdog sympathy and have made a mockery of all who elevated them to their current status. That is, they have given JACK SHIT back to those who made them who they are.