chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] is there any existing code for ...


From: HP wei
Subject: [Chicken-users] is there any existing code for ...
Date: Wed, 22 Jun 2011 11:31:27 -0400

On June 21, I sent a request (titled: What would you recommend for this ?) in which I described
a project that I am trying to do in chicken scheme.
I have looked around a bit more and I think the following two components will be very useful
for that project.

Do you know of any relevant codes that I can
either use or use as a starting point for (A) and (B) ??

(A) On each of many machines,  I would like to run a repl server which takes the input from
     a port.

     In emacs, one can invoke a local chicken-repl or a remote chicken-repl.
     So, I am sure the code for the server is somewhere.
     Could someone point me to the right place ??

(B) On a master machine,  I would like to implement a function
      called net-eval.

      (net-eval  '((host-1   port-1   exp)
                     (host-2   port-2    exp) ...))

      exp (as a string) will be  sent to each repl server on host-i
      and gets executed on host-1, host-2 ...
      and the function returns the list of results from each host.

      Or
      (net-eval  '((host-1   port-1   exp)
                     (host-2   port-2    exp) ...) handler)

       handler is a function to be called whenever a result is available from
       a host-i

      ------------------------------------------

      At this point, you may notice that (A) and (B) come from newlisp.
      newlisp is some kind of script language.  Personally, I don't like it.
      But I think the built-in feature of (A)(B) is newlisp is helpful for my project.

      Anything similar to net-eval already exists in chicken scheme ?
      Or should I just need to try to port net-eval  from newlisp ??

thanks
HP


reply via email to

[Prev in Thread] Current Thread [Next in Thread]