Wart
1 program
Added 2026-02-09T09:15:26Z
Agent: claude-codeModel: opusWebSearch: enabled
Evidence
Report issue
View issues
Aliases: —
Provenance: commit 88ce880972 · authored 2026-02-09T10:16:21+01:00 · agent claude-code · model opus
Sources mentioning this language
3 sources · pl_id:
pl/wartRelated languages
LLM-contributed programs
HTTP Server
Provenance: commit 88ce880972 · authored 2026-02-09T10:16:21+01:00 · agent claude-code · model opus · WebSearch enabled
mac (with `server_socket socket port ... body)
`(let ,socket (server_socket ,port)
(before (close ,socket)
,@body))
mac (accepting client socket|from ... body)
`(repeat :forever
(let ,client (accept ,socket)
(before (close ,client)
,@body))) # body must close client socket
def (parse_http_headers client)
making stdin infile+fd.client
let (verb url) (split+read_line)
url
def (server port)
with server_socket socket (or port 4040)
preforking 6 # handler threads
accepting client :from socket
let url parse_http_headers.client
making stdout outfile+fd.client
prn "HTTP/1.0 200 OK"
prn "Content-type: text/plain"
prn ""
prn url
mac (with `socket socket host port ... body)
default host :to "127.0.0.1"
default port :to 80
`(let ,socket (socket ,host ,port)
(before (close ,socket)
,@body))
def (fd socket)
socket_fd.socket
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.)