On Wed, May 25, 2011 at 3:28 PM, Kevin LaTona <[email protected]> wrote:
> Ingy, > > Very interesting...... No reason C'Dent could not work with OBj-C is there? > Nope. You should add it and send me a pull request. C'Dent emitter classes usually take 3 to 4 minutes to write. ;) https://github.com/ingydotnet/cdent/tree/master/cdent/emitter Add a test for extra credit: https://github.com/ingydotnet/cdent/blob/master/tests/test_emit.py https://github.com/ingydotnet/cdent/tree/master/tests/modules > I also am curious what you are doing in Perl to allow this happen? > I'm assuming you are talking about Inline here. The different language backends use different techniques. C is a direct binding using the same techniques that C libs are bound to Perl. I just looked at Inline::Python. Looks like it is still actively maintained. Look at these links: - http://search.cpan.org/~nine/Inline-Python-0.39/Python.pod - http://cpansearch.perl.org/src/NINE/Inline-Python-0.39/ Looks like much of it is C binding between Perl and Python. I didn't read too far. Are you also using domain socks ? > > Or did you find another way to allow it to work? > > -Kevin > > > On May 24, 2011, at 10:00 PM, Ingy dot Net wrote: > > In 2000, I wrote a Perl module called Inline.pm that let people write Perl >> functions in C. C functions right inside a Perl source, that were callable >> from Perl. Later, with some help Python, Ruby, Java and over 20 other >> languages were added. Write your Perl functions in anything... >> >> A couple years later, Ryan from the Seattle.rb, wrote Inline for Ruby >> (binding only to C iirc). This kind of inter-lingual play should be easy to >> copy into Python. >> >> Also last year, I gave a Seapig talk about C'Dent, a compiler that >> compiles Python, JS and Perl 6 modules into equivalent modules in over a >> dozen languages. (C'Dent is written in Python :). C'Dent currently only >> supports a trivial AST model, but this summer I plan to take up development >> again, and hopefully get far enough to solve some problems on RosettaCode. >> >> Acmeism lives, Ingy >> >> On Wed, May 25, 2011 at 2:42 PM, Kevin LaTona <[email protected]> >> wrote: >> >> Okay all laughs aside and after I thought about this idea some more . >> >> So why hasn't this idea not happened yet? >> >> I once used another language that cross talked back and forth with Python >> via Unix domain sockets >> >> So why hasn't someone come up with a better way that actually could cross >> talk back and forth to another language like Ruby from Python. >> >> Or has someone for real? >> >> >> -Kevin >> >> >> >> >> On May 24, 2011, at 8:12 PM, Brendan Miller wrote: >> >> Uh, look at the one file in the src directory. >> >> On Tue, May 24, 2011 at 6:47 PM, Kevin LaTona <[email protected]> >> wrote: >> >> I came upon this today. >> >> PyRuby - Some Ruby for your Python! >> >> https://github.com/danielfm/pyruby >> >> It is a pretty interesting thought worth looking at if you ever need to >> blend the two languages at times. >> >> It's only been public for 2 days so check it out but know it's young yet. >> >> -Kevin >> >> >> >> >> >> >> >> >> >
