[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Lightning] Just an idea: ragel backend in lightning
From: |
Ludovic Courtès |
Subject: |
Re: [Lightning] Just an idea: ragel backend in lightning |
Date: |
Mon, 10 Mar 2014 23:23:24 +0100 |
User-agent: |
Gnus/5.130007 (Ma Gnus v0.7) Emacs/24.3 (gnu/linux) |
Bruno Loff <address@hidden> skribis:
> It would be awesome and actually quite natural if one were to use lightning
> as a backend. Then the regular expression gets converted directly into
> machine code, at runtime! If well done the efficiency should be unbeatable.
> It seems that .net has something like this, but I'm not sure how well-done
> it is. (e.g. not clear whether it compiles to machine code or virtual
> machine code, would need to read more about it).
ISTR Paolo Bonzini contemplated this idea when still maintaining both
sed and lightning. :-)
Similarly, some people used a JIT for a grep implementation:
https://github.com/coreperf/rejit
Thanks,
Ludo’.