r/apple • • Jun 04 '19

Apple will soon be removing Python, Perl, and Ruby from macOS

From the macOS 10.15 beta release notes, under the "Scripting Language Runtimes" section:

https://developer.apple.com/documentation/macos_release_notes/macos_10_15_beta_release_notes

Apparently Apple is planning to remove all of these scripting language runtimes from macOS in a future release. This is very irritating, as all the software out there that relies on these runtimes can no longer assume they will exist on any user's system and will have to bundle it themselves, or remove their reliance on it.

This decision makes no sense to me. Being able to assume those scripting runtimes exist on any macOS system was one of the things that made it great. It's not like these were burning a hole in people's hard drives either -- they're small in the grand scheme of things. All this does is make developer's lives more difficult and cause there to be tons of redundant runtimes in various app bundles. Who does this benefit? Why is it important?

edit: Seems most people quite like that they're removing Python et al, especially due to it being an outdated version. Fair enough!

538 Upvotes

195 comments sorted by

View all comments

Show parent comments

20

u/Doggamnit Jun 05 '19

Same. I would always install a separate version and never used the system version.

With docker people can run those language based apps without having to manage their own installation, manually installing necessary packages, etc...

16

u/frozenpandaman Jun 05 '19

I would always install a separate version and never used the system version.

This is what Homebrew does.

7

u/[deleted] Jun 05 '19

Docker is a terrible solution for something that should just work. On a Mac you instead would have to manage a full Linux VM, figure out how much memory your willing to give up, then remember all the Docker commands for managing container tags and mount points.

It's fine for servers but not desktop.

0

u/[deleted] Jun 05 '19

[deleted]

6

u/[deleted] Jun 05 '19

There's a mac virt api but iirc the default is virtual box. Docker is built around Linux cgroups (similar to BSD Jails) and you need the kernel interfaces to make that happen. Windows with WSL might be native but WSL2 is going to shuffle things around and ship a real kernel.

0

u/[deleted] Jun 05 '19

[deleted]

1

u/[deleted] Jun 05 '19

Interesting. The GUI might be different or I just haven't checked in a while. HyperKit is still a VM as well. Being based on bhyve is nice though.

-4

u/Doggamnit Jun 05 '19

I don’t know about all of that... whether it’s python, ruby, java, etc... running these apps requires some rudimentary knowledge. In contrast, docker isn’t terribly hard to understand and you really don’t need to set memory requirements - the same way you don’t try to set memory requirements when running these apps standalone. The fact that docker offers these controls is a bonus, but it sure isn’t a requirement.

There’s also the option to grab something from dockerhub, or github and issue the docker run command as it’s usually noted on the release page. In those cases, it can be a lot easier to run these apps vs managing local system packages.

Docker is great for desktops as well as servers. The instructions are easier to work through compared to any of the languages mentioned above.

3

u/[deleted] Jun 05 '19

The default last I checked was static fixed size which can be a problem if memory is tight already. I eventually set up remote Docker on my NAS so it could be left running and not have to worry about it. Kitematic was an alright UI but there were some problems with my remote setup.

The real killer is most of the time I go to Python it's for matplotlib and GUI utils which are a pain to forward to XQuartz (I've done this). In every case local disk access is needed and rare occasions USB or OpenCL.

5

u/GasimGasimzada Jun 05 '19

Everything has its place and I don’t think using Docker in dev environment is worth it. In servers it is a beast but for developing, it is very slow and redundant. You need to set up a server, then mount a volume to do anything to files. Not to mention viewing Docker environment from IDEs and stuff. On the other hand, you can install the package and start coding.

2

u/guyfrom7up Jun 05 '19

IMHO this is usually just the viewpoint of someone who hasn’t successfully integrated it into their development flow. Once things are setup to your liking, it makes development, review, testing, and deployment an absolute breeze with minimal hiccups.