[erlang-questions] Generators?

Ryan Rawson <>
Tue Jul 31 01:32:04 CEST 2007

This is why language features > libraries generally. The compiler  
knows nothing, so it has limited optimization abilities.

On a side note, most optimization strategies involve obtaining more  
info. Type system, pragmas, explicit syntax support, etc. Its cool  


On Jul 30, 2007, at 2:27 PM, "James Hague" <>  

>> But the problem is that these abstractions, or
>> at least the combination of them, are slower than a hand-coded
>> function explicit recursion function. So, is there any way to make  
>> the
>> natural abstractions work as fast as the hand-coded version?
> It's interesting that list comprehensions are compiled into code that
> acts the same as hand-coded functions, but uses of similar functions
> like lists:foldl, lists:flatmap, and lists:partition are not.
> James
> _______________________________________________
> erlang-questions mailing list
> http://www.erlang.org/mailman/listinfo/erlang-questions

More information about the erlang-questions mailing list