Remix.run Logo
mos87 5 hours ago

The only program written in OCaml that I think I've used is WeiDU mod installer for Infinity Engine games. Took a quick look under the bonnet too. Suffice to say, my only thought has been that should the author had chosen a sane language like say Perl (which seems to be ideally suited to what WeiDu does), the software could have been improved by many, many people.

_flux 4 hours ago | parent | next [-]

Unison could be one of the more popular programs written in OCaml.

This sort of lead into trouble at one time, as the author chose to use the OCaml serialization of data as the protocol, so synchronization between 32- and 64-bit platforms or even binaries compiled with different versions of OCaml was not possible. Eventually this was fixed, though, with custom serialization.

mhd an hour ago | parent | prev | next [-]

Perl? Are there existing modules for the Linux KMS interface? Otherwise this would also be an off-beat language choice, and these days with only marginally more developers… (And I say that as a Perl fan)

Personally, I'm glad that this isn't yet another Rust post ;)

mos87 27 minutes ago | parent [-]

No, I haven't meant to imply that Perl should be used for the subj. But doubt it'd have proven any worse than OCaml. All depends on the programmer unsurprisingly.

ernst_klim 12 minutes ago | parent [-]

> But doubt it'd have proven any worse than OCaml

Unlike Perl, OCaml is AOT compiled in a very efficient machine code, has a good static type system and has a good concurrency support. Both are not very mainstream.

antonvs 5 hours ago | parent | prev [-]

That would have required the author to write Perl. Some sacrifices are not worth making.

mos87 4 hours ago | parent [-]

well then the functionality has been sacrificed - because few people besides the author were willing to brave hacking in OCaml I presume