Frink

1 program Added 2025-10-28T09:11:55Z Model: google/gemini-2.5-proTemp: 0.4 Evidence Report issue View issues
Aliases: —
Provenance: commit 89e3b45124 · authored 2025-10-28T10:11:55+01:00 · model google/gemini-2.5-pro

Sources mentioning this language

5 sources · pl_id: pl/frink
LLM (this repo) · 1PldbWikipediaRosettacodeWikidata · Q3087863

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 · imperative · functional
Designed byEliasen · Alan
First appeared2001
Influenced byJava
Homepagehttps://frinklang.org

Extensions claimed by this language

1 claim. Each row is one upstream assertion with its strength. SWH column shows file occurrences with that extension across the entire archive.
ExtensionSourceStrengthSWH
.frinkwikipediaproposed945 files

Related languages

Frank (0.40)Fril (0.30)FriCAS (0.25)Simulink (0.21)Rink (0.20)

LLM-contributed programs

Projectile with Air Resistance

Provenance: commit 89e3b45124 · authored 2025-10-28T10:11:55+01:00 · model google/gemini-2.5-pro · Temp 0.4
code.frink · added: 2025-10-28T09:11:55Z
// This program calculates the path of a projectile with air resistance.
g = 9.80665 m/s^2
rho = 1.225 kg/m^3  // Density of air at sea level
cd = 0.47           // Drag coefficient of a sphere
radius = 10 cm
mass = 1 kg
area = pi radius^2

v0 = 100 miles/hour
angle = 45 degrees

vx = v0 cos[angle]
vy = v0 sin[angle]

x = 0 m
y = 0 m
t = 0 s
dt = .01 s

while y >= 0 m
{
   // Calculate the force of air resistance
   v = (vx^2 + vy^2)^(1/2)
   Fdrag = 1/2 rho v^2 cd area

   // Calculate the x and y components of the drag force
   Fdragx = Fdrag * vx/v
   Fdragy = Fdrag * vy/v

   // Calculate the acceleration in the x and y directions
   ax = -Fdragx / mass
   ay = -g - Fdragy / mass

   // Calculate the new velocity
   vx = vx + ax dt
   vy = vy + ay dt

   // Calculate the new position
   x = x + vx dt
   y = y + vy dt

   t = t + dt
   println[(t->s) + "\t" + (x->ft) + "\t" + (y->ft)]
}

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 Frink (mapped to pl/frink). 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/Frink/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Fringespeak Frog →