Post Reply 
HP75C / FORTH / Clock?
03-19-2017, 09:09 PM
Post: #12
RE: HP75C / FORTH / Clock?
If you find that you need to draw a lot of stack diagrams (apart as top level documentation for a word) and use PICK and ROLL, then maybe you are not really using the language as it is intended.

Forth is a concatenative language that makes it cheap to create new words. The idea is to create small building blocks and combine them together. You should not really have much more than 3 things on the stack that you deal with in a word. This is contrary to C where a function is somewhat expensive to create, so you often end up writing large functions and in extreme (bad) cases even copy-pasting code, rather than factoring out small building blocks.

Forth has problems in my opinion, but that is not related to the stack, it is more caused by the lack of syntax, mode dependent semantics and how the compiler is built into it.

But yes, it is possible to write bad code and make a mess in any language. Some languages makes it easier than others. Trying to use a language as a new syntax for another language one happen to be familiar to, may not always be the best way to approach things.

HÃ¥kan
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
HP75C / FORTH / Clock? - charger73 - 03-17-2017, 02:00 PM
RE: HP75C / FORTH / Clock? - J-F Garnier - 03-18-2017, 08:43 AM
RE: HP75C / FORTH / Clock? - Garth Wilson - 03-18-2017, 09:57 AM
RE: HP75C / FORTH / Clock? - J-F Garnier - 03-19-2017, 10:00 AM
RE: HP75C / FORTH / Clock? - John Cadick - 03-18-2017, 05:19 PM
RE: HP75C / FORTH / Clock? - John Cadick - 03-18-2017, 06:36 PM
RE: HP75C / FORTH / Clock? - charger73 - 03-19-2017, 07:17 AM
RE: HP75C / FORTH / Clock? - xerxes - 03-19-2017, 05:12 PM
RE: HP75C / FORTH / Clock? - hth - 03-19-2017 09:09 PM



User(s) browsing this thread: 1 Guest(s)