Show HN: Typed polyglot compiler for CLI/API/MCP generation Morloc, a typed polyglot compiler in beta after roughly ten years of development, composes functions across languages under a common type system and generates CLIs, APIs, and MCP tool definitions from those types and declarative docstrings. The compiler runs natively on Linux, macOS ARM chips, and Windows WSL, and its author says the core feature is slowly stabilizing while regular backwards-incompatible changes continue. The project is seeking community contributors to report bugs and write modules. Morloc composes functions across languages under a common type system and transforms modules into rich CLIs, APIs, and MCPs. Write ordinary code in ordinary languages, source it into a Morloc script, and provide a type. These functions are then first class citizens. They can be used freely within a rich functional language. The Morloc compiler generates the CLI, API, MCP model, and usage statements from the types and declarative docstring instructions. Morloc runs natively on Linux, macOS new ARM chips , and Windows WSL. Run this to install the Morloc Installation Manager mim : curl -fsSL https://raw.githubusercontent.com/morloc-project/morloc-manager/main/scripts/install.sh | sh mim new bulid the environment mim shell drop into a shell mim demo pull cool morloc demos The build is native by default, add the --engine docker flag to build in a container or podman or apptainer . The environment automatically handles dependencies for Morloc builds via the Pixi package manager. See the manual section Getting Started https://morloc-project.github.io/docs/ getting started for more info. You may freeze Morloc environments into Docker images with mim freeze . Two functions, in two languages, neither aware of the other. A C++ sum: js // foo.hpp pragma once include