首页 > AI前沿 > scScript for Linux

scScript for Linux

Hacker News 2026-08-18 06:18 1 阅读 查看原文
scScript for Linux scScript is a powerful but simple to use C-like scripting language. It compiles to efficient bytecode (that it shows) and runs in a fast virtual machine. scScript is integrated with scEmacs, a small display editor for I/O. Everything is written in C, runs on 64-bit Linux, is easy to customize, port, extend, and embed! Go to Online Manual for a complete guide, or to see sample code (Intro 1). Go to Downloads to get sources for scScript (and scEmacs). The scScript language: Has familiar C-like syntax and operators. Provides simple pointer-less scripting with: 64-bit integer and double floats Immutable UTF-8 text strings Arrays that grow automatically Dictionaries (flexible assoc lists) External structures (3 flavors) Nested function declarations and first-class closures Variadic Pass-by-value and Pass-by-reference args Subordinate scripts 64-bit integer and double floats Immutable UTF-8 text strings Arrays that grow automatically Dictionaries (flexible assoc lists) External structures (3 flavors) Nested function declarations and first-class closures Variadic Pass-by-value and Pass-by-reference args Subordinate scripts Has stackful asym coroutines and non-local exits. Compiles to optimized bytecode running in a small VM. Can display line-by-line source AST and bytecodes. Optimizes tail call recursion (no stack frame). Uses Mark/Sweep GC as well as Ref Counting. Provides a powerful (text) pattern matching system. Readily interfaces to C routines for package libs. Employs slab-based low-level memory management. Only uses libx11 and libxft for scEmacs, plus libffi for printf interface. scEmacs is an integrated editor with: Multiple buffers, panes, and windows, Color source code display, UTF-8 text, Undo, Kill Ring, and Mark list, Incremental search, query replace, and auto completion, Mouse-based ops, scrolling, and even Unix Sel insert, Pop-up window/menu facility for enumeration/selection, Specialized commands to drive scScript.