User contributions for Tedaryum

From OnixOS
A user with 178 edits. Account created on 10 August 2024.
Search for contributionsExpandCollapse
⧼contribs-top⧽
⧼contribs-date⧽
(newest | oldest) View ( | ) (20 | 50 | 100 | 250 | 500)

25 August 2026

  • 07:2107:21, 25 August 2026 diff hist +1,148 N O Language/API/TypesCreated page with "= Types = O Language values are dynamically represented at runtime. {| class="wikitable" ! Value !! Example !! Description |- | Integer || <code>42</code> || Signed whole number. |- | Float || <code>3.14</code> || Floating-point number. |- | Boolean || <code>true</code> || Boolean value. |- | String || <code>"O Language"</code> || Text value. |- | Array || <code>[1, "two", true]</code> || Ordered, zero-based collection. |- | Hash || <code>{"name": "O"}</code> || Key/va..."
  • 07:2107:21, 25 August 2026 diff hist +1,594 N O Language/API/TokensCreated page with "= Tokens and Operators = == Literals == {| class="wikitable" ! Token !! Example |- | Identifier || <code>name</code> |- | Integer || <code>42</code> |- | Float || <code>3.14</code> |- | String || <code>"hello"</code> |- | Boolean || <code>true</code>, <code>false</code> |} Comments start with <code>#</code> and continue to the end of the source input. == Operators and delimiters == Arithmetic operators are <code>+</code>, <code>-</code>, <code>*</code>, and <code>/<..."
  • 07:2007:20, 25 August 2026 diff hist +1,067 N O Language/API/SyntaxCreated page with "= Syntax = == Definitions and expressions == <pre> def answer = 6 * 7 def greeting = "Hello, " + "world!" output(answer) </pre> Statements may be separated with semicolons. Braces delimit blocks, hashes, and scopes. == Functions == <pre> def add = fn(left, right) { return left + right } output(add(2, 3)) </pre> Functions are first-class values and can be passed to <code>map</code>. == Conditions and iteration == Use <code>if</code> and <code>else</code> for br..."
  • 07:2007:20, 25 August 2026 diff hist +992 N O Language/APICreated page with "= API Reference = This is the complete reference section. Use it when you know what you want to do and need the exact name, form, or accepted value. * Syntax — definitions, functions, control flow, scopes, and language forms. * Tokens and Operators — literals, operators, delimiters, and keywords. * Types — language values and runtime objects. * O_Language/API/Functions|Built-in Functio..."
  • 07:2007:20, 25 August 2026 diff hist +2,322 N O Language/Web FrameworkCreated page with "= O Language Web Framework (olf) = <code>olf</code> is the convention-based web framework for O Language. It provides a project layout for routes, controllers, templates, browser assets, and database code. == Create and run a project == <pre> olang web init my-project cd my-project olang web run </pre> The official framework source is [https://gitlab.com/olanguage/web/framework the olf repository]. == Project structure == {| class="wikitable" ! Path !! Responsibili..."
  • 07:2007:20, 25 August 2026 diff hist +1,021 N O Language/Web/DatabaseCreated page with "= Database = Database programming has three common steps: open a connection, define a model, and apply schema changes. == Connection and model == <pre> def db = database("sqlite3", "example.db") def users = model(db, "users", { "id": "int", "name": "text", "email": "text" }) </pre> == Schema and data == <pre> migrate(users) create(users, {"name": "Ada", "email": "[email protected]"}) def result = fetch(users, {"name": "Ada"}) update(users, {"name": "Ada"}, {"em..." current
  • 07:2007:20, 25 August 2026 diff hist +822 N O Language/Web/RoutingCreated page with "= Routing = Routes are stored as a hash passed to <code>webserver</code>. A route maps a path to an HTTP method and a response. <pre> def show_user = fn(id) { return json({"id": id}) } def config = { "/users/:id": { "type": "GET", "response": show_user } } </pre> Supported route types include <code>GET</code>, <code>POST</code>, <code>PUT</code>, <code>DELETE</code>, <code>PATCH</code>, <code>OPTIONS</code>, <code>UPLOAD</code>, and <code>STATIC</code>...." current
  • 07:1907:19, 25 August 2026 diff hist +1,295 N O Language/WebCreated page with "= Web Programming = O Language includes an HTTP server runtime. This section explains web programming concepts; O Language Web Framework explains project scaffolding and the <code>olf</code> conventions. == Start an HTTP server == Pass a port and a route hash to <code>webserver</code>: <pre> def config = { "/": {"type": "GET", "response": "Welcome!"} } webserver("8080", config) </pre> == Handle requests == A route response can be a f..." current
  • 07:1907:19, 25 August 2026 diff hist 0 N Talk:O Language/Advanced/RuntimeCreated blank page current
  • 07:1907:19, 25 August 2026 diff hist +903 N O Language/Advanced/RuntimeCreated page with "= Modules and Loading = Modules use the <code>.olm</code> extension. A module can define functions and values that become available to the program that loads it. <pre> load "helpers.olm" </pre> The path is resolved from the current project directory. Keep shared definitions in modules instead of repeating them in every entry point. == Web project loading == Web projects use one central loader: <pre> load "lib/loader.olm" </pre> <code>boot.ola</code> loads <code>li..."
  • 07:1807:18, 25 August 2026 diff hist +903 N O Language/Advanced/ModulesCreated page with "= Modules and Loading = Modules use the <code>.olm</code> extension. A module can define functions and values that become available to the program that loads it. <pre> load "helpers.olm" </pre> The path is resolved from the current project directory. Keep shared definitions in modules instead of repeating them in every entry point. == Web project loading == Web projects use one central loader: <pre> load "lib/loader.olm" </pre> <code>boot.ola</code> loads <code>li..."
  • 07:1707:17, 25 August 2026 diff hist +1,081 N O Language/AdvancedCreated page with "= Advanced Topics = Use this section after Getting Started. It covers the runtime model and language features used in larger programs. == Modules == Move reusable definitions into <code>.olm</code> modules and load them by path. The complete loading order and project loader conventions are described in Modules and Loading. == Runtime control == O Language can start external processes, work with environme..."
  • 07:1607:16, 25 August 2026 diff hist +728 N O Language/Getting Started/Project FilesCreated page with "= Project Files = O Language projects use a small number of file types: {| class="wikitable" ! Extension !! Use |- | <code>.ola</code> || Application source or an entry-point file. |- | <code>.olm</code> || Loadable O Language module. |- | <code>.olp</code> || Package metadata and dependency definitions. |- | <code>.ops</code> || Process configuration. |- | <code>.obc</code> || Compiled bytecode output. |} Web projects also use conventional directories such as <code>c..."
  • 07:1407:14, 25 August 2026 diff hist +1,119 N O Language/Getting Started/Language BasicsCreated page with "= Language Basics = == Values and definitions == Use <code>def</code> to bind a value to a name. O Language supports numbers, text, booleans, arrays, hashes, and functions. <pre> def answer = 6 * 7 def greeting = "Hello, world!" def enabled = true def colors = ["red", "blue"] def user = {"name": "Ada"} output(answer) </pre> == Functions == Functions are values. Define one with <code>fn</code>, return a value with <code>return</code>, and call it by name. <pre> def..." Tag: Visual edit: Switched
  • 07:1207:12, 25 August 2026 diff hist +1,475 N O Language/Getting StartedCreated page with "= Getting Started = This section is for a new O Language user. It explains the language's purpose, the first program, and the small set of ideas needed before reading the advanced or reference pages. == What is O Language? == O Language is a system-oriented functional language. Values and functions are central, while system operations such as processes, files, networking, and databases are available from the same runtime. The official source repository is [https://gi..."
  • 07:1107:11, 25 August 2026 diff hist +900 O LanguageNo edit summary

21 August 2026

20 August 2026

9 August 2026

7 August 2026

3 June 2026

31 May 2026

8 May 2026

13 April 2026

28 March 2026

(newest | oldest) View ( | ) (20 | 50 | 100 | 250 | 500)