3 ms·
There are pros and cons to not using dynlink, since it requires another fork (although this can be avoided using a custom compiler driver). Avoiding bytecode i
by avsm 12y ago
There are pros and cons to not using dynlink, since it requires another fork (although this can be avoided using a custom compiler driver).
Avoiding bytecode in the compilation toolchain is really the main benefit though. This was originally due to the fact that only the bytecode backend supported dynamic loading (which is used by camlp4 to load the syntax extension modules). When native dynamic code loading was added to OCaml circa 2009 or so, the build systems around camlp4 never really took up the change to switch to the much faster native code version. All the ppx extensions emerging now are at least guaranteed to have a native code version on all the major supported architectures (x86, ARM, Sparc, PPC)