{"id":13648620,"url":"https://github.com/ytakano/blisp","last_synced_at":"2025-05-15T15:05:24.944Z","repository":{"id":50485471,"uuid":"281948002","full_name":"ytakano/blisp","owner":"ytakano","description":"A statically typed Lisp like scripting programming language for Rust.","archived":false,"fork":false,"pushed_at":"2025-02-17T09:34:10.000Z","size":20580,"stargazers_count":216,"open_issues_count":2,"forks_count":9,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-05-10T20:23:44.284Z","etag":null,"topics":["no-std","programming-language","rust"],"latest_commit_sha":null,"homepage":"https://ytakano.github.io/blisp/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ytakano.png","metadata":{"files":{"readme":"README.md","changelog":"history.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}},"created_at":"2020-07-23T12:40:24.000Z","updated_at":"2025-05-02T12:54:56.000Z","dependencies_parsed_at":"2024-01-14T10:59:30.293Z","dependency_job_id":"7a902fba-14b1-49fc-bb8f-da4a0c141b21","html_url":"https://github.com/ytakano/blisp","commit_stats":{"total_commits":102,"total_committers":4,"mean_commits":25.5,"dds":0.0980392156862745,"last_synced_commit":"3f8d0f07e2290221941e6339ae39fec1c64524f9"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ytakano%2Fblisp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ytakano%2Fblisp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ytakano%2Fblisp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ytakano%2Fblisp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ytakano","download_url":"https://codeload.github.com/ytakano/blisp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254364270,"owners_count":22058878,"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":["no-std","programming-language","rust"],"created_at":"2024-08-02T01:04:23.896Z","updated_at":"2025-05-15T15:05:24.896Z","avatar_url":"https://github.com/ytakano.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# BLisp\n\nBLisp is a statically typed Lisp like programming language which adopts effect system for no_std environments.\nBLisp supports higher order RPC like higher order functions of functional programming languages.\n\nThis repository provides only a library crate.\nPlease see [blisp-repl](https://github.com/ytakano/blisp-repl) to use BLisp,\nand [baremetalisp](https://github.com/ytakano/baremetalisp) which is a toy OS.\n\n**[Homepage](https://ytakano.github.io/blisp/) is here.**\n\n## Features\n\n- Algebraic data type\n- Generics\n- Hindley–Milner based type inference\n- Effect system to separate side effects from pure functions\n- Big integer\n- Supporting no_std environments\n\n## How to Use\n\n```rust\nuse blisp;\n\nfn main() {\n    let code = \"(export factorial (n) (Pure (-\u003e (Int) Int))\n    (if (\u003c= n 0)\n        1\n        (* n (factorial (- n 1)))))\";\n    let exprs = blisp::init(code, vec![]).unwrap();\n    let ctx = blisp::typing(exprs).unwrap();\n\n    let e = \"(factorial 10)\";\n    blisp::eval(e, \u0026ctx).unwrap();\n}\n```\n\nIf Rust compiler or linker says warning of fmod,\nplease add fmod manually as follows.\n\n```rust\n#[no_mangle]\nextern \"C\" fn fmod(x: f64, y: f64) -\u003e f64 {\n    libm::fmod(x, y)\n}\n```\n\nCargo.toml\n\n```toml\n[dependencies.blisp]\nversion = \"0.4\"\n```\n\n## Examples\n\n```lisp\n\"Hello, World!\" ; \"Hello, World!\"\n(+ 0x10 0x20)   ; 48\n(+ 0b111 0b101) ; 12\n(+ 0o777 0o444) ; 803\n(car '(1 2 3))  ; (Some 1)\n(cdr '(1 2 3))  ; '(2 3)\n(map (lambda (x) (* x 2)) '(8 9 10)) ; '(16 18 20)\n(fold + 0 '(1 2 3 4 5 6 7 8 9))      ; 45\n(reverse '(1 2 3 4 5 6 7 8 9))       ; '(9 8 7 6 5 4 3 2 1)\n(filter (lambda (x) (= (% x 2) 0)) '(1 2 3 4 5 6 7 8 9)) ; '(2 4 6 8)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fytakano%2Fblisp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fytakano%2Fblisp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fytakano%2Fblisp/lists"}