jk
jk copied to clipboard
port to arm64 ?
I'm interested in getting jk
running on arm64
(Packet c2.large.arm, AWS a1 and Graviton 2, Jetson Nano etc). To this end I'm trying to figure out dependencies etc, and how to approach this, with a first pass at make it work, and a hopeful second pass at make it easy for the next person around.
As I understand it, the key bit of this is https://github.com/jkcfg/v8worker2 which depends on a version of v8
as well as all of its build dependencies.
Before I dive in, any suggestions?
Hi! Sorry for the extended period of silence.
Let me jot down things I think will be relevant:
- the build takes two paths: for linux-amd64, it uses the docker image
jkcfg/build
. The build for that image is done in its Dockerfile -- you may be able to get somewhere by adapting that Dockerfile to arm64, if you have somewhere to run it. - the build for MacOS is done by cloning the jkcfg/prebuilt git repo, which has the v8 library -- the time-consuming bit -- already built. If you can run an arm64 build of v8 at the version in jkcfg/v8worker2 (e.g., starting by cloning that repo), you could drop it into jkcfg/prebuilt, for future builds.
Please do ask further questions. And, if you pick this up again, or already got somewhere, I would love to hear about it!