Gforth 1.0

(gforth.org)

95 points by joshcsimmons5 hours ago

3 comments

  • Hendrikto4 hours ago
    Some sorely needed context:<p>&gt; [Gforth is] a free, fast, featureful and portable implementation of the Forth 2012 language.<p>&gt; Gforth runs under GNU, BSD, and similar systems, MS Windows and MacOS X and should not be hard to port to other systems supported by GCC.
    • daitangio3 hours ago
      If you love HP-RPN calculators, you may love Forth as well. Forth is a very interesting language, I find it a bit too complex for my little brain but give it a spin if, you have 2 free hours
  • anta401 hour ago
    Nice to see gforth is still being maintained.<p>BTW, on the other side, looks like gforth still lacks the ability to create native OS executable, something like:<p>gcc myprog.c -o myprog<p>?
    • nickcw21 minutes ago
      You may enjoy ccforth then which is a mostly gforth compatible compiler which compiles to native via C.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;ncw&#x2F;ccforth" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;ncw&#x2F;ccforth</a><p>I wrote it as an experiment in having both a forth interpreter and compiler running at the same time.
    • jan_m_savage1 hour ago
      That’s because Gforth is a threaded-code VM that saves dictionary images rather than compiling to native code.<p>As you prolly know, Forth blurs compile time and run time in general, and there’s no so-called clean <i>compile, then link</i> boundary like in C.<p>SwiftForth, VFX Forth, and iForth do emit real executables, and there are smaller native-code Forths for Linux too, but then the opportunity cost is losing Gforth’s portability and its standards-heavy library ecosystem.
  • jan_m_savage3 hours ago
    and here is the tutorial: <a href="https:&#x2F;&#x2F;net2o.de&#x2F;gforth&#x2F;Tutorial.html" rel="nofollow">https:&#x2F;&#x2F;net2o.de&#x2F;gforth&#x2F;Tutorial.html</a>