Real world usage of concatenative programming languages
Asked Answered
L

8

20

What are some real-world projects done in concatenative languages like Forth, Factor, Joy, etc.?

Logicize answered 18/11, 2009 at 9:59 Comment(1)
Factor is a pretty great language, but don't even bother if you want to write GUI apps. There are no bindings for any popular GUI toolkits, and the one shipped with Factor is crap.Summertree
V
14

factorcode.org, concatenative.org and tinyvid.tv are powered by Furnace, a Factor web server and framework.

Vanadium answered 18/11, 2009 at 10:11 Comment(0)
J
12

PostScript is concatenative, and there's obviously a huge number of applications of PostScript. It's just not a general purpose programming language.

Juxtapose answered 18/11, 2009 at 10:2 Comment(0)
U
5

There is the somewhat-obsolete but very cool Quartus Forth for Palm which allowed full compiled application development on the Palm device (Forth as a minimalist language works rather well in those circumstances). Their home page lists several Palm apps.

This FIG page has a list of mostly-embedded projects including a reference to the very cool use of Forth by NASA.

I met a guy at an Apple conference in Queensland back in about 1991 who had retailed a road planning application written in MacForth.

Christopher Diggins was talking about his Cat language being used inside Microsoft to help optimise compilers but I don't know if that went anywhere.

I suspect PowerMOPS (the successor to Neon) may elude the definition of concatenative because its big deal is adding object-orientation, which implies instances.

Unpin answered 19/11, 2009 at 2:31 Comment(1)
Sorry if I gave the wrong impression but Cat was never used at Microsoft. It could be used to help optimize compilers in theory, but I never saw anyone try to do that.Camey
S
5

As Greg wrote, postscript is the mammoth example.

Concatenative languages pop up everywhere, quite naturally, because of the trivial nature of the language runtime. It's a favourite for many firmwares: I first encountered Forth "in the flesh" in the bootloader for a Sun Sparcstation. It powers the firmware for the OLPC.

Ocaml's parent, Caml was based on realising the semantics of functional programming as the Categorical Abstract Machine (the CAM in Caml).

Bibtex uses a concatenative language to compile style files.

Straightaway answered 22/12, 2009 at 21:16 Comment(3)
How is CAM connected with concatenative languages?Livvy
Take a look at ropas.snu.ac.kr/~pronto/seminar/20061027.pdf It's not quite trivial to realise the combinators of the CAM as a Forth dictionary, but I think it is doable, and certainly the spirit of the operational semantics is concatenative.Straightaway
link is 404 nowLivvy
A
4

Take a look at FORTH Inc, They list several projects that they and their customers did, using their FORTH.

Anabatic answered 13/12, 2009 at 4:39 Comment(0)
P
3

Part of the firmware on Macs (at least in the older PowerPC models) was written in Forth.

See: Link

Palaeontology answered 13/12, 2009 at 4:43 Comment(0)
L
3

Eserv and nncron are written in SP-Forth.

Livvy answered 29/12, 2009 at 8:30 Comment(0)
A
3

Bitcoin protocol, and most of the other cryptocoins, uses pubkey scripts and signature scripts for validation of transactions:

Pubkey scripts and signature scripts combine secp256k1 pubkeys and signatures with conditional logic, creating a programable authorization mechanism.

These scripts are written in a concatenative language:

The script language is a Forth-like stack-based language deliberately designed to be stateless and not Turing complete. Statelessness ensures that once a transaction is added to the block chain, there is no condition which renders it permanently unspendable. Turing-incompleteness (specifically, a lack of loops or gotos) makes the script language less flexible and more predictable, greatly simplifying the security model.

Ahasuerus answered 21/12, 2014 at 22:32 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.