Loci
1 program
Added 2026-03-17T14:30:00Z
Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled
Evidence
Report issue
View issues
Aliases: Loci framework
Provenance: commit 0945f9c935 · authored 2026-03-17T01:45:35+01:00 · agent claude-code · model claude-sonnet-4-6
Sources mentioning this language
2 sources · pl_id:
pl/lociRelated 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.
Compressible Flow Rules (Ideal Gas)
Provenance: commit 0945f9c935 · authored 2026-03-17T01:45:35+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
#include <Loci.h>
using namespace Loci;
// Declare variable types for compressible flow simulation
$type pressure store<double>; // cell pressure [Pa]
$type density store<double>; // cell density [kg/m^3]
$type temperature store<double>; // cell temperature [K]
$type soundSpeed store<double>; // local speed of sound [m/s]
$type gamma param<double>; // ratio of specific heats
$type gasConstant param<double>; // specific gas constant [J/kg/K]
// Default physical constants (dry air)
$rule default(gamma) {
$gamma = 1.4;
}
$rule default(gasConstant) {
$gasConstant = 287.058; // J/kg/K
}
// Ideal gas law: p = rho * R * T
$rule pointwise(pressure <- density, temperature, gasConstant) {
$pressure = $density * $gasConstant * $temperature;
}
// Speed of sound: c = sqrt(gamma * p / rho)
$rule pointwise(soundSpeed <- gamma, pressure, density) {
$soundSpeed = sqrt($gamma * $pressure / $density);
}