1
0
Fork 0
forked from fun/fun

Some documentation fixes. No code changes. (0.42.2)

This commit is contained in:
Johannes Findeisen 2026-06-14 22:16:13 +02:00
commit 391a7689e5
28 changed files with 32 additions and 32 deletions

View file

@ -4,7 +4,7 @@ published: true
noToc: false
noComments: false
noDate: false
title: Fun - Arrays in Fun
title: Arrays in Fun
subtitle: Working with arrays, creation, indexing/slicing, iteration patterns, helpers, and idioms.
description: Working with arrays, creation, indexing/slicing, iteration patterns, helpers, and idioms.
permalink: /documentation/arrays/

View file

@ -4,7 +4,7 @@ published: true
noToc: false
noComments: false
noDate: false
title: Fun - Async I/O ("asyncio") in Fun
title: Async I/O ("asyncio") in Fun
subtitle: Async I/O primitives and patterns, non-blocking sockets, fd polling, examples, and best practices.
description: Async I/O primitives and patterns, non-blocking sockets, fd polling, examples, and best practices.
permalink: /documentation/asyncio/

View file

@ -4,7 +4,7 @@ published: true
noToc: false
noComments: false
noDate: false
title: Fun - Bytecode Format (Overview)
title: Bytecode Format (Overview)
subtitle: Reference for the bytecode format (split out from internals for convenience).
description: Reference for the bytecode format (split out from internals for convenience).
permalink: /documentation/bytecode-format/

View file

@ -4,7 +4,7 @@ published: true
noToc: false
noComments: false
noDate: false
title: Fun - Fun CLI
title: Fun CLI
subtitle: Command-line usage of the `fun` executable, synopsis, options, exit codes, includes and library paths.
description: Command-line usage of the `fun` executable, synopsis, options, exit codes, includes and library paths.
permalink: /documentation/cli/

View file

@ -4,7 +4,7 @@ published: true
noToc: false
noComments: false
noDate: false
title: Fun - Contributing to Fun
title: Contributing to Fun
subtitle: How to contribute, project structure, coding style, running tests, and PR guidelines.
description: How to contribute, project structure, coding style, running tests, and PR guidelines.
permalink: /documentation/contributing/

View file

@ -4,7 +4,7 @@ published: true
noToc: false
noComments: false
noDate: false
title: Fun - Embedding Fun
title: Embedding Fun
subtitle: Embedding the VM from C/Rust, lifecycle, and host integration tips.
description: Embedding the VM from C/Rust, lifecycle, and host integration tips.
permalink: /documentation/embedding/

View file

@ -4,7 +4,7 @@ published: true
noToc: false
noComments: false
noDate: false
title: Fun - Errors and Diagnostics
title: Errors and Diagnostics
subtitle: Understanding parser/runtime errors and enabling diagnostics.
description: Understanding parser/runtime errors and enabling diagnostics.
permalink: /documentation/errors-and-diagnostics/

View file

@ -4,7 +4,7 @@ published: true
noToc: false
noComments: false
noDate: false
title: Fun - cURL (libcurl) extension (optional)
title: cURL (libcurl) extension (optional)
subtitle: Documentation for cURL (libcurl) extension (optional)
description: Documentation for cURL (libcurl) extension (optional)
permalink: /documentation/extensions/curl/

View file

@ -4,7 +4,7 @@ published: true
noToc: false
noComments: false
noDate: false
title: Fun - Optional extensions
title: Optional extensions
subtitle: Catalog of optional, build-time selectable extensions for the Fun VM (e.g., cURL, SQLite, JSON).
description: Catalog of optional, build-time selectable extensions for the Fun VM (e.g., cURL, SQLite, JSON).
permalink: /documentation/extensions/

View file

@ -4,7 +4,7 @@ published: true
noToc: false
noComments: false
noDate: false
title: Fun - INI (iniparser) extension (optional)
title: INI (iniparser) extension (optional)
subtitle: Documentation for INI (iniparser) extension (optional)
description: Documentation for INI (iniparser) extension (optional)
permalink: /documentation/extensions/ini/

View file

@ -4,7 +4,7 @@ published: true
noToc: false
noComments: false
noDate: false
title: Fun - JSON (json-c) extension (optional)
title: JSON (json-c) extension (optional)
subtitle: Documentation for JSON (json-c) extension (optional)
description: Documentation for JSON (json-c) extension (optional)
permalink: /documentation/extensions/json/

View file

@ -3,7 +3,7 @@ published: true
noToc: false
noComments: false
noDate: false
title: Fun - KCGI extension (optional)
title: KCGI extension (optional)
subtitle: Documentation for KCGI (kcgi) extension (optional)
description: Documentation for KCGI (kcgi) extension (optional)
permalink: /documentation/extensions/kcgi/

View file

@ -4,7 +4,7 @@ published: true
noToc: false
noComments: false
noDate: false
title: Fun - OpenSSL extension (optional)
title: OpenSSL extension (optional)
subtitle: Documentation for OpenSSL extension (optional)
description: Documentation for OpenSSL extension (optional)
permalink: /documentation/extensions/openssl/

View file

@ -4,7 +4,7 @@ published: true
noToc: false
noComments: false
noDate: false
title: Fun - PCRE2 (Perl-Compatible Regex) extension (optional)
title: PCRE2 (Perl-Compatible Regex) extension (optional)
subtitle: Documentation for PCRE2 (Perl-Compatible Regex) extension (optional)
description: Documentation for PCRE2 (Perl-Compatible Regex) extension (optional)
permalink: /documentation/extensions/pcre2/

View file

@ -4,7 +4,7 @@ published: true
noToc: false
noComments: false
noDate: false
title: Fun - PC/SC (smart cards) extension (optional)
title: PC/SC (smart cards) extension (optional)
subtitle: Documentation for PC/SC (smart cards) extension (optional)
description: Documentation for PC/SC (smart cards) extension (optional)
permalink: /documentation/extensions/pcsc/

View file

@ -4,7 +4,7 @@ published: true
noToc: false
noComments: false
noDate: false
title: Fun - SQLite extension (optional)
title: SQLite extension (optional)
subtitle: Documentation for SQLite extension (optional)
description: Documentation for SQLite extension (optional)
permalink: /documentation/extensions/sqlite/

View file

@ -4,7 +4,7 @@ published: true
noToc: false
noComments: false
noDate: false
title: Fun - XML (libxml2) extension (optional)
title: XML (libxml2) extension (optional)
subtitle: Documentation for XML (libxml2) extension (optional)
description: Documentation for XML (libxml2) extension (optional)
permalink: /documentation/extensions/xml2/

View file

@ -4,7 +4,7 @@ published: true
noToc: false
noComments: false
noDate: false
title: Fun - Fun executable, full usage guide
title: Fun executable, full usage guide
subtitle: Full usage guide for the `fun` executable, invocation patterns, REPL, env vars, include paths, examples, and install locations.
description: Full usage guide for the `fun` executable, invocation patterns, REPL, env vars, include paths, examples, and install locations.
permalink: /documentation/fun/
@ -28,7 +28,7 @@ This document explains how to use the `fun` binary after building or installing
## Synopsis
<pre>fun [options] [script.fun] [-- args...]</pre>
-
-
- If [script.fun] is provided, `fun` runs the script.
- If omitted and the build enables the REPL, `fun` starts an interactive session.

View file

@ -4,7 +4,7 @@ published: true
noToc: false
noComments: false
noDate: false
title: Fun - Maps in Fun
title: Maps in Fun
subtitle: Working with maps, construction, lookup/update, merging, iteration, and common patterns.
description: Working with maps, construction, lookup/update, merging, iteration, and common patterns.
permalink: /documentation/maps/

View file

@ -4,7 +4,7 @@ published: true
noToc: false
noComments: false
noDate: false
title: Fun - Working with numbers and floats in Fun
title: Working with numbers and floats in Fun
subtitle: Working with integers and floats, arithmetic, conversions, clamping, bitwise ops, and patterns.
description: Working with integers and floats, arithmetic, conversions, clamping, bitwise ops, and patterns.
permalink: /documentation/numbers/

View file

@ -4,7 +4,7 @@ published: true
noToc: false
noComments: false
noDate: false
title: Fun - Performance Guide
title: Performance Guide
subtitle: Build/runtime tuning tips and patterns for better performance.
description: Build/runtime tuning tips and patterns for better performance.
permalink: /documentation/performance/

View file

@ -4,7 +4,7 @@ published: true
noToc: false
noComments: false
noDate: false
title: Fun - Roadmap
title: Roadmap
subtitle: High-level direction, planned features, and pointers to issues.
description: High-level direction, planned features, and pointers to issues.
permalink: /documentation/roadmap/

View file

@ -4,7 +4,7 @@ published: true
noToc: false
noComments: false
noDate: false
title: Fun - Security and Sandboxing
title: Security and Sandboxing
subtitle: Trust boundaries, I/O expectations, and capability restrictions.
description: Trust boundaries, I/O expectations, and capability restrictions.
permalink: /documentation/security-and-sandboxing/

View file

@ -4,7 +4,7 @@ published: true
noToc: false
noComments: false
noDate: false
title: Fun - Working with strings in Fun
title: Working with strings in Fun
subtitle: Working with strings, literals/escaping, concatenation, substr/find, split, and conversions.
description: Working with strings, literals/escaping, concatenation, substr/find, split, and conversions.
permalink: /documentation/strings/

View file

@ -4,7 +4,7 @@ published: true
noToc: false
noComments: false
noDate: false
title: Fun - Fun Style Guide
title: Fun Style Guide
subtitle: Coding conventions for C and Fun (indentation, naming, idioms).
description: Coding conventions for C and Fun (indentation, naming, idioms).
permalink: /documentation/style-guide/

View file

@ -4,7 +4,7 @@ published: true
noToc: false
noComments: false
noDate: false
title: Fun - Building and Running Tests
title: Building and Running Tests
subtitle: How to build and run tests/targets with CMake/CTest, and where to add new tests.
description: How to build and run tests/targets with CMake/CTest, and where to add new tests.
permalink: /documentation/testing/

View file

@ -4,7 +4,7 @@ published: true
noToc: false
noComments: false
noDate: false
title: Fun - Core datatypes, arrays, maps, strings, numbers, booleans and nil
title: Core datatypes, arrays, maps, strings, numbers, booleans and nil
subtitle: Core types (numbers, strings, arrays, maps, nil/bool), common operations, patterns, and interop notes.
description: Core types (numbers, strings, arrays, maps, nil/bool), common operations, patterns, and interop notes.
permalink: /documentation/types/
@ -177,7 +177,7 @@ print(typeof({})) // "map"</pre>
## Common patterns
- Accumulate values:
-
-
```
acc = []
for i = 0; i < 5; i = i + 1 { push(acc, i*i) }
@ -185,14 +185,14 @@ print(typeof({})) // "map"</pre>
```
- Group related data with a map:
-
-
```
person = { "name": "Lin", "skills": ["C", "Fun"] }
print(person["skills"][1]) // Fun
```
- Safe map read:
-
-
```
v = person["twitter"]
handle = v != nil ? v : "(none)"

View file

@ -4,7 +4,7 @@ published: true
noToc: false
noComments: false
noDate: false
title: Fun - Writing Tests
title: Writing Tests
subtitle: How to author new tests for Fun and opcode components.
description: How to author new tests for Fun and opcode components.
permalink: /documentation/writing-tests/