Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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/e275786cb2bce7...

    $ ./generator/generator 
    generated 300518 lines of code


FFTW takes a similar approach, generating huge gobs of specialized FFT code in C using an Ocaml program.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: