# Rook > Detailed documentation for the Rook language, shared memory, browser markup and server components. Each chapter can be read on its own. Use the Markdown chapters for definitions, behavior, limitations, and examples. The full documentation combines these chapters in one download. ## Rook — 1.0 specification - [Rook — 1.0 specification](reference/language/index.md): Rook is a language with the semantics of JavaScript, Go-style syntax and static types. Its main feature is goroutines: go f(x) runs a function as a… - [Compatibility in 1.x](reference/language/compatibility/index.md): Rook follows Semantic Versioning. A 1.x minor release can add backward-compatible features. A patch release can fix bugs. Changes that break the public… - [Principles](reference/language/principles/index.md): Principles. Syntax, runtime behavior and examples in the Rook technical reference. - [Lexical structure](reference/language/lexical-structure/index.md): // to the end of the line and / block /. - [Variables](reference/language/variables/index.md): A const cannot be reassigned; the compiler checks that. - [Types](reference/language/types/index.md): The type goes after the name, without a colon: x number, xs string[], cb func(number) bool, user ?User. - [Functions](reference/language/functions/index.md): Adjacent parameters of the same type can be grouped: a, b number is the same as a number, b number. - [Concurrency](reference/language/concurrency/index.md): JavaScript runs a program in one thread. Rook keeps that thread for waiting and gives the work that keeps a processor busy to other threads, with the means… - [Conditions and loops](reference/language/control-flow/index.md): No parentheses around the condition, braces are required. The condition must be a bool: unlike JS, there is no truthy/falsy. if count { is an error, write if… - [Errors](reference/language/errors/index.md): Expected errors (wrong input, a file not found) are returned as the last value, of type error: - [Classes](reference/language/classes/index.md): Classes as in JS and TypeScript, with Go-style types. Methods are declared without func, like methods of JS classes. - [Interfaces](reference/language/interfaces/index.md): An interface describes the shape of a value: its fields and methods. As in TS, it exists only at compile time. - [Modules](reference/language/modules/index.md): Imports and exports become ES modules one to one; export interface and export type disappear at compile time. - [Operators: differences from JS](reference/language/operators/index.md): The rest is as in JS: arithmetic, comparisons, bitwise operations, , ??, ?., ? :, typeof, instanceof, new, spread ..., indexing xs[i]. - [Type checking](reference/language/type-checking/index.md): The compiler checks types before generating JS; a program with type errors does not compile (rook build --no-check skips the check). - [Example](reference/language/hello-world/index.md): examples/hello.rk - [After 1.0](reference/language/future/index.md): Planned next, around goroutines and what the browser has: ## Components on the server — design - [Components on the server — design](reference/server/index.md): Components on the server — design. Syntax, runtime behavior and examples in the Rook technical reference. - [Goals](reference/server/server-goals/index.md): Goals. Syntax, runtime behavior and examples in the Rook technical reference. - [Turning it on](reference/server/server-config/index.md): The mode of markup is a setting of the package, as markup itself is: - [Markup as HTML](reference/server/html-markup/index.md): Markup as HTML. Syntax, runtime behavior and examples in the Rook technical reference. - [Components of the server](reference/server/server-components/index.md): A component deep in the tree may decide that there is no page at all: a redirect to the login, a 404, a 403. It returns a Response, and when a Response is… - [Children: Content](reference/server/server-children/index.md): A component that wraps others, a middleware, decides whether they run at all. So the children of a component of the server are lazy: they are rendered only… - [Components as values](reference/server/server-component-values/index.md): The type of a component value writes its result after the properties, as the type of a function does; without it, it is Html: - [Hooks on the server](reference/server/server-hooks/index.md): A server component calls a module-local hook with const task = useTask(id). The compiler inlines the hook at the call site in the async component function.… - [Decorators on the server](reference/server/server-decorators/index.md): Decorators keep what they are in the browser: state and functions of their own, public members, context, includes, a wrapper. On the server their body may… - [Request context](reference/server/request-context/index.md): The request, the user who is signed in, the connection to the database for this request: deep components need them, and passing them through every property… - [The entry point](reference/server/server-entry-point/index.md): The root of the tree is a component that takes the request. rooklang/server connects it to a server: - [Routes](reference/server/routes/index.md): route of rooklang/server ties a path to a page. The parameters of the path are the properties of the page, and the compiler checks them against each other: - [Example: the pieces of a framework](reference/server/server-framework/index.md): The router, the middleware and the access checks below are ordinary Rook code; a framework would put such pieces into a library. - [How it compiles](reference/server/server-codegen/index.md): Every component of the server is a function of its properties and the context; markup is a template string. The names inside are internal, as for the… - [What the compiler has for it](reference/server/server-compiler/index.md): What the compiler has for it. Syntax, runtime behavior and examples in the Rook technical reference. - [Stages](reference/server/server-stages/index.md): Stages. Syntax, runtime behavior and examples in the Rook technical reference. - [Decisions](reference/server/server-decisions/index.md): Decisions. Syntax, runtime behavior and examples in the Rook technical reference. - [Not decided yet](reference/server/server-open-questions/index.md): Not decided yet. Syntax, runtime behavior and examples in the Rook technical reference. ## Optional - [Full documentation](llms-full.txt) - [Русский](ru/llms.txt)