by ashtonkem · 5y ago · 0 comments
For end users, the interpreter can be bundled with the application, that is much more stable for everyone.
As long as it's trivial to install after purchase, the removal of this sort of thing is in no way concerning to me. When I've written things natively on my Mac, I've almost ALWAYS had to go get an updated version of perl / python / ruby / whatever to get current.
I currently have over 5 different python versions installed to be able to test against them. The different software I work gets deployed to different environments and I have all those versions installed locally to test.
For end users, it doesn't matter as long as it works. The less moving pieces, the better. A bundled interpreter in the OS gives a stable platform to develop against.
The interpreter can be bundled with the application, of course. But now you have n different interpreters with their own php.ini files and their own set of things to change. Upgrading the application means overwriting those files and causing more pain when they have to figure out why something stopped working.
But it wouldn't be stable. Or it would be, but it would be hopelessly out of date.
Apple can either keep the bundled interpreters on the same version forever, or they can update it with the OS. Do the former, and it becomes hopelessly out of date. Do the latter, and software updates randomly break stuff.
Either the language developers need to actually keep their languages stable, or everyone else just needs to get used to keeping multiple versions around.
I think you need to define "out of date".
Out of date for me means not receiving security updates and stale. I think you mean not the latest version and stable for me is better in a production environment.
Google example, look at Debian stable.
Well, look at this way—the latest consumer version of macOS still comes with Python 2.
I can understand what you wish for. But what you wish for is very far from what we’ve had so far. Time to accept reality.
That's absurd. Five versions of the same language. Each with their own package folders. That's at least 15 GB.
This is a luxury and consequence of infinite compute resources.
How come?
It's pretty practical. I'm a developer. I deploy to multiple targets so I have them all. I test against them. Simple enough.
To talk to the point of the link here, what I distribute to MacOS I only have to worry about 1 interpreter because it's the one embedded on the OS (and at work, I can guarantee the version). The problem for me is Linux and whatever is bundled on the version of the distro that's currently running.
> This is a luxury and consequence of infinite compute resources.
It's a consequence of what I deploy to. If I only had 1 target and could guarantee it, I'd only need one.
I'm not dissing version releases, just the adoption and deprecation. I wrote DirectX drivers for years, and going from DX3 to 5 to 7 meant backwards compatibility, and it was a PITA, but releases came out every two years and were deprecated shortly after so we didn't have vast quantities of exponential regressions. OpenGL was rock solid by comparison. The former was trial-and-error by MSoft, the latter was well thought out by consortium.
good luck with that
I use brew primarily only for packages that are only available on brew. I’m moving to nixpkgs for my packaging needs as soon as the M1 support drops.
Brew upgrade takes less than ten minutes or so for me. Things that influence this will be the amount and size of your installed packages and whether they have prebuilt binaries ("bottles") or if you need to build them from source. The latter is on your package maintainers.
/usr/bin/php --version
WARNING: PHP is not recommended
PHP is included in macOS for compatibility with legacy software.
Future versions of macOS will not include PHP.
PHP 7.3.24-(to be removed in future macOS) (cli) (built: Dec 21 2020 21:33:25) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.24, Copyright (c) 1998-2018 Zend Technologies
so, 7.4 or 8?I'm still using 7.x due to limitations.
This seems like a net positive change to me and I hope they can keep dropping these built in languages.
Wondering if it was really an issue with 2 interpreters or more of an issue with how the system works. More specifically PATH variables, shebangs and prioritizing your custom one over the system one.