Repository navigation
NEX 1.0.0 · language 0.30
NEX SDK 1.0.0
NEX (Neural Execution Language) lets a developer or a language model query a function, its dependencies and compiler diagnostics before changing a project. New projects use source language 0.30. Run nex init in an empty directory, then nex context src/main.nex --kind brief --symbol app::main --json to inspect the entry point. Run nex test --json to check the project. Get started · Language overview · Model instructions
With the published 1.0 release, SDK 1.x commits to preserving the documented behavior of projects explicitly selecting language 0.30. The stable library contract covers the import paths, 217 public functions and 38 nominal types in 21 checked modules. The CLI contract lists the JSON fields consumed from describe, init, check, test, eval and run. Source projects can be rebuilt for a supported host. Snapshots preserve historical revision IDs and source versions. A change to source meaning in a later language mode requires explicit migration. Compatibility terms · Frozen API catalogue · CLI fields
Choose an archive and its matching checksum from Assets. qualification.json identifies the source, compiler and archive for each qualified platform. compatibility.json records the beta and 1.0 archive checksums and the results of running older projects on the newer compiler. Native libraries, task ABIs and external device providers have their own version and host requirements. The table below lists the devices exercised with this release.
NEX SDK 1.0.0 на русском
NEX — Neural Execution Language, язык нейронного исполнения. Разработчик или LLM может получить из SDK исходник нужной функции, её зависимости и фактическое значение из упавшего теста. Новый проект использует язык 0.30. В пустом каталоге выполните nex init, затем nex context src/main.nex --kind brief --symbol app::main --json, чтобы увидеть точку входа. Команда nex test --json запускает тесты. Установка и первый проект · Описание языка · Инструкция для LLM
С публикацией версии 1.0 вступает в силу обязательство для SDK 1.x. Проекты с явной версией языка 0.30 сохраняют документированное поведение при пересборке для поддерживаемой платформы. Контракт стандартной библиотеки охватывает пути импорта, 217 публичных функций и 38 именованных типов в 21 модуле. Контракт CLI фиксирует поля JSON для команд describe, init, check, test, eval и run. При восстановлении снимка сохраняются идентификаторы ревизий и версия исходного языка. Для перехода в будущий режим языка с другой семантикой предусмотрена явная миграция. Условия совместимости · Каталог API · Поля ответов CLI
В Assets выберите архив для своей платформы и его контрольную сумму. В qualification.json указаны точные версии исходников, компиляторов и архивов. В compatibility.json приведены результаты выполнения проектов беты на SDK 1.0. Двоичные библиотеки, ABI задач и драйверы устройств имеют собственные требования к версиям. Проверенные устройства перечислены ниже.
The Windows Codex guide covers installing this SDK, opening an existing project, testing a change and checking CUDA support. Windows Codex guide
Инструкция для Codex на Windows показывает, как установить этот SDK, открыть проект, проверить исправление и определить доступность CUDA. Инструкция для Windows
Astra Linux x86-64 with glibc 2.28. Use the source build on this host. The Linux x86-64 archive requires GLIBC_2.38 and GLIBCXX_3.4.32. The system loader reported both missing when starting nex doctor. The SDK built on Astra ran the compact repair driver on all three example projects, and the corrected projects passed their native tests.
Astra Linux x86-64 с glibc 2.28. На этой системе используйте сборку из исходников. При запуске nex doctor из архива Linux x86-64 системный загрузчик сообщил об отсутствии GLIBC_2.38 и GLIBCXX_3.4.32. SDK, собранный на Astra, выдал краткий контекст для всех трёх примеров. После исправлений все три проекта прошли нативные тесты.
Verified SDK downloads / Проверенные архивы SDK
| Target / Система | Source checks / Группы | SDK checks per installation / На установку |
|---|---|---|
| macos-arm64 | 391 | 43 |
| linux-arm64 | 384 | 43 |
| linux-amd64 | 384 | 43 |
| windows-x86_64 | 383 | 43 |
The Windows, macOS and Linux ARM64 compilers were built from 43a414ae4501. Their SDKs include 16 updated or added files from b7cf6bc899c7. The Windows archive includes the session DLL test from 0b2d79cbecea and the stream report writer from a204dc3a3cf4. The Linux x86-64 build used b7cf6bc899c7 directly.
Компиляторы Windows, macOS и Linux ARM64 собраны из 43a414ae4501. В их SDK вошли 16 обновлённых или добавленных файлов из b7cf6bc899c7. В архив Windows вошли тест сеансов DLL из 0b2d79cbecea и модуль отчёта потокового ввода-вывода из a204dc3a3cf4. Linux x86-64 собран непосредственно из b7cf6bc899c7.
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.2.zip. Extract it and copy the complete skills/nex-programming directory into your application's .agents/skills/.
В архиве nex-developer-tools-0.1.2.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 на локальном интерфейсе.
In the integrated source SDK, nex test ENTRY --repair-context --json includes the failing assertion and function excerpt. Installed source builds on Windows x86-64, macOS ARM64, Fedora x86-64 and Debian ARM64 produced identical excerpts on three repair tasks. Each fixed program passed its native test. See integrated_source_repair in qualification.json.
В SDK из объединённых исходников команда nex test ENTRY --repair-context --json возвращает упавшую проверку и фрагмент функции. На Windows x86-64, macOS ARM64, Fedora x86-64 и Debian ARM64 три примера дали одинаковые фрагменты. После исправления в каждом прошёл нативный тест. Подробности приведены в разделе integrated_source_repair файла qualification.json.
ARM64 GPU and NPU / Графические и нейронные ускорители ARM64
| Board / Плата | GPU (OpenCL) | GPU calls / Вызовы GPU | NPU runtime | NPU calls / Вызовы NPU |
|---|---|---|---|---|
| CIX P1 | Mali-G720-Immortalis r0p0 | 12 | ZhouyiExecutionProvider | 8 |
| RK3588 | Mali-G610 r0p0 | 36 | RKNN | 12 |
Each board built its native compiler and ran the listed workloads on its physical devices. The portable results identify the exact downloaded SDK by SHA-256. RK3588 used a native Ubuntu 24.04 ARM64 container with direct device access.
Обе платы собрали компилятор из исходников и выполнили указанные операции на физических ускорителях. В отчётах переносимого SDK указан SHA-256 проверенного архива. На RK3588 использовался ARM64-контейнер Ubuntu 24.04 с прямым доступом к устройствам.
Native source builds / Нативные сборки из исходников
| System / Система | LLVM | Core groups passed / Прошло базовых групп |
|---|---|---|
| Astra Linux (x86_64) | 22.1.8 | 17 |
| Fedora Linux 45 (Server Edition) (x86_64) | 23.1.5 | 17 |
Each source-built SDK compiled a new 0.30 application. The interpreter, native workflow and exported executable printed 55.
На каждой системе собранный из исходников SDK скомпилировал новое приложение 0.30. Интерпретатор, нативный запуск и отдельный бинарник вывели 55.
See compatibility.json for the beta-to-1.0 results on every SDK.
Результаты проверки перехода с беты на 1.0 для каждого SDK приведены в compatibility.json.