Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^7: About using rperl

by LanX (Saint)
on Aug 15, 2019 at 17:37 UTC ( [id://11104526]=note: print w/replies, xml ) Need Help??


in reply to Re^6: About using rperl
in thread About using rperl

If rperl is just a layer on top of Inline::CPP, then what is the advantage over patching B::Deparse to convert Perl Snippets to CPP?

For instance code like the following

sub func :cpp int { my int ($a,$b) = @_; return $a+$b }

is (after predefining :cpp and int) legal perl5 syntax and B::Deparse gets all necessary details.

sub func { (my int ($a, $b)) = @_; return $a + $b; } use attributes ('main', sub { (my int ($a, $b)) = @_; return $a + $b; } , 'cpp', 'int');

So whats the extra value of rperl?

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

Replies are listed 'Best First'.
Re^8: About using rperl
by Anonymous Monk on Aug 15, 2019 at 18:47 UTC

    If rperl is just a layer on top of Inline::CPP, then what is the advantage over patching B::Deparse to convert Perl Snippets to CPP? ...So whats the extra value of rperl?

    You tell me?

    Is it not clear? I mean you must have at this point read everything there is to read about RPerl, the faq , docs , benchmarks / examples , jokes / original discussions about creating rperl...

    Old clues https://metacpan.org/source/RURBAN/B-C-1.57/ramblings/rperl.md

      Thanks for the link.

      Cheers Rolf
      (addicted to the Perl Programming Language :)
      Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

      update

      > Is it not clear?

      no

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11104526]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-03-29 12:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found