Hare
1 program
Added 2025-10-22T13:19:59Z
Model: anthropic/claude-3.5-sonnetTemp: 0.4
Evidence
Report issue
View issues
Aliases: —
Provenance: commit ed88faa5f6 · authored 2025-10-22T15:19:59+02:00 · model anthropic/claude-3.5-sonnet
Sources mentioning this language
5 sources · pl_id:
pl/hareExtensions 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.| Extension | Source | Strength | SWH |
|---|---|---|---|
.ha | linguist | primary | 15.0K files |
.ha | pygments | primary | 15.0K files |
Related languages
LLM-contributed programs
Simple HTTP Server in Hare
Provenance: commit ed88faa5f6 · authored 2025-10-22T15:19:59+02:00 · model anthropic/claude-3.5-sonnet · Temp 0.4
use fmt;
use net;
use net::tcp;
use net::http;
export fn main() void = {
const addr = net::address(
net::ip::v4::LOOPBACK,
8080,
);
const listener = match (tcp::listen(addr)) {
case let l: tcp::listener => l,
case let err: tcp::error => {
fmt::fatalf("Error listening on {}: {}", addr, err);
},
};
defer tcp::close(listener);
for (true) {
const conn = match (tcp::accept(listener)) {
case let c: tcp::connection => c,
case let err: tcp::error => {
fmt::errorf("Error accepting connection: {}", err);
continue;
},
};
defer tcp::close(conn);
const request = match (http::recvrequest(conn)) {
case let r: http::request => r,
case let err: http::error => {
fmt::errorf("Error receiving request: {}", err);
continue;
},
};
defer http::freerequest(request);
http::sendresponse(conn, 200, [
("content-type", "text/plain"),
], "Hello from Hare!\n") as http::response;
};
};
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.)