# google/grumpy

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/google-grumpy).**

10,528 stars · 637 forks · Go · apache-2.0 · archived

## Links

- GitHub: https://github.com/google/grumpy
- awesome-repositories: https://awesome-repositories.com/repository/google-grumpy.md

## Description

Grumpy is a native binary compiler that transforms Python source code into Go source code. By transpiling high-level scripts into a strongly typed intermediate representation, the system enables the creation of statically linked native binaries that operate independently of a traditional virtual machine interpreter.

The project distinguishes itself by providing a comprehensive runtime library that replicates standard Python data structures and object behaviors. This emulation layer ensures that compiled code maintains functional parity with the original source environment while leveraging the Go toolchain for build and execution.

Beyond its core transpilation capabilities, the system supports automated workflows that allow developers to execute scripts by compiling them into temporary packages. The codebase development process is governed by a mandatory two-party review policy for all contributions.

## Tags

### Development Tools & Productivity

- [Native Binary Toolchains](https://awesome-repositories.com/f/development-tools-productivity/build-tooling/build-orchestration-logic/build-orchestration-configuration/build-automation-systems/build-systems/binary-compilation-toolchains/native-binary-toolchains.md) — Transforms interpreted scripts into standalone executable files to remove the requirement for an external language interpreter.
- [Static Binary Compilers](https://awesome-repositories.com/f/development-tools-productivity/static-binaries/static-binary-compilers.md) — Links transpiled code and runtime libraries into a single, self-contained native executable.
- [Automated Script Compilers](https://awesome-repositories.com/f/development-tools-productivity/python-development-tools/script-execution-engines/automated-script-compilers.md) — Compiles scripts into temporary packages and executes them as binaries in a seamless development workflow. ([source](https://github.com/google/grumpy/blob/master/README.md))

### Programming Languages & Runtimes

- [Binary Compilers](https://awesome-repositories.com/f/programming-languages-runtimes/python-compilers/binary-compilers.md) — Converts source code into statically linked native binaries to eliminate the need for an external interpreter. ([source](https://github.com/google/grumpy#readme))
- [Native Binary Compilers](https://awesome-repositories.com/f/programming-languages-runtimes/python-compilers/native-binary-compilers.md) — Transforms scripts into statically linked native binaries to run independently of an external interpreter.
- [Language](https://awesome-repositories.com/f/programming-languages-runtimes/compiler-interpreter-internals/transpilers/language.md) — Converts source code into equivalent syntax in another language to enable native binary execution. ([source](https://github.com/google/grumpy#readme))
- [Language Transpilers](https://awesome-repositories.com/f/programming-languages-runtimes/python-compilers/language-transpilers.md) — Converts source code into another language syntax to enable native binary execution.
- [Language Transpilers](https://awesome-repositories.com/f/programming-languages-runtimes/source-code-compilers/source-to-c-transpilers/language-transpilers.md) — Converts source code into another language to enable compilation into statically linked native binaries.
- [Ahead-Of-Time Compilers](https://awesome-repositories.com/f/programming-languages-runtimes/compiler-interpreter-internals/compiler-toolchains/execution-mode-engines/ahead-of-time-kernel-compilation/ahead-of-time-compilers.md) — Provides ahead-of-time compilation to generate native machine-executable binaries from source code.
- [Source-To-Source Transpilers](https://awesome-repositories.com/f/programming-languages-runtimes/source-code-compilers/source-to-c-transpilers/source-to-source-transpilers.md) — Translates high-level source code into another language to leverage existing build toolchains.
- [Python Language Features](https://awesome-repositories.com/f/programming-languages-runtimes/python-language-features.md) — Provides a collection of data structures and operations that replicate standard language features for compiled code.
- [Language Behavior Emulators](https://awesome-repositories.com/f/programming-languages-runtimes/python-language-features/language-behavior-emulators.md) — Implements data structures and operations that mimic standard language functionality for compiled code. ([source](https://github.com/google/grumpy/blob/master/README.md))
- [Runtime Environment Emulators](https://awesome-repositories.com/f/programming-languages-runtimes/python-language-features/runtime-environment-emulators.md) — Replicates standard language features to ensure compiled code behaves exactly like the original source.
- [Runtime Libraries](https://awesome-repositories.com/f/programming-languages-runtimes/python-language-features/runtime-libraries.md) — Provides a comprehensive runtime library that replicates standard language features for compiled code. ([source](https://github.com/google/grumpy#readme))
- [Type-Safe](https://awesome-repositories.com/f/programming-languages-runtimes/compiler-interpreter-internals/compiler-infrastructure/intermediate-representations/type-safe.md) — Maps dynamic language constructs into strongly typed structures to optimize code generation.

### Operating Systems & Systems Programming

- [Language Runtime Emulators](https://awesome-repositories.com/f/operating-systems-systems-programming/systems-programming/runtime-libraries/language-runtime-emulators.md) — Replicates standard language data structures and behaviors to ensure functional parity in compiled binaries.
