Demo: Base language, compile-time execution

Jonathan Blow · 163K views · 2014 · 2:07:18

Open on YouTube

Programming language designCompilers, interpreters & program analysisdemodated

Why Hacker News recommends it

HN cites it as an early demonstration of compile-time code execution, predating its popularity in languages like Zig.

What it is

Jonathan Blow demos his prototype programming language, covering the base language and compile-time execution, including running a game while compiling. The video is about 70 minutes of demo followed by Q&A.

Recommended by 1 HN commenters across 1 different months, 2015 to 2022.

What Hacker News said

Recommends codetrotter · 2021-08 · on “Constexpr is a Platform (2020)”

Jonathan Blow’s programming language allows almost anything to execute during compilation as well. It’s neat. Here’s an old video where he demonstrated this: [this video]

Cites zenogais · 2015-08 · on “C2 Programming Language”

Jonathan Blow is working on at least part of this (sorry, the only links I could find were to his videos about it) [this video]

Cites atesti · 2018-07 · on “Compile Time C++ Snake Game (2016)”

Sounds like what Jonathan Blow demoed in his new programming language JAI: [this video] Execute a invaders game with OpenGl while compiling and embedding the score in the code (Just a demo, the idea is to replace makefiles with compile time execution, etc.)

Cites Tozen · 2022-10 · on “What Makes the Zig Programming Language Unique?”

> Zig's use of comptime is fairly revolutionary in a c-like language Not revolutionary. Before Zig came out, which was 2016, there was Jonathan Blow talking about and arguably repopularizing it. Lots of people (who knows how many developers) and languages were influenced by him too. 2014, Jonathan Blow, who made lots of videos and gave lots of talks, before going on to officially promote Jai (2016). And it appears he was playing around with prototypes much earlier and talking about it (from 2014). [this video] (Demo: Base language, compile-time execution)