Shop OBEX P1 Docs P2 Docs Learn Events
Four 4ths make a whole — Parallax Forums

Four 4ths make a whole

LoopyBytelooseLoopyByteloose Posts: 12,537
edited 2013-07-10 08:38 in Propeller 1
Dave Hien started pfth in C and then migrated to PASM for addtional speed, but felt that adhering to ANS Forth would make new learner less daunted. I tend to agree.

Additionally if anybody wants to look at Forth on the Propeller in C, they can still look at the earlier version of pfth... long before ver 0.72. If there is a desire to try to improve the code, here is YFORTH, another Forth in C that might be useful for comparison on the Propeller.

http://linux.about.com/cs/linux101/a/yforth.htm

I am very big on learning through comparison.

If you are looking for better ways to created standard Forth words, eForth derives all but 31 words in Forth. And gForth offers a good free Forth for Windows, LInux, and Apple.

Why 4/4ths.. Well we already have pfth, PropForth, and TacyonForth.. so just add YForth to have 4 4ths on the Propeller.

Comments

  • Dave HeinDave Hein Posts: 6,347
    edited 2013-07-09 11:03
    Loopy, I didn't see a pointer to the source in the link you provided, so I searched around and found the source at http://tux.rainside.sk/ubuntu/pool/universe/y/yforth/ . I was able to build it with GCC under Linux by typing make. It complained that it was out of dictionary space, so I disabled the floating point options in config.h and it built it again. This left about 10K of unused space in the dictionary. It appears that he implemented everything in the ANS standard, which is quite impressive. I haven't played with it much but it looks like a nice implementation of Forth in C.
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2013-07-10 08:38
    Hi Dave,
    Yes, I guess that the site omitted a pointer to the soruce code.. SourceForge is the usual repository for this kind on package... it doesn't have to rely on Ubuntu. In fact, I came across YForth when I was reloading GForth as I shifted from Ubuntu 12.04LTS to Mint 15.

    Actually, I am enjoying pfth072 immensely and don't need to read the code in C that preforms well and maybe better in PASM. But I am sure that there are a lot of ways to get into Forth and knowledgible C users might enjoy this entry point.

    The more I use pfth972, the more I find it likely the easiest entry point for the rank beginner that doesn't know C or Spin or PASM. It is a great infroduction to the Propeller architecture.

    YForth, GForth, and eForth each provide a different and interesting point of view about putting together a mainstream Forth. It just so happens that YForth is an easy-to-deploy proof of C on the Propeller... maybe it will work even better on the Propeller2.
Sign In or Register to comment.