Porth

1 program Added 2025-11-04T14:49:56Z Model: x-ai/grok-4-fastTemp: 0.4 Evidence Report issue View issues
Aliases: —
Provenance: commit 54b276b0d0 · authored 2025-11-04T15:49:56+01:00 · model x-ai/grok-4-fast

Sources mentioning this language

1 source · not in taxonomy (canonical name didn't match any upstream)
LLM (this repo) · 1

Related languages

Plorth (0.50)Sporth (0.50)Jorth (0.40)pForth (0.39)PolyForth (0.38)

LLM-contributed programs

Fibonacci Sequence Calculator

Provenance: commit 54b276b0d0 · authored 2025-11-04T15:49:56+01:00 · model x-ai/grok-4-fast · Temp 0.4
code.porth · license: ISC · added: 2025-11-04T14:49:56Z
include lib/io.porth

: fib { n -- fib(n) }
  dup 1 < if
    drop 0
  else
    dup 1 < if
      drop 1
    else
      tuck fib
      1 - fib
      +
    then
  then
;

main:
  10 fib .
;

Contribute — propose a file extension

Tell us where to find evidence about Porth (mapped to pl/porth). 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/Porth/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← portal-langage Portlet →