Questions tagged [concatenative-language]

Concatenative-programming languages are those in which function composition is expressed as juxtaposition, are point-free, and all expressions denote functions. Well known examples of concatenative languages are PostScript, Forth, Factor and Joy.

A concatenative programming language is a point-free programming language in which all expressions denote functions, and the juxtaposition of expressions denotes function composition. Concatenative programming replaces function application, which is common in other programming styles, with function composition as the default way to build subroutines.

They have minimal syntax and simple semantics, tend to be concise, and put emphasis on code over values.

The term was coined by Manfred von Thun to describe his language Joy, but some consider Forth as the first concatenative language.

Most languages described as concatenative are stack-based languages such as Forth, Joy, PostScript or Factor. Some concatenative languages that are not stack-based exist too, such as Enchilada, Om, and XY.

Wikipedia page

concatenative.org

17 questions
1
vote
1 answer

Factor programming language: setting-up .factor-roots configuration

I downloaded the Factor programming language for Mac. I can now launch the command factor from the command line successfully. I read in a book covering this language (Seven More Languages in...) that, to run standalone programs I need to indicate…
A. N. Other
  • 409
  • 4
  • 14
1
vote
3 answers

Can a Forth-like language be implemented with just one stack?

Forth has a stack and a return-stack. As far as I understand, the point of the return-stack is to store the previous values of the program counter. C programs put the previous value of program counter on the stack, and use no return stack. Does…
fadedbee
  • 42,671
  • 44
  • 178
  • 308
1
2