Repository navigation
NEX 0.281.0 beta · language 0.30
Pre-releaseNEX SDK 0.281.0 beta
NEX stands for Neural Execution Language. A NEX program is checked by the compiler and runs as native code or, for supported web components, as TypeScript. A language model can ask the SDK for a symbol's dependencies, inspect an assertion failure, change the source and run the same tests as the developer.
New projects use source language 0.30. This beta adds an immutable hash map that iterates in insertion order. Overwriting a key keeps its position. Removing and reinserting it places it at the end. The SDK includes the module, examples, bounded lookup for its signatures and a reproducible compatibility check against the previous beta.
In a fresh project, nex context src/main.nex --kind brief --symbol app::main --json returns the entry function and its direct dependencies. In one Codex comparison, nine warehouse invoice repairs passed the same acceptance scenarios. Mean time per accepted repair was 25.69 s with NEX, 20.89 s with C++20 and 19.89 s with Python. NEX averaged 71,809 tokens, including 56,448 cached input tokens. Measurements for all three languages
On the release source, the CIX P1 ran 12 OpenCL GPU calls and eight Zhouyi NPU calls. The RK3588 ran 36 Mali-G610 OpenCL calls and 12 RKNN matrix multiplications. Both boards checked the results with CPU fallback disabled. On RK3588 the SDK ran inside a native Ubuntu 24.04 ARM64 container with direct device access.
Install and run your first program · Discover the language as an LLM · Versioning and proposed 1.0 compatibility · Metal measurements
NEX SDK 0.281.0 бета
NEX — Neural Execution Language, язык нейронного исполнения. Код проверяет компилятор. Приложение работает самостоятельно. Для правки в незнакомом проекте человек или LLM может запросить зависимости одной функции, увидеть фактические значения в упавшем тесте и проверить исправление из командной строки.
Новые проекты используют язык 0.30. В стандартной библиотеке появился неизменяемый словарь с порядком вставки. Предыдущие версии словаря доступны после изменения. SDK содержит описание функций для моделей, исполняемые примеры и команду проверки совместимости с предыдущей бетой.
В новом проекте команда nex context src/main.nex --kind brief --symbol app::main --json показывает функцию входа и её непосредственные зависимости. Codex трижды исправил одну ошибку складского биллинга на каждом языке. Все девять правок прошли приёмку. Среднее время составило 25,69 с для NEX, 20,89 с для C++20 и 19,89 с для Python. На NEX ушло в среднем 71 809 токенов, включая 56 448 из кэша. Замеры по каждому языку Условия совместимости 1.x вступят в силу с выпуском 1.0.
На исходниках беты плата CIX P1 выполнила 12 вызовов GPU через OpenCL и восемь вызовов NPU Zhouyi. На RK3588 проверены 36 запусков на Mali-G610 и 12 матричных умножений через RKNN. Переход на CPU был отключён. На RK3588 использовался нативный контейнер Ubuntu 24.04 ARM64 с прямым доступом к устройствам.
Скачать SDK и запустить первый проект · Язык 0.30 и ссылки на данные · Словарь с порядком вставки
Verified SDK downloads / Проверенные архивы SDK
| Target / Система | Source checks / Группы | SDK checks per installation / На установку |
|---|---|---|
| macos-arm64 | 390 | 43 |
| linux-arm64 | 383 | 43 |
| linux-amd64 | 383 | 43 |
| windows-x86_64 | 382 | 43 |
The first Windows relocation stopped while creating the test certificate. The HTTP/TLS test passed with the OpenSSL executable from the SDK. The final Windows archive uses that executable and ships the session DLL test from 0b2d79cbecea and the stream report writer from a204dc3a3cf4. Its compiler matches the initial build.
Первый прогон перенесённого SDK Windows остановился при создании тестового сертификата. С утилитой OpenSSL из SDK тест HTTP/TLS прошёл. В архиве Windows используются эта утилита, тест сеансов DLL из 0b2d79cbecea и модуль отчёта потокового ввода-вывода из a204dc3a3cf4. Компилятор совпадает с исходной сборкой.
The second relocation reached TCP and established a connection on IPv6 loopback. The final run tested positive IPv4 and IPv6 on both installations.
Во второй попытке перенесённый SDK дошёл до этапа TCP, где соединение по IPv6 loopback установилось. В окончательном прогоне на обеих установках проверен рабочий IPv4 и IPv6.
All four compilers were built from 584715e45d05be53e5a8eb967edcd4d5ab7fc1b5. The release tag selects eaf235de004072eccd268990be2492408b0d049c, which changes one source-only Windows test.
The initial Windows run passed 380 of 382 groups. On the same compiler the corrected diagnostics group passed 24 tests. The unmodified debugger group passed 38 LLDB and 6 DAP sessions on a separate run. The initial debugger timeout remains unexplained.
В первом прогоне Windows прошли 380 из 382 групп. На том же компиляторе исправленная группа диагностики прошла все 24 теста. Группа отладчика без изменений прошла 38 сеансов LLDB и 6 сеансов DAP в отдельном запуске. Причина исходного таймаута отладчика не установлена.
GPU execution from the released archives / Запуски GPU из архивов выпуска
| SDK | Device / Устройство | Programs / Программы | Completed kernels / Завершённые ядра |
|---|---|---|---|
| macOS Metal | Apple M5 Max | 3 | 14 |
| Windows CUDA | NVIDIA GeForce RTX 3090 | 3 | 6 |
The Linux ARM64 download also ran on a physical RK3588. Its compiler ran the reference, native Release and test workflows with 36 Mali-G610 calls and 12 RKNN calls in a native Ubuntu 24.04 container.
На физическом RK3588 компилятор из переносимого архива Linux ARM64 выполнил программы в интерпретаторе, нативной Release-сборке и тестах. В ARM64-контейнере Ubuntu 24.04 зафиксированы 36 вызовов Mali-G610 и 12 вызовов RKNN.
On a physical CIX P1, the Linux ARM64 archive ran inside an Ubuntu 24.04 userspace on the board’s Debian 12 kernel. The workload completed 12 Mali-G720 GPU calls and eight Zhouyi NPU calls.
На CIX P1 архив Linux ARM64 проверен в окружении Ubuntu 24.04 поверх ядра платы с Debian 12. Выполнены 12 вызовов GPU Mali-G720 и восемь вызовов NPU Zhouyi.
Host requirements / Что установить на компьютере
macOS ARM64 · macOS 27.0+, Apple Command Line Tools and the macOS SDK. Установите Apple Command Line Tools вместе с macOS SDK.
Windows x64 · Use PowerShell and the system tar.exe. Распакуйте архив системной командой tar.exe в PowerShell.
The SDK runs directly on Windows. SDK запускается непосредственно в Windows.
To run the SDK acceptance suite in PowerShell, select its bundled OpenSSL in the same terminal. Для запуска комплекта приёмки SDK в PowerShell добавьте каталог его OpenSSL в текущий терминал.
$sdk = Split-Path (Split-Path (Get-Command nex.exe -CommandType Application).Source -Parent) -Parent
$tools = Join-Path $sdk "libexec/nex/host-tools"
$env:Path = "$tools;$env:Path"Linux · Install GCC C/C++ development headers, startup objects and system libraries for your architecture. Установите заголовочные файлы C/C++, стартовые объекты и системные библиотеки GCC для своей архитектуры.
| Archive / Архив | Build environment / Среда сборки | Highest required symbol versions / Старшие числовые версии символов |
|---|---|---|
| linux-amd64 | Ubuntu 24.04.5 LTS (glibc 2.39) | GLIBC_2.38 / GLIBCXX_3.4.32 |
| linux-arm64 | Ubuntu 24.04.5 LTS (glibc 2.39) | GLIBC_2.38 / GLIBCXX_3.4.32 |
On the CIX P1 with its original Debian 12 userspace, build NEX from source. To use the Linux ARM64 archive on this board, run it in an Ubuntu 24.04 ARM64 environment with the board’s GPU and NPU drivers. В штатном окружении Debian 12 на CIX P1 соберите NEX из исходников. Для запуска архива Linux ARM64 на этой плате используйте окружение Ubuntu 24.04 ARM64 с драйверами GPU и NPU платы.
Use Python 3.10+ for SDK scripts. Browser builds need Node.js 22.18+ and npm. Live debugging uses host LLDB/lldb-dap. Для скриптов SDK нужен Python 3.10+, для веб-сборок — Node.js 22.18+ и npm, для живой отладки — LLDB/lldb-dap.
Each archive lists its complete prerequisites and system libraries under its target in qualification.json. В разделе нужной платформы в qualification.json приведены все внешние зависимости и системные библиотеки.
Coding with Codex or Hermes / Разработка в Codex и Hermes
The optional Codex skill is in nex-developer-tools-0.1.0.zip. Extract it and copy the complete skills/nex-programming directory into your application's .agents/skills/.
В архиве nex-developer-tools-0.1.0.zip лежит навык для Codex. Распакуйте ZIP и скопируйте весь каталог skills/nex-programming в .agents/skills/ своего приложения.
The SDK includes model-independent instructions for both agents in share/nex/llm/SYSTEM_PROMPT.md. Для обоих агентов в SDK есть инструкция share/nex/llm/SYSTEM_PROMPT.md.
Plugin guide · Инструкция по плагину
Rebuild the Windows SDK / Пересборка Windows SDK
To build this Windows archive from the release tag, download the three files below from Assets. Verify them against SHA256SUMS, copy all three into your checkout, then follow docs/sdk-build.md.
Чтобы собрать этот Windows-архив из тега релиза, скачайте три файла из Assets. Сверьте их с SHA256SUMS, скопируйте все три файла в рабочую копию и выполните команды из docs/sdk-build.md.
| Release asset / Файл выпуска | Checkout path / Путь в проекте |
|---|---|
nex-windows-sdk-distribution.py |
tools/windows/sdk_distribution.py |
nex-windows-native-task-sessions.py |
tests/native_task_sessions.py |
nex-windows-sdk-task-streams.py |
tools/sdk_task_streams.py |
For DeepSeek Harness, extract nex-programming.zip from Assets into the application’s .agents/skills/ directory. Open the application in Harness and enter /nex-programming Fix the failing test.
Для DeepSeek Harness распакуйте nex-programming.zip из Assets в .agents/skills/ вашего проекта. Откройте проект в Harness и введите /nex-programming Исправь упавший тест.
For compact failure context, put nex-repair-context.py from Assets beside nex.json and add the SDK’s bin directory to PATH. Run python3 nex-repair-context.py in that directory, or py -3 nex-repair-context.py on Windows. An assertion failure includes a function excerpt and commands to inspect callees in the tested revision.
Для краткой диагностики скачайте nex-repair-context.py из Assets в каталог с nex.json и добавьте каталог bin выбранного SDK в PATH. Запустите там python3 nex-repair-context.py, в Windows — py -3 nex-repair-context.py. При сбое assert скрипт покажет фрагмент функции и команды для чтения вызываемых функций из проверенной ревизии.
To rerun the contributor TypeScript checks in share/nex/tests, set NEX_NPM_CACHE to a populated cache containing the locked npm dependencies, or set NEX_TSC to the pinned TypeScript compiler. npm config get cache prints the configured cache path.
Для повторного запуска строгих TypeScript-тестов из share/nex/tests укажите в NEX_NPM_CACHE каталог кэша с зависимостями из lock-файла или в NEX_TSC путь к компилятору закреплённой версии. Команда npm config get cache покажет путь к настроенному кэшу.
See SHA256SUMS and qualification.json in Assets.
The Linux x86-64 archive also ran natively on Fedora. Архив Linux x86-64 дополнительно проверен на Fedora без эмуляции.
The Windows SDK exercised IPv4 and IPv6 loopback. На Windows SDK выполнил обмен по IPv4 и IPv6 на локальном интерфейсе.