Earlier quoted context omitted.
Android Emulator developer here. In addition to what the other comments said about android emulation with hypervisors existing already for x86, we're also looking into the Hypervisor.framework API for Apple silicon. It won't be a trivial task (hoping for pre-existing code to port over maybe?) but we have the other pieces like using Hypervisor.framework for x86 already, and being able to cross compile the other code f…
Hello, OpenGL is deprecated but still supported on Apple Silicon, even for arm64 apps.
ARM Mac: Why I'm Worried About Virtualization
221–230 of 313 posts
Re: ARM Mac: Why I'm Worried About Virtualization
#222Earlier quoted context omitted.
There won't be native Linux. https://news.ycombinator.com/item?id=23640746 (Craig Federighi confirms Apple Silicon Macs will not support booting other OS) EDIT: fixed link
I don't understand your point. Native Linux isn't restricted to x86_64. EDIT: Your new link doesn't tell a different story. From the comments: > It is still possible to disable secure boot using csrutil. Apple has never officially supported booting Linux on a Mac. > https://twitter.com/never_released/status/127585087215369011...
Re: ARM Mac: Why I'm Worried About Virtualization
#223Earlier quoted context omitted.
Was your emulation done with qemu user space emulator[1] (the syscall translation layer) or qemu system emulator[2] (the VM)? If it was qemu-system you might have better numbers with qemu-user-static, which does binary translation similar to Rosetta 2 rather than a being a full system emulator with all its overhead. You can probably use qemu-user-static to translate x86-64-only binaries in a Linux container on an ARM…
I ran this on a Linux laptop - it looks like it's running qemu-user-static: root 9934 103 0.0 125444 6664 pts/0 Rl+ 12:25 0:12 /usr/bin/qemu-aarch64-static /usr/bin/gzip So it might be that Docker already runs a native x86_64 Linux, then uses qemu-static binary translation.
Ryzen 3900X (host machine)
$ dd if=/dev/urandom bs=4k count=10k | gzip >/dev/null
10240+0 records in
10240+0 records out
41943040 bytes (42 MB, 40 MiB) copied, 1.02284 s, 41.0 MB/s
qemu-aarch64-static $ dd if=/dev/urandom bs=4k count=10k | proot -R /tmp/aarch64-alpine -q qemu-aarch64-static sh -c 'gzip >/dev/null'
10240+0 records in
10240+0 records out
41943040 bytes (42 MB, 40 MiB) copied, 3.33964 s, 12.6 MB/sRe: ARM Mac: Why I'm Worried About Virtualization
#224Also, there ARM images for Docker. You don't HAVE to run x86-64 binaries.
Re: ARM Mac: Why I'm Worried About Virtualization
#225Are there any excited embedded developers in the crowd? I have done a little embedded work and cross compiling has always been a huge pain in the ass to setup. I know some people have even gone as far as purchasing expensive niche workstations with ARM CPUs specifically to avoid this problem. I feel like having a mainstream ARM platform like the MBP will make compiling software for ARM-based single board computers a…
Even if you are talking about doing ARM Cortex-A series, you aren't going to be using the same libraries on the embedded device that you use on a Mac. You'd most likely be using either Linux (ala Raspberry Pi) or an RTOS; either way you have a different compiler and stdlib to use.
Re: ARM Mac: Why I'm Worried About Virtualization
#226Re: ARM Mac: Why I'm Worried About Virtualization
#227Earlier quoted context omitted.
> It’s not that simple if that code is using explicit struct layouts or x86/x64 intrinsics. Performance sensitive code that relies on alignment guarantees and other platform details will not work and need to be updated, yes. IIRC Apple's chips do NEON for SIMD, not sure if they support SVE yet. (But I figure they will have to once it becomes a required part of the ARM standard…)
I actually wouldn't be surprised if Apple were to put SVE in their first desktop class ARM chip. They were the first to move to 64 bits after all and SVE has been optional in the standard for quite a while and they wouldn't be the first implementer this time.
Re: ARM Mac: Why I'm Worried About Virtualization
#228I'm actually not worried, for a few reasons; - I already do cross-arch development day-in and day out between x86 and ARM, and have only run into hard blockers on a library or tool a handful of times. The solve was generally pretty straightforward to either use an ARM-compatible alternative, or to cross-compile it myself. - We've done this many many times before and it's not that bad. I know I'm not the only one old…
But back in those very heterogeneous days (don’t forget go throw in Alpha and MIPS!) - computers running more exotic processors like SPARC were workstation-class and their manufacturers were responsive to requests from the SE community - so while I share your lack of concern about heterogeneity - I am concerned that Apple won’t be making their ARM platform the best for developer workloads (at least, non-iOS, non-macO…
Interestingly enough - for personal hacks (mostly cross-compiling Golang to ARM, natch) I'm actually using WSL lately, and it's definitely good enough. Not perfect, but nothing much is.
Re: ARM Mac: Why I'm Worried About Virtualization
#229Earlier quoted context omitted.
Not op, but alpine package manager leaves a lot to be desired especially compared to ubuntu. Also much easier to set locale. Since minimal ubuntu & debian exist, I think the question should be: "Why would you use alpine?" especially considering potentially slower performance: https://pythonspeed.com/articles/alpine-docker-python/
> Not op, but alpine package manager leaves a lot to be desired especially compared to ubuntu. How so? If anything, apk is way nicer than apt in a container build script (or anything automated); with apt you have to use -y and maybe force the noninteractive frontend, where `apk add foo` just works, correctly, automatically, with no effort required. > Also much easier to set locale. > considering potentially slower pe…
Debian in Docker in comparison offer less surprises, but you have to consistently do the right incantations.
Regarding missing binary wheels on ARM: with more ARM laptops in the wild those would eventually become more common.
Re: ARM Mac: Why I'm Worried About Virtualization
#230Apple will singlehandedly make 2021 "the year of Linux on the desktop".
Every time Microsoft or Apple majorly screws something up, people say this. It still hasn't happened yet. However, I think Apple has been a far greater threat to Linux adoption than Microsoft. Why? Because it gives techies the *nix environment they want, with the software and hardware support no one will give them on Linux. There is real value in proprietary commercial end-user application software. Most companies wh…