Phantom

1 program Added 2026-03-12T23:57:02Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled Evidence Report issue View issues
Aliases: Phantom OS language
Provenance: commit 9529a6607e · authored 2026-03-13T00:57:29+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

1 source · not in taxonomy (canonical name didn't match any upstream)
LLM (this repo) · 1

Related languages

Io (0.33)Xi (0.33)Eve (0.32)Lime (0.32)Nyx (0.32)

LLM-contributed programs

Tetris Utilities Class

Provenance: commit 9529a6607e · authored 2026-03-13T00:57:29+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
code.ph · added: 2026-03-12T23:57:02Z
package .ru.dz.phantom.tetris;

class utilites {
	var _internal_counter : int;
	var _bootObject;

	void init( var bootObject ) {
		// NOTE : This should be removed to real random number retrieving
		_internal_counter = 0;
		_bootObject = bootObject;
	}

	int generateRandom( var minValue : int, var maxValue : int ) {
		if ( maxValue <= minValue ) {
			throw "ArgumentException";
		}
		//
		_internal_counter = _internal_counter + 11745 - ( _internal_counter / 5 );
		if ( _internal_counter > 60000 ) {
			_internal_counter = _internal_counter - 50000;
		}
		//
		var divided : int;
		divided = _internal_counter / ( maxValue - minValue + 1 );
		return ( minValue + _internal_counter - divided * ( maxValue - minValue + 1 ) );
	}

	void sleepMilliseconds( var milliseconds : int ) {
		// it will wait not less than for a second in win env anyway yet
		_bootObject.21( milliseconds );
	}

	void sleep( var seconds : int ) {
		sleepMilliseconds( seconds * 1000 );
	}
};

Contribute — propose a file extension

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