News for hackers. Stuff that matters.
Re:macOS deprecating scripting language runtimes, including ... by sciencerobot on Thursday June 06, 2019 @01:56AM (#20111970)
One of the things that drew me to Macs as I started to learn programming in '05 was that I could simply open any macbook and type python/ruby/perl and write some code.
Re:macOS deprecating scripting language runtimes, including ... by Fnoord on Thursday June 06, 2019 @03:22AM (#20112300)
Different time. Now you got Homebrew
Re:macOS deprecating scripting language runtimes, including ... by pdpi on Thursday June 06, 2019 @03:35AM (#20112352)
Which installs itself based on the system Ruby. Will be interesting to see how that plays out.
Re:macOS deprecating scripting language runtimes, including ... by nbaksalyar on Thursday June 06, 2019 @03:52AM (#20112438)
Like it works now with older versions of macOS and on Linux: it downloads a Ruby binary when it's not available on the host system.
Re:macOS deprecating scripting language runtimes, including ... by Fnoord on Thursday June 06, 2019 @03:42AM (#20112382)
They just pack a statically compiled Ruby interpreter with Homebrew. Not very complex or novel. Disadvantage: install becomes more bloated (larger size).
Re:macOS deprecating scripting language runtimes, including ... by pdpi on Thursday June 06, 2019 @04:48AM (#20112712)
Sure, it’s not a hard engineering challenge. However, installation instructions right now are as simple as “run this one-liner on your terminal”. That’ll have to materially change.
Re:macOS deprecating scripting language runtimes, including ... by Fnoord on Thursday June 06, 2019 @04:53AM (#20112744)
> Sure, it’s not a hard engineering challenge. However, installation instructions right now are as simple as “run this one-liner on your terminal”. That’ll have to materially change.

It could just as well still remain a one-liner. Every system Homebrew is installed on has Bash installed (not the latest, but still).

Instead of

> /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/in...

It could become

> curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/in... | bash

With the install script containing a payload containing the current Ruby script plus a Ruby interpreter. Still a "one liner".

Re:macOS deprecating scripting language runtimes, including ... by toyg on Thursday June 06, 2019 @07:34AM (#20113483)
> Every system Homebrew is installed on has Bash installed

Ironically, they are also moving from bash to zsh for default shell. Again not an unsurmontable challenge (just make sure the bang is correct in your scripts, bash will likely still be around somewhere in macOS for the foreseeable future) but another little hurdle to mind.

Re:macOS deprecating scripting language runtimes, including ... by Sean1708 on Thursday June 06, 2019 @08:17AM (#20113767)
As far as I'm aware they're not changing anything about which shells are installed or which executable /bin/sh points to they're just changing the default login shell for a new user, so nothing should have to change about the scripts that are (or have been) written.
Re:macOS deprecating scripting language runtimes, including ... by Fnoord on Thursday June 06, 2019 @07:51AM (#20113586)
Doesn't surprise me given they dislike GPLv3 and Zsh is MIT.

Personally I try to use #!/bin/sh as much as possible, and Fish as my default shell.

Re:macOS deprecating scripting language runtimes, including ... by holtalanm on Thursday June 06, 2019 @08:47AM (#20113997)
upvoted for fish
Re:macOS deprecating scripting language runtimes, including ... by butteroverflow on Thursday June 06, 2019 @05:27AM (#20112892)
Take a look at the installation instructions for the Rust compiler.

https://rustup.rs/

Re:macOS deprecating scripting language runtimes, including ... by musicale on Thursday June 06, 2019 @10:22PM (#20121124)
But you have to download Xcode if you want a C compiler!

On the up side though, clang has made the C/C++/ObjC world a much better place.