News for hackers. Stuff that matters.
Re:Apple Plans to Use Its Own Chips in Macs from 2020, Repla... by fnord123 on Monday April 02, 2018 @07:53PM (#16740581)
> What does Linux give you that macOS doesn’t?

perf, case sensitive file systems, non stupid alt-tab behaviour, strace, pstack, gdb (these don't seem to work without sacrificing animals), gnome-shell (better than finder by a long way, imo).

I've got a mac. I don't install programs except for things through brew. It's basically shitty linux with outlook.

Re:Apple Plans to Use Its Own Chips in Macs from 2020, Repla... by viraptor on Monday April 02, 2018 @08:51PM (#16740946)
perf, strace, and pstack can be replaced with dtrace on MacOS.

You can have a case-sensitive position. (Separate from root so it doesn't break some apps)

Re:Apple Plans to Use Its Own Chips in Macs from 2020, Repla... by fnord123 on Tuesday April 03, 2018 @05:06AM (#16742993)
Do you need to add dtrace to the key chain each time it's updated or do they just not update it like most of their command line software?
Re:Apple Plans to Use Its Own Chips in Macs from 2020, Repla... by viraptor on Tuesday April 03, 2018 @05:23AM (#16743058)
What do you mean "add dtrace to the key chain"? I've never done anything related to keychain while using dtrace.
Re:Apple Plans to Use Its Own Chips in Macs from 2020, Repla... by fnord123 on Tuesday April 03, 2018 @06:09AM (#16743277)
gdb needs to be added to the keychain as a signed program in order to attach to programs. But brew is a rolling release so I might need to add this frequently. It's painful.
Re:Apple Plans to Use Its Own Chips in Macs from 2020, Repla... by 4ad on Tuesday April 03, 2018 @08:21AM (#16743921)
DTrace is built-in software.
Re:Apple Plans to Use Its Own Chips in Macs from 2020, Repla... by fnord123 on Wednesday April 04, 2018 @06:06AM (#16753390)
I took some time to try dtrace out. Sadly it's broken unless one turns off SIP:

https://apple.stackexchange.com/questions/193368/what-is-the...

Re:Apple Plans to Use Its Own Chips in Macs from 2020, Repla... by 4ad on Wednesday April 04, 2018 @06:11AM (#16753402)
Only when tracing the operating system, not your program. But yes, that is still a shame. You don't need to turn off SIP globally, you can just enable DTrace while keeping the rest of SIP on.
Re:Apple Plans to Use Its Own Chips in Macs from 2020, Repla... by fnord123 on Wednesday April 04, 2018 @08:54PM (#16760820)
Thanks for the tip!
Re:Apple Plans to Use Its Own Chips in Macs from 2020, Repla... by _emacsomancer_ on Monday April 02, 2018 @09:07PM (#16741030)
I was trying to work with some students with Swift and the Mac character encoding ending up causing no end of problems.
Re:Apple Plans to Use Its Own Chips in Macs from 2020, Repla... by kalleboo on Tuesday April 03, 2018 @05:52AM (#16743204)
> the Mac character encoding

You mean UTF-8?

Re:Apple Plans to Use Its Own Chips in Macs from 2020, Repla... by briandear on Tuesday April 03, 2018 @07:44AM (#16743713)
..with outlook?

Sorry man, but you’re doing it wrong.

And the Mac file system is case sensitive.

Re:Apple Plans to Use Its Own Chips in Macs from 2020, Repla... by scottmf on Monday April 02, 2018 @09:49PM (#16741250)
Alt-tab behavior is more of a preference thing.

>It's basically shitty linux with outlook.

Linux is shitty Linux. Except on the server. (IMO, of course).

Re:Apple Plans to Use Its Own Chips in Macs from 2020, Repla... by fnord123 on Tuesday April 03, 2018 @05:14AM (#16743028)
I can accept that alt-tab is a preference if you want to use alt-tab and alt-`. It's heresy to prefer alt-`, but whatever -the vim-spaces-only(but automated code formatters are best and I dont care what they use)-alt-tabbers will eventually win out.

But on multiple desktops if you alt-tab to the previous application again, it only brings up the application windows in the current screen instead of bringing you to the last window you used (on another screen). Wrong! Broken! Sad!

Also, on mac alt-tab raises ALL the application windows. So if you have shed loads of terminal windows or loads of browser windows open, then alt-tab brings them all to the front. This is definitely broken since it stops common workflows like copying between windows; or finding some text that you want to type into a terminal and then alt tabbing to the terminal only to have the screen covered in terminal windows. SAD.

Mac is low energy (That's the reason I think I have it for a laptop).

Re:Apple Plans to Use Its Own Chips in Macs from 2020, Repla... by FabHK on Tuesday April 03, 2018 @05:52AM (#16743206)
I find separate inter-app cycling (cmd-tab) and intra-app cycling (cmd-`) much superior, faster, giving you better control.

However, agreed that on a Mac with multiple "spaces" it's completely broken.

Re:Apple Plans to Use Its Own Chips in Macs from 2020, Repla... by herbst on Tuesday April 03, 2018 @08:40AM (#16744050)
Compared to a optimized Arch, or even a non overloaded windows 10 mac never appeared to me very energy friendly.