{"id":37652191,"url":"https://github.com/orphoros/shark","last_synced_at":"2026-01-16T11:35:05.931Z","repository":{"id":188463135,"uuid":"677738129","full_name":"Orphoros/Shark","owner":"Orphoros","description":"Shark programming language","archived":false,"fork":false,"pushed_at":"2025-07-25T20:08:09.000Z","size":731,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-26T03:28:14.884Z","etag":null,"topics":["compiler","go","golang","language","lexer","parser","programming-language","virtual-machine"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Orphoros.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-08-12T13:25:16.000Z","updated_at":"2025-07-25T20:48:12.000Z","dependencies_parsed_at":"2024-01-01T10:02:46.901Z","dependency_job_id":"c511eea3-4d80-4d70-8691-47f62b9f9dde","html_url":"https://github.com/Orphoros/Shark","commit_stats":{"total_commits":11,"total_committers":1,"mean_commits":11.0,"dds":0.0,"last_synced_commit":"64b4b32e100a887b8e18a9489bcac64252308bdb"},"previous_names":["orphoros/shark"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Orphoros/Shark","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Orphoros%2FShark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Orphoros%2FShark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Orphoros%2FShark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Orphoros%2FShark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Orphoros","download_url":"https://codeload.github.com/Orphoros/Shark/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Orphoros%2FShark/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28478349,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T06:30:42.265Z","status":"ssl_error","status_checked_at":"2026-01-16T06:30:16.248Z","response_time":107,"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","go","golang","language","lexer","parser","programming-language","virtual-machine"],"created_at":"2026-01-16T11:35:05.870Z","updated_at":"2026-01-16T11:35:05.924Z","avatar_url":"https://github.com/Orphoros.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\" style=\"display:grid;place-items:center;\"\u003e\n\u003cp\u003e\n    \u003cimg width=\"100\" src=\"./shark_file_icon.svg\" alt=\"Statusify Logo\"\u003e\n\u003c/p\u003e\n\u003ch1\u003eThe Shark Programming Language\u003c/h1\u003e\n\n\u003ch4\u003eShark is a programming language with a language server, compiler and virtual machine\u003c/h4\u003e\n\u003c/div\u003e\n\n## About\n\nShark is written in Go aiming to be a simple, dynamically typed language with a focus on simplicity and ease of use. The language is compiled to bytecode that a virtual machine can run. It is inspired by languages like TypeScript and Dart.\n\n## Key Features of SharkLang\n\n- Dynamically typed\n- Optional type annotations\n- Compiles to bytecode that a virtual machine can run\n- Garbage collected\n- VS Code extension for syntax highlighting\n- Language server\n- Caching\n\n\u003e [!NOTE]\n\u003e Shark is currently in development and there is no release yet.\n\n## Example\n\n```shark\nlet reduce = (arr: array\u003ci64\u003e, initial: i64, f: func\u003c(i64, i64)-\u003ei64\u003e) =\u003e {\n    let iter = (arr: array\u003ci64\u003e, result: i64) =\u003e {\n        if (len(arr) == 0) {\n            result\n        } else {\n            iter( rest(arr), f(result, first(arr)) ) \n        }\n    } iter(arr, initial)\n};\n\nlet sum = (arr: array\u003ci64\u003e) =\u003e {\n    reduce(arr, 0, (initial: i64, el: i64): i64 =\u003e {\n        initial + el\n    })\n};\n\nlet result = sum(1..5);\n\nputs(result);\n```\n\nFor more examples, look at the [examples](./examples) directory.\n\n## Benchmarks\n\nThe following Shark code is executed:\n\n```shark\nlet fibonacci = (x) =\u003e {\n    if (x == 0) {\n        return 0;\n    } else {\n        if (x == 1) {\n            return 1;\n        } else {\n            fibonacci(x - 1) + fibonacci(x - 2);\n        }\n    }\n};\nfibonacci(50);\n```\n\n### Results\n\nThe results were recorded at `February 3rd, 2025`. The results include VM caching enabled with the cache size of `1024`.\n\n#### Time\n\n```\nBenchmarkRecursiveFibonacci-10    \t1000000000\t         0.0003148 ns/op\t       0 B/op\t       0 allocs/op\n```\n\n#### Memory Usage\n\n```\nShowing nodes accounting for 5034.07kB, 100% of 5034.07kB total\nShowing top 10 nodes out of 16\n      flat  flat%   sum%        cum   cum%\n 1762.94kB 35.02% 35.02%  1762.94kB 35.02%  runtime/trace.Start\n 1184.27kB 23.53% 58.55%  1184.27kB 23.53%  runtime/pprof.StartCPUProfile\n 1184.27kB 23.53% 82.07%  1184.27kB 23.53%  shark/vm.New\n  902.59kB 17.93%   100%   902.59kB 17.93%  compress/flate.NewWriter (inline)\n         0     0%   100%   902.59kB 17.93%  compress/gzip.(*Writer).Write\n         0     0%   100%  2947.21kB 58.55%  main.main\n         0     0%   100%  2947.21kB 58.55%  runtime.main\n         0     0%   100%   902.59kB 17.93%  runtime/pprof.(*profileBuilder).build\n         0     0%   100%   902.59kB 17.93%  runtime/pprof.profileWriter\n         0     0%   100%  1184.27kB 23.53%  shark/vm.NewDefault\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forphoros%2Fshark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forphoros%2Fshark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forphoros%2Fshark/lists"}