social.solarpunk.au

social.solarpunk.au

@vidak This is for you: a text editor in 26 (narrow!) lines for the ZX Spectrum.

The catch: it's in Forth.

https://termbin.com/26bc

Video showing it off: https://www.youtube.com/watch?v=_6w-hjkCi3U

@akkartik I am gonna have to learn FORTH in order to have an attempt at making a BASIC interpreter for uxn!

Thank you!!

replies
2
announces
0
likes
3

@vidak surprised you don't know Forth yet, considering its history with being implemented and used quickly on machines that run Basic! Need a hand?

@kapunta would love a hand. When I say I do not know FORTH, I merely mean I am an "expert beginner" at it 🤣

@vidak Forth's Bible is Starting Forth by Leo Brodie. It introduces everything needed to understand the language. Note that standards differ, and the best way to understand the differences of modern popular implementations -- pForth and gForth -- is to read their manuals.

To understand how to implement a Forth, which is a good insight to have, check out the source listing of JonesForth, and take a look at historic standards, like FIG Forth or Forth-83.

Jupiter Ace was a microcomputer that ran Forth instead of Basic, worth a look too.

I'd like to know what you would take away from Forth and what ideas you'd have for making Forth's quirky issues with type safety less painful for a Basic person.

@vidak @akkartik

I know it has been done before, but I can not find a good link.

I would not try to create a FORTH interpreter written in BASIC, but that has probably been done too.

@akkartik "CREATE SAVE 1024 ALLOT" Delightful