[Top][All Lists]

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

Re: binary interface

From: Keisuke Nishida
Subject: Re: binary interface
Date: Fri, 02 Mar 2001 00:16:01 -0500
User-agent: Wanderlust/2.4.0 (Rio) SEMI/1.13.7 (Awazu) FLIM/1.13.2 (Kasanui) Emacs/21.0.96 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI)

At Thu, 01 Mar 2001 23:37:54 -0500,
Keisuke Nishida wrote:
>   Text format:         (1 "foo")            9 bytes
>   Semi-binary format:  (1 s3 foo)          10 bytes
>   Binary format:       [cons][1][#1][cons][#2][()][string][foo\0]  32 bytes
> The semi-binary format is much shorter than the binary format,
> while being very friendly to the reader.  If I/O is much slower
> than CPU, the semi-binary format above should be better than
> the current binary format.  Should we try it?

I guess the current binary format is just bad - too space consuming.
The above semi-binary format is not good enough, either.  We could
implement a more sophisticated and optimized loader, using the same
technique as my VM.  Actually, I could integrate a loading facility
into my VM.  A binary file would be a single bytecode which constructs
objects.  Oh, gee, I didn't need to write a loader at all...

reply via email to

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