Category:Forth: Difference between revisions

From Rosetta Code
Content added Content deleted
m (LCT link)
(types, grammar...)
 
(3 intermediate revisions by 3 users not shown)
Line 2: Line 2:
|gc=no
|gc=no
|untyped=yes
|untyped=yes
|LCT=yes}}
|LCT=yes}}{{language programming paradigm|Imperative}}'''Forth''', a [[procedural programming|procedural]], [[stack]]-oriented and [[reflective programming]] language without type checking, Forth features both interactive execution of commands (making it suitable as a shell for systems that lack a more formal [[:Category:Operating_Systems|operating system]]) and the ability to compile sequences of commands for later execution. Some Forth versions (especially early ones) compile threaded code, but many implementations today generate optimized machine code like other language compilers.
{{language programming paradigm|concatenative}}
{{language programming paradigm|imperative}}
'''Forth''' is a [[procedural programming|procedural]], [[stack]]-oriented and [[reflective programming]] language without type checking which is also a concatenative programming language. Forth features both interactive execution of commands (making it suitable as a shell for systems that lack a more formal [[:Category:Operating_Systems|operating system]]) and the ability to compile sequences of commands for later execution; due to its ability to easily cross-compile a version of itself to other target architectures and because it does not need to rely on an underlying operating system, it is often used for embedded systems. Some Forth versions (especially early ones) compile concatenative threaded code, but many implementations today generate optimized machine code like other language compilers. While it has quite competitive performance on its own (comparable to Just-In-Time - JIT - compiled languages such as JavaScript, or those used on the Java Virtual Machine - JVM - such as Kotlin, or on DotNet such as C# or F#); however, if a particular application requires it, there is a closely integrated machine code Assembler that can be used to write the most time critical functions/"words" or to supply features not available in the standard language implementation.


Where not otherwise specified, examples conform to the 1994 [[ANSI]] Standard, also known as '''ANS Forth'''. Most Forth implementations now conform to this standard, often with system-specific extensions and convenience libraries. Some examples use words that are not in the standard, but which have become accepted as [[Forth common practice|common practice]] since 1994. Standard words should be uppercase, but most Forth systems are case-insensitive.
Where not otherwise specified, examples conform to the 1994 [[ANSI]] Standard, also known as '''ANS Forth'''. Most Forth implementations now conform to this standard, often with system-specific extensions and convenience libraries. Some examples use words that are not in the standard, but which have become accepted as [[Forth common practice|common practice]] since 1994. Standard words should be uppercase, but most Forth systems are case-insensitive.
Line 8: Line 11:
==Citations==
==Citations==
* [[wp:Forth_%28programming_language%29|Wikipedia:Forth (programming language)]]
* [[wp:Forth_%28programming_language%29|Wikipedia:Forth (programming language)]]
* [http://www.forthfreak.net/dpans/dpansf.htm Index to the ANS Forth words]
* [http://lars.nocrew.org/dpans/dpansf.htm Index to the ANS Forth words]
* [[wp:Concatenative_programming_language|Wikipedia:Concatenative Programing language]]

Latest revision as of 21:15, 26 May 2021

Language
Forth
This programming language may be used to instruct a computer to perform a task.
Garbage collected: No
Typing: Untyped
See Also:
Listed below are all of the tasks on Rosetta Code which have been solved using Forth.

Forth is a procedural, stack-oriented and reflective programming language without type checking which is also a concatenative programming language. Forth features both interactive execution of commands (making it suitable as a shell for systems that lack a more formal operating system) and the ability to compile sequences of commands for later execution; due to its ability to easily cross-compile a version of itself to other target architectures and because it does not need to rely on an underlying operating system, it is often used for embedded systems. Some Forth versions (especially early ones) compile concatenative threaded code, but many implementations today generate optimized machine code like other language compilers. While it has quite competitive performance on its own (comparable to Just-In-Time - JIT - compiled languages such as JavaScript, or those used on the Java Virtual Machine - JVM - such as Kotlin, or on DotNet such as C# or F#); however, if a particular application requires it, there is a closely integrated machine code Assembler that can be used to write the most time critical functions/"words" or to supply features not available in the standard language implementation.

Where not otherwise specified, examples conform to the 1994 ANSI Standard, also known as ANS Forth. Most Forth implementations now conform to this standard, often with system-specific extensions and convenience libraries. Some examples use words that are not in the standard, but which have become accepted as common practice since 1994. Standard words should be uppercase, but most Forth systems are case-insensitive.

Citations

Subcategories

This category has the following 3 subcategories, out of 3 total.

Pages in category "Forth"

The following 200 pages are in this category, out of 616 total.

(previous page) (next page)
(previous page) (next page)