User

91 pages. Start reading →

For programmers and operators. SDBasic, TCL, the VOC, dictionaries, the file system, and the client API.

Page Description Source
Copyright and licenseWho wrote this set, how it is licensed, and what the license lets you do with it.00a-copyright-and-licence.md
SD Core for Linux - Introduction and Getting StartedWhat a multivalue database is, what SD is, the four components, and your first session.00b-sd-introduction.md
SD Basic - Program StructurePrograms, subroutines and functions; variables, matrices, common blocks and how a program is called.01-sd-basic-program-structure.md
SD Basic - Program ControlConditions, loops, jumps, and handing control to another program or to the command processor.02-sd-basic-program-control.md
SD Basic - Math FunctionsArithmetic, division and remainders, rounding, powers, trigonometry and random numbers.03-sd-basic-math-functions.md
SD Basic - Numeric Tests and FormattingReducing arrays to a number, testing what is numeric, bit operations, checksums and print formatting.03a-sd-basic-numeric-tests-and-formatting.md
SD Basic - String FunctionsMeasuring, finding, extracting, trimming, building and changing the case of text.04-sd-basic-string-functions.md
SD Basic - String Matching and ReplacingReplacing, wrapping, comparing, pattern matching, quoting and phonetic matching.04a-sd-basic-string-matching.md
SD Basic - Dynamic ArraysFields, values and subvalues - reading, changing and searching the structure that holds every SD record.05-sd-basic-dynamic-arrays.md
SD Basic - Operating on Whole ArraysWalking an array, changing the mark level, the s functions, sorting and mark mapping.05a-sd-basic-array-operations.md
SD Basic - Data CollectionsStructured values with named elements and arrays, held in a variable, nested as deeply as you like, and written to a file as JSON.05b-sd-basic-data-collections.md
SD Basic - JSON and Collection FilesTurning a collection into JSON text and back, keeping collections in files, and joining a record that another record points to.05c-sd-basic-json-and-collection-files.md
SD Basic - XMLReading an XML document into a collection, looking in it with XPath, and writing one back.05d-sd-basic-xml.md
SD Basic - Data ConversionDates, times, numbers and text between the form SD stores and the form people read.06-sd-basic-data-conversion.md
SD Basic - Encrypting DataA key from a passphrase, encrypted fields, and a conversion that shows them decrypted.06a-sd-basic-encryption.md
SD Basic - File HandlingOpening files, reading and writing records, locking, and transactions.07-sd-basic-file-handling.md
SD BASIC - File Handling: Locking and Asking About a FileLocks, transactions, asking about a file, and creating and configuring.07a-sd-basic-locking-and-asking-about-a-file.md
SD Basic - Select ListsBuilding, walking, saving and combining lists of record ids.08-sd-basic-select-lists.md
SD Basic - Alternate Key IndexesBuilding an index on a field, selecting through it, and the three steps that report success while doing nothing useful.09-sd-basic-alternate-key-indexes.md
SD Basic - Sequential FilesReading and writing ordinary operating-system files a line or a block at a time.10-sd-basic-sequential-files.md
SD Basic - CSV FilesReading and writing comma-separated data without hand-rolling the quoting.11-sd-basic-csv-files.md
SD Basic - Terminal Input and OutputWriting to the screen, reading from the keyboard, and positioning the cursor.12-sd-basic-terminal-input-and-output.md
SD Basic - The Screen StatementMenus, dialogs, forms, color and the mouse, from BASIC.12a-sd-basic-the-screen-statement.md
SD BASIC - The SCREEN Statement: FormsForms and the widgets that go on them.12b-sd-basic-the-screen-statement-forms.md
SD BASIC - The SCREEN Statement: Tabs, Tables and ContainersTabs, the text area, the table, the tree, the scroll bar, and containers and viewports.12c-sd-basic-the-screen-statement-widgets.md
SD BASIC - The SCREEN Statement: Running a Form, Styles and the MouseRunning a form, events, styles and themes, borders and the mouse.12d-sd-basic-the-screen-statement-events-and-styles.md
SD Basic - PrintingPrint units, headings and page breaks, and sending output somewhere other than the screen.13-sd-basic-printing.md
SD Basic - Locks and TransactionsKeeping two sessions out of each other's way, and making several writes all-or-nothing.14-sd-basic-locks-and-transactions.md
SD Basic - SocketsTalking TCP from SD BASIC, as a client and as a server.15-sd-basic-sockets.md
SD Basic - System and EnvironmentAsking SD about itself, about the machine, and about the session you are in.16-sd-basic-system-and-environment.md
SD Basic - Status, Encryption and the MachineStatus codes, checksums, encryption, the file mask, the @variables, os.execute and the error log.16a-sd-basic-status-and-the-machine.md
SD Basic - DebuggingStopping a program where you want it, and looking at what it thinks is true.17-sd-basic-debugging.md
SD BASIC - Debugging: The Full-screen DebuggerThe debugger on the full screen and line by line, asking the AI, and pdump.17a-sd-basic-debugging-full-screen-and-ai.md
SD Basic - Modern Program StructureScope, local subroutines and functions, class modules and objects — writing SD BASIC the way you would write anything else.18-sd-basic-modern-program-structure.md
SD TCL - The Command ProcessorHow a command line is read, what the VOC does with it, and how sentences and paragraphs run.19-sd-tcl-command-processor.md
SD TCL - The Command StackRecalling and re-running commands, the @variables, and the session verbs.19a-sd-tcl-the-command-stack.md
SD TCL - Files and RecordsMaking, configuring and removing files; copying, renaming, deleting and dumping the records inside them.20-sd-tcl-files-and-records.md
SD TCL - Files and Records: Comparing, Triggers and ImportingComparing files, copying operating system files, triggers, file.stat, and moving data in and out.20-sd-tcl-files-and-records-2-comparing-triggers-and-import.md
SD TCL - Data Collection FilesA file whose records are collections: describing their elements in the dictionary, and listing, selecting, indexing, copying and editing them from the command prompt.20a-sd-tcl-collection-files.md
SD TCL - The Query ProcessorChoosing records, sorting them, and printing a report, without writing a program.21-sd-tcl-query-processor.md
SD TCL - The Query Processor: Headings, Totals and OutputHeadings and footings, totals and breaks, and CSV, XML and JSON reports.21a-sd-tcl-query-processor-headings-and-output.md
SD TCL - Select ListsChoosing a set of records once and then using it, saving it, and combining it with another.22-sd-tcl-select-lists.md
SD TCL - Alternate Key IndexesIndexing a field so records can be found by its contents, and the step that is easy to skip.23-sd-tcl-alternate-key-indexes.md
SD TCL - Programs and the CatalogCompiling SD BASIC, running it, and giving it a name you can type.24-sd-tcl-programs-and-the-catalogue.md
Programs: find.program, Dictionaries and the IDEfind.program, formatting source, dictionaries, named common blocks and the opening of ide.24a-sd-tcl-find-program-dictionaries-and-the-ide.md
Programs: The IDE's KeysThe keys and menus of ide.24b-sd-tcl-the-ide-keys.md
Programs: The IDE and Other Files, Tabs and OptionsCollection files, locks, operating system files, indenting, the options record.24c-sd-tcl-the-ide-other-files-and-options.md
Programs: The IDE's Zoom, Fields View and Dictionary ItemsCtrl-E, F12, dictionary items as a form and records with marks.24d-sd-tcl-the-ide-zoom-fields-and-dictionary-items.md
Programs: The IDE's AI Line, Recovery and WindowThe AI in the IDE, recovery copies and the window, and debug and generate.24e-sd-tcl-the-ide-ai-and-the-window.md
SD TCL - The ed Line EditorThe editor that runs inside SD, needs no terminal, and can be driven from a script.25-sd-tcl-ed.md
SD TCL - The micro Screen EditorThe capable one — SD BASIC highlighting, a command bar, split windows and a help screen.27-sd-tcl-micro.md
SD TCL - The SED Screen EditorSED is the editor of the IDE, by itself: no files pane, the same keys and the same menus.27a-sd-tcl-sed.md
SD TCL - The CED Data Collection EditorA full-screen editor for a record that is a data collection — one level at a time, with the type of every element shown.27b-sd-tcl-ced.md
SD TCL - Printing and SpoolingPrint units at the command prompt, keeping a job open, and capturing a session instead of printing it.28-sd-tcl-printing-and-spooling.md
SD TCL - The Terminal and the SessionScreen size, terminal behavior, silence, the inactivity timer, and writing to the error log.29-sd-tcl-the-terminal-and-the-session.md
SD TCL - The Terminal and the Session: Timers, Dates and LoggingThe bell, the inactivity timer, echo, dates, currency, and command logging.29-sd-tcl-the-terminal-and-the-session-2-timers-dates-and-logging.md
SD TCL - The Home ScreenA start screen of tiles that every account can open: its tools, a terminal, switch account and sign out.29a-sd-tcl-the-home-screen.md
SD TCL - The Home Screen: my.menu and the AI LineYour own programs, the Recent group, sub-menus and the AI line.29a-sd-tcl-the-home-screen-2-my-menu-and-the-ai-line.md
SD TCL - Asking the AIOne question to the AI your administrator has chosen, after you have seen what will be sent.29b-sd-tcl-asking-the-ai.md
SD TCL - The Development ToolsFull-screen pages for the work in your own account: its files, and the verbs that make and change them.29c-sd-tcl-the-development-tools.md
SD TCL - The Development Tools: tool.dictThe dictionary of a file: its items, what each one shows, and its indices.29c1-sd-tcl-tool-dict.md
SD TCL - The Development Tools: tool.queryThe query and report builder: a list, sort, count or sum sentence built in five boxes, run and saved.29c2-sd-tcl-tool-query.md
SD TCL - The Development Tools: tool.bulkA bulk update of one data file: a dry run first, then apply, and undo.29c3-sd-tcl-tool-bulk.md
SD TCL - The Development Tools: tool.catalog and tool.testThe programs of the account and their catalogs, and the account's tests.29c4-sd-tcl-tool-catalog-and-tool-test.md
SD TCL - Using the Full-Screen PagesHow to move around, choose, answer and get help on every full-screen page of SD: one set of keys for all of them.29d-sd-tcl-using-the-full-screen-pages.md
SD TCL - Moving Files In and OutBringing a text file into your account, and taking one out, with an sftp program over your usual login.29e-sd-tcl-moving-files-in-and-out.md
SD TCL - Processes and PhantomsSeeing what a session is doing, running work in the background, and taking a snapshot of a running program.30-sd-tcl-processes-and-phantoms.md
SD TCL - LocksThe two kinds of lock, giving back the ones your session holds, and what you cannot do without an administrator.31-sd-tcl-locks.md
SD VOC - Structure and UsageThe Vocabulary file: all ten record types, and every field of each one.32-sd-voc-structure-and-usage.md
SD VOC - Using and Managing the VOCHow the command processor reads the VOC, the verbs that manage it, and what account creation puts there.32a-sd-voc-in-use.md
SD VOC - A Private Vocabulary and Your Own Record TypesThe two optional VOC records $private.voc and $voc.parser: where SD looks for a command that the VOC does not hold, and what it does with a VOC record whose type it does not know.32b-sd-voc-private-vocabulary-and-parser.md
SD Dictionaries - StructureThe dictionary file: every record type, and every field of each one.33-sd-dicts-structure.md
SD Dictionaries - Using and CreatingHow the query processor reads a dictionary, the system dictionaries, and creating one.33a-sd-dicts-in-use.md
SD Dictionaries - Conversions and FormattingEvery conversion code SD recognizes, and what each one does to a stored value.34-sd-dicts-conversions.md
SD Dictionaries - Formats and ExpressionsFormat specifications, I-type expressions, correlatives, and chaining conversions.34a-sd-dicts-formats-and-expressions.md
SD File System ConceptsThe two file types, group structure, overflow, on-disk layout, and how the hash algorithm works.35-sd-file-system.md
SD Standard SubroutinesThe cataloged names beginning with !, which of them an application may use, and how each is called.36-sd-standard-subroutines.md
SD Client APIThe sdclilib client library, its functions across eight language bindings, and the server status codes.37-sd-client-api.md
SD Client API: Select Lists to Error HandlingThe rest of the function reference: select lists, the server, dictionary items, sequential files, packages and errors.37-sd-client-api-2-select-lists-and-the-rest.md
Embedded PythonThe CPython interpreter built into SD, the dictionary, list and string objects it exposes, and the twenty-one cataloged functions that reach it from BASIC.37a-sd-basic-python-integration.md
SD Client API: Language BindingsThe headers for eight languages, and what the API cannot do.37b-sd-client-api-bindings.md
SD GlossaryTerms used in SD Core for Linux documentation, from account to VOC.38-sd-glossary.md
SD Terminal Information (Terminfo)The terminfo database, the definitions that ship, and the compiler that ships with them.39-sd-terminfo.md
SD Programming 101A tutorial with worked example programs - lessons 1 to 6, from hello world to reading a file with a select list.40-sd-programming-tutorial.md
SD Programming 101 - Routines and an ApplicationLessons 7 to 10: subroutines, functions, error handling, and a small application put together.40a-sd-programming-tutorial-routines.md
SD Example ProgramsThe file examples.bp you load into your account: the TUI guide's five pages and a first course in programming, compiled and ready to run.40b-sd-example-programs.md
SD and AI Agents: the Guide, the Knowledge Pack and the SkillWhat an AI agent is given to work in SD, how it is kept true, and the one rule that does not bend: the gates are walls.41-sd-ai-agent-pack.md
Programming with a Remote FileWhat a program can do with a file on another SD server, and what it is told when it is refused.42-sd-programming-with-a-remote-file.md
Programming with a Remote File: Administering and IndicesAdministering a remote file, indices, the cache, ids and a program that tells the refusals apart.42a-sd-programming-with-a-remote-file-administering.md
SD Basic - SyntaxEvery statement and function, alphabetically, with its syntax and nothing else.94-sd-basic-syntax.md
SD TCL - SyntaxEvery verb you can type, alphabetically, with its syntax and nothing else.95-sd-tcl-syntax.md