1
0
Fork 0
forked from fun/fun
fun/docs
2026-02-18 17:39:10 +01:00
..
arrays.md Holiday is over, now I have fun again. No code changes. (0.38.11) 2026-02-17 14:34:57 +01:00
bytecode-format.md Holiday is over, now I have fun again. No code changes. (0.38.11) 2026-02-18 17:39:10 +01:00
cli.md Holiday is over, now I have fun again. No code changes. (0.38.11) 2026-02-18 17:39:10 +01:00
contributing.md Holiday is over, now I have fun again. No code changes. (0.38.11) 2026-02-18 17:39:10 +01:00
embedding.md Holiday is over, now I have fun again. No code changes. (0.38.11) 2026-02-18 17:39:10 +01:00
errors-and-diagnostics.md Holiday is over, now I have fun again. No code changes. (0.38.11) 2026-02-18 17:39:10 +01:00
examples.md Some more documentation fun. No code changes. (0.38.11) 2026-02-11 17:55:04 +01:00
faq.md Holiday is over, now I have fun again. No code changes. (0.38.11) 2026-02-18 17:39:10 +01:00
handbook.md Handbook update. No code changes. (0.37.57) 2026-01-19 20:45:09 +01:00
includes.md Some more documentation fun about includes. No code changes. (0.38.11) 2026-02-11 03:02:29 +01:00
internals.md More documentation about internals. No code changes (0.38.0) 2026-01-28 16:55:39 +01:00
maps.md Holiday is over, now I have fun again. No code changes. (0.38.11) 2026-02-17 14:34:57 +01:00
numbers.md Holiday is over, now I have fun again. No code changes. (0.38.11) 2026-02-17 14:59:39 +01:00
opcodes.md Added documentation for opcodes to ./docs/opcodes.md. No code changes. (0.37.62) 2026-01-26 13:03:26 +01:00
performance.md Holiday is over, now I have fun again. No code changes. (0.38.11) 2026-02-18 17:39:10 +01:00
README.md Holiday is over, now I have fun again. No code changes. (0.38.11) 2026-02-18 17:39:10 +01:00
repl.md Added REPL documentation to ./docs/. No code changes. (0.37.62) 2026-01-26 03:45:35 +01:00
roadmap.md Holiday is over, now I have fun again. No code changes. (0.38.11) 2026-02-18 17:39:10 +01:00
rust.md Rust doc fixes. No code changes. (0.38.5) 2026-01-29 15:17:46 +01:00
security-and-sandboxing.md Holiday is over, now I have fun again. No code changes. (0.38.11) 2026-02-18 17:39:10 +01:00
stdlib.md Holiday is over, now I have fun again. No code changes. (0.38.11) 2026-02-18 17:39:10 +01:00
strings.md Holiday is over, now I have fun again. No code changes. (0.38.11) 2026-02-17 14:59:39 +01:00
style-guide.md Holiday is over, now I have fun again. No code changes. (0.38.11) 2026-02-18 17:39:10 +01:00
testing.md Some more documentation fun. No code changes. (0.38.11) 2026-02-11 17:55:04 +01:00
troubleshooting.md Some more documentation fun. No code changes. (0.38.11) 2026-02-11 17:55:04 +01:00
types.md Holiday is over, now I have fun again. No code changes. (0.38.11) 2026-02-17 14:59:39 +01:00
writing-tests.md Holiday is over, now I have fun again. No code changes. (0.38.11) 2026-02-18 17:39:10 +01:00

Fun Documentation Index

This file serves as an index of the documents in this directory. Links are relative and can be opened directly on Git hosting or locally.

Overview

  • handbook.md — Comprehensive handbook for the Fun language and VM: install/build, configuration flags, usage, and full feature overview.
  • types.md — Core types (numbers, strings, arrays, maps, nil/bool), common operations, patterns, and interop notes.
  • numbers.md — Working with integers and floats: arithmetic, conversions, clamping, bitwise ops, and patterns.
  • strings.md — Working with strings: literals/escaping, concatenation, substr/find, split, and conversions.
  • arrays.md — Working with arrays: creation, indexing/slicing, iteration patterns, helpers, and idioms.
  • maps.md — Working with maps: construction, lookup/update, merging, iteration, and common patterns.
  • includes.md — Using local vs. system includes, FUN_LIB_DIR, DEFAULT_LIB_DIR, and namespaced includes with as.
  • repl.md — REPL guide: how to build/launch, editing and history, completions, REPLonerror, and tips.
  • opcodes.md — VM opcodes overview grouped by domain with brief behavior/stack notes.
  • internals.md — Implementation details: bytecode format, VM architecture, stacks/frames, parser, and dispatch.
  • rust.md — Writing Rustbacked opcodes and wiring them into the C VM; build/setup notes.
  • examples.md — How to run the examples and the interactive showcase script, with environment tips.
  • testing.md — How to build and run tests/targets with CMake/CTest, and where to add new tests.
  • troubleshooting.md — Common issues and quick fixes for build, includes, and REPL usage.

New and supplemental guides

  • build.md — How to build Fun with CMake, available targets, and build options (FUN_DEBUG, FUN_USE_MUSL, FUN_WITH_CPP, FUN_WITH_RUST).
  • cli.md — Commandline usage of the fun executable: synopsis, options, exit codes, includes and library paths.
  • contributing.md — How to contribute: project structure, coding style, running tests, and PR guidelines.
  • style-guide.md — Coding conventions for C and Fun (indentation, naming, idioms).
  • stdlib.md — Overview of the standard library modules under ./lib with oneline summaries.
  • embedding.md — Embedding the VM from C/Rust, lifecycle, and host integration tips.
  • errors-and-diagnostics.md — Understanding parser/runtime errors and enabling diagnostics.
  • performance.md — Build/runtime tuning tips and patterns for better performance.
  • security-and-sandboxing.md — Trust boundaries, I/O expectations, and capability restrictions.
  • faq.md — Frequently asked questions and quick answers.
  • writing-tests.md — How to author new tests for Fun and opcode components.
  • bytecode-format.md — Reference for the bytecode format (split out from internals for convenience).
  • roadmap.md — Highlevel direction, planned features, and pointers to issues.

Tips

  • When building from the repo without installing, set FUN_LIB_DIR to the local ./lib directory so examples and the REPL can locate the stdlib.
  • For a broader project overview and quickstart, see the repository root README.md.