This prototype uses the MyPy frontend to translate statically-typed Python to C++. The generated code calls a small runtime which implements things like List[T], Dict[K, V], and Python's len().
mycpp/const_pass.py 298 mycpp/control_flow_pass.py 586 mycpp/conversion_pass.py 417 mycpp/cppgen_pass.py 2,893 mycpp/crash.py 38 mycpp/format_strings.py 124 mycpp/mycpp_main.py 291 mycpp/pass_state.py 610 mycpp/translate.py 234 mycpp/util.py 200 mycpp/visitor.py 770 6,461 lines in 12 files