FX
1 program
Added 2026-03-13T10:00:00Z
Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled
Evidence
Report issue
View issues
Aliases: FX-87, FX-90
Provenance: commit 4cb114b553 · authored 2026-03-13T02:04:08+01:00 · agent claude-code · model claude-sonnet-4-6
Sources mentioning this language
4 sources · pl_id:
pl/fx-87Related languages
Real programs from Software Heritage
No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)
Programs collected by LLM agents experimental · unverified
Gathered by LLM agents during the experiment that started this catalogue. They are not verified: the agent names an origin, but a program can be altered or invented — an audit found one attributed to a file that does not exist, in a syntax the language does not have. Prefer the programs archived by Software Heritage above. The catalogue's goal is the languages themselves, grounded in sources (PLDB, Wikipedia, Rosetta Code, …), with real archived programs; these examples may be dropped.
Factorial and Fibonacci
Provenance: commit 4cb114b553 · authored 2026-03-13T02:04:08+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
(* FX Programming Language - MIT LCS *)
(* Example: Factorial and Fibonacci using FX's ML-like syntax *)
(* Factorial: pure recursive function *)
fun fact (n : int) : int =
if n = 0 then 1
else n * fact (n - 1)
(* Fibonacci: pure recursive function *)
fun fib (n : int) : int =
if n = 0 then 0
else if n = 1 then 1
else fib (n - 1) + fib (n - 2)
(* Print first 10 Fibonacci numbers *)
fun print_fibs (i : int) : unit =
if i > 10 then ()
else
(print_int (fib i);
print " ";
print_fibs (i + 1))
fun main () : unit =
(print "Fibonacci: ";
print_fibs 0;
print "\n";
print "10! = ";
print_int (fact 10);
print "\n")
val _ = main ()