[ragel-users] ocaml codegen
ygrek
ygrek at autistici.org
Thu Apr 7 21:46:00 UTC 2011
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/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ocaml-codegen.diff.gz
Type: application/octet-stream
Size: 30687 bytes
Desc: not available
URL: <http://www.colm.net/pipermail/ragel-users/attachments/20110408/3bdbb6ad/attachment-0001.obj>
-------------- next part --------------
_______________________________________________
ragel-users mailing list
ragel-users at complang.org
http://www.complang.org/mailman/listinfo/ragel-users
More information about the ragel-users
mailing list