by bayindirh · 5y ago · 0 comments
Both platforms have their pluses and minuses. I like to carry ideas between them for my development and environments. Found this extremely fruitful for me over the years.
We ordered a bunch of M1 airs for portability and power efficiency. Will see how it goes.
I personally love both Linux and Apple for laptops but, for the out of the box experience and reliability, Apple is more polished due to integration. My EliteBook has no problems with Linux so far but, when a flawlessly running driver degrades after an update (cough, intel e1000e, cough), it leaves a bad taste in the mouth. OTOH, I'm firstly a Linux guy who prefers and writes GPL software.
Of course YMMV.
I have to admit that m1 macbook air battery life is compelling. A long time ago I was thinking about a perfect laptop that would be very light and have a 20+ hours of battery life. This comes close. Even though I have never used a laptop more than 5 hours on battery. And that happens a couple of times a year.
Hope you'll enjoy your m1 air.
Using Mac is like driving an Audi S8. Comfortable, smooth, powerful. However, it's not your hand tuned Impreza which can read your mind while going above 200Km/h.
Even an Intel MacBook pro can go a long time on battery (I have a personal Mid2014, configured all-out). I've developed some system-abusing scientific code on it and, it really delivers.
The trick for me is, I can make a Mac dev machine without modifying it with homebrew, et. al. I install a Linux VM to VMWare, give it a static IP, install all required tools, servers and services on it. On the macOS side, I use Eclipse for IDE and use clang/llvm for compiling (since I also aim to code which behaves same on both gcc and llvm).
I develop on macOS and interface it with Linux VM via network if it's absolutely necessary. Linux VM also hosts some heavy tooling like LaTeX which cannot be installed/updated on macOS very cleanly (I know macTeX. It doesn't play nice with newer macOS, due to Apple's locks on the OS).
Then everything becomes transparent for me. Pull -> Develop -> Push in either direction. Eclipse already syncs itself via oomph and cloud. Code is portable, environment is same. It also ensures code compatibility, allows me to see compiler effects and run tests on many platforms.
As aforementioned, it also inspires me to write better software. My code carries Apple's sensible defaults and it-works mentality with Linux's flexibility options. This approach allowed me to create a series of utilities for a project in limbo. These small no-setup utilities saved a lot of labor and ultimately saved the project. So yes, apple is a walled garden and it's not optimal but, they do a lot of right things. We can selectively carry them to more open platforms to make them better. Similarly, open platforms' flexibility can be carried to some macOS applications so, the environment better accommodates power users out of the box.
Homebrew and other tools are nice but, I don't like to shoehorn stuff which doesn't fit natively into an ecosystem.
I’ve been using LaTeX from /opt/local with zero integration issue, even on Big Sur. What are the issues you’re alluding to?
Otherwise, I agree with your take in general, except that I do everything you do in a Linux VM directly in macOS. I develop and run my codes on a Linux workstation and an iMac, and going back and forth improves the codes a lot. Performance and usability issues are spotted much earlier.
I much prefer Macports’ approach than Homebrew’s. It is nicely self-contained in /opt/local, does not break when a system library is updated, and the file system layout is much saner. Just update your environment in zshrc and you get all the benefits whilst not changing anything for all the stuff that you don’t run in a terminal.
I'm sure that all the problems are resolved by now but, my workflow is mature now and everything is working flawlessly. Considering I'm going to need Linux anyway, did no efforts to move my LaTeX workflow back to macOS again.
Since the code I'm developing is going to be used in a lot places, I'd rather develop it in two distinct environments and run tests on each. Also, I like to experiment with different development tools on different environments. Experimenting and experiencing each environment broadens my horizon. Also it's more enjoyable IMHO.
Didn't play with Macports TBH. I don't think I'm going to use it but, will take a look to it.
Another thing is, I don't customize/change my terminals much. When you manage 1000+ servers with a team, customizing each terminal to your liking is not feasible so, I can work pretty fast with stock bash or anything. I'm old school and don't like flashy console setups anyway. :D
Hah! I see I'm not alone. For me it was the iwlwifi drivers. In one kernel revision, they worked fine; in another, they'd randomly panic and bring down the interface. Downgrading the firmware packages didn't do anything. Kernel upgrades have worked as of late.
Though, it may be hardware-related in my case. I've had nothing but trouble with that particular card. I was going to replace it, but it seems that Lenovo really likes Loctite on their M.2 screws and it won't budge. Tempted to use a soldering iron to melt the thread locker...
I thought whether my hardware was failing but, when they broke three different NICs with the same update, I understood what happened.
Hope they don't do it again. I'm not going to use their processors in my next build but, I tend to like their NICs.
You're now making me question whether this is a problem with the wifi card or the driver. I admit I'm still convinced it's probably the card (I have an earlier revision in a ThinkPad that works fine), but now I'm not so sure!
Curious: Are you talking about that "little" issue where the i915 module was randomly causing a panic? I ran into someone who had some really perplexing issues that a kernel update later resolved, and their dmesg was strongly hinting (to me) that it was linked to the i915 drivers. That, and a bug report I managed to dig up.
And I also agree. I'm looking at a Ryzen build, too. I have a couple of Intel NICs in my file server though and they're better quality IMO than the Realtek cards.
> Are you talking about that "little" issue where the i915 module was randomly causing a panic?
No, I started to see some lines in the display like a faulty GPU draws. Sometimes a line, sometimes small corruptions were visible but, it was always fixed itself after a minute or two. The laptop in question is extremely low power so, nothing gets hot.
Newer kernel updates fixed these issues too.
Intel's mid-range and higher-end NICs have proper offloading and processors so, they neither tax the system much or fail to reach their advertised speeds. They're real cards for real loads, so they're more reliable AFAICS. A Realtek card works reasonably well for most of the light loads but, load it up with sustained high load, it cannot saturate the interface as it should.
I tried using Windows with WSL2 first but there was just too many workarounds I had to do for my workflow.
I then looked into the most popular Linux distributions and chose Pop!_OS. Suffice to say, I am really satisfied with it. It's probably the Linux distribution that I feel is the closest to MacOS that I have used.
I am interested in the M1 Macs but my 16" MBP is still fine. I will look into the ARM Macs next year to see what they offer.