Halon

1 program Added 2026-02-25T10:00:00Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: enabled Evidence Report issue View issues
Aliases: HSL, Halon Scripting Language
Provenance: commit ccdaa0c86b · authored 2026-02-25T11:59:38+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

2 sources · pl_id: pl/hsl
LLM (this repo) · 1Pldb

Related languages

Hansl (0.54)JSL (0.51)GMSH (0.50)pgScript (0.50)Eidos (0.49)

LLM-contributed programs

Object Serialization

Provenance: commit ccdaa0c86b · authored 2026-02-25T11:59:38+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch enabled
code.hsl · added: 2026-02-25T10:00:00Z
class Foo
{
    $value = 0;

    function serialize() {
        $data = [];
        foreach ($this as $k => $v)
            if (!is_function($v))
                $data[$k] = $v;
        return $data;
    }

    function unserialize($data) {
        foreach ($data as $k => $v)
            $this[$k] = $v;
        return $this;
    }
}

$x = Foo();
$x->value = 123;

$export = json_decode(json_encode($x->serialize()));

$y = Foo()->unserialize($export);
echo $y->value;

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 Halon (mapped to pl/hsl). 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/Halon/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Halide HALT →