Arc

1 program Added 2025-10-23T10:25:25Z Model: x-ai/grok-4-fastTemp: 0.4 Evidence Report issue View issues
Aliases: —
Provenance: commit 971aec04f3 · authored 2025-10-23T12:25:25+02:00 · model x-ai/grok-4-fast

Sources mentioning this language

7 sources · pl_id: pl/arc
LLM (this repo) · 1PldbLinguistWikipediaHyperpolyglotRosettacodeWikidata · Q2438046

Wikipedia infobox

Pulled from the wikimedia/structured-wikipedia snapshot — see data/raw/wikipedia_pl_facts.*.jsonl and pl_fact.csv for the long-table provenance.

Paradigmsmulti-paradigm: functional · meta · procedural
Typingdynamic
Designed byPaul Graham · Robert Tappan Morris · Arc community
First appeared2008
Influenced byLisp · Scheme
LicenseArtistic License 2.0
Implemented inRacket · Common Lisp
Homepagehttp://arclanguage.org

Extensions claimed by this language

2 claims. Each row is one upstream assertion with its strength. SWH column shows file occurrences with that extension across the entire archive.
ExtensionSourceStrengthSWH
.arclinguistprimary93.2K files
.arcwikidataprimary93.2K files

Related languages

Sparcl (0.12)Larceny (0.11)Charcoal (0.10)Archetype (0.09)Arcadia (0.06)

LLM-contributed programs

FizzBuzz

Provenance: commit 971aec04f3 · authored 2025-10-23T12:25:25+02:00 · model x-ai/grok-4-fast · Temp 0.4
code.arc · added: 2025-10-23T10:25:25Z
(for i 1 100
  (prn
    (aif (and (is 0 i % 15) "FizzBuzz")
         it
      (aif (and (is 0 i % 5) "Buzz")
           it
        (aif (and (is 0 i % 3) "Fizz")
             it
           i)))))

Real programs from Software Heritage

1 sample mined from derived_datasets/<date>/contents/*.parquet, byte-verified against the SWH archive. Citation-grade qualified SWHIDs preserved.
search_spin.arc · 1969 B · ext .arc · seen 3× in SWH
via unique-primary
swh:1:cnt:d98265132cb6666b9e92107dd3157174b9b77d1f;origin=https://github.com/delsuc/Gifa;anchor=swh:1:rev:87430699876841b9758a700f5a4ae382ff0ca9cb;path=/code/macro/att/search_spin.arc
Open in SWH · Raw bytes (SWH) · GitHub raw
Show source
; search_spin (interactive)
;
; permits click on the data-set, and high-light the spins 
; in the db located in the align tolerance, in F1 and F2 axes
;

alert "Click at the point where you want to search for spins"

point_clear
monopoint
set f1 = (itop($pointy[1],2,1))  set f2 = (itop($pointx[1],2,2))

set tmp = ('tmp' // int(1000000*$random))
open $tmp
fprint $tmp "#PPM   Name  System Residue  Spin#  (Note)"

set fm =    "%6.3f %5s      #%3d       %3s %3d  #%4d %s"
set f1list = " "
set ss = $scolor
print ("F1 Axis")
fprint $tmp ("F1 Axis")
foreach i in spin  within 1 ($f1-$tol_align) ($f1+$tol_align) 
  if ($scolor <6) then
    scolor (%+1)
  else
    scolor 1
  endif
  show_spin $i
  set sp = ($spin[$i])
  set ppm = (head($sp))  set sp = (tail($sp))
  set name = (head($sp)) set sp = (tail($sp))
  set sys = (head($sp))  set sp = (tail($sp))
  set res_num = (head($sys[$sys])) set sp1 = (tail($sys[$sys]))
  set res_name = (head($sp1))
  fprintf $tmp $fm $ppm $name $sys $res_name $res_num $i $sp *
  print ("SPIN"; $i)
  set f1list = ($f1list ; $i)
endfor
scolor $ss

set f2list = " "
set ss = $scolor
print ("F2 Axis")
fprint $tmp ("F2 Axis")
foreach i in spin  within 1 ($f2-$tol_align) ($f2+$tol_align) 
  if ($scolor <6) then
    scolor (%+1)
  else
    scolor 1
  endif
  show_spin $i
  set sp = ($spin[$i])
  set ppm = (head($sp))  set sp = (tail($sp))
  set name = (head($sp)) set sp = (tail($sp))
  set sys = (head($sp))  set sp = (tail($sp))
  set res_num = (head($sys[$sys])) set sp1 = (tail($sys[$sys]))
  set res_name = (head($sp1))
  fprintf $tmp $fm $ppm $name $sys $res_name $res_num $i $sp *
  print ("SPIN"; $i)
  set f2list = ($f2list ; $i)
endfor
scolor $ss
close $tmp

if ($f1list s= " ") then
   alert ("No spin found in F1 axis within"; $tol_click; "ppm")
elsif ($f2list s= " ") then
   alert ("No spin found in F2 axis within"; $tol_click; "ppm")
endif

formbox "List of Spins" DO_NOTHING \
    $tmp text *
sh ("/bin/rm -f";$tmp)


Contribute — propose a file extension

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