{"id":19586531,"url":"https://github.com/glebbash/lo","last_synced_at":"2025-04-27T12:31:21.104Z","repository":{"id":41128571,"uuid":"441681474","full_name":"glebbash/LO","owner":"glebbash","description":"LO - small programming language targeting WASM that aims to be as simple as possible","archived":false,"fork":false,"pushed_at":"2024-05-19T13:51:29.000Z","size":34990,"stargazers_count":15,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-19T14:48:30.386Z","etag":null,"topics":["compiler","language","webassembly"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/glebbash.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-12-25T13:09:07.000Z","updated_at":"2024-05-21T15:46:38.930Z","dependencies_parsed_at":"2023-12-24T01:35:00.763Z","dependency_job_id":"c1819758-1f62-4497-b2d3-6635a1532a97","html_url":"https://github.com/glebbash/LO","commit_stats":null,"previous_names":["glebbash/lo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glebbash%2FLO","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glebbash%2FLO/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glebbash%2FLO/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glebbash%2FLO/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/glebbash","download_url":"https://codeload.github.com/glebbash/LO/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224069488,"owners_count":17250456,"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":["compiler","language","webassembly"],"created_at":"2024-11-11T08:00:17.938Z","updated_at":"2025-04-27T12:31:21.090Z","avatar_url":"https://github.com/glebbash.png","language":"Rust","readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./vscode-ext/assets/icons/lo.svg\" /\u003e\n\u003c/p\u003e\n\nLO - small programming language targeting WASM that aims to be as simple as possible\n\n\u003c!-- TOC generated by `yzhang.markdown-all-in-one` VSCode extension --\u003e\n\n- [🏆 Goals](#-goals)\n- [🪵 DevLog + Docs](#-devlog--docs)\n- [👀 Examples](#-examples)\n- [🚀 Getting started](#-getting-started)\n- [🔦 VSCode extension](#-vscode-extension)\n- [❔ More info](#-more-info)\n\n## 🏆 Goals\n\n- Make both the language and the compiler small and easy to understand\n- Have little to no dependencies\n- Be easy to use and modify\n- Emit WASM to have the biggest target coverage with little code\n- Document the process\n\n\n## 🪵 DevLog + Docs\n\nThe journey is documented in the [LO DevLog](https://carrot-blog.deno.dev/?tag=lo).\n\nAnd the actual docs for the compiler are in the [docs](./docs/README.md) folder.\n\n## 👀 Examples\n\nCheck out example `.lo` programs including standard library sources and WIP self-hosted compiler in the [./examples](./examples/) folder.\n\nHere are some of them with syntax highlighting from the [LO VS Code extension](#vscode-extension):\n\n- Hello world [(source)](examples/test/demos/hello-world.lo):\n\n![Hello World sample](./docs/assets/hello-world.png)\n\n- Advent of Code 2020 Day 1 [(source)](examples/test/demos/aoc2020/1.lo):\n\n![AOC 2020 sample](./docs/assets/aoc-2020-day1.png)\n\n- Dark Maze (WASM-4 demo game) [play it here](https://rawcdn.githack.com/glebbash/LO/da8305293f5438967619e91c6ecfd472111ccf91/examples/test/demos/wasm4/builds/dark-maze.html) or check the [source](examples/test/demos/wasm4/src/dark-maze.lo):\n\n![Dark Maze gif](./docs/assets/dark-maze.gif)\n\n## 🚀 Getting started\n\n1️⃣ Using VS Code extension (recommended)\n\n\u003e This option also works in vscode.dev\n\n- Install the [LO VS Code extension](#vscode-extension)\n- To create a new project: Open empty folder, execute Command Palette: `LO: Initialize project in current workspace`\n- To run currently open file: execute Command Palette: `LO: Run current file`, or press ▶️ button in the top toolbar\n- Compiling files:\n  - Open Web Shell: execute Command Palette: `Terminal: Create New Web Shell`\n  - Run: `run lo.wasm compile \u003cinput\u003e.lo \u003e \u003coutput\u003e.wasm`\n\n---\n\n2️⃣ Using wasmtime\n\n- Install [wasmtime](https://github.com/bytecodealliance/wasmtime)\n- Compiling files: `wasmtime --dir=. lo.wasm compile \u003cinput\u003e.lo \u003e \u003coutput\u003e.wasm`\n- Getting diagnostics (in json format): `wasmtime --dir=. lo.wasm inspect \u003cinput\u003e.lo`\n\n---\n\n3️⃣ Using Node.js\n\n- Install [Node.js 22+](https://nodejs.org/)\n- Compiling files: `./utils.ts compile \u003cinput\u003e.lo \u003e \u003coutput\u003e.wasm`\n- Compiling \u0026 running files: `./utils.ts run \u003cinput\u003e.lo`\n\n---\n\n\u003e Additional info on compiler usage is in the [docs](./docs/README.md)\n\n## 🔦 VSCode extension\n\nAvailable on:\n- [Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=glebbash.lo)\n- [Open VSX Registry](https://open-vsx.org/extension/glebbash/lo)\n\n\u003e See [Inspection](./docs/README.md#52-inspecting-code-ide-intergration) if you are interested in intergrating with other IDEs\n\n## ❔ More info\n\nMore info including building initial compiler and running tests is available in the [docs](./docs/README.md)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglebbash%2Flo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fglebbash%2Flo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglebbash%2Flo/lists"}