HP Forums
[Forth] Derivative "Eight" - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: General Forum (/forum-4.html)
+--- Thread: [Forth] Derivative "Eight" (/thread-20398.html)



[Forth] Derivative "Eight" - floppy - 08-26-2023 12:30 PM

Seen there https://8th-dev.com/
interesting.
"8th is different from the languages you’re most likely familiar with. First of all, it’s a Forth derivative, so it’s a stack-based language with RPN syntax."


RE: [Forth] Derivative "Eight" - John Keith - 08-26-2023 01:30 PM

It's also a paid commercial product, which is (thankfully) rare in the universe of programming languages these days. There are literally hundreds of free open-source programming languages to choose from. Much as I like Forth (and RPL!), I just don't see a need for such a product.


RE: [Forth] Derivative "Eight" - Joe Horn - 08-26-2023 01:46 PM

Wow, 8th looks so close to RPL that learning it should be easy for RPL afficionados, especially those who have ever dabbled with System RPL. Check out this sample of 8th code:

Code:
\ Find the sum of all the multiples of 3 or 5 below 1000.

with: n
: div? \ n m -- f
  mod not ;

: sum-multiples \ sum x -- sum'
    dup 3 div?
    over 5 div?  or 
  if + else drop then ;

0 ' sum-multiples 3 999 loop . cr bye



RE: [Forth] Derivative "Eight" - Joe Horn - 08-26-2023 01:48 PM

(08-26-2023 01:30 PM)John Keith Wrote:  It's also a paid commercial product, which is (thankfully) rare in the universe of programming languages these days. There are literally hundreds of free open-source programming languages to choose from. Much as I like Forth (and RPL!), I just don't see a need for such a product.

Please be aware that 8th has a free version. If you're not developing commercial software, but just using it recreationally, it's free.