Hacker News new | ask | show | jobs
by Mmrnmhrm 228 days ago
The power of FORTH is that creating a variation tailored to your specific problem is almost effortless.

In most languages, building a compiler or interpreter is a major project. With FORTH, if you’re the only user, you can have something working in minutes.

I’ve lost count of how many times I’ve thrown together a simple stack-based interpreter. Whenever I need to encode non-trivial behavior in an app, I know I can spin up a quick FORTH and get it done.

1 comments

Let's imagine for the sake of argument that I don't need to write a compiler or interpreter. What else is FORTH well suited for?
It's often used in bootloader/firmware type stuff (or was) because it can be a bit higher level than assembly and not subject to the same types of vulnerabilities and crashes... but written in a few KB and even easily hand written in assembly. And often run pretty fast, depending on the architecture.