objeck/objeck-lang
Über uns
Object-oriented and functional language with a JIT-compiled VM for AMD64 and ARM64, built-in ML, NLP, computer-vision and LLM libraries, and a browser playground. Small, cross-platform and fast.
KI und maschinelles LernenWhat you can do
- Inheritance, interfaces, generics
- Type inference and boxing
- Reflection and dependency injection
- See OOP examples →
Gemessener Sternzuwachs
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- +1
- in 1 month
- Verlauf wird gesammelt
Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.
README.md
Original
An agentic language and runtime
Tools, agents, MCP and local models are built in. Object-oriented, functional and fast.
Try it online · Download · Quick start · Libraries · Documentation · Discussions
An agentic language and runtime
A function is a tool, a program is an MCP server, and an agent is a loop with limits. A doc comment with @tool is the whole declaration; the schema comes from the types.
use API.MCP, Data.JSON;
class Tools {
#~
Greet a person.
@tool
@readonly
@param name who to greet
~#
function : Greet(name : String) ~ String {
return "Hello, {$name}";
}
function : Main(args : String[]) ~ Nil {
server := McpService->New("greeter", "1.0.0");
Tools->McpTools(server);
client := McpClient->InProcess(server);
client->Initialize("demo", "1.0");
each(tool in client->ListTools()) {
"{$tool->GetName()}: {$tool->GetDescription()}"->PrintLine();
tool->GetInputSchema()->ToString()->PrintLine();
};
client->CallTool("greet", "{\"name\":\"Ada\"}")->GetText()->PrintLine();
}
}
$ obc -src tool.obs -lib gen_collect,json,net,net_server,cipher,misc,mcp
$ obr tool.obe
greet: Greet a person.
{"properties":{"name":{"description":"who to greet","type":"string"}},"required":["name"],"type":"object"}
Hello, Ada
Serve it to Claude Code, Claude Desktop or any MCP client with obr --mcp tool.obe. Then call servers through typed clients, run agents with budgets, cancel and approval, bound a block of code with AgentScope, and use local models through Ollama with no key. Every program on the Agents page was compiled and run; the output is what it printed.
Why Objeck?
Built for agents, and for modern development:
- 🤖 Agents built in:
@tool/@resource/@promptdeclarations,obr --mcpservers, typed MCP clients, budgets, cancel and approval,AgentScope, actors with supervision, telemetry - 🏠 Local or hosted models: Ollama (no key), Anthropic, OpenAI, Gemini, ONNX, OpenCV — no third-party packages
- 🚀 JIT-compiled for performance (ARM64/AMD64)
- 🌐 Network-complete: HTTP/1.1 · HTTP/2 · HTTP/3/QUIC · WebSocket · DTLS — all standard library
- 💻 Developer-friendly: REPL shell, LSP plugins for VSCode/Sublime/Kate, DAP debugger
- 🌍 Cross-platform: Linux, macOS, Windows (x64 + ARM64, including 64-bit Raspberry Pi)
- 🔧 Full-featured: Threads, generics, closures, reflection, serialization
Perfect for: AI/ML prototyping • Computer vision • Web services • Real-time applications • Game development
Try It Online
👉🏽 Playground — 42 demos across 10 categories, Monaco editor, no install required.
Quick Start
# Ubuntu and Debian: one package (-arm64 for ARM)
curl -LO https://github.com/objeck/objeck-lang/releases/download/v2026.11.4/objeck-ubuntu24.04-x64_2026.11.4.deb
sudo apt install ./objeck-ubuntu24.04-x64_2026.11.4.deb
# Other Linux (see Platform support below), or macOS: the archive
curl -LO https://github.com/objeck/objeck-lang/releases/download/v2026.11.4/objeck-linux-x64_2026.11.4.tgz
tar xzf objeck-linux-x64_2026.11.4.tgz
# Linux, optional: the system libraries the SDL2/OpenGL, OpenCV, ODBC and
# LAME bindings use. Everything else runs without it. --check only reports.
./objeck-lang/install_deps.sh
# Sets PATH and OBJECK_LIB_PATH for this shell. Source it, do not run it.
source ./objeck-lang/env.sh
# Hello World
echo 'class Hello {
function : Main(args : String[]) ~ Nil {
"Hello World"->PrintLine();
}
}' > hello.obs
# Compile and run (modern syntax)
obc hello && obr hello
📖 Full docs: objeck.org · 💡 Examples: github.com/objeck/objeck-lang/programs
Platform support
| Platform | Install with | Notes |
|---|---|---|
| Windows (x64, ARM64) | .msi or .zip |
Nothing else needed |
| macOS (Apple silicon) | .pkg, .tgz or .zip |
Nothing else needed |
| Ubuntu 22.04+, Debian 12+ (x64, ARM64) | .deb |
Nothing else needed |
| Other Linux (x64, ARM64) | .tgz |
glibc 2.28 or newer; nothing else needed |
Which Linux distributions, and what about v2026.11.3?
Since v2026.11.4 the Linux release is built against glibc 2.28 with mbedTLS and OpenCV linked in, so the compiler, VM, debugger and REPL need only the C and C++ runtime and zlib, which every distribution has. Each release is run on clean Ubuntu 22.04, 24.04 and 26.04, Debian 12 and 13, Fedora, Arch and AlmaLinux 8 before it is published (how). musl distributions such as Alpine are not supported.
Four bindings use libraries that stay the system's: SDL2 and OpenGL, GTK 3 and GStreamer (OpenCV windows and video), unixODBC, and LAME. A program that loads one without them stops with a message naming the missing library; ./objeck-lang/install_deps.sh installs them, and the .deb lists them as recommended packages.
v2026.11.3 and earlier were built on Ubuntu 24.04 and run only there: they need glibc 2.38 and that release's mbedTLS 2.28 and OpenCV 4.6, so obr does not start on Ubuntu 26.04, Debian, Fedora or Arch. Use v2026.11.4 or later on those.
Examples
Every program below was compiled and run; the output is what it printed. They are in
programs/examples/guides, with longer ones and a guide
for each topic. Libraries are named with -lib; obc does not pull in a library's own dependencies.
The language
Classes, virtual methods, a generic Vector, a closure and string formatting.
Program and output (readme_tour.obs)
use Collection;
class Shape {
@name : String;
New(name : String) {
@name := name;
}
method : virtual : public : Area() ~ Float;
method : public : Describe() ~ String {
return "{$@name}: area {$(Area()):.2}";
}
}
class Circle from Shape {
@radius : Float;
New(radius : Float) {
Parent("circle");
@radius := radius;
}
method : public : Area() ~ Float {
return Float->Pi() * @radius * @radius;
}
}
class Square from Shape {
@side : Float;
New(side : Float) {
Parent("square");
@side := side;
}
method : public : Area() ~ Float {
return @side * @side;
}
}
class Tour {
function : Main(args : String[]) ~ Nil {
shapes := Vector->New()<Shape>;
shapes->AddBack(Circle->New(1.5));
shapes->AddBack(Square->New(2.0));
each(i : shapes) {
shapes->Get(i)->Describe()->PrintLine();
};
# a function that returns a function (the closure remembers `factor`)
triple := Scaler(3);
"triple(14) = {$(triple(14))}"->PrintLine();
}
function : Scaler(factor : Int) ~ (Int) ~ Int {
return \(Int) ~ Int : (x) => x * factor;
}
}
$ obc -src readme_tour.obs
$ obr readme_tour.obe
circle: area 7.07
square: area 4.00
triple(14) = 42
A database in your program
Query.Structured runs SQL over typed in-memory tables, files and archives. A bad query is a message, not a crash. Guide
Program and output (readme_query.obs)
use Query.Structured;
class Sales {
function : Main(args : String[]) ~ Nil {
sales := Table->New("sales", ["region", "item", "qty", "price"]);
Add(sales, "east", "widget", 10, 2.5);
Add(sales, "west", "gadget", 4, 10.0);
Add(sales, "east", "gadget", 3, 10.0);
Add(sales, "west", "widget", 7, 2.5);
result := sales->Query("select region, sum(qty * price) as revenue from sales group by region order by revenue desc");
result->ToCsv()->Print();
if(sales->Query("select nothing from sales") = Nil) {
sales->GetError()->PrintLine();
};
}
function : Add(table : Table, region : String, item : String, qty : Int, price : Float) ~ Nil {
row := table->Insert();
row->Set("region", region);
row->Set("item", item);
row->Set("qty", IntRef->New(qty));
row->Set("price", FloatRef->New(price));
}
}
$ obc -src readme_query.obs -lib query,misc,net,json,regex,xml,csv,cipher
$ obr readme_query.obe
region,revenue
west,57.5
east,55.0
unknown column 'nothing'
JSON
Parse, read typed values, build, and tell when the text is not JSON. Guide
Program and output (readme_json.obs)
use Data.JSON;
class Json {
function : Main(args : String[]) ~ Nil {
root := JsonParser->TextToElement("{\"name\": \"Ada\", \"langs\": [\"en\", \"fr\"], \"age\": 36}");
name := root->Get("name")->GetString();
age := root->Get("age")->GetInt();
langs := root->Get("langs")->Size();
"{$name} is {$age} and speaks {$langs} languages"->PrintLine();
doc := JsonElement->New(JsonElement->JsonType->OBJECT);
doc->Insert("ok", true);
doc->Insert("count", 3);
doc->ToString()->PrintLine();
broken := JsonParser->TextToElement("{\"name\": ");
"broken text parses to Nil: {$(broken = Nil)}"->PrintLine();
}
}
$ obc -src readme_json.obs -lib json
$ obr readme_json.obe
Ada is 36 and speaks 2 languages
{"count":3,"ok":true}
broken text parses to Nil: true
Regular expressions
Find, capture, replace. A pattern the engine cannot accept is not OK and matches nothing. Guide
Program and output (readme_regex.obs)
use Query.RegEx;
class Dates {
function : Main(args : String[]) ~ Nil {
text := "shipped 2026-10-31, patched 2026-11-02";
found := RegEx->New("(\\d{4})-(\\d{2})-(\\d{2})")->Find(text);
each(i : found) {
date := found->Get(i);
"{$(date->GetValue())} is month {$(date->GetGroup(2))}"->PrintLine();
};
hidden := RegEx->New("\\d")->ReplaceAll("call 555-0199", "#");
hidden->PrintLine();
bad := RegEx->New("a{2,1}");
"a{2,1} is a valid pattern: {$(bad->IsOk())}"->PrintLine();
}
}
$ obc -src readme_regex.obs -lib regex
$ obr readme_regex.obe
2026-10-31 is month 10
2026-11-02 is month 11
call ###-####
a{2,1} is a valid pattern: false
Collections
A Hash to count, a Map to report in key order. Guide and choosing a collection
Program and output (readme_collections.obs)
use Collection;
class Words {
function : Main(args : String[]) ~ Nil {
counts := Hash->New()<String, IntRef>;
words := "the cat and the hat and the bat"->Split(" ");
each(i : words) {
seen := counts->Find(words[i]);
if(seen = Nil) {
counts->Insert(words[i], IntRef->New(1));
}
else {
seen->Set(seen->Get() + 1);
};
};
ordered := Map->New()<String, IntRef>;
pairs := counts->GetKeyValues();
each(i : pairs) {
ordered->Insert(pairs->Get(i)->GetFirst(), pairs->Get(i)->GetSecond());
};
entries := ordered->GetKeyValues();
each(i : entries) {
"{$(entries->Get(i)->GetFirst())}: {$(entries->Get(i)->GetSecond()->Get())}"->PrintLine();
};
}
}
$ obc -src readme_collections.obs
$ obr readme_collections.obe
and: 2
bat: 1
cat: 1
hat: 1
the: 3
A web server and a client
A one-route server, a request to it, and a clean stop. Guide
Program and output (readme_http.obs)
use System.Concurrency;
use Web.HTTP.Server;
class Greeter from HttpRequestHandler {
New() {
Parent();
}
method : ProcessGet(request : Request, response : Response) ~ Bool {
name := request->GetParam("name");
if(name = Nil) {
name := "world";
};
response->SetCodeTypeContent(200, "text/plain", "Hello, {$name}!");
return false;
}
method : ProcessPost(request : Request, response : Response) ~ Bool {
response->SetCodeContent(405, "Method not allowed");
return false;
}
}
class HelloWeb {
function : Main(args : String[]) ~ Nil {
# Serve() blocks, so it runs on a thread; port 0 means any free port
server := Thread->New() {
New() {
Parent();
}
method : public : Run(arg : System.Base) ~ Nil {
WebServer->Serve(Greeter->New()->GetClass(), "127.0.0.1", 0);
}
};
server->Execute(Nil);
while(WebServer->GetBoundPort() = 0) {
Thread->Sleep(25);
};
port := WebServer->GetBoundPort();
client := Web.HTTP.HttpClient->New();
response := client->Get(Web.HTTP.Url->New("http://127.0.0.1:{$port}/hello?name=Ada"));
"{$(response->GetCode())} {$(response->GetContent()->ToString())}"->PrintLine();
WebServer->Stop();
}
}
$ obc -src readme_http.obs -lib net,net_server,json,cipher
$ obr readme_http.obe
200 Hello, Ada!
Game search
Describe a game once; Minimax and MonteCarloTreeSearch choose moves. Guide
Program and output (readme_ai.obs)
use System.AI;
class Nim implements GameState {
@stones : Int;
@a_to_move : Bool;
New(stones : Int, a_to_move : Bool) {
@stones := stones;
@a_to_move := a_to_move;
}
method : public : GetMoves() ~ Int[] {
count := @stones < 3 ? @stones : 3;
moves := Int->New[count];
each(i : count) {
moves[i] := i + 1;
};
return moves;
}
method : public : Apply(move : Int) ~ GameState {
return Nim->New(@stones - move, <>@a_to_move);
}
method : public : IsTerminal() ~ Bool {
return @stones = 0;
}
# +1 when player A took the last stone, -1 when B did
method : public : Evaluate() ~ Float {
if(@stones > 0) {
return 0.0;
};
return @a_to_move ? -1.0 : 1.0;
}
method : public : IsMaximizing() ~ Bool {
return @a_to_move;
}
}
class Play {
function : Main(args : String[]) ~ Nil {
state := Nim->New(10, true)->As(GameState);
"Minimax takes {$(Minimax->New(12)->FindBestMove(state))} of 10 stones"->PrintLine();
"Monte Carlo takes {$(MonteCarloTreeSearch->New(2000, 1.414, 7)->FindBestMove(state))} of 10 stones"->PrintLine();
}
}
$ obc -src readme_ai.obs -lib ai
$ obr readme_ai.obe
Minimax takes 2 of 10 stones
Monte Carlo takes 2 of 10 stones
More: all the guides, the 53 numbered programs in programs/deploy that ship with every release, and what is new in v2026.11.4.
What's New
Full details for every release are in the CHANGELOG.
v2026.11.4 ✅
- A toolkit for AI agents —
API.Agentis a provider-neutral tool-use loop for Claude, OpenAI, Gemini and Ollama with cancellation, budgets, bounded tool calls and a trace;mcpis a Model Context Protocol server and client over stdio and streamable HTTP;System.Actoradds actors with supervision; andllm_util,ragandSystem.Telemetryadd prompt templates and JSON Schema checks, a retrieval-augmented generation kit and inference timing, all in Objeck. - Functions become MCP tools — a
@tool,@resourceor@promptline in a function's doc comment is the whole declaration: the compiler writes the name, the JSON Schema and the argument checks.obr --mcp prog.obeserves it on standard input and output andobr --mcp-http=8080 prog.obeover HTTP.mcp_stubswrites a typed client and--checkfails the build when a server's tools change, and the@readonlyand@destructivehints tell an agent which calls to ask about. See the MCP walkthrough. - Scoped agent limits —
AgentScope->Run(scope, Work() ~ Nil)applies one step, token, tool-call and time budget, a cancel switch and a trace to every agent run in the block; a run that finds nothing left is not started. - Agents and prompts as syntax —
agent Name(parameters) { backend : ...; instructions : ...; tools : ...; budget { steps : 8; } }declares an agent in one place,prompt "Summarise {text} in {count : Int} bullets."is a prompt whose holes the compiler checks, andclass Weather : json { ... }turns a model's answer into a typed object. - Smaller programs —
json{"n": 3, "tags": [a, b]}and{"a": 1, "b": 2}literals,matchandselectas values (an enummatchmust cover the enum),if(value is Type name),x := E ?? return V;,spawn { ... }for a thread,using(w := E) { ... }andassert E : "label";, type arguments inferred where a generic class is constructed, and a method reference writtenClass->Function. - Behavior changes to check — a postfix update in a loop condition (
while(i-- > 0)) now takes effect right after the test, as in C and Java;Char[]reads store whole characters;SymbolicLink->Locationreturns aString; a unary-before a parenthesis negates only the parenthesis (-(2) + xwas-(2 + x)) and-x->Abs()on a name makes the call before the negation; bitwisenottakes only its own operand; a Float operand ofand,or,xor,<<or>>is a compile error; the right operand of a binary operator is evaluated first; the WebSocket clients refuse a reply that is not a valid RFC 6455 handshake;.obeand.oblfiles made by an earlier build of 2026.11.4 must be rebuilt. The CHANGELOG has the details and examples. - A stricter loader — the VM refuses a program file whose operand stack, traps, function values or classes are not what the compiler wrote (a file changed after it was compiled), and a library whose magic number is from an earlier build. The security model lists what this does and does not cover.
- Agents on a local model —
OllamaBackendruns the same agent loop on a model served by Ollama (tried withqwen3:8b): no API key, and no data leaves the machine. Requires a local Ollama server. See Local models with Ollama. - OpenAI tool calls —
Completion->CompleteWithToolssends atoolsarray to Chat Completions andChoice->GetToolCalls()returns the calls the model asked for, so the OpenAI client takes part in the same tool loop as the other providers. - Boosting and forecasting —
System.ML.Boostis gradient boosting (regressor and classifier, early stopping, feature importances) andSystem.ML.TimeSeriesis forecasting (imputation, differencing, ACF, an ADF test, exponential smoothing), both in pure Objeck. - ONNX on the GPU —
DeviceTensorandBoundSessionkeep tensors in the provider's memory (ResNet-34, batch 32, RTX 4090: 48.9 ms perSession->Run, 6.1 ms with the data resident),ep=tensorrtadds an engine cache and CUDA graphs,Half,BFloat16andQuantizationconvert exactly for FP16 and INT8 models, and an inference no longer holds up the garbage collector or a session shared by threads. - Editor support — the language server offers inline completion (off by default, local-first),
inlineValue,linkedEditingRange,onTypeFormatting,willRenameFilesand variable semantic tokens, andobd --dapaddsstepInTargets,goto,cancel,disassembleand theinvalidatedandprogressevents, halts a running program ondisconnect, and verifies breakpoints against the program. - Time limits for HTTP —
HttpClientandHttpsClienttakeSetConnectTimeout,SetReadTimeoutandSetDeadline(connect, handshake, reads, redirects and retries), where before a server that dribbled one byte at a time could keep a request alive indefinitely. - A thread's error need not end the process —
--thread-faults=isolate(orOBJECK_THREAD_FAULTS=isolate) ends only the thread that raised an uncaught error, prints its stack, releases its locks and lets the others run. - Safer secrets — the OpenAI, Gemini and Anthropic clients refuse the API key while
OBJECK_TLS_INSECURE_SKIP_VERIFYis set, andCipher.Encrypt->AES256writes AES-256-GCM with a PBKDF2 key and a random salt and nonce (the old format is still read, and is no longer produced). - Input and files —
Console->ReadLinereturnsNilat the end of input, andFilerecords I/O errors (IsOK(),GetLastError(),ClearError()) instead of ignoring them. - Faster generated code — the Linux x64 JIT keeps
Floatloop locals in registers, the ARM64 JIT pins loop locals in callee-saved registers, more methods are JIT-compiled instead of interpreted, the optimizer folds integer identities and uses a control-flow graph for loop-invariant code motion and dead stores, andobcresolves names about 27% faster. - Compiler and runtime fixes —
String->New(Byte[])no longer reads past the array, a method chain on a parenthesised calculation keeps every call, a local declared without a value in a loop starts empty each iteration, dead-store elimination keeps a store a handler reads, loop-invariant code motion no longer hoists an observable store, function references to method ids of 32768 or more work, threads making the first call of one long-running method no longer run it 20x slower, and an ARM64 hang on the minimumIntis gone. - Library fixes —
KNearestNeighbors->Query, boundedLevenshteinDistanceand the threadedVectorIndexsearch are corrected at their edges,SentimentAnalyzer,View->ToJson,Table->Saveand the Gemini and JSON-schema parsers no longer carry a previous value into the next, and aNilcollection lookup reports not-found. - Build and release —
core/lib/*.oblare rebuilt from source and compared in CI,docs/api.zipand the Windowsobjeck.rcfiles are generated instead of committed, andtools/hpc/alderaanruns Objeck on a Slurm cluster without root. - Fourteen AI examples —
mcp_32.obstoagent_scope_45.obsship with every release and run offline with no key or model: an MCP server and client, an agent loop, agent run control, a supervised actor, retrieval with citations, structured output with retry, telemetry, a forecast, and the@tool,@resource, typed-client, approval andobr --mcpexamples. - A new objeck.org — a dark-first design with new navigation, Learn, Start, Libraries and Community pages, and code samples that a CI check compiles and runs.
- Steadier tests and CI — the nightly differential run no longer sees timings on stdout, the CodeQL steps move to 4.39.4 together, and the Windows build legs have a 90-minute cap.
A function is an MCP tool, and obr --mcp serves it (programs/examples/guides/mcp_tool.obs; more):
#~
Count the words in a text.
@tool
@readonly
~#
function : CountWords(text : String) ~ Int { ... }
$ obr --mcp mcp_tool.obe # one JSON-RPC message per line on standard input
{"id":2,"jsonrpc":"2.0","result":{"content":[{"text":"3","type":"text"}],"isError":false}}
AgentScope limits every agent run in a block (agent_scope_45.obs): scope := AgentScope->New()->SetMaxSteps(2); AgentScope->Run(scope, Questions() ~ Nil); ran question 1 to completed and left questions 2 and 3 with budget_steps and no model call.
The same agent loop on a model on your own machine (requires a local Ollama server; agent_local.obs):
agent := Agent->New(OllamaBackend->New("qwen3:8b"), registry);
agent->SetBudget(AgentBudget->New()->SetMaxSteps(6)->SetMaxWallMs(120000));
result := agent->Run("What is 17 plus 25? Use the add tool.");
# answer: The sum of 17 and 25 is **42**.
v2026.11.3 ✅
- Regular expressions are 4.5 to 27 times faster —
RegExfinds where the longest match ends with a lazily built DFA, one table lookup per character, and skips start positions that cannot begin a match. On 680 KB of text a class-first search went from 0.55 s to 0.043 s and an alternation with a group from 0.99 s to 0.09 s. Patterns with\bor\B, or that need more than 1,024 states, run on the NFA as before; capture groups are unchanged. ARegExcan now be shared by threads (matching on one instance is serialized). - RegEx bugs fixed —
{n}was read as{n,}, soa{2}matchedaaa; it now means exactly n, and{n,}is accepted.ReplaceAllmatched against text it had already rewritten (\bxonxxwith-gave--); it now works in one pass over the original.^a,^a+,^a$and^$were rejected; they compile. Unknown letter or digit escapes, including the backreference\1, were silently read as the literal character; they and a trailing backslash are now an error. - Parallel vector search —
VectorIndex->SetThreads(n)splits a search over a large index into n parts on their own threads and merges them in the same order a single scan uses, so ids, scores and ties are identical. 100,000 vectors of 128 values, L2, top 10: 66 queries/s on one thread, 315 on sixteen. - Nearest neighbors and edit distance —
KNearestNeighbors->Querykeeps the best k in a heap in one pass instead of building and sorting an object per row: 200 queries over 50,000 rows of 16 values took 15.1 s and now take 0.057 s (13 to 3,506 queries/s). A k below 1 or a Nil query returns no neighbors instead of ending with an allocation error.TextSimilarity->LevenshteinDistancekeeps two rows instead of the full matrix (20,000 pairs: 0.68 s to 0.12 s), and a newLevenshteinDistance(a, b, max_distance)stops at a ceiling;SpellChecker->Suggestuses it. - Nine new collection types and sturdier collections —
Deque,MultiSet,UnionFind,Trie,OrderedHash,BiMap,PriorityMap(with decrease-key),FenwickTreeandBloomFilterjoin the collections library, with one shared merge sort forVectorandCompareVector,Vectorinsert, slice and add-all, doubling growth, and aStackthat no longer crashes near 500,000 entries. ANilkey or value lookup now reports not-found instead of ending the program. Thirteen new regression tests cover them. - Library workloads are measured —
docs/performance.mdhas a new Library workloads section with the regex, vector search, nearest-neighbor, edit-distance, string and JSON timings behind these numbers, and what it did not measure.
v2026.11.2
- A long linked chain no longer crashes the VM — a
List,Queue,CompareListor linkedStackof about 500,000 or more nodes exited with code 127, because marking recursed once per node and overflowed the collector thread's native stack; marking now uses a bounded per-thread work stack, and a 2-million-node chain passes with and without the JIT (binarytreesis unchanged) - Sorting and strings are faster — the
VectorandCompareVectormerge sorts skip a merge when the halves are already in order (500,000 sorted elements: about 500 ms to 80 ms, random input unchanged, still stable), andString->Append(String)copies strings of 32 or more characters in one block (1,000-character pieces: 1,660 ms to 292 ms) - Faster image loading for convolutional networks —
System.ML.Cnndecodes a batch of images on several native threads and prefetches the next one, so training no longer waits on the JPEG decoder (decoding 10,000 face images: 1,107 images/s on one thread, 5,236 on eight; a 20,000-image epoch on an RTX 4090: about 30 to 34 s, now 9.1 s), with bit-identical results - Result tables for a study that arrives over time —
ResultTablehas scientific, p-value (<0.0001) and integer number formats, andSystem.ML.Reporthas a safe CSV loader, CSV tables, placeholders that readnot run yet, figure slots and a run-status table - OpenAI output cap — the Responses API now gets
max_output_tokensand Chat Completionsmax_completion_tokens; before, the cap was sent under a name the endpoint ignored - One command finishes a release —
tools/cicd/release_finish.shwaits for the build, signs the installers (unattended from a DPAPI-protected password file, or at one prompt), deploys the playground and the site, and runs the release gates; the site deploy script targets the new server - Topic stability is a distribution —
docs/AI.mdexplains how to readTopicMetrics->Stability(about 1.0 when two seeds find the same optimum, 0.67 to 0.8 when one merged two topics), measured against Gensim over 15 seed pairs
Downloads
Latest Release: v2026.11.4
| Platform | Architecture | Download |
|---|---|---|
| Windows | x64 | MSI Installer / ZIP |
| Windows | ARM64 | MSI Installer / ZIP |
| Linux | x64 | DEB (Ubuntu, Debian) / TGZ Archive |
| Linux | ARM64 | DEB (Ubuntu, Debian) / TGZ Archive |
| macOS | ARM64 | TGZ Archive |
| LSP | All platforms | ZIP Archive |
📦 Alternative: Sourceforge • 📚 API Docs: objeck.org/api/latest
Note: Windows installers are signed and timestamped (
CN=Randy Hollines, Sectigo); the macOS.pkgis signed and notarized. Signing uses a hardware token and therefore happens locally after publication, so verify rather than assume —Get-AuthenticodeSignature <file>.msireportsValidonly when it really is signed. Check any download against the release'sSHA256SUMS, which is regenerated after signing. Builds are automated on GitHub Actions runners.
Verifying a download
Every release ships SHA256SUMS and an Ed25519 signature over it,
SHA256SUMS.minisig. Download both beside the archive:
obu verify objeck-linux-x64_<VERSION>.tgz SHA256SUMS
obu checks the signature before it reads a line of the manifest, and refuses a
manifest it cannot verify. Exit codes are distinct on purpose: 0 matches, 1
does not match, 2 could not be checked.
The manifest matters because it is served from the same place as the assets it describes — anyone able to replace an archive could replace the manifest to match. The Linux and macOS archives carry no platform signature at all, so for those it is the only integrity claim there is. The signature is what an attacker cannot reproduce.
The release public key, for checking out of band — with minisign, or against
what obu reports:
untrusted comment: minisign public key 8237C6B17C7EA6B9
RWS5pn58scY3gv7X3EL/fJaOQli1V0HDwwFVt+2IWqPXBxvE4U1UhxHC
Key ID 8237C6B17C7EA6B9. The same key is committed at
core/release/objeck-release.pub and served,
independently of this repository, from
https://www.objeck.org/objeck-release.pub. A key you can only obtain from
the thing you are trying to verify proves nothing, which is why it is in more
than one place. Check that they agree:
curl -sS https://www.objeck.org/objeck-release.pub | sha256sum
# 864c6a9951a539ec356520dbeca4f97ec7a5fc9f4fd31d881f659f59bf7a6c04
That digest is of the whole 113-byte file, both lines, newline included. The
site serves it as plain text. Design and
key-rotation procedure: docs/release_integrity.md.
See It In Action
HTTP/2 Client
use Web.HTTP;
# Persistent connection — multiple requests share one TLS session
client := Http2Client->New("httpbin.org");
resp := client->Get("/get");
"Status: {$resp->GetCode()}"->PrintLine(); # Status: 200
body := "{\"lang\":\"objeck\"}"->ToByteArray();
resp2 := client->Post("/post", body, "application/json");
client->Close();
# One-liner for quick requests
resp := Http2Client->QuickGet(Url->New("https://httpbin.org/get"));
HTTP/3 / QUIC Client
use Web.HTTP;
# QUIC over UDP — zero round-trip connection on repeat visits
client := Http3Client->New("quic.nginx.org");
resp := client->Get("/");
"Status: {$resp->GetCode()}"->PrintLine(); # Status: 200
client->Close();
# One-liner
resp := Http3Client->QuickGet(Url->New("https://quic.nginx.org/"));
AI Integration
# OpenAI Realtime API - get text AND audio
response := Realtime->Respond("How many James Bond movies?",
"gpt-4o-realtime-preview", token);
text := response->GetFirst();
audio := response->GetSecond();
Mixer->PlayPcm(audio->Get(), 22050, AudioFormat->SDL_AUDIO_S16LSB, 1);
Face Recognition
# SCRFD detector + ArcFace R50 embeddings (InsightFace buffalo_l)
session := FaceSession->New("det_10g.onnx", "w600k_r50.onnx");
r1 := session->Recognize(img1_bytes, 0.5);
r2 := session->Recognize(img2_bytes, 0.5);
faces1 := r1->GetResults(); faces2 := r2->GetResults();
sim := FaceSession->Compare(faces1[0]->GetEmbedding(), faces2[0]->GetEmbedding());
"Same person: {$(sim > 0.35)}"->PrintLine();
Computer Vision
# OpenCV: grayscale, blur and edge detection
image := Image->Load("photo.jpg");
gray := image->CvtColor(ColorConversionCodes->BGR2GRAY);
edges := gray->GaussianBlur(5, 5, 0.0)->Canny(50, 150);
edges->Save("edges.jpg");
Natural Language Processing
# Sentiment analysis and TF-IDF
text := "This product is absolutely wonderful!";
sentiment := SentimentAnalyzer->Classify(text); # "positive"
# Train TF-IDF on documents
docs := ["cats are pets", "dogs are pets", "birds can fly"];
tfidf := TF_IDF->New();
tfidf->Fit(docs);
vector := tfidf->Transform("cats and dogs"); # [0.47, 0.0, 0.47, ...]
Language Features
Object-Oriented
- Inheritance, interfaces, generics
- Type inference and boxing
- Reflection and dependency injection
- See OOP examples →
Functional
- Closures and lambda expressions
- First-class functions
- See functional examples →
Strings & Formatting
- Interpolation with expressions:
"{$i + 1}","{$obj->M()}" - Format specifiers:
"{$pi:.2}","{$n:05}","{$v:x}" - Positional templates:
String->Format("{0} = {1}", a, b) - See string features →
Platform Support
- Unicode, file I/O, sockets, named pipes
- Threading with mutexes
- See platform features →
Libraries
AI & Machine Learning — 📖 AI Developer Guide · GitHub source · 🤖 Getting Models
- OpenAI — chat, vision, realtime audio, image generation, embeddings, moderation, batch
- Gemini — chat, vision, search grounding, files, context caching, batch embeddings
- Anthropic — Claude chat with system prompts, tool use, streaming and structured output; tested against recorded responses and a local mock server, not the live API
- LLM utilities — prompt templates, offline token estimates, a context window, JSON Schema validation, and structured calls that retry with the validation errors; works with every client above, tested with no network or key
- Agent — provider-neutral tool-use loop: hand a chat model Objeck functions as tools (schema-checked, with allow/deny lists and an approval callback) and get the final answer; adapters for Anthropic, OpenAI, Gemini and Ollama; tested offline against a scripted model and recorded bodies
- Actor — actors with supervision for multi-agent programs: mailboxes with backpressure, monitors, links,
Callwith a timeout, supervisors (one-for-one, one-for-all, rest-for-one, restart intensity); supervisesAPI.Agentagents throughactor_agents; recovers from catchable errors only, not from VM faults - MCP — Model Context Protocol server (stdio and streamable HTTP) and client: tools, resources, prompts, cancellation and progress, and a bridge that hands a server's tools to the Claude, OpenAI and Gemini clients; tested against a scripted Python client, not against Claude Desktop
- RAG kit — retrieval-augmented generation: chunking, a local vector index, grounded prompts with [n] citations and a pipeline; runs offline, with adapters for BERT, Ollama, OpenAI, Gemini and Anthropic
- Ollama — local LLM chat, vision, and embeddings; recommended models:
llama3.2,phi3,llava(get models →) - LLM evaluation — measure how well any model writes Objeck (or answers any task with a checkable result): a 40-task suite with verified reference solutions, N attempts per task compiled and run by the real compiler, compile rate, pass@k, error categories and a paired-bootstrap comparison of two models; the harness itself is tested against scripted models, no key needed
- NLP — tokenization, TF-IDF, text similarity, sentiment analysis
- OpenCV — computer vision: detection, transforms, video
- ONNX Runtime — local ML inference: YOLO, ResNet, DeepLab, OpenPose, Phi-3, face recognition (get models →, model reference)
- Telemetry — per-model, per-device inference timing on a monotonic clock, bounded-memory latency percentiles, host, collector and GPU samplers, an energy estimate, saved profiles and a contention helper (
-lib telemetry,gen_collect,json) - Face Recognition — SCRFD detector + ArcFace R50 (InsightFace buffalo_l)
- Phi-3 / Phi-3 Vision — local SLM text and multimodal inference
Web & Networking
- HTTP/1.1 server/client, OAuth
- HTTP/2 — multiplexed TLS client via nghttp2
- HTTP/3 / QUIC — UDP-based client; ngtcp2 + nghttp3 on Linux/macOS, WinHTTP over MsQuic on Windows 11+
- RSS
Data
- JSON (hierarchical + streaming), XML, CSV
- SQL/ODBC, In-memory queries
- Collections
Graphics & Gaming
- 3D Graphics (OpenGL) — OpenGL 3.3 core: shaders, meshes, textures, cameras, lighting, shadows (setup & examples →)
- 2D Gaming (SDL)
Other
Architecture
One compiler front end serves obc and the language server; the VM interprets, then JIT-compiles hot methods for AMD64 and ARM64; libraries reach SDL2, ONNX Runtime, OpenCV, mbedTLS and more through native modules. More diagrams.
Development
Modern tooling and practices:
- 🤖 Claude Code for pair programming, debugging, and refactoring
- 🔄 CI/CD: Fully automated build, test, sign, and release pipeline (GitHub Actions)
- ✅ Every push triggers multi-platform builds (Windows, Linux, macOS)
- ✅ macOS installers signed and notarized in CI (Windows signing is a local step — hardware token)
- ✅ One-tag releases:
git tag v2026.2.1→ automated distribution in 60 minutes - ✅ Parallel builds across 5 platforms (Windows x64/ARM64, Linux x64/ARM64, macOS ARM64)
- 📖 Release Process Documentation • CI/CD Architecture • System Architecture
- 🔍 Quality: CodeQL security scanning + gitleaks secret scanning
- 🧪 Testing: a regression suite of more than 1,200 tests (the count is in programs/regression/TESTS.md; many of them check that a bad program is refused), run on all five platforms twice (as is and with every method JIT-compiled on its first call)
- Regression suite:
programs/regression/, the gate for every pull request (TESTS.md lists each test) - How a release is tested and reviewed: How Objeck is tested covers the five platforms, independent model and fuzzer review and a public review ledger; the plan itself is the Release test plan
- Fuzzers, verifiers and nightly stress runs: see Testing and assurance
- Examples: 53 programs in
programs/deploy, compiled by CI and, where they need no key, display or network, run and compared with their stated output
- Regression suite:
Editor Support:
- LSP plugins for VSCode, Sublime, Kate, Neovim, Emacs, Helix, and more
- REPL for interactive development
- API docs at objeck.org
📚 Testing Documentation • 🔬 How Objeck is tested • 📋 Release test plan • 🧪 Regression Tests • 📊 Performance & Benchmarks
Resources
- 📖 Documentation
- 🏗️ Architecture — a one-page toolchain diagram, plus Mermaid diagrams of the compiler, VM, JIT, libraries and CI/CD
- 🎯 Examples
- 💬 Discussions
- 🐛 Issues
Ähnliche Projekte entdecken
Wird geladen…