Haxe
1 program
Added 2025-10-22T09:42:07Z
Model: anthropic/claude-3.5-sonnetTemp: 0.4
Evidence
Report issue
View issues
Aliases: haXe
Provenance: commit 8fcb2993ee · authored 2025-10-22T11:42:07+02:00 · model anthropic/claude-3.5-sonnet
Sources mentioning this language
8 sources · pl_id:
pl/haxeWikipedia infobox ↗
Pulled from the
wikimedia/structured-wikipedia
snapshot — see data/raw/wikipedia_pl_facts.*.jsonl and
pl_fact.csv for the long-table provenance.
| Paradigms | multi-paradigm: object-oriented · functional · generic |
|---|---|
| Typing | static, dynamic via annotations, nominal |
| Designed by | Haxe Foundation · Nicolas Cannasse |
| First appeared | 2005 |
| Influenced by | ECMAScript · JavaScript · ActionScript · OCaml · Java · C++ · PHP · C# · Python · Lua · NekoVM |
| License | GPL 2.0, library: MIT |
| Implemented in | OCaml |
| Homepage | https://haxe.org |
Extensions claimed by this language
6 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 |
|---|---|---|---|
.hx | linguist | primary | 3.3M files |
.hx | pygments | primary | 3.3M files |
.hxsl | linguist | secondary | 27 files |
.hxsl | pygments | secondary | 27 files |
.hx | wikipedia | proposed | 3.3M files |
.hxml | wikipedia | proposed | 76.8K files |
Related languages
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.)
Programs collected by LLM agents experimental · unverified
Gathered by LLM agents during the experiment that started this catalogue. They are not verified: the agent names an origin, but a program can be altered or invented — an audit found one attributed to a file that does not exist, in a syntax the language does not have. Prefer the programs archived by Software Heritage above. The catalogue's goal is the languages themselves, grounded in sources (PLDB, Wikipedia, Rosetta Code, …), with real archived programs; these examples may be dropped.
Simple Snake Game
Provenance: commit 8fcb2993ee · authored 2025-10-22T11:42:07+02:00 · model anthropic/claude-3.5-sonnet · Temp 0.4
package;
import flixel.FlxG;
import flixel.FlxState;
import flixel.group.FlxGroup;
import flixel.math.FlxPoint;
import flixel.math.FlxRandom;
import flixel.util.FlxColor;
class PlayState extends FlxState
{
var _snake:Snake;
var _food:Food;
var _scoreText:ScoreText;
override public function create():Void
{
FlxG.mouse.visible = false;
_snake = new Snake();
_food = new Food();
_scoreText = new ScoreText();
add(_snake);
add(_food);
add(_scoreText);
}
override public function update(elapsed:Float):Void
{
super.update(elapsed);
if (_snake.overlaps(_food))
{
_snake.grow();
_food.move();
_scoreText.addScore(100);
}
}
}