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/haxe
LLM (this repo) · 1PldbLinguistPygmentsWikipediaHyperpolyglotRosettacodeWikidata · Q285886

Wikipedia infobox

Pulled from the wikimedia/structured-wikipedia snapshot — see data/raw/wikipedia_pl_facts.*.jsonl and pl_fact.csv for the long-table provenance.

Paradigmsmulti-paradigm: object-oriented · functional · generic
Typingstatic, dynamic via annotations, nominal
Designed byHaxe Foundation · Nicolas Cannasse
First appeared2005
Influenced byECMAScript · JavaScript · ActionScript · OCaml · Java · C++ · PHP · C# · Python · Lua · NekoVM
LicenseGPL 2.0, library: MIT
Implemented inOCaml
Homepagehttps://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.
ExtensionSourceStrengthSWH
.hxlinguistprimary2.6M files
.hxpygmentsprimary2.6M files
.hxsllinguistsecondary27 files
.hxslpygmentssecondary27 files
.hxwikipediaproposed2.6M files
.hxmlwikipediaproposed66.9K files

Related languages

Hare (0.30)Haxl (0.30)Halide (0.25)HXSL (0.21)Hope (0.18)

LLM-contributed programs

Simple Snake Game

Provenance: commit 8fcb2993ee · authored 2025-10-22T11:42:07+02:00 · model anthropic/claude-3.5-sonnet · Temp 0.4
code.hx · license: MIT · added: 2025-10-22T09:42:07Z
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);
		}
	}
}

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 Haxe (mapped to pl/haxe). 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/Haxe/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Hatter haxelibs-pm →