[erlang-questions] scope of variables

Robert Virding robert.virding@REDACTED
Tue Oct 3 22:29:47 CEST 2006


Vlad Dumitrescu wrote:
> A few other applications of this "compile a customized variant of this
> function given these static parameters" could be
> 
> * sparse vector multiplication, where all zero elements would just
> eliminated from the calculation
> * regexps, where it is possible (but I'm not sure if it applies to the
> general case) to generate specializations of the generic algorithm
> that are very close to hand-crafted variants.

Well the second one will soon be possible. The new regexp.erl I will be 
releasing soon (real soon now) will contain a function which builds a 
struture representing the regexp (a DFA for it). Just for you Joe. :-) 
With this someone (me) could write a parse_transform which transforms 
calls to regexp into speocialised local functions for matching regexps.

Robert



More information about the erlang-questions mailing list