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/hare
LLM (this repo) · 1PldbLinguistPygmentsRosettacode

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
.halinguistprimary15.0K files
.hapygmentsprimary15.0K files

Related languages

Mare (0.33)Haxe (0.30)Halide (0.27)Harlan (0.27)Harmony (0.25)

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
code.ha · license: GPL-3.0 · added: 2025-10-22T13:19:59Z
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.)

Contribute — propose a file extension

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