{"id":14128194,"url":"https://github.com/nakkaya/ferret","last_synced_at":"2025-05-15T08:08:48.388Z","repository":{"id":37270649,"uuid":"57292703","full_name":"nakkaya/ferret","owner":"nakkaya","description":"Ferret is a free software lisp implementation for real time embedded control systems.","archived":false,"fork":false,"pushed_at":"2022-08-31T15:00:31.000Z","size":2234,"stargazers_count":1092,"open_issues_count":15,"forks_count":47,"subscribers_count":42,"default_branch":"master","last_synced_at":"2025-04-14T12:18:27.565Z","etag":null,"topics":["arduino","arm","atmega","bare-metal","clojure","compiler","embedded-systems","lisp","microcontroller","teensy"],"latest_commit_sha":null,"homepage":"https://ferret-lang.org","language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nakkaya.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-28T10:21:52.000Z","updated_at":"2025-04-07T02:28:09.000Z","dependencies_parsed_at":"2022-08-08T20:00:41.485Z","dependency_job_id":null,"html_url":"https://github.com/nakkaya/ferret","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nakkaya%2Fferret","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nakkaya%2Fferret/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nakkaya%2Fferret/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nakkaya%2Fferret/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nakkaya","download_url":"https://codeload.github.com/nakkaya/ferret/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248877968,"owners_count":21176244,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["arduino","arm","atmega","bare-metal","clojure","compiler","embedded-systems","lisp","microcontroller","teensy"],"created_at":"2024-08-15T16:01:23.606Z","updated_at":"2025-04-14T12:18:31.218Z","avatar_url":"https://github.com/nakkaya.png","language":"Makefile","funding_links":[],"categories":["Makefile","Clojure-likes"],"sub_categories":["[Ferret](https://nakkaya.com/2016/06/10/ferret-a-hard-real-time-clojure-for-lisp-machines/)"],"readme":"# Ferret\n\n[![Current Release][badge-ferret-version]][ferret-downloads]\n[![CI Build Status][badge-ferret-build]][ferret-travis]\n![BSD 2 Clause License][badge-ferret-license]\n\nFerret is a free software lisp implementation designed to be used in\nreal time embedded control systems. Ferret lisp compiles down to self\ncontained *C++11*. Generated code is portable between any Operating\nSystem and/or Microcontroller that supports a *C++11* compliant\ncompiler. It has been verified to run on architectures ranging from\nembedded systems with as little as *2KB of RAM* to general purpose\ncomputers running Linux/Mac OS X/Windows.\n\nThis repository contains the Ferret compiler. For more information about Ferret, \nincluding downloads and documentation for the latest release, check \nout [Ferret's website](https://ferret-lang.org)\n\n## General Information\n\n   - Website - https://ferret-lang.org\n   - Source Code - https://github.com/nakkaya/ferret\n   - Mailing List - https://groups.google.com/forum/#!forum/ferret-lang\n   - Issue Tracker - https://github.com/nakkaya/ferret/issues\n\n## Quick Start\n\nDownload latest Ferret release,\n\n```bash\nwget https://ferret-lang.org/builds/ferret.jar\n```\n\nA program that sums the first 5 positive numbers. \n\n```clojure\n;;; lazy-sum.clj\n(defn positive-numbers\n  ([]\n   (positive-numbers 1))\n  ([n]\n   (cons n (lazy-seq (positive-numbers (inc n))))))\n\n(println (-\u003e\u003e (positive-numbers)\n              (take 5)\n              (apply +)))\n```\n\nCompile to binary using,\n\n```bash\n$ java -jar ferret.jar -i lazy-sum.clj\n$ g++ -std=c++11 -pthread lazy-sum.cpp\n$ ./a.out\n```\n\n[ferret-travis]: https://travis-ci.org/nakkaya/ferret/builds\n[ferret-downloads]: https://ferret-lang.org\n[badge-ferret-version]: https://badge.fury.io/gh/nakkaya%2Fferret.svg\n[badge-ferret-build]: https://travis-ci.org/nakkaya/ferret.svg?branch=master\n[badge-ferret-license]: https://img.shields.io/badge/License-BSD%202--Clause-orange.svg\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnakkaya%2Fferret","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnakkaya%2Fferret","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnakkaya%2Fferret/lists"}