A Glimpse of Trygve: From Class-oriented Programming to Real OO
summary
An experimental language called Trygve (a.k.a. trig) implements the Data-Context-and-Interaction (DCI) paradigm as a real runtime: contexts bind objects to roles and contexts at enactment, letting use cases appear as readable scripts (example: a trip reservation script that wires traveler, train/plane and booking roles). It separates stable domain classes from rapidly changing interaction code, compiles with Java-like syntax, omits exceptions/RTTI, and runs prototypes; Java lacks the necessary reflection, C++ can emulate it but with compile-time complexity.
AI-written summary · about
chapters (10)
- 0:00Intro
- 1:05In 1972, Kay coined the term: Object-Oriented Programming
- 8:50Action Between Objects
- 12:34System Operations
- 17:00Teaching Actors their Scripts
- 23:28Contextualized Polymorphism
- 30:34Hoare's Insight
- 38:42trygve building blocks
- 47:07Reflection
- 48:59Conclusion: Everybody Wins
related talks
33mIs Go Object-Oriented? A Case of Public Opinion
43mHow to stop fighting with coherence and star writing context-generic trait impls
40mJoy of Meta-Tracing Just-in-Time Compilation: More Than Just a VM Generator
27mBreaking the Legacy: A New Era of Programming Language Design
48m"Breaking the Legacy: A New Era of Programming Language Design"
44mLet's talk about transpilers
59mSupercompilation, Partial Evaluation, Futamura Projections and How GraalVM Will Save the World
34mLanguage Design Where Paradigms Meet
