FORTH? Really!?
rescrv.net
FORTH? Really!?
1–10 of 27 posts
Re: FORTH? Really!?
#2Re: FORTH? Really!?
#3Looking to discuss with people about whether LLMs would do better if the language had properties similar to postfix-notation.
This won't show up in a smaller benchmark, because the clutching at straws tends to happen nearer to the edge of the window. The place where you can get it to give up obvious things that don't work, and actually try the problem space you've given.
Re: FORTH? Really!?
#4Looking to discuss with people about whether LLMs would do better if the language had properties similar to postfix-notation.
Most models are multi-paradigm, and so they get... Fixated on procedural language design. Concepts like the stack, backtracking, etc. violate the logic they've absorbed, leading to... Burning tokens whilst it corrects itself. This won't show up in a smaller benchmark, because the clutching at straws tends to happen nearer to the edge of the window. The place where you can get it to give up obvious things that don't w…
What I’m investigating is if more compact languages work for querying data.
What makes you think it’s going to clutch at straws more? What makes you think it won’t do better with a more compact, localized representation?
Re: FORTH? Really!?
#5Looking to discuss with people about whether LLMs would do better if the language had properties similar to postfix-notation.
But Forth taken holistically is a do-anything-anytime imperative language, not just "concatenative" or "postfix". It has a stack but the stack is an implementation detail, not a robust abstraction. If you want to do larger scale things you don't pile more things on the stack, you start doing load and store and random access, inventing the idioms as you go along to load more and store more. This breaks all kinds of tooling models that rely on robust abstractions with compiler-enforced boundaries. I briefly tested to see what LLMs would do with it and gave up quickly because it was a complete rewrite every single time.
Now, if we were talking about a simplistic stack machine it might be more relevant, but that wouldn't be the same model of computation.
Re: FORTH? Really!?
#6This doesn't mean you should write AI in these languages, just that it is unusually cheap and easy for AI to reason about code written in these languages on silicon.
Re: FORTH? Really!?
#7Re: FORTH? Really!?
#8Looking to discuss with people about whether LLMs would do better if the language had properties similar to postfix-notation.
If you're executing the operations interactively, you're seeing what's happening on the stack, and so it's easy to keep track of where you are, but if you're reading postfix expressions, it's significantly harder.
Re: FORTH? Really!?
#9From the title alone I tought it will be another FORTH interpreter implementation article, but I was happy to see someone actually using it for anything besides proving their interpreter with a Fibonacci calculation.