Re: How do you do this?



Stephen Pelc wrote:
No overloading of colon is required. You may do it if you want,
but it isn't necessary.

If colon isn't overloaded, and has the standard meaning then

program

will just cause local execution of the code compiled into 'program'

it will not cause remote execution

(unless of course you are trying to hide that this code is somehow
being streamed by some unseen program that I asked about in
the first place. All you have done is show how local complation
of source is possible.)

You must have other code to do that instead of just saying 'program'
if 'program' means what every beginner thinks it means.

I asked about, remote execution, not local execution
like what every other Forth does when you compile and execute a
word locally.

So you said you just send the source of a program to get it to
execute remotely. I asked what code you wrote to send a program
and you showed me code for the program that gets sent instead.

But from what you say you do invoke remote execution of a program
by sending its encapuslated source. Any Forth begginner can get that.

What you have not addressed is the original question of how you make
that happen. All you have said is that the contents of the program
that
gets sent in your approach is just source.

So you need a compiler on the end and time and memory to compile
source before execution of the remotely executed program can take
place.

I got that much. You left all the other details for the imagination of
the
reader including the answer to my question, how do you do it?

But thanks anyway.

.



Relevant Pages

  • Re: Minimal Forth
    ... Compile the whole command before execution, rather than interpretating it word by word, because it's word by word execution that makes commands behave differently from saved defintions in traditional Forths. ... How would you cope with the kind of defining words that set up variables, constants, etc. that currently need to be used in execution mode? ...
    (comp.lang.forth)
  • Re: Creating an operating system
    ... If your interpreter uses some intermediate representation of the line ... Another option is to compile on-the-fly to an instruction format - ... faster execution on subsequent passes. ... I can imagine this being done for a language, ...
    (comp.os.linux.development.system)
  • Re: 2 bugs in Dolhin X6
    ... PluggableImage and assigns BlockClosure to instance variable. ... When you compile this in a workspace (any workspace, ... execution begins for the block. ... Compile blocks as separate methods. ...
    (comp.lang.smalltalk.dolphin)
  • Re: COBOLs Influence on C
    ... Cobol, along with most compiled languages, is the same. ... learn of missing external names either at link or execution time. ... name at compile time and attempt to link the OBJ at link-edit time. ... Create an EXE that uses some of the subroutines in the DLL. ...
    (comp.lang.cobol)
  • Re: Creating an operating system
    ... If your interpreter uses some intermediate representation of the line ... Another option is to compile on-the-fly to an instruction format - ... faster execution on subsequent passes. ... I can imagine this being done for a language, ...
    (comp.programming)