Eidos

1 program Added 2026-03-17T04:52:02Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled Evidence Report issue View issues
Aliases: Eidos scripting language
Provenance: commit 51d888bff0 · authored 2026-03-17T05:52:49+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

GMSH (0.56)pgScript (0.56)JSL (0.53)Bro (0.50)Halon (0.49)

LLM-contributed programs

Moran Model Simulation

Provenance: commit 51d888bff0 · authored 2026-03-17T05:52:49+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
code.slim · license: GPL-3.0 · added: 2026-03-17T04:52:02Z
/*
	Moran.slim : a Moran model implementation in SLiM
	by Philip Wolper, 8 April 2025 (thanks!)
	minor tweaks by BCH 10 April 2025
	
	See https://groups.google.com/g/slim-discuss/c/8p4AqwU48Us.
*/

initialize()
{
	initializeSLiMModelType("nonWF");
	
	// no genetics setup
}

reproduction()
{
	// Moran reproduction -- sample one individual to reproduce clonally.
	parent = sample(p1.individuals, 1);
	offspring = subpop.addCloned(parent);
	
	// Tag the offspring with the linage tag of the parent.
	offspring.tag = parent.tag;
	
	// De-activate this callback so we only reproduce once per tick.
	self.active = 0;
}

1 early()
{
	// Start with each individual representing a unique lineage.
	sim.addSubpop("p1", 100, haploid=T);
	p1.individuals.tag = seqLen(p1.individualCount);
}

2: late()
{
	// Moran death -- sample one individual to die.
	victim = sample(p1.individuals, 1);
	sim.killIndividuals(victim);
}

1:50000 late()
{
	// Print the number of lineages remaining, and stop at 1.
	lineageCount = size(unique(p1.individuals.tag));
	catn("Tick " + community.tick + ": " + lineageCount + " lineages");
	
	if (lineageCount == 1)
		sim.simulationFinished();
}

Contribute — propose a file extension

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