[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
6BIT
- To: KMP at MIT-MC
- Subject: 6BIT
- From: Jon L White <JONL at MIT-MC>
- Date: Fri, 23 Oct 81 13:26:00 GMT
- Cc: MACRAK at MIT-MC, BUG-MACLISP at MIT-MC
- Original-date: 23 October 1981 09:26-EDT
AI's network is still down, so I've not been able to install anything.
There is this internal function in LAP called 1WD/| which does sort
of what you want, but a little more generally. I extended 6BIT
to allow for this additional functionality by adding the interface
functions SYMBOL-TO-SIXBIT and SYMBOL-TO-ASCII which admit &optional
second arguments specifying which 'word' of the converted pname is desired.
For symmetry, I also added SIXBIT-TO-SYMBOL and ASCII-TO-SYMBOL.
I might mention that the conversion from sixbit to ascii for the purpose
of symbolification is an ideal application of LOAD-BYTE and DEPOSIT-BYTE,
and by recoding that inner loop to use them instead of consing up
for implode, the thing runs 75% faster (and does virtually no consing).