off-topic

https://github.com/clojurians/community-development/blob/master/Code-of-Conduct.md Clojurians Slack Community Code of Conduct. Searchable message archives are at https://clojurians-log.clojureverse.org/
orestis 2020-12-10T16:57:53.069100Z

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.

orestis 2020-12-10T17:00:59.073400Z

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).

orestis 2020-12-10T17:01:20.074100Z

This is stock Mac adopt openjdk build under Rosetta.

borkdude 2020-12-10T17:02:18.074600Z

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

borkdude 2020-12-10T17:02:44.075200Z

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

orestis 2020-12-11T08:33:25.110800Z

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.

henrik 2020-12-11T12:32:55.124100Z

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

orestis 2020-12-10T17:04:24.075900Z

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

alexmiller 2020-12-10T17:05:16.077300Z

have you tried the Azul jvm for non-rosetta?

orestis 2020-12-10T17:05:24.077500Z

From the terminal, you can force Rosetta using arch

orestis 2020-12-10T17:06:01.077800Z

@alexmiller it’s on my list

alexmiller 2020-12-10T17:06:20.078Z

seen some pretty impressive comparisons with that

orestis 2020-12-10T18:18:38.079600Z

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

orestis 2020-12-10T18:22:25.081100Z

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

borkdude 2020-12-10T18:30:37.083600Z

nice!

orestis 2020-12-10T18:31:15.084900Z

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.

orestis 2020-12-10T18:46:45.086200Z

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

borkdude 2020-12-10T18:54:01.086400Z

No cross-compilation unfortunately.

orestis 2020-12-10T19:05:16.089400Z

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?

borkdude 2020-12-10T19:07:16.089600Z

Not yet, they're working on it

borkdude 2020-12-10T19:07:26.089800Z

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

borkdude 2020-12-10T19:16:41.090900Z

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

1
salam 2020-12-10T19:24:58.093200Z

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. 😆

orestis 2020-12-10T19:49:00.095500Z

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

2020-12-10T20:02:47.096800Z

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.