Short answer: having two (or more) languages in the same file is UGLY. Embedded SQL, embedded HTML, and embedded javascript inside your embedded HTML are all signs that You Are Doing It Wrong. Search CPAN for some examples.
If your code is in different files, why not have them as different applications, services, or components in a language-neutral framework? Some possibilities: * Simple web services (maybe even RESTful JSON web services) * SOAP * Google Protocol Buffers * Hadoop Avro * Apache (Facebook) Thrift * COM/DCOM * CORBA * .NET * Mozilla XPCOM On Tue, May 24, 2011 at 9: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 >>> >>> >>> >>> >>> >> > >
