This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # adventofcode (110)
- # announcements (30)
- # aws (2)
- # babashka (39)
- # babashka-sci-dev (112)
- # beginners (155)
- # calva (5)
- # cider (12)
- # clj-kondo (11)
- # cljs-dev (1)
- # cljsrn (2)
- # clojure (144)
- # clojure-australia (2)
- # clojure-europe (14)
- # clojure-nl (5)
- # clojure-spec (3)
- # clojure-uk (2)
- # clojurescript (22)
- # core-async (23)
- # cursive (31)
- # data-science (3)
- # emacs (12)
- # events (1)
- # fulcro (8)
- # honeysql (7)
- # jobs-discuss (11)
- # lsp (1)
- # missionary (28)
- # nextjournal (7)
- # off-topic (64)
- # pedestal (3)
- # polylith (19)
- # reagent (14)
- # reitit (12)
- # releases (4)
- # shadow-cljs (33)
- # tools-deps (3)
- # xtdb (3)
@borkdude what is https://github.com/babashka/babashka/pull/1099/files#r769331216 used for? should i comment it back again? apart from this the PR looks quite ready for action 😄
nice! so now you can run these images on arm cloud things - is that the main benefit?
ooh ouch, that's slow right? can't you "just" run docker via rosetta2 and then run amd64?
it's been surprisingly not so far. I thought the same thing going in, but then all of the earlier-than-me adopters were still just getting work done so I took the plunge. been great so far!
I might buy myself a Macbook Air M1 so I can just have the M1 within my reach for testing
and I can hook it up with a self-hosted circleci / github action runner when releasing 😂
if you want I can show you a nifty thing I recently figured out where you can tell your local docker "always send builds / containers of this arch over to this other host" which you could probably get pretty far w/ a raspberry pi 4 w/ 8GB of RAM. maybe not for graalvm builds, but maybe... 😉
yeah, it's just nice that the builds and containers are much faster when they don't have to run under qemu
@cap10morgan curious, can you test how fast this is in m1 arm64 docker?
$ bb -e "(time (loop [val 0 cnt 10000000] (if (pos? cnt) (recur (inc val) (dec cnt)) val)))" "Elapsed time: 2496.274002 msecs" 10000000
"Elapsed time: 1421.087168 msecs"
"Elapsed time: 20665.796677 msecs"
and since I learned how to farm out docker builds and runs to amd64 hosts, this isn't even much of an issue anymore either
yeah, I think once apple releases a more "pro" arm mac mini a lot of those dominoes will fall
compared to your rosetta2 usage on the same computer but apparently this can be interpreted in multiple ways :)
yeah, I meant: run it in your shell, as you would normally do as a mac user who downloads bb
yep. interestingly 0.7.1-SNAPSHOT in docker appears to be much faster than 0.7.0 outside it. did some perf improvements land?
no, but I expect that arm has some perf benefits over intel with respect to these kinds of loops
linux/arm64 inside docker vs. darwin/arm64 outside it (maybe that's the difference)
bb 0.7.1-SNAPSHOT linux/arm64 in docker runs that loop much faster than bb 0.7.0 darwin/arm64 does
there must be rosetta2 here right, since native graalvm on arm64 isn't a thing yet for mac
ohhhhhhh yes. you're right. I keep forgetting that even though we just talked about it.
also docker is working on direct darwin platform support too: https://github.com/containerd/containerd/pull/4526