Life & fun · February 26, 2017
Cpi – Immediately compile and execute c++ program like a scripting lang
Tiny c++ interpreter
Cpi – Immediately compile and execute c++ program like a scripting lang launched on February 26, 2017 with 65 votes, #649 of 3,156 launches that month and more than 90% of that year's launches. The site was still online in September 2026, 9 years on.
In plain words
Cpi is a tiny C++ interpreter that allows users to compile and execute C++ programs immediately like a scripting language. It uses an internal compiler to interpret code without requiring separate compilation steps. The tool is built with Qt and works on Windows and Unix-like systems, supporting rapid development and testing of C++ scripts.
written from the facts on this page · September 2026
From the sources
The following softwares are needed to build and execute cpi. The compiler is used as interpreter of cpi internally. $ qmake $ make $ sudo make install $ cpi -v cpi 2.2.0 Windows (Command prompt for VS2022): ********************************************************************** ** Visual Studio 2022 Developer Command Prompt v17 .14.7 ** Copyright ( c ) 2025 Microsoft Corporation ********************************************************************** [ vcvarsall .bat ] Environment initialized for : 'x64' > C :\Qt\6.7.0\msvc2019_64\bin\qtenv2.bat Setting up environment for Qt usage ... > cd ( cpi root directory ) > qmake > nmake > cpi .bat -h ( Run cpi command ) Usage : cpi .exe [ options ] […from treefrogframework.github.io
Does a similar job
all alternatives →
How to write a tiny compiler2017 · blog.klipse.tech · ▲224Write your own compiler: introduction. Code genetation. AST. Abstract syntax tree. lisp. javascript.
TinyGo – LLVM-based Go compiler for microcontrollers2018 · github.com · ▲177Go compiler for small places. Microcontrollers, WebAssembly (WASM/WASI), and command-line tools. Based on LLVM. - tinygo-org/tinygo
A work-in-progress C compiler from scratch2021 · github.com · ▲159Programming language that compiles into a x86 ELF executable. - riicchhaarrd/ocean
A compiler and VM for a simple language, in 150 lines of code2022 · gist.github.com · ▲200A complete compiler for a simple language (in less than 150 LoC) - 00_readme.md
Ultra Tiny Compiler in less than 90 lines of code2016 · github.com · ▲61Ultra Tiny Compiler. Contribute to antonmedv/ultra-tiny-compiler development by creating an account on GitHub.

More life & fun this month
the category →
A free city-building game in your browser. You are the mayor. You know what the city needs. Now get it past the zoning board, the neighbors, the appeals court and the next election.
Life & fun · 22h ago · permit.petercai.com
- IV
Life & fun · 13d ago · tanzaniaeducationproject.org

Turn a phone, tablet or TV into a sign. Type a message and it fills the screen: welcome signs, timers, Wi-Fi passwords and more. No app, no account, free.
Life & fun · 14d ago · bigwords.page

Play a free virtual guitar online with your keyboard or by touch. Slow songs down and see every chord, string and strum. Acoustic, classic, electric and bass.
Life & fun · 8d ago · guitoro.com

Carrier settings from iPhone, Pixel and Galaxy firmware, decoded and compared: APNs, VoLTE, 5G and Wi-Fi Calling per carrier, and what each build changed.
Life & fun · 12d ago · carrierexplode.com

Life & fun · 22d ago · space.bl2.net
Source: Show HN post ↗
Launched alongside, February 2017
the whole month →
Lottie by Airbnb▲1,138Easily add high-quality animation to any native app
Dev tools · 2017 · airbnb.com
Web Gradients▲906Curated collection of 180 free fresh background gradients 🚀
Work · 2017 · webgradients.com




A free guide to all HTML elements and attributes.
Life & fun · 2017 · htmlreference.io