Re: Back & Forth - 4tH I/O and You

Liste des GroupesRevenir à cl forth 
Sujet : Re: Back & Forth - 4tH I/O and You
De : dxforth (at) *nospam* gmail.com (dxf)
Groupes : comp.lang.forth
Date : 18. May 2025, 02:05:47
Autres entêtes
Organisation : i2pn2 (i2pn.org)
Message-ID : <b2a4690cc4cdcb9e39310166d37070ab2a16d8b2@i2pn2.org>
References : 1
User-Agent : Mozilla Thunderbird
On 18/05/2025 1:02 am, Hans Bezemer wrote:
Back & Forth - 4tH I/O and You
 
How is 4tH, a Forth compiler, able to define an entire I/O system with so few words? And still capable of supporting most of the ANS FILE word set? Well, the idea isn't new - and was inspired by an unexpected computer.
 
 
https://youtu.be/4G_15r01bmc

Many forths have (or had) a mechanism for redirecting console output.
Usually this was redirection to a printer as most OS had a dedicated
character-oriented channel for the latter.  OTOH this redirection
isn't something I've used.  Only one application springs to mind and
even then it felt out of the norm:

\ Set EMIT to OFILE
: DISK ( -- )
  ['] writech [ sys-vec 4 + ] literal ! ;

For me it's redirection that feels C-like and the ANS file wordset
a blessing relative to the native FCB file mechanism of CP/M (as
clever and memory-efficient as the latter was).

As always, another thought-provoking video.  Thanks, Hans.


Date Sujet#  Auteur
17 May 25 * Back & Forth - 4tH I/O and You13Hans Bezemer
18 May 25 +* Re: Back & Forth - 4tH I/O and You11dxf
18 May 25 i+* Re: Back & Forth - 4tH I/O and You2mhx
19 May 25 ii`- Re: Back & Forth - 4tH I/O and You1mhx
19 May 25 i`* Re: Back & Forth - 4tH I/O and You8dxf
19 May 25 i +- Re: Back & Forth - 4tH I/O and You1dxf
19 May 25 i +- Re: Back & Forth - 4tH I/O and You1albert
19 May 25 i `* Re: Back & Forth - 4tH I/O and You5dxf
20 May 25 i  `* Re: Back & Forth - 4tH I/O and You4dxf
20 May 25 i   +* Re: Back & Forth - 4tH I/O and You2albert
21 May 25 i   i`- Re: Back & Forth - 4tH I/O and You1dxf
22 May 25 i   `- Re: Back & Forth - 4tH I/O and You1dxf
20 May 25 `- EOC [Re: Back & Forth - 4tH I/O and You]1Buzz McCool

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal