3 ms·
We really go for this in libguestfs, generating about 300,000 lines of C boilerplate (mainly bindings for languages, and RPC generation). We use about 20,000 l
by rwmj 15y ago
We really go for this in libguestfs, generating about 300,000 lines of C boilerplate (mainly bindings for languages, and RPC generation). We use about 20,000 lines of OCaml to do this. This has proved itself over and over again to have been a smart move.
https://github.com/libguestfs/libguestfs/tree/e275786cb2bce728b1a5c8c705cdf76a904be386/generator https://github.com/libguestfs/libguestfs/tree/e275786cb2bce7...
$ ./generator/generator
generated 300518 lines of code
- _delirium 15y agoFFTW takes a similar approach, generating huge gobs of specialized FFT code in C using an Ocaml program.