{"id":13724667,"url":"https://github.com/morloc-project/morloc","last_synced_at":"2026-04-13T00:54:11.767Z","repository":{"id":46856162,"uuid":"75355860","full_name":"morloc-project/morloc","owner":"morloc-project","description":"A typed, polyglot, functional language","archived":false,"fork":false,"pushed_at":"2026-02-16T01:54:41.000Z","size":8354,"stargazers_count":211,"open_issues_count":13,"forks_count":5,"subscribers_count":6,"default_branch":"master","last_synced_at":"2026-02-16T08:56:53.628Z","etag":null,"topics":["code-generation","functional-language","interoperability","language","ontologies","polyglot","programming-language","type-system"],"latest_commit_sha":null,"homepage":"","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/morloc-project.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2016-12-02T03:11:38.000Z","updated_at":"2026-02-08T13:44:34.000Z","dependencies_parsed_at":"2023-10-01T16:57:37.037Z","dependency_job_id":"2a242043-7421-48f9-87e5-5f20aa25af5a","html_url":"https://github.com/morloc-project/morloc","commit_stats":{"total_commits":2228,"total_committers":5,"mean_commits":445.6,"dds":0.2625673249551167,"last_synced_commit":"4de3b73b7f9a1d7b791cd6ae7ffd12f3cc1b7543"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/morloc-project/morloc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morloc-project%2Fmorloc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morloc-project%2Fmorloc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morloc-project%2Fmorloc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morloc-project%2Fmorloc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/morloc-project","download_url":"https://codeload.github.com/morloc-project/morloc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morloc-project%2Fmorloc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29711394,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-22T10:34:24.778Z","status":"ssl_error","status_checked_at":"2026-02-22T10:32:23.200Z","response_time":110,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["code-generation","functional-language","interoperability","language","ontologies","polyglot","programming-language","type-system"],"created_at":"2024-08-03T01:02:01.451Z","updated_at":"2026-02-22T11:53:37.701Z","avatar_url":"https://github.com/morloc-project.png","language":"Haskell","readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/morloc-project/morloc/actions/workflows/.test.yml\"\u003e\n    \u003cimg src=\"https://github.com/morloc-project/morloc/actions/workflows/.test.yml/badge.svg\" alt=\"build status\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/morloc-project/morloc/releases\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/release/morloc-project/morloc.svg?label=current+release\" alt=\"github release\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.apache.org/licenses/LICENSE-2.0\"\u003e\n      \u003cimg src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\" alt=\"license: Apache 2.0\"\u003e\n\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://morloc-project.github.io/docs\"\u003eManual\u003c/a\u003e |\n  \u003ca href=\"https://discord.gg/dyhKd9sJfF\"\u003eDiscord\u003c/a\u003e |\n  \u003ca href=\"https://peerj.com/articles/cs-3435/\"\u003ePaper\u003c/a\u003e |\n  \u003ca href=\"https://x.com/morlocproject\"\u003eX\u003c/a\u003e |\n  \u003ca href=\"https://bsky.app/profile/morloc-project.bsky.social\"\u003eBlueSky\u003c/a\u003e |\n  \u003ca href= \"mailto:z@morloc.io\"\u003eEmail\u003c/a\u003e\n\u003c/p\u003e\n\n\n\n\u003cdiv align=\"center\"\u003e\n\u003ch1\u003eMorloc\u003c/h1\u003e\n\u003ch2\u003ecompose functions across languages under a common type system\u003c/h2\u003e\n\u003c/div\u003e\n\n**Why use Morloc?**\n\n * Universal function composition: Import functions from multiple languages and\n   compose them together under a unified, strongly-typed functional framework.\n\n * Polyglot without boilerplate: Use the best language for each task with no\n   manual bindings or interop code.\n\n * Type-directed CLI generation: Write concrete function signatures once and\n   automatically generate elegant command-line interfaces with argument\n   parsing, validation, help text, and documentation.\n\n * Composable CLI tools: Morloc CLI programs can be composed by simply importing\n   them into a new Morloc module and re-exporting their functions.\n\n * Seamless benchmarking and testing: Swap implementations and run the same\n   benchmarks/tests across languages with consistent type signatures and data\n   representation.\n\n * Design universal libraries: Build abstract, type-driven libraries and\n   populate them with foreign language implementations, enabling rigorous code\n   organization and reuse.\n\n * Smarter workflows: Replace brittle application/file-based pipelines with\n   faster, more maintainable pipelines made from functions acting on structured\n   data.\n\n\nBelow is a simple example, for installation details and more examples, see the\n[Manual](https://morloc-project.github.io/docs).\n\nA Morloc module can import functions from foreign languages, assign them general\ntypes, and compose new functions:\n\n\n```morloc\n-- Morloc code, in \"main.loc\"\nmodule m (vsum)\n\nimport root-py\nimport root-cpp\n\nsource Py from \"foo.py\" (\"pmap\")\npmap a b :: (a -\u003e b) -\u003e [a] -\u003e [b] \n\nsource Cpp from \"foo.hpp\" (\"sum\")\nsum :: [Real] -\u003e Real\n\n--' Input numeric vectors that will be summed in parallel\n--' metavar: VECTORS\ntype Vectors = [[Real]]\n\n--' Sum a list of numeric vectors\n--' return: Final sum of all elements in all vectors\nvsum :: Vectors -\u003e Real\nvsum = sum . pmap sum \n```\n\nThe imported code is natural code with no Morloc-specific dependencies.\n\nBelow is the C++ code that defines `sum` as a function of a standard C++ vector\nof `double`s that returns a `double`:\n\n```C++\n// C++ code, in \"foo.hpp\"\n\n#pragma once\n\n#include \u003cvector\u003e\n#include \u003cnumeric\u003e\n\ndouble sum(std::vector\u003cdouble\u003e xs) {\n    return std::accumulate(\n       xs.begin(), xs.end(), 0.0);\n}\n```\n\nBelow is Python code that defines a parallel map function:\n\n```python\n# Python code, in \"foo.py\"\n\nimport multiprocessing as mp\n\n# Parallel map function\ndef pmap(f, xs):\n    with mp.Pool() as pool:\n        results = pool.map(f, xs)\n    return results\n```\n\nThis program can be compiled and run as below:\n\n```\n$ menv morloc make main.loc\n\n$ menv ./nexus vsum -h\nUsage: ./nexus vsum VECTORS\n\nSum a list of numeric vectors\n\nPositional arguments:\n  VECTORS  Input numeric vectors that will be summed in parallel\n           type: [[Real]]\n\nReturn: Real\n  Final sum of all elements in all vectors\n\n$ menv ./nexus vsum [[1.2],[0,0.1]]\n1.3\n```\n","funding_links":[],"categories":["Haskell","Functional"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorloc-project%2Fmorloc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmorloc-project%2Fmorloc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorloc-project%2Fmorloc/lists"}