{"id":24615926,"url":"https://github.com/trisuaso/faraday","last_synced_at":"2026-05-20T09:04:49.666Z","repository":{"id":273303257,"uuid":"919227461","full_name":"trisuaso/faraday","owner":"trisuaso","description":"🦇 Faraday is an experimental language which compiles to Lua source!","archived":false,"fork":false,"pushed_at":"2025-02-04T22:46:44.000Z","size":203,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-18T19:45:05.507Z","etag":null,"topics":["compiler","lua","programming-language","type-checking"],"latest_commit_sha":null,"homepage":"","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/trisuaso.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-20T02:03:34.000Z","updated_at":"2025-02-04T22:46:48.000Z","dependencies_parsed_at":"2025-01-20T05:18:58.100Z","dependency_job_id":"ed9a29fe-4ce2-4ddf-831c-d865bc9c9dfc","html_url":"https://github.com/trisuaso/faraday","commit_stats":null,"previous_names":["trisuaso/faraday"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/trisuaso/faraday","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trisuaso%2Ffaraday","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trisuaso%2Ffaraday/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trisuaso%2Ffaraday/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trisuaso%2Ffaraday/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trisuaso","download_url":"https://codeload.github.com/trisuaso/faraday/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trisuaso%2Ffaraday/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33253026,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-20T04:48:54.280Z","status":"ssl_error","status_checked_at":"2026-05-20T04:48:10.851Z","response_time":356,"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":["compiler","lua","programming-language","type-checking"],"created_at":"2025-01-24T22:15:01.933Z","updated_at":"2026-05-20T09:04:49.658Z","avatar_url":"https://github.com/trisuaso.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🦇 Faraday\n\n_Faraday_ is an experimental, strongly-typed language which compiles to Lua source.\n\n## Features\n\n- Type checking\n    - `any` and `empty`(/`#`) types\n    - `const`(/`incon`) variables\n    - Variable assignment\n    - Variable reassignment\n    - Function arguments\n    - Function return value\n    - Invalid types\n- Structs\n- Type aliases\n- Enums\n- `impl` blocks\n    - `static` methods (`static fn ident(...) -\u003e ... {...}`)\n    - (optional) `assoc` methods (opposite of static, default; `assoc fn ident(...) -\u003e ... {...}`)\n- Braces (instead of `do ... end`/`then ... end`)\n- Async/await (coroutine wrappers)\n    - Async: `async fn ident(...) -\u003e any {...}`\n        - No need to change return type!\n    - Await: `#ident(...)`\n    - (optional) `sync` methods (opposite of async, default; `sync fn ident(...) -\u003e any {...}`)\n- `else if` instead of `elseif` (big feature)\n- `use \"...\" as ...` instead of `require \"...\"` (with better module resolving)\n- Type visibility (`pub`/`prv`)\n    - `prv` is optional and is the default\n- Automatic exports (anything set as `pub` is automatically)\n    - This includes types, which the type checker will recognize!\n- Syntax expressions (embedded functions while compiling)\n    - Expressions are imported using the `expr_use` function call in a macro expression: `#[expr_use(\"./file_path\")]`\n        - The imported file should just contain a single function which has a name exactly matching the file name\n        - If the file name has a period in it (that isn't the extension), it can be represented using an underscore\n    - Expressions can be called using the `expr_call` function in a macro expression: `#[expr_call(file_name, ...]`\n        - The `file_name` should be an identifier which exactly matches the name of the file from `expr_use` (just the file with no extension)\n    - Expressions will be called and run using `luajit`. Their return value will automatically be printed to stdout, which will then be pushed to the compiler output instead of the expression incovation.\n    - See the example [here](https://github.com/trisuaso/faraday/blob/master/test_fd/syntax_expressions/main.fd)\n- Some sort of memory safety\n    - Variables must be referenced to be assigned as the value of another variable (`any var = \u0026other`)\n    - Variables are constant by default (can be made mutable by putting `mut` in the variable declaration)\n\nSee the [tests](https://github.com/trisuaso/faraday/tree/master/test_fd) for some language examples!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrisuaso%2Ffaraday","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrisuaso%2Ffaraday","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrisuaso%2Ffaraday/lists"}