{"repo":"morloc-project/morloc","free":true,"listed":false,"github":"https://github.com/morloc-project/morloc","clone":"git clone https://github.com/morloc-project/morloc.git","description":"A strongly-typed, polyglot compiler","language":"Haskell","stars":216,"topics":["programming-language","type-system","functional-language","language","code-generation","polyglot","apis","cli","mcp"],"license":"Apache-2.0","category":"cli-tools","readme_excerpt":"&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; Morloc compose functions across languages under a common type system Why use Morloc? Universal function composition: Import functions from multiple languages and compose them together under a unified, strongly-typed functional framework. Polyglot without boilerplate: Use the best language for each task with no manual bindings or interop code. Generate APIs, CLIs, and MCPs as views of the same underlying library with no extra code (or AI). Morloc programs (and their API/CLI/MCP views) can be composed by simply importing them into a new Morloc module and re-exporting their functions. Seamless benchmarking and testing: Swap implementations and run the same benchmarks/tests across languages with consistent type signatures and data representation. Design universal libraries: Build abstract, type-driven libraries and populate them with foreign language implementations, enabling rigorous code organization and reuse. Smarter workflows: Replace brittle application/file-based pipelines with faster, more maintainable pipelines made from functions acting on structured data. Below is a simple example, for installation details and more examples, see the Manual. A Morloc module can import functions from foreign languages, assign them general types, and compose new functions: The imported code is natural code with no Morloc-specific dependencies. Below is the C++ code that defines sum as a function of ","default_branch":null,"files":null,"tree":[],"storefront":"/r/morloc-project","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/morloc-project/morloc/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}