← All projects
Project record1 mention
Originally shared on Hacker News

Programming Language Cup

A tournament web app where the same tasks are implemented in 32 programming languages: you pick which languages enter, they are randomly assigned to groups and compete through upper and lower brackets to a grand final, with paired languages given the same task and no repeats within a cup. Ships as a single HTML file (~130 KB gzipped, all 960 snippets included) with progress saved in local storage; an optional 3D fighting-game arena version shares the same data and can be switched to mid-tournament.

Last shared
01 / The problem

What it addresses

Difficulty deciding which programming language you actually like; the app lets languages duel head-to-head on identical tasks so you can pick the winner.

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. Programming Language Cup

    A tournament web app where the same tasks are implemented in 32 programming languages: you pick which languages enter, they are randomly assigned to groups and compete through upper and lower brackets to a grand final, with paired languages given the same task and no repeats within a cup. Ships as a single HTML file (~130 KB gzipped, all 960 snippets included) with progress saved in local storage; an optional 3D fighting-game arena version shares the same data and can be switched to mid-tournament.

    Problem: Difficulty deciding which programming language you actually like; the app lets languages duel head-to-head on identical tasks so you can pick the winner.

    Posted by @chalmovsky · Original source ↗

    Story title · @chalmovsky · · Source ↗

    Show HN: Programming Language Cup: same tasks in 32 langs, pick the winner

    Submitted URL · @chalmovsky · · Source ↗

    https://chalmovsky.com/prog-lang-cup/plain/

    Source text · @chalmovsky · · Source ↗

    So: the same tasks written in 32 languages. You first pick which languages do you want to enter the tournament. Then they are randomly assigned to groups, then they fall into an upper and lower brackets, then a grand final. Matchmaking gives both languages the same task

    Source text · @chalmovsky · · Source ↗

    The whole thing is a single HTML file (about 130 KB gzipped, all 960 snippets included) and progress saved in local storage.

    Source text · @chalmovsky · · Source ↗

    I asked myself “which programming language do I actually like ?”

    Source text · @chalmovsky · · Source ↗

    If you want the over-the-top version and not well-tested 3D fighting-game arena with the same tournament: https://chalmovsky.com/prog-lang-cup/

    Source text · @chalmovsky · · Source ↗

    It was written with AI, so if some code snippet isn’t idiomatic, please tell me (or send a PR, it’s MIT): https://github.com/chalmovsky/com/tree/main/prog-lang-cup