[696] in Coldmud discussion meeting

root meeting help first first in chain previous in chain previous next next in chain last in chain last

Re: assignment operator

daemon@ATHENA.MIT.EDU (Fri Mar 10 23:57:36 1995 )

Date: Fri, 10 Mar 1995 20:53:58 -0800
To: coldstuff@MIT.EDU
From: jeffpk@netcom.com (Jeff Kesselman)

>< I think these endless squabbles over syntactic minutia
>< are a good reason to put compilers in-db rather than
>< inserver, personally :).
>
>Because of a reason you yourself brought up (twisting it a little).  The most
>frequently used sequence/procedure should be the most optimized.  Doing it
>in-db means it will not be very optimized.  Doing it in-driver means it will
>be (referring to both compile and decompile).
>
>Actually, with the change Crag is working on we can remove "compile()"
>and have an 'add_method(name, flags, args, vars, body)', then take the
>parsing code in compile and make a 'coldc_to_method()' and a
>'method_to_coldc()' (so, if people wanted to they could easilly add more
>parsing functions).
>
>The end result is, to compile code you would do:
>
>  add_method('foo, @coldc_to_method(["arg foo; return foo;"]))
>
>Instead of:
>
>  compile(["arg foo; return foo;"], 'foo);

YES YES YES! PLEASE give us access to the ColdC 'assembly' level.  Thsi
owudl also allow hand-tuning as an intermidate efficiency stpe btw.
compield and actualy in-mud instructions.  Also, please complete the model
by givin decompiel instructions: get_method() and method_to_coldc().  After
all, the decompielr is already written so it shoudl be easy...

JK