Fork me on GitHub
#off-topic
<
2020-12-10
>
orestis16:12:53

I was asking a few weeks ago about Clojure on Apple Silicon; I got a few responses, and now having bought one (my wife’s, actually) I can say that under Rosetta things, uh, just work.

orestis17:12:59

Performance wise, I got almost parity between a low-tier Air with 8gb of memory and a dual core i5 @ 3.3ghz with 16gb. For our codebase, intel Mac takes 51s to start the server vs 68 on Apple Silicon, but compiling our front end is 67s (intel) vs 55s (arm).

orestis17:12:20

This is stock Mac adopt openjdk build under Rosetta.

borkdude17:12:18

@orestis What does it look like to run something "under Rosetta" - does this happen automatically?

borkdude17:12:44

Do native programs installed via brew (e.g. clj-kondo) "just work" in the terminal?

orestis18:12:38

I downloaded bb and clj-kondo from GitHub and they just work, after the necessary security stuff

orestis18:12:25

Modest perf improvements in kondo, even under Rosetta; classpath warmup went from 10 to 8 seconds, source lint from 2.5 to 2

orestis18:12:45

Does graal native-image cross compile? Or you need access to an Mac arm machine?

borkdude18:12:01

No cross-compilation unfortunately.

orestis19:12:16

This machine needs to go back (ordered the wrong keyboard, gah) but once the new one comes in (after the holidays) I’ll offer to try to build a native binary using graal. I’m not sure they even have something out?

borkdude19:12:16

Not yet, they're working on it

borkdude19:12:26

I think they're waiting for OpenJDK to support it first

borkdude19:12:41

I wish Apple upped the memory specs a bit, at least 64GB like they do now with the old macbook pro

1
orestis19:12:00

Rumors say that much beefier machines are on the way so hopefully they will cater to this use case.

orestis08:12:25

So, for fun I tried cli-kondo using the azul native jdk. Classpath cache warmup is 5 seconds and actual source linting is a bit below 2.

henrik12:12:55

I’m using Homebrew (Rosetta translated), and bb works out of the box.

orestis17:12:24

You don’t know is under Rosetta unless you open activity monitor.

alexmiller17:12:16

have you tried the Azul jvm for non-rosetta?

orestis17:12:24

From the terminal, you can force Rosetta using arch

orestis17:12:01

@alexmiller it’s on my list

alexmiller17:12:20

seen some pretty impressive comparisons with that

orestis18:12:15

Btw the general UI performance improvements are really big. I’ve tried opening a couple of hundred of mostly scanned PDFs which is my wife’s workload and after only a few seconds of beach ball everything was back to snappy. All this on a machine with no fan and at a pretty low price (less than half of my comparison machine). Pretty impressive.

salam19:12:58

i've ordered a macbook air with m1 for my wife as well (seems enough for her use cases). as for myself, i'm torn between the current macbook pro with m1 and a higher-end macbook pro with an alleged m1x that's to be released next year. 😆

cdpjenkins20:12:47

I’m holding out for one that can drive two screens and has more than two Thunderbolt ports and all that. Hopefully by the time that’s released, the software that I use will be running natively as well.