Re: Block editor experiment
  Home FAQ Contact Sign in
comp.lang.forth only
 
Advanced search
POPULAR GROUPS

more...

 Up
Re: Block editor experiment         

Group: comp.lang.forth · Group Profile
Author: Jean-François Michaud
Date: May 18, 2007 09:27

On May 18, 9:37 am, Jerry Avins ieee.org> wrote:
> Jonah Thomas wrote:
>> Jean-Fran?ois Michaud comcast.net> wrote:
>
>>> By reducing the amount of text in blocks, we are able to fall on
>>> single digits (1-8 lines) which opens the door to immediate execution
>>> on every keystroke.
>
>>> For example:
>
>>> 1- blah text
>>> 2- blah blah text
>>> 3- blah blah blah text
>>> 4- yay text
>>> 5- yay yay text
>>> 6- yay yay yay text
>>> 7- super text
>>> 8- super text
>
>>> 12L read '1', followed by '2', followed by 'L' places 1 on the stack
>>> when '1' is pressed, 2 on the stack when '2' is pressed and executes a
>>> lineswap using the 2 parameters on the stack when 'L' is pressed.
>
>>> 5D would blank out line 5.
>>> To edit text, 8I would allow insertion of text on line 8, etc.
>>> Esc bumps us back from edit to command and once more, back to the
>>> Forth interpreter.
>
>> If you wanted, perhaps you could use 16 lines and read the first digit
>> in hex.
>> You'd have to avoid commands that started A-F when you might put in a
>> line number, but you could arrange that, if you wanted to.
>
> You could stay with positive decimal digits while increasing the number
> of lines to ten. Allowing negative line numbers makes decimal digits
> suffice for 19 lines: -9, -8, -7, ...-1, 0, 1, ..., 7, 8, 9.
>
> Jerry
> --
> Engineering is the art of making what you want from things you can get.
> ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

Interresting, hadn't thought of using negative numbers but that would
indeed allow the use of 16 lines while still benefiting from the
efficiency optimizations. On the other hand, my disk blocks are 512
bytes instead of 1024 so 8 lines of 64 characters is just the right
amount, plus it would indirectly enforce the use of smaller
definitions.

Regards
Jean-Francois Michaud
no comments
diggit! del.icio.us! reddit!