Hello, Attached patch adds ragel ocaml code generation. Implemented code styles are : -T0 -T1 -F0 -F1 and -G0 (partial). The only input data type is string (elements are bytes). Several simple tests are included in examples/ocaml/. Here are speed benchmark results for different codegen styles (examples/go/url.rl converted to ocaml host language) :
ocaml -T0 : 4.02 sec ocaml -T1 : 3.85 sec ocaml -F0 : 1.72 sec ocaml -F1 : 1.52 sec ocaml -G0 : 1.70 sec go -G2 : 2.18 sec rounds : 100_000 go : 8g version release.2011-02-01.1 7463 ocaml : 3.11.2 -- ygrek http://ygrek.org.ua/
ocaml-codegen.diff.gz
Description: Binary data
_______________________________________________ ragel-users mailing list [email protected] http://www.complang.org/mailman/listinfo/ragel-users
