Better HN
topnewbestaskshowjobs
Log inSign up

greenarc

13 karma · joined Aug 28, 2020 (6y ago) · 2 submissions

Submissions

comment 6mo ago · link · parent

Oh, hey Berké,

The GHGSat constellation's payload software is still mostly OCaml, although a limited amount of newer from scratch components are indeed in Rust. It's been working well and on 16 satellites now - but as you said the main challenge has been training developers to Ocaml and I doubt they would write new code in it now.

comment 6y ago · link · parent

We ended up building an ARM image with the OCaml compiler installed, running it with qemu to build our OCaml code as a second step.

Basically from yocto have a "rootfs" which is your standard image + gcc, use it to build a docker container or chroot in it, add qemu-arm-static, build the OCaml compiler from opam and then use it to build binaries. Not the most straightforward, but it works... fine. And in the end it's just a docker image like any other that is used to build our binaries.

With that said this has been running for a few years, I didn't check if upstream OCaml cross-compiling made progress since then.