Oberon Community Platform Forum

Development => Oberon & Active Oberon => Topic started by: greim on June 07, 2011, 11:07:43 AM



Title: Oberon and FORTH
Post by: greim on June 07, 2011, 11:07:43 AM
I am just playing around a little bit with FORTH.
My question:
Was there a paper or simple study to use Forth as a kind of bytecode machine or better said intermediate assembler?

Regards

Markus Greim


Title: Re: Oberon and FORTH
Post by: Wlad on July 07, 2011, 11:00:05 AM

... to use Forth as a kind of bytecode machine or better said intermediate assembler?
What for? Trying to reinvent a wheel? :)
It is not worth to use it as a "independent" programming language for development of systems, neither intermediate assembler.
FORTH IS NOT an INTERMEDIATE ASSEMBLER.
It will be better to think about it as the kind of scripting languages with a "specific" features and syntax.

The examples and exercises from Broudey's books are very interesting... But I think you can not find an application for it in modern programming world.

The features of FORTH to remove "intermediate levels" in objects building and to express through CREATE DOES> entities of domain ARE very interesting. But the same features ARE the main reasons why FORTH did not become popular language. Why? Because may be the knowledge of syntax and semantic rules of certain language are burden for novice programmers in "classical" OOP languages, but these rules help very much to establish "understanding bridges" between brains of programmers. :) Same notation, same rules, same semantics. In the case of FORTH you have to understand the "object definition and creation" notation in EVERY project. There is a joke that quantity of OOP implementations in FORTH is more then quantity of forthers. :)