fun
A lightweight, embeddable, data-centric scripting language whose reach extends from JSON/FD data all the way down to runtime-compiled C and raw machine code
What XERJ indexed
Snapshot
The whole repository at commit 559b9b4e94 (2026-10-07). main is 244 commits ahead.
Selected work

“lib-asm-a64: range-check offsets/immediates; signed imm9/imm7; fix sl…”. 4 files, 232 lines in fun.
Licence
The repository
LICENSE file checked at the pinned commit; the author agreed to inclusion.
The XERJ corpus
The author agreed by email on 2026-10-27. Same terms as the repository. Answers name the repo, the commit and the file:line.
selected for the XERJ Corpus Hublicence clearedsuggested use: adapt with attribution
embeddableffiinterpreterjitjsonparserprogramming-languagescripting-language
Example questions
- How does fun implement embeddable?
- What does fun do in fun?
- Show the ffi code in fun.
Inside the indexed corpus
- 398 files, 5.8 MB in total, about 15.0 KB per file.
- The selected commit changed 4 of those files (1.0%).
- Languages by size: Ada 61.2%, Pascal 31.1%, Shell 5.1%, Batchfile 0.8%, Yacc 0.8%.
- On GitHub since 2026-08-30, last push 2026-10-31, 408 commits on main.
- The pin is 244 commits behind main; the corpus answers from the pinned code, not the newest.
Licence on GitHub and in the corpus
GitHub reported MIT for funlang/fun on 2026-10-31, but the LICENSE file at commit 559b9b4e94 was reviewed as NOASSERTION. The corpus is the pinned commit, so answers from it follow NOASSERTION.
Contributors
funlang.org (@funlang) has 1 selected repository on the hub.
Using XERJ with fun
- How do I run syntax-aware code search? fun is tagged compiler on GitHub.
- XERJ vs ast-grep: syntax search and an index
- RAG without a vector database: one hybrid index The hub files it under AI, prompts and agents.
- Index a reference library for a coding agent
The prompt
Paste it into your AI agent. It clones funlang/fun at the pinned commit and indexes it on your machine.
Search the GitHub repository funlang/fun with XERJ (https://hub.xerj.org/corpus/funlang--fun). Run these in a shell, in order, and check each result before the next: 1. xerj --help (success: it prints usage). If xerj is missing: curl -fsSL https://xerj.org/get | sh 2. git clone https://github.com/Funlang/fun fun && git -C fun checkout 559b9b4e940a0fdc47d5ba195ec8db2072f05d95 3. Start a local node and leave it running: xerj --insecure --data-dir ./xerj-data 4. xerj autoindex ./fun --url http://127.0.0.1:9200 --prefix fun --progress plain 5. xerj autoindex map --url http://127.0.0.1:9200 Then answer my question from the indexed files and cite the ax_path of every hit. Query syntax: https://xerj.org/llms.txt Licence: check the LICENSE file. Keep the copyright notice and credit the authors.
Related
funlang.orgAI, prompts and agents corporalightningcssoxccatala-law-langPySudo/QuantoScriptzavvdev/elise-langecnivslabs/olive
Stats: GitHub API, fetched 2026-10-31. Snapshot: the git tree at the pinned commit. Selected work and consent: the XERJ registry.