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-87
LLM (this repo) · 1PldbWikipediaWikidata · Q5427374

Related languages

Fortran 90 (0.12)Power Fx (0.10)Flix (0.08)FORTRAN 77 (0.08)FLOW-MATIC (0.07)

LLM-contributed programs

Factorial and Fibonacci

Provenance: commit 4cb114b553 · authored 2026-03-13T02:04:08+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
code.fx · added: 2026-03-13T10:00:00Z
(* 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 ()

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.)

Contribute — propose a file extension

Tell us where to find evidence about FX (mapped to pl/fx-87). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/FX/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← FWEB fxml →