{"id":15100664,"url":"https://github.com/abrudz/ngn-apl","last_synced_at":"2025-08-18T20:34:29.457Z","repository":{"id":90728706,"uuid":"324752546","full_name":"abrudz/ngn-apl","owner":"abrudz","description":"An APL interpreter written in JavaScript. Runs in a browser or NodeJS.","archived":false,"fork":false,"pushed_at":"2024-06-05T15:59:34.000Z","size":2797,"stargazers_count":52,"open_issues_count":1,"forks_count":8,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-09-26T18:01:58.046Z","etag":null,"topics":["apl","client-side","in-browser","interpreter","javascript","node","node-js","nodejs"],"latest_commit_sha":null,"homepage":"https://abrudz.github.io/ngn-apl/","language":"JavaScript","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/abrudz.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":"2020-12-27T12:02:59.000Z","updated_at":"2024-09-15T09:04:41.000Z","dependencies_parsed_at":"2023-05-19T11:15:25.431Z","dependency_job_id":null,"html_url":"https://github.com/abrudz/ngn-apl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abrudz%2Fngn-apl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abrudz%2Fngn-apl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abrudz%2Fngn-apl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abrudz%2Fngn-apl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abrudz","download_url":"https://codeload.github.com/abrudz/ngn-apl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230276275,"owners_count":18201092,"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":["apl","client-side","in-browser","interpreter","javascript","node","node-js","nodejs"],"created_at":"2024-09-25T18:00:39.302Z","updated_at":"2024-12-18T13:15:21.015Z","avatar_url":"https://github.com/abrudz.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"**This is an archive of ngn/apl but PRs to this repo are still accepted. Feel free to contribute!**\n\nIts author thinks it has served its purpose and has become a distraction. He went on to create a free [implementation](https://codeberg.org/ngn/k) of [K6](https://en.wikipedia.org/wiki/K_(programming_language)) and encouraged people to use that instead, until he stopped supporting that too.\n\n----\n\n[Online Demo](https://abrudz.github.io/ngn-apl) - can also be installed offline as a [PWA (Progressive Web App)](https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps/Guides/What_is_a_progressive_web_app) on a computer / phone - even without internet!\n\n![Screenshot](ngn-apl-screenshot.png)\n\nAn [APL](https://aplwiki.com) interpreter written in JavaScript.\nRuns in a browser or [NodeJS](https://nodejs.org/).\n\nSupports: most primitives, dfns (`{⍺ ⍵}`), nested arrays, complex numbers (`1j2`), infinities (`¯` or `∞`), forks and\natops, strand assignment (`(a b)←c`), indexed assignment (`a[b]←c`), user-defined operators (`{⍺⍺ ⍵⍵}`).\n\nDoesn't support: tradfns (`∇R←X f Y`), non-zero index origin (`⎕IO`), comparison tolerance (`⎕CT`),\nprototypes, modified assignment (`x+←1`), control structures (`:If`), object-oriented features, namespaces.\n\nUsed in [Paul L Jackson's web site](https://plj541.github.io/APL.js/), [repl.it](https://repl.it/languages/APL),\nand [tio.run](https://tio.run/#apl-ngn).\n\n# Offline usage with NodeJS\n\nRun `apl.js` with [Node](https://nodejs.org/) to start a REPL:\n\n    node apl.js\n\nAn APL script can be given as argument:\n\n    node apl.js filename.apl\n\n`apl.js` can be `require()`d as a CommonJS module from JavaScript:\n\n    var apl=require('./apl')\n    var r=apl('1 2 3+4 5 6')\n\nor used in an HTML page:\n\n    \u003cscript src='apl.js'\u003e\u003c/script\u003e\n    \u003cscript\u003evar r=apl('1 2 3+4 5 6')\u003c/script\u003e\n\n# Editor support\n\n* [Vim keymap and syntax](https://gitlab.com/n9n/vim-apl)\n* [baruchel/vim-notebook](https://github.com/baruchel/vim-notebook): evaluate blocks of APL code in a vim buffer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabrudz%2Fngn-apl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabrudz%2Fngn-apl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabrudz%2Fngn-apl/lists"}