in reply to Macro system on B-Level?

If all you're doing is saving function call overhead, it's not worth the trouble. If performance is that critical, drop down to XS or Inline::C or such like as.

Between the mind which plans and the hands which build, there must be a mediator... and this mediator must be the heart.

Replies are listed 'Best First'.
Re^2: Macro system on B-Level?
by LanX (Saint) on Nov 26, 2008 at 15:57 UTC
    No, no, no, your getting me wrong!

    It's *not* about function call overhead, it's about realising *macros* ¹, therefore helping to extend the syntax much better and reliable than codefilters ever can.

    perl 6 also intends to insert macro-support.

    But maybe you can show me a functional approach to solve this problem. : )

    Cheers Rolf

    UPDATE: (¹) to make it clearer, a macro is executed and operates on the parameters given before returning the new code to be inserted.

Re^2: Macro system on B-Level?
by LanX (Saint) on Nov 26, 2008 at 16:33 UTC
    > If all you're doing is saving function call overhead

    I'd rather prefer using some kind of eval like  eval macro() than doing XS.

    Coding in C just for linearising the code *that's* not worth the trouble. : )

    Cheers Rolf