Atom

1 program Added 2026-03-17T10:00:00Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled Evidence Report issue View issues
Aliases: Language.Atom
Provenance: commit a4a2109043 · authored 2026-03-17T00:36:49+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

5 sources · pl_id: pl/atom
LLM (this repo) · 1PldbWikipediaEsolangWikidata · Q4817198

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.

Paradigmsfunctional · synchronous · reactive
Typingstatic, strong
Designed byThomas Hawkins
First appeared2007
Influenced byBluespec · Confluence · Haskell
LicenseBSD 3
Homepagehttp://hackage.haskell.org/package/atom

Related languages

Phantom (0.30)Io (0.29)Xi (0.29)Eve (0.28)Lime (0.28)

LLM-contributed programs

Counter and LED Blinker

Provenance: commit a4a2109043 · authored 2026-03-17T00:36:49+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
code.hs · license: BSD-3-Clause · added: 2026-03-17T10:00:00Z
-- Atom: A domain-specific language for embedded hard real-time programming
-- Simple counter and LED blinker examples
module Main where

import Language.Atom

-- | A simple counter that increments each clock period
counterSpec :: Atom ()
counterSpec = atom "counter" $ do
  cnt <- word32 "count" 0
  atom "increment" $
    cnt <== value cnt + 1

-- | LED blinker: toggles every 500 clock periods
blinkerSpec :: Atom ()
blinkerSpec = atom "blinker" $ do
  led <- bool "led" False
  period 1000 $ exactPhase 0   $ atom "led_on"  $ led <== true
  period 1000 $ exactPhase 500 $ atom "led_off" $ led <== false

main :: IO ()
main = do
  compile "counter" defaults counterSpec
  compile "blinker" defaults blinkerSpec

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 Atom (mapped to pl/atom). 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/Atom/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← ATOLL atom-editor →