Starting up the app is as fast as it is on an Intel Mac with beefy hardware, I couldn’t tell the difference. An M1 build is available, everything is snappy, and it just works. $ docker logs mongo | tail # Make sure mongo is running properly $ docker run -name mongo -v /path/to/local/dir:/data/db -d -p 27017:27017 -d mongo:4 Used Docker for this, don’t get any simpler. In time, popular libraries will have wheels for M1. Someone succesfully built from source but another trick is to open iTerm2 with Rosetta 2 if you’re ok with an 80% near native performance. What it’s actually saying is that there are no wheels for numpy intended for M1 hardware. ERROR: Could not build wheels for numpy which use PEP 517 and cannot be installed directly While it’s building, my SoC temperature is at mid 50s degress Celcius, how awesome is that? And no fans. Haven’t tested libraries without M1 wheels, do we need to compile from source? As I’m writing this, I’m trying to install numpy. My flow to use Python is like below: $ brew install echo 'eval $(/opt/homebrew/bin/brew shellenv)' > /Users/tista/.zprofile I installed through Homebrew with a simple $ brew install I did have to adjust my PATH to use the binaries from Homebrew but that’s also what I would’ve done on an Intel Mac. PythonĪs I said in the preface of this blog post, Python is available natively for M1 hardware. I can also build container images like I would on an Intel Mac although CI/CD usually will do that for you. Other than the above, since my use case is limited, I’m pleased to have Docker running. This might not be a great experience if let’s say you’re planning to run a full Kubernetes stack, who knows what would get corrupted. Restarted Docker and the MongoDB container without a problem. It’s a preview build so it’s tolerable for now. Imagine how a true Pro Apple Sillicon machine will give us! Codingīefore writing this paragraph, Docker just quit unexpectedly. All this with a price substantially cheaper than a Pro machine. MacBook Air M1’s single core score outperforms my gaming rig, crazy af - Batista Harahap February 2, 2021Ĭoming from an Intel machine, even this Air is pro level experience that I don’t get with a top of the line 16” i9 MacBook Pro. Single core performance of this laptop is faster than my high end gaming PC with a Ryzen 5600X CPU according to Geekbench. With almost 5x faster in doing atomic functions, the effect in the whole user experience of an M1 hardware is a departure from the old incremental performance improvements pioneered by Intel. The tweet above taken from the article I linked. Here’s a good read about Apple’s choice in opting for Reference Counting instead of Garbage Collection dramatically increasing the whole user experience while for developers, the implementation is no different (yes apples to oranges, almost literally) programmatically.įun fact: retaining and releasing an NSObject takes ~30 nanoseconds on current gen Intel, and ~6.5 nanoseconds on an M1- David Smith November 10, 2020 Xcode is obviously native M1 while Android Studio still don’t have an M1 build yet. To be fair, I’m not coding mobile apps so resource usages are not demanding. The SoC temperature is sitting between high 30s and mid 40s degrees Celcius. Oh and Docker is running a MongoDB container. I can still do a lot, I code without any sluggishness at all. All that took 47% of memory with ~30% CPU usage. It’s NOT slow at all.Ī lot of apps is running including Pycharm along with the Photos app curating my photos. I bought the 256GB Air with 8GB of RAM, it’s enough. Go here to check if M1 builds for your apps are available. I guess this is Apple’s way of saying to developers to provide M1 builds. Whenever I try to block a text or copy paste, there is a significant delay interrupting my flow. Apps that are ran with Rosetta 2 will suffer from text manipulation sluggishness. To put things short, anything not built for M1 will work using Rosetta 2 but the experience would be degraded. Visual Studio Code - M1 builds in beta, running x86 build with Rosetta 2 is not a great experience.Pycharm (and other IntelliJ based IDE) - M1 builds are official.Docker - Only technical preview builds are available, it’s fine for my limited use case of spinning up just database daemons.Apps for M1Įverything works as of now although some of them with an asterisk: But that’s not all I have to say, I’m looking at this from a software engineer’s point of view. The i9 16” is just not in the same league as this M1 Air. At the moment I have a Macbook Pro 16” i9 top of the line, a Ryzen 5600X gaming PC and this new laptop. In short, It’s GREAT! What can I say more other than it’s just a fantastic machine to play with.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |