RE: Euphoria as an extension language
- Posted by kbochert at copper.net Nov 19, 2002
- 407 views
This is a multipart message in MIME format --27286227-POCO-51627530 <HTML><HEAD> </HEAD> <BODY> <div> </div> <FONT FACE=3D"Arial" SIZE=3D3> </FONT><div><FONT FACE=3D"Arial" SIZE=3D3>= Phil Russell wrote:</FONT></div> <div><FONT FACE=3D"Arial" SIZE=3D3 COLOR=3D"#000080"> >Hi= All,</FONT></div> <div><FONT FACE=3D"Arial" SIZE=3D3 COLOR=3D"#000080">= ></FONT></div> <div><FONT FACE=3D"Arial" SIZE=3D3 COLOR=3D"#000080"> >Could you not= implement the variable passing as message calls?= e.g.</FONT></div> <div><FONT FACE=3D"Arial" SIZE=3D3 COLOR=3D"#000080">= ></FONT></div> <div><FONT FACE=3D"Arial" SIZE=3D3 COLOR=3D"#000080"> >- eu script= invoked by c++ / delphi program</FONT></div> <div><FONT FACE=3D"Arial" SIZE=3D3 COLOR=3D"#000080"> >- eu script= sends user-defined msg to program</FONT></div> <div><FONT FACE=3D"Arial" SIZE=3D3> =A0</FONT></div> <div><FONT FACE=3D"Arial" SIZE=3D3 COLOR=3D"#000080"> While working on= a debugger for Bach, I settled on anonymous pipes for= inter-process communication, because of their simplicity and= because they are implemented on both windows and= linux.</FONT></div> <div><FONT FACE=3D"Arial" SIZE=3D3> =A0</FONT></div> <div><FONT FACE=3D"Arial" SIZE=3D3 COLOR=3D"#000080"> I have attached= the (windows) demo code for those who are= interested.</FONT></div> <div><FONT FACE=3D"Arial" SIZE=3D3 COLOR=3D"#000080"> A few= points:</FONT></div> <div><FONT FACE=3D"Arial" SIZE=3D3 COLOR=3D"#000080"> 1) Should be fast= (in-memory)</FONT></div> <div><FONT FACE=3D"Arial" SIZE=3D3 COLOR=3D"#000080"> 2) The pipes can= be passed to the child as STDIN and STDOUT, or as separate= handles (as here).</FONT></div> <div><FONT FACE=3D"Arial" SIZE=3D3 COLOR=3D"#000080"> 3) Either the= parent or child can be translated easily to C.</FONT></div> <div><FONT FACE=3D"Arial" SIZE=3D3 COLOR=3D"#000080"> 4) Written for= Bach but should translate to EU easily. (only minor features of= Bach used).</FONT></div> <div><FONT FACE=3D"Arial" SIZE=3D3> =A0</FONT></div> <div><FONT FACE=3D"Arial" SIZE=3D3 COLOR=3D"#000080"> Karl= Bochert</FONT></div> --27286227-POCO-51627530 Content-Type: application/x-zip-compressed; name="Pipes.zip"