v2026.11.32026-11-23
Objeck Language v2026.11.3 主打库性能:正则表达式提速 4.5 至 27 倍,同时修掉四个 bug——包括 a{2} 会匹配 aaa 的问题({n} 之前被误读为 {n,}),ReplaceAll 拿已改写文本去匹配、^a 等锚点被拒收、未知转义(含反向引用 \1)静默当字面量等。RegEx 现在可跨线程共享,匹配时内部串行。
向量检索支持多线程:VectorIndex->SetThreads(n) 并行切分搜索并按单线程顺序合并,结果完全一致,16 线程下 10 万条 128 维向量的查询吞吐从 66 提到 315 次/秒。最近邻与编辑距离也大幅提速:KNearestNeighbors->Query 用堆维护 top-k,5 万行 200 次查询从 15.1 秒降到 0.057 秒;TextSimilarity->LevenshteinDistance 快 5.8 倍,并新增带上限的 LevenshteinDistance(a, b, max_distance),SpellChecker->Suggest 已改用它。
集合库新增 Deque、MultiSet、UnionFind、Trie、OrderedHash、BiMap、PriorityMap(支持 decrease-key)、FenwickTree、BloomFilter 九种类型;Vector 与 CompareVector 共用归并排序,扩容改为翻倍,Stack 在 50 万条附近不再崩溃,Nil 键值查找改为报 not-found 而非终止程序。性能数据见 docs/performance.md 的 Library workloads 一节。
v2026.11.22026-11-22
Objeck 语言 v2026.11.2 发布,提供 Windows、Linux、macOS 三平台构建,覆盖 x64 与 ARM64 架构,另有便携版压缩包和用于 IDE 集成的 LSP 下载。
macOS 用户注意:.pkg 和 .zip 均已通过 Apple 公证,是官方推荐的下载方式。本次同时发布了一个 .tgz,仅为让旧版 obu 工具能继续自更新,但它无法公证,会被 macOS 隔离并拒绝运行,如需使用请手动清除隔离标记:xattr -dr com.apple.quarantine objeck-lang。
签名方面暂无保证:Windows 安装包的签名流程失败时不会中断构建,因此可能拿到未签名的安装包,触发「未知发布者」警告。下载后可用 Get-AuthenticodeSignature <file>.msi 确认状态,显示 Valid 才是真正签过名的。所有下载请对照随版本发布的 SHA256SUMS 校验。
v2026.11.12026-11-21
Objeck 语言 v2026.11.1 发布,提供 Windows、Linux、macOS 三平台安装包,覆盖 x64 与 ARM64 架构,另有便携版和 LSP 语言服务器供 IDE 集成使用。
macOS 用户注意:.zip 已通过 Apple 公证,.pkg 与之并列为官方下载;本次额外发布的 .tgz 仅供旧版 obu 自更新使用,未经过公证,会被 macOS 隔离并拒绝运行,如需使用须手动执行 xattr -dr com.apple.quarantine objeck-lang 清除隔离标记。
Windows 安装包的代码签名不作保证——签名失败时构建仍会继续,因此安装包可能未签名,系统会提示发布者未知。可用 Get-AuthenticodeSignature <file>.msi 确认状态,返回 Valid 才算真正签名。所有下载均可对照随附的 SHA256SUMS 校验。
v2026.11.02026-11-09
Objeck v2026.11.0 是一版围绕「服务端」的更新:Web.HTTP.Server 经过加固,已能承载完整站点,objeck.org 现在就由 Objeck 自己托管。为此进行的六小时发布浸泡测试还揪出并修复了两个内存泄漏——一个跨平台存在,一个只在 Windows 上出现。
升级注意:库文件带有工具链版本标记,用旧版本编译的程序或库会被拒绝并提示,需用本版重新编译。
主要变化:StaticFiles 支持按扩展名白名单提供内容类型、目录默认页、ETag 与条件请求(304)、文本 gzip 与大文件 Range(206/416),并拒绝点文件、非 ASCII 文件名和目录列表;programs/examples/site_obs.obs 用约 160 行实现了一个完整服务器。请求整体设有超时,慢速滴灌头部的客户端无法再占住连接;任何写法的 .. 路径一律返回 400;Request.GetHeader 改为大小写不敏感;TLS 握手移出 TCPSecureSocketServer->Accept,单个静默连接不再阻塞所有客户端。tools/security 提供 93 条恶意请求的黑盒测试,全部通过。
长跑服务器不再每连接泄漏一个线程:连接线程此前从未 join,纯 HTTP 路径还会额外起一个未 join 的线程,每连接约 11 KB 和四个内存映射,约 16000 个连接后耗尽系统映射上限;现在处理逻辑跑在连接线程内,由回收器统一 join。Windows 上 join 后的线程句柄也会被关闭(3000 个线程从 3101 个句柄降到 110 个),新增 runtime.process.handles 属性可查看句柄数。
此外,六小时浸泡测试在 Linux 和 Windows 上并行跑站点服务器、回归套件、GC 压力测试与模糊测试,触及资源上限即失败;线程栈增加溢出检查,Coverity 两批问题已修,五个平台由同一脚本在同一提交上验证。objeck.org 也换了新外观:极光夜色主题、左侧汉堡菜单配居中大 logo、Powered by Objeck 徽章,性能数据按本版重新实测。
v2026.10.32026-11-03
Objeck Language v2026.10.3是一次安全加固版。垃圾回收器现在能精确识别x64与ARM64编译代码中哪些字是引用,Int[]也有了独立堆标记,数值恰好等于对象地址的Int不会再被误改写。加载器经过数亿次模糊测试,并在运行前校验跳转目标以及类、方法、字段、本地变量和trap编号。编译器致命错误与库加载失败改为返回错误而非终止宿主进程,语言服务器因此不会再被打断。HttpClient复用普通HTTP连接,大量请求不再耗尽Windows端口。OpenAI、Gemini、net、JSON、XML、RegEx等库修复了请求失败、空回复或文件缺失时解引用Nil的崩溃,RegEx的重复次数被加上上限,Collection.Pair排序恢复正常。语言服务器在编辑后分析更快,调试器输出更完整、消息有序且支持暂停。另附SDL2示例、Query、HTTP、JSON/XML/RegEx等入门文档,以及objeck.org上的在线文档。
升级需注意:.obe和.obl文件格式已变更,须用本工具链重新编译程序并重建自建库,旧版本产物会被拒绝加载。
v2026.10.22026-11-01
Objeck v2026.10.2
Query.Structured becomes a columnar database in the standard library, the collector stops rewriting integers that look like addresses, and the runtime allocates and collects in proportion to live data.
What's new
Query.Structured, a columnar database — SQL with joins, grouping, indexes and expressions over typed in-memory tables. Every column is a typed array with a null bitmap, text is dictionary-encoded, and 65,536-row groups carry zone maps so a filter skips what it cannot match. Queries return views with nothing copied, prepared statements take ? placeholders, and a method-chaining API (Col("value")->Gt(0.5)) sits beside SQL.
Files, URLs and sources are tables — a quoted path in FROM or JOIN is read by its extension (.csv, .tsv, .json, .jsonl, .xml, .otab, each also .gz), an http(s) path goes through a download cache revalidated with ETag and Last-Modified, and sources read CSV, JSON, XML, text logs with capture groups, filesystems, zip and tar archives, Excel workbooks, ODBC databases, System.ML results and image detections. TableServer publishes a table over HTTP and RemoteSource queries it as a local one.
The .otab file and indexes — a crash-safe columnar format (every block and the footer carry a CRC32, a save renames into place), read over HTTP range requests as well as from disk. Hash and sorted indexes serve equality, IN, ranges and ORDER BY, and a differential test holds their results equal to a scan's.
Interpreted code no longer has an Int rewritten by a collection (#1466, #1470, #1478, #1452) — a minor collection treated every operand-stack word that looked like a young object's address as a reference, so an Int that equalled one changed value. The VM now computes a reference map for each method, and interpreted frames skip the words the maps prove are Int or Float. Typing stops above any frame that compiled code sits under; compiled frames are planned for the next release. OBJECKGCROOTS=conservative restores the old behavior and OBJECKGCROOTS=audit checks the maps against the live stacks.
Allocation and collection follow the live heap — the old generation no longer searches a free list (the first read of a 4,000-row text column went from about 1 s to 0.023 s), and the major-collection threshold is twice the live heap (binarytrees 18 from 13.9 s and 353 MB to 10.0 s and 273 MB). Collection.Hash is open addressing and no longer aborts the VM when keys of different classes collide, with unboxed IntVector, FloatVector, IntMap and BitSet beside it. Calls nest 16,384 frames deep (--call-depth takes 256 to 1,048,576).
Networking and security — DTLS works for the first time; every socket failure says why; servers take IPv4 and IPv6 clients on every platform or bind one address; TLS reads time out on a quiet peer. A redirect to another host or port no longer receives the caller's Authorization, Proxy-Authorization or cookies, and API.OpenAI and API.Google send their tokens this way.
Hugging Face models without Python — TextClassifier opens a model folder and classifies text with token ids and scores matching Python, and HubClient downloads a model by name into a cache that checks every file's size and SHA-256. HttpClient->GetToFile streams a download of any size.
Windows handles non-ASCII text — file names, arguments, environment variables, library paths and certificate loads no longer pass UTF-8 bytes to an ANSI API.
Also — blocking I/O parks for the collector, a conditional's value survives another thread's collection, JIT fixes, name resolution, numeric literal and array literal fixes in the compiler, System.ML kernel SVMs, outlier detectors and BERT embeddings, Data.JSON and Data.CSV conformance, a language server about twice as fast per edit, and 32 new shipped examples in learning order.
> Known issues: on Windows, a burst of local connections can stall one for about 21 seconds (#1443, #1461); the same loss reproduces between plain Python sockets, and the cause is under investigation. A compiled -opt s3 method can keep a dead object alive until it returns; nothing is freed while in use.
>
> Upgrading: every .obl is a new format (magic 0xffb9): rebuild your own libraries. An .obe compiled by an earlier release is refused; recompile the source. A v2026.10.1 obu run from an install directory with a non-ASCII name crashes before doing anything, so that install must be upgraded by hand.
The whole toolchain on one page: architecture diagram. Full detail in CHANGELOG.md.
Verifying this download
Every release ships SHA256SUMS and an Ed25519 signature over it, SHA256SUMS.minisig. Download both beside the archive:
``
obu verify objeck-linux-x64_2026.10.2.tgz SHA256SUMS
`
obu checks the signature before reading a line of the manifest, so a substituted manifest is refused rather than trusted. The public key is key ID 8237C6B17C7EA6B9, published at <https://www.objeck.org/objeck-release.pub> and committed at core/release/objeck-release.pub. Compare them; they should be identical.
Windows installers are signed with a hardware token after publication, so verify rather than assume — Get-AuthenticodeSignature <file>.msi reports Valid only when it really is signed. The macOS .pkg is signed and notarized.
Installation
Windows — objeck-windows-x642026.10.2.msi or objeck-windows-arm642026.10.2.msi; the .zip files are portable.
macOS (Apple Silicon) — objeck-macos-arm64_2026.10.2.pkg, signed and notarized. The .tgz and .zip are portable.
Ubuntu 24.04 (and Linux Mint 22, Pop!OS 24.04) — sudo apt install ./objeck-ubuntu24.04-x642026.10.2.deb, or objeck-ubuntu24.04-arm64_2026.10.2.deb on ARM.
Other Linux — extract objeck-linux-x642026.10.2.tgz or objeck-linux-arm642026.10.2.tgz and add bin to your PATH.
Language server — objeck-lsp_2026.10.2.zip`, for VS Code, Sublime and gvim.
v2026.10.12026-10-21
Objeck v2026.10.1在语言层面改动不小。错误处理换成结构化模型:System.Error及子类用Raise抛出、try/on/finally按类型捕获,运行时自身的故障(NilError、IndexError等)也成了可恢复的错误,断言或库调用失败不再直接终止程序。命名参数允许打乱顺序、跳过有默认值的参数;方法级泛型可从实参推断并校验约束,Vector、List新增了Map<R>;ref引用参数近似Swift的inout,调用点同样要标注。数组字面量现在能写表达式,并支持T[][]锯齿数组。
语言服务器按LSP 3.1
v2026.10.02026-10-12
Objeck v2026.10.0
Try() inside compiled code, any ONNX model behind one interface, signed releases.
What's new
Try() recovers from an error raised inside compiled code (#925) — whether a guarded chain recovered or ended the program used to depend on how many times the failing method had been called, because an error raised inside a JIT-compiled method could not reach the handler. The same program, run twice, could do either. Three things stood in the way and all three are closed: the handler stack is per-thread, so the JIT callback that raises a failing cast can see it; the callback reports a status instead of exiting; and a compiled method calling a compiled method that fails now carries the status outward one frame at a time instead of printing and exiting. Compiled recursion that overruns the native C stack stays fatal — the process dies in the OS with no frame left to report from.
One interface over both inference backends (#1062, #1051, #1047) — API.Onnx runs a model in-process, API.Inference sends it to a model server, and API.Models holds the Tensor and Engine they share, so calling code names a backend once instead of at every call site. The same ResNet-34 through both paths agrees to 0.000005 across 1,000 logits with identical top-1. Any ONNX model can now be run, not only the eight with a hand-written wrapper.
> Upgrading: programs using API.Onnx or API.Inference must add -lib models and use API.Models. Library dependencies are not transitive in Objeck, so this is a compile error until the -lib list is updated — including for programs that never mention a tensor.
Releases ship a signed manifest, and the key is published out of band (#723) — SHA256SUMS sits beside the assets it describes, so anyone able to replace an asset could replace the manifest to match. There is now an Ed25519 signature, obu refuses a manifest it cannot verify, and the public key is served from <https://www.objeck.org/objeck-release.pub> as well as committed here — a key obtainable only from the thing you are verifying proves nothing. A weekly job checks the two still match.
A recovered ?-> compares correctly against Nil (#1067) — if(x?->y() = Nil) took the wrong branch once the failing method was hot, while the same value read through a local was right in every mode. So the idiom ?-> exists for was the one that broke, and only after warm-up, which means a program could behave correctly in testing and wrongly in production.
obu's install lock no longer follows a symbolic link (#1075) — anything able to write to the install root could plant a symlink at .obu.lock and obu would follow it, creating the target. Nothing is written through that descriptor, so the reach was unexpected file creation rather than disclosure, and it needed an install root writable by someone other than the user running obu.
A program could compile to an infinite loop at the default optimization level (#1037) — the s3 inliner advanced its label offset only when the same method was inlined twice, so two different helpers containing the same construct shared a label space and the second body's jump resolved to the first. Correct at every lower level, and unaffected by disabling the JIT.
System.ML can evaluate a classifier under a false-positive budget, end to end — out-of-fold scores, metrics at a chosen threshold, bootstrap confidence intervals and per-group recall, without hand-written glue.
linux-arm64 ships libobjkonnx for the first time** (#1048) — API.Onnx was simply unavailable there because only an x86-64 ONNX Runtime was vendored.
Full detail in CHANGELOG.md.
Verifying this download
Every release ships SHA256SUMS and an Ed25519 signature over it, SHA256SUMS.minisig. Download both beside the archive:
``
obu verify objeck-linux-x64_2026.10.0.tgz SHA256SUMS
`
obu checks the signature before reading a line of the manifest, so a substituted manifest is refused rather than trusted. The public key is key ID 8237C6B17C7EA6B9, published at <https://www.objeck.org/objeck-release.pub> and committed at core/release/objeck-release.pub. Compare them; they should be identical.
Windows installers are signed with a hardware token after publication, so verify rather than assume — Get-AuthenticodeSignature <file>.msi reports Valid only when it really is signed. The macOS .pkg is signed and notarized.
Installation
Windows — objeck-windows-x642026.10.0.msi or objeck-windows-arm642026.10.0.msi; the .zip files are portable.
macOS (Apple Silicon) — objeck-macos-arm64_2026.10.0.pkg, signed and notarized. The .tgz and .zip are portable.
Linux — extract objeck-linux-x642026.10.0.tgz or objeck-linux-arm642026.10.0.tgz and add bin to your PATH.
Language server — objeck-lsp_2026.10.0.zip`, for VS Code, Sublime and gvim.
v2026.9.72026-09-29
v2026.9.7:监督分类打通了端到端流程。CrossValidation->Evaluate统一到ScoreModel接口,FeatureScaler、TableEncoder只在训练集上学习统计量再套用到测试集,堵住了测试分布泄漏进结果的漏洞;StratifiedKFold按种子保持每折类别比例。新增RecallAtFpr、AucRoc、AveragePrecision等基于分数而非二值判定的指标,以及DecisionTreeClassifier、RandomForestClassifier等直接切分连续特征的分类器,免去分位数分箱这道工序。同时修复三处Bool[]返回值误用(与Nil比较编译不过、下标多读几字节、New[src]返回源数组而非副本),以及Windows上含NaN的比较恒为true的问题——VM以/fp:fast编译,amd64 JIT判等时漏了区分相等与无序的奇偶标志,导致同一程序在Linux和macOS上答案不同。另有十九处库除法遇到普通输入会直接中止VM,现改为抛运行时错误;GC老生代改用开放寻址,Windows binarytrees由2.392秒降至1.789秒。命令行侧新增obu verify校验归档完整性,obu update遇文件被杀软占用改为重试,工具链版本报错指明哪一侧过期,obc直接提示缺哪个-lib条目,@web等库组修复后可在参数列表任意位置展开,详见docs/cli_options.md。
v2026.9.62026-09-20
**A correctness release for the machine-learning library and for the two places Objeck
runs code that are not obr: the REPL and the embedding API.** System.ML returned wrong
numbers on fractional data, grouped points into empty clusters, and stopped the program
on shapes it could not combine rather than saying so. obi and embedded programs used
HTTP/1.1 without mentioning it, and on ARM64 obi aborted at the end of every run. Two
crashes that only ARM64 machines ever saw are fixed, one of them in the collector.
Bug Fixes
- API.OpenAI's text Respond always returned Nil, and every image call sent its request as text (#901): the text path posted the request and never read the reply, so the call was billed and answered with nothing. Separately, each image entry point passed its arguments in the text implementation's order, which is the only one they fit, so the picture was never sent; one of them also dropped the caller's tools. A CI check now compiles the library and follows every call an image entry point makes
- obi and the embedding API had neither HTTP/2 nor HTTP/3 (#897): both run code through the module build, a separate compilation of the VM sources with its own macros and link line, and it never got the flags or the libraries obr has. Code evaluated in the REPL or embedded in a C++ program quietly used HTTP/1.1. Every CI leg now runs one program under both and fails if they disagree
- obi aborted on Linux ARM64 with "double free or corruption" (#897): the new parity check found it, and the cause predated the check. The ARM64 makefiles built the REPL's module with -DX64 and its VM without -DMODULE, so the two halves disagreed about the layout of NativeCode and StackProgram: teardown read one object's field as another's and handed free() a pointer that was never on the heap
- obi never exited when its input ended (#917): piping a program into the REPL, or closing its input, left it running forever, because the input loops did not treat a failed read as end of input
- A Nil element in a String[] crashed the VM inside a native library (#896): APITools_GetStringsValues built a string from the null pointer it is handed for an unset element. ONNX session options and DeepLab labels reach it
- ONNX refused an empty image instead of crashing (#908)
- The compiler released a library file buffer with the wrong deallocator (#918): ~Library freed with delete[] memory that malloc had provided. Harmless in practice, undefined behaviour under a sanitizer or a custom allocator
- Try() recovers from an invalid cast and from a full call stack (#900): both ended the program even inside a guarded chain, unlike every other runtime error. ObjInstCast printed and exited without consulting the handler stack, and PushFrame's overflow path was a bare exit; a compiled callee's guard-stub status ended the program too. All three now recover when a handler is active, so a?->b() yields Nil and the call stack is usable again. Inside JIT-compiled code both remain fatal: a failing cast is raised in a callback that cannot reach the handler stack, and compiled recursion overruns the native stack first
- The collector could corrupt a class's closure-declaration map (#913): StackClass::GetClosureDeclarations looked the id up with operator[], which inserts a default entry when the id is absent. The collector calls it from its marking threads for every FUNC_PARM it walks, so two threads could insert into the same std::map at once and leave its tree inconsistent. Nothing failed at the time; the program crashed later at exit, in ~StackClass, walking that map. It is a lookup now
- Matrix2D->SumColumn and AverageColumn dropped fractions, so LinearSolver's R-squared was wrong on fractional data (#903): both started their accumulator as an Int (sum := 0;), so every value added was truncated -- SumColumn of [1.25, 2.5] returned 3, not 3.75. LinearSolver takes the mean of y from AverageColumn, so a fit whose true R-squared is 0.9 reported 0.924. Both accumulators are Float now; mlcolumnsum_fractions.obs covers the sums and the R-squared
- KMeans->Group returned empty groups, and GetDunnIndex then divided by zero (#903): Group filed each record under the label of its nearest centroid, but rebuilt centroid i from the i-th entry of its groups hash table, whose order need not match the labels'. When it did not, the centroids traded places on every pass and never converged, and a pass that moved them also cleared every group, so reaching the iteration cap returned them all empty -- four points in two tight pairs grouped 2/2 with the labels ["a", "b"] and 0/0 with ["b", "a"], and the three-cluster sample programs/tests/prgm301.obs crashed reading an empty group. Each centroid now follows its own label, and every pass reassigns the records from the current centroids. GetDunnIndex divides the smallest distance between groups by the largest within one, which is 0 when every group is empty or has a single record; it returns 0.0 there now, so a degenerate grouping never wins a comparison between clusterings. mlkmeansgroups.obs covers both label orders, a one-iteration cap and both degenerate cases
- Matrix2D operations faulted on operands they could not combine, instead of returning Nil (#903): the native matrix code rejects a shape mismatch or an empty matrix by setting the result slot itself to Nil, and all 14 native-backed wrappers read their result back through that slot, so Matrix2D->DotProduct([[1.0, 2.0]], [[3.0, 4.0]]) died dereferencing Nil. Each wrapper now keeps its own reference to the result holder, and returns Nil. A Nil operand got past the two-matrix wrappers' m1 <> Nil | m2 <> Nil guard and crashed the native code with an access violation; the guard is & now, and the native code treats a Nil matrix as empty. Inverse of a non-square matrix never returned, because the native code ran Eigen's inverse() before checking the shape; it returns Nil now. NeuralNetwork->Train returns Nil when an input or target is not a column of the right height, where it used to fault inside the matrix code, and Confidence of a wrong-shaped query is 0.0. mlmatrixshape_mismatch.obs covers each case
- MatrixReader's documentation contradicted its code (#903): targetoffset is the number of target columns, taken from the end of each row, not the index of the first one; LoadMatrices reads only CRLF-terminated rows; and a header row is read as a record. The documentation says so now, and mlmatrixreadercolumns.obs pins the column split for both loaders
- Both NeuralNetwork samples could not load their CSV, and faulted instead of saying so (#916): MatrixReader reads rows through CsvTable, which splits on CRLF unless handed another ending, and LoadSplitMatrices defaults to CRLF. programs/deploy/neural_21.obs -- which is what a release ships -- and programs/frameworks/ml/nn6.obs both took that default while reading data/gender.csv, LF-terminated since the repository's line endings were normalized in April, so the load returned Nil and the next line died with ">>> Attempting to d