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/hslRelated languages
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
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.)