| ▲ | O(x)Caml in Space(gazagnaire.org) | ||||||||||||||||||||||
| 113 points by yminsky 3 hours ago | 11 comments | |||||||||||||||||||||||
| ▲ | rho_soul_kg_m3 a minute ago | parent | next [-] | ||||||||||||||||||||||
Well, I might have been the first to put OCaml in space, specifically on low-Earth orbit aboard GHGSat-D in 2016. I designed the payload software as a collection of SystemD services talking over DBus, and it included a CCSDS-to-DBus bridge to talk to the platform (the thing that hosts the payload, controls and steers the satellite). The payload also did perform symmetric-key encryption of the resulting data, as per regulations. I gave a talk about the payload software at the Paris OCaml users group. The reason for selecting that archicture was that I didn't expect to write the whole payload software by myself, and I assumed that when some other developers join in they would, obviously, not want to use a weird language like OCaml, and so they could write their portion in C/C++/whatever and the system could still work. Of course that didn't happen. I'd be surprised if the company still uses OCaml, as the standad tendency is to revert to "industry-standard" languages to get industry-standard problems. The whole processing and simulation toolchain was also written in OCaml. Today there is little reason not to use Rust and it can cover both the processing side and the payload software. But people still insist on using C/C++. I'm OK with that as long as I can invoice them. | |||||||||||||||||||||||
| ▲ | avsm 2 hours ago | parent | prev | next [-] | ||||||||||||||||||||||
The big win here is having a GC by default, with the ability to reduce heap allocations (via stack) just by adding in more typing annotations.
I got a similar result with my 'httpz' stack a few months ago (https://anil.recoil.org/notes/oxcaml-httpz) which my website's been running on without drama. And, I gotta say, OxCaml's a surprisingly robust compiler for being packed full of bleeding edge extensions: not a single crash on my infra is attributable to a compiler bug (plenty of bad OCaml code, but not due to a compilation bug) | |||||||||||||||||||||||
| |||||||||||||||||||||||
| ▲ | dsab 31 minutes ago | parent | prev | next [-] | ||||||||||||||||||||||
CCSDS guides you to reinvent everything from scratch, I doubt memory safety is the biggest attack surface when you implement this stack. I dont know how big players implement networking for their satellites, but personally I would choose to fit something existing and battle-tested like TLS instead of reinventing data encryption, just look at those documents: https://www.google.com/search?client=firefox-b-lm&q=ccsds+en... | |||||||||||||||||||||||
| |||||||||||||||||||||||
| ▲ | chloe_liu23 an hour ago | parent | prev | next [-] | ||||||||||||||||||||||
nice | |||||||||||||||||||||||
| ▲ | hudsonhs 2 hours ago | parent | prev | next [-] | ||||||||||||||||||||||
She (Jane Street) is not gonna notice you bro. | |||||||||||||||||||||||
| |||||||||||||||||||||||
| ▲ | harrymatics 2 hours ago | parent | prev [-] | ||||||||||||||||||||||
nice | |||||||||||||||||||||||