Page 21 of 21

Re: V-FORTH - Forth-83 for the VIC

Posted: Fri Nov 08, 2024 12:57 pm
by srowe
pixel wrote: Fri Nov 08, 2024 11:54 am Could something like this (full-screen text editor, mostly ANS-FORTH) ever make it into VFORTH or would that be rather illusory, considering the limited heap?:
https://github.com/benhoyt/fe
I've quickly scanned the code, I can't see it uses anything V-FORTH doesn't have but I suspect, like you say, it would consume much of the free space.

Re: V-FORTH - Forth-83 for the VIC

Posted: Fri Nov 08, 2024 2:03 pm
by pixel
srowe wrote: Fri Nov 08, 2024 12:57 pm I've quickly scanned the code, I can't see it uses anything V-FORTH doesn't have but I suspect, like you say, it would consume much of the free space.
A bit down the README the original author is saying that it's ANS-FORTH, except for some directory functions.

Would it be possible to add banked memory or would that drag everything down too badly?

Re: V-FORTH - Forth-83 for the VIC

Posted: Sat Nov 09, 2024 1:25 am
by srowe
pixel wrote: Fri Nov 08, 2024 2:03 pm A bit down the README the original author is saying that it's ANS-FORTH, except for some directory functions.
Yeah, I didn't look that deeply and I'm not that familiar with ANS-FORTH so I could have missed something.
Would it be possible to add banked memory or would that drag everything down too badly?
Full scale banked memory would be quite invasive, all general memory access would have to be made bank-aware, that would need 3 bytes on the stack (instead of 2). The structure of the dictionary etc would need to change. The code would bloat and slow down significantly. Just supporting copying to/from banked memory would be a lot easier, but less useful.