Lune

OOPSLA2020Top-tier venue

Featherweight go

Robert Griesemer, Raymond Hu, Wen Kokke, Julien Lange, Ian Lance Taylor, Bernardo Toninho, Philip Wadler, Nobuko Yoshida

Abstract

We describe a design for generics in Go inspired by previous work on Featherweight Java by Igarashi, Pierce, and Wadler. Whereas subtyping in Java is nominal, in Go it is structural, and whereas generics in Java are defined via erasure, in Go we use monomorphisation. Although monomorphisation is widely used, we are one of the first to formalise it. Our design also supports a solution to The Expression Problem.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

5 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Extending Isabelle/HOL's Code Generator with Support for the Go Programming Language cites Generic go to go: dictionary-passing, monomorphisation, and hybrid
  • Welterweight Go: Boxing, Structural Subtyping, and Generics cites Generic go to go: dictionary-passing, monomorphisation, and hybrid
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers5

  1. Scalable, Validated Code Translation of Entire Projects using Large Language ModelsHanliang Zhang, Cristina David, Meng Wang, Brandon Paulsen et al.PLDI 2025 · 15 citations
  2. Generic go to go: dictionary-passing, monomorphisation, and hybridStephen Ellis, Shuofei Zhu, Nobuko Yoshida, Linhai SongOOPSLA 2022 · 4 citations
  3. The Simple Essence of MonomorphizationMatthew Lutze, Philipp Schuster, Jonathan Immanuel BrachthäuserOOPSLA 2025 · 2 citations
  4. Extending Isabelle/HOL's Code Generator with Support for the Go Programming LanguageTerru Stübinger, Lars HupelFM 2024 · 1 citation
  5. Welterweight Go: Boxing, Structural Subtyping, and GenericsRaymond Hu, Julien Lange, Bernardo Toninho, Philip Wadler et al.POPL 2026

Related papers

  1. Decomposition diversity with symmetric data and codataDavid Binder, Julian Jabs, Ingo Skupin, Klaus OstermannPOPL 2020 · 2 citations
  2. Structural Subtyping as Parametric PolymorphismWenhao Tang, Daniel Hillerström, James McKinna, Michel Steuwer et al.OOPSLA 2023 · 3 citations
  3. Type-level programming with match typesOlivier Blanvillain, Jonathan Immanuel Brachthäuser, Maxime Kjaer, Martin OderskyPOPL 2022 · 10 citations
  4. Quotient PolymorphismBrandon Hewer, Graham HuttonPOPL 2026
  5. TASTyTruffle: Just-in-Time Specialization of Parametric PolymorphismMatt D'Souza, James You, Ondrej Lhoták, Aleksandar ProkopecOOPSLA 2023
Dusk over the sea between two cliffs drawn in fine vertical lines