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/atomWikipedia infobox ↗
Pulled from the
wikimedia/structured-wikipedia
snapshot — see data/raw/wikipedia_pl_facts.*.jsonl and
pl_fact.csv for the long-table provenance.
| Paradigms | functional · synchronous · reactive |
|---|---|
| Typing | static, strong |
| Designed by | Thomas Hawkins |
| First appeared | 2007 |
| Influenced by | Bluespec · Confluence · Haskell |
| License | BSD 3 |
| Homepage | http://hackage.haskell.org/package/atom |
Related 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.
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
-- 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