<html><head><base href="x-msg://442/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div><div>One of my former student researchers performed this work (Daniel Silva supervised by Philippe Meunier). My rough impressions: </div><div> -- he tried three different approaches in roughly 2003-2005, the embedding Racket into a C process seemed to work best </div><div> -- nothing worked perfectly at the time because of the impedance mismatch in memory models and memory reclamation <br> -- our goals were strictly research-oriented (running #lang Python code via the Python run-time and analyzing it)</div><div><span class="Apple-tab-span" style="white-space:pre">       </span>[the Python community was so negative that my students lost interest]</div><div> -- the two implementations were integrated to the point where you could exchange any data (though see memory) </div><div><span class="Apple-tab-span" style="white-space:pre">        </span>and run some mutual callbacks. </div><div> -- I don't think it would be possible to have a general-purpose FFI but that's my personal gut-feeling judgment </div><div>For Bassett's intentions this would work well from what I can tell though it may not eliminate the actual performance bottleneck. </div><div><br></div><div>That's about all I can say -- Matthias</div><div><br></div><div><br></div><div><br></div><br><div><div>On Oct 4, 2013, at 2:49 AM, Andrews, Kyle (KC) wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: 'Lucida Grande'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div lang="EN-US" link="blue" vlink="purple"><div class="WordSection1" style="page: WordSection1; "><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; ">Near the end of Matthew Bassett’s talk at RacketCon someone mentioned that the Racket developers had integrated Racket with python several times in the past.  If so, what are the challenges towards creating a general purpose python ffi for Racket?  As someone else who does a lot “guerrilla” Racket programming as an engineer in a large (non-software) company, it would be extremely pleasant to have easy access to the plethora of more standard scientific tools available there (and thus also to those available in R, and MATLAB, through libraries like RPy) for prototyping but without leaving the comforts of DrRacket.<o:p></o:p></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><o:p> </o:p></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; ">Kyle Andrews<o:p></o:p></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><o:p> </o:p></div></div>____________________<br> Racket Users list:<br> <a href="http://lists.racket-lang.org/users" style="color: blue; text-decoration: underline; ">http://lists.racket-lang.org/users</a><br></div></span></blockquote></div><br></body></html>