Skip to main content

daslang

daslang (formerly daScript) is a high-performance statically strongly typed programming language. It can be used standalone or embedded into a C++ host application, and is designed for games and real-time applications.

  • Version: 0.6.5
  • Release date: TBD
  • License: BSD 3-Clause

Key Features

  • High-performance - close to C++ speed via ahead-of-time (AOT) compilation and optional JIT (via LLVM)
  • Strong static typing with type inference
  • Generics, macros, and compile-time meta-programming
  • First-class iterators, generators, lambdas, and closures
  • Pattern matching, LINQ-style queries via standard library
  • Native C++ interop - easy embedding and binding
  • Hot reloading support for rapid iteration
  • Cross-platform - Windows, macOS, Linux, WASM

What's in the Box

Directory Contents
bin/ Compiler and tool binaries (daslang, daslang-live)
lib/ Static and shared libraries for embedding
include/ C++ headers for integration
daslib/ Standard library modules (.das files)
modules/ Optional plugin modules
examples/ Example scripts
tutorials/ Language, integration, and module tutorials
dastest/ Test framework (usable for testing your own code)
utils/ Tooling: MCP server for AI assistants (mcp/), LSP server for Claude Code (lsp/), package manager (daspkg/), lint (lint/), code formatter (das-fmt/), duplicate detector (detect-dupe/), coverage (dascov/), AOT/JIT helpers
skills/ AI-assistant task instructions (paired with the root CLAUDE.md); skills/daslang/ is the standalone language reference, auto-loaded for agent sessions at the SDK root and copyable into any project's .claude/skills/
tree-sitter-daslang/ Tree-sitter grammar, shared library, and highlighting queries

Quick Start

New to daslang? GETTING_STARTED.md (next to this file) walks through running a first program and wiring up editor + AI-assistant tooling.

Run a script:

bin/daslang examples/hello_world.das

AOT-compile a script:

bin/daslang -aot examples/hello_world.das hello_world_aot.cpp

Embedding via CMake

find_package(DAS REQUIRED)
target_link_libraries(your_app PRIVATE DAS::libDaScript)

See tutorials/integration/ for complete C and C++ embedding examples.

Embedding without CMake

DAS::libDaScript pulls in the rest of the link set automatically; a hand-wired project (a plain Visual Studio project, a custom build system) must list it all. The daslang runtime is split out of the compiler library, so linking libDaScript alone fails with unresolved symbols such as das::ptr_ref_count::ref_count_track - the runtime half defines them.

Link, from lib/:

libDaScript.lib  libDaScript_runtime.lib  libUriParser.lib

plus, on Windows, the system libraries:

dbghelp.lib  ws2_32.lib  mswsock.lib  advapi32.lib  rpcrt4.lib

Add include/ to the include path and compile as C++17 or newer. On non-Windows platforms the same three daslang libraries apply, with the platform's usual thread and dl libraries in place of the Windows list.

Tree-sitter Grammar

A full tree-sitter grammar for daslang is included in tree-sitter-daslang/. Use it for:

  • Syntax highlighting - tree-sitter-daslang/queries/highlights.scm works in editors that support tree-sitter (Neovim, Helix, Zed)
  • Parse-aware search - via ast-grep (sg 0.37.0 or later, before 0.50.0) for code search. A daslang pattern is literal code: metavariables such as $A do not match. Install sg, then run from the SDK root (where sgconfig.yml lives):
    sg run -p "symbol_name" -l daslang
    
  • Editor extensions - utils/zed-daslang/ includes a Zed extension

MCP Server (AI Tool Integration)

utils/mcp/ contains an MCP server exposing 40+ compiler-backed tools to AI coding assistants: compilation diagnostics, type inspection, go-to-definition, find-references, AST dump, AOT generation, expression evaluation, parse-aware grep for both .das and C++, duplicate detection, live-reload control, and more. Uses stdio transport - no extra build dependencies.

Configure in .mcp.json:

{
  "mcpServers": {
    "daslang": {
      "command": "bin/daslang",
      "args": ["utils/mcp/main.das"]
    }
  }
}

See utils/mcp/README.md for the full tool list and permissions setup.

LSP Server (Claude Code)

utils/lsp/ contains a language server for .das: push diagnostics - the compiler and lint report after every edit with no explicit tool call - plus definition / references / hover / document & workspace symbols / call hierarchy / go-to-implementation. Requires python3 on PATH.

It is opt-in: every validate spawns a compiler child after an edit, which slows a session that edits large files. Register it explicitly when you want it:

claude --plugin-dir <sdk-root>/utils/lsp/plugin

See utils/lsp/README.md for configuration (initializationOptions: compiler override, project_root for native modules, .das_project).

Building from Source

git clone --recurse-submodules https://github.com/GaijinEntertainment/daScript.git daslang
cd daslang
cmake -Bbuild -DCMAKE_BUILD_TYPE=Release
cmake --build build --target daslang --config Release

macOS: Gatekeeper Quarantine

If macOS blocks the downloaded SDK with errors like "cannot be opened because the developer cannot be verified" or "is damaged and can't be opened", remove the quarantine attribute:

xattr -cr /path/to/daslang-sdk

Binaries produced by cmake --install are ad-hoc code signed automatically, which prevents this issue in most cases.

License

BSD 3-Clause License - Copyright (c) 2018-2026, Gaijin Games Kft. See LICENSE for the full text.

Metadata

Release files for daslang 0.6.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for daslang 0.6.5
File Actions
daslang-0.6.5-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for daslang-0.6.5-py3-none-win_amd64.whl
daslang-0.6.5-py3-none-manylinux_2_38_x86_64.whl Python 3 none Linux glibc 2.38+ x86-64 Details for daslang-0.6.5-py3-none-manylinux_2_38_x86_64.whl
daslang-0.6.5-py3-none-manylinux_2_38_aarch64.whl Python 3 none Linux glibc 2.38+ ARM64 Details for daslang-0.6.5-py3-none-manylinux_2_38_aarch64.whl
daslang-0.6.5-py3-none-macosx_26_0_arm64.whl Python 3 none macOS 26.0+ ARM64 Details for daslang-0.6.5-py3-none-macosx_26_0_arm64.whl

Total release size: 336.1 MB

Release files / daslang-0.6.5-py3-none-win_amd64.whl

Download URL daslang-0.6.5-py3-none-win_amd64.whl
Size 90.8 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
f5b1bdecefd9827c8008375aeef24810481cab81fb3bd8354fb918016133c7b4
BLAKE2b-256 checksum
How to use checksums
3c148714ebdd3dec9555add9b96820674d2270b664a785b8dca05ceb2acf3ab6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.

Transparency log

Release files / daslang-0.6.5-py3-none-manylinux_2_38_x86_64.whl

Download URL daslang-0.6.5-py3-none-manylinux_2_38_x86_64.whl
Size 88.6 MB
Tags Linux glibc 2.38+ x86-64 Python 3
SHA-256 checksum
How to use checksums
64e8435bc46f20d15d96d47a3df1c96684b99368616459eb230df1d6397f4093
BLAKE2b-256 checksum
How to use checksums
70fcaed85d4e62dabe5f9a7ebc92aaeb9bdcc9c543f19f6270b0b74f8632745a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.

Transparency log

Release files / daslang-0.6.5-py3-none-manylinux_2_38_aarch64.whl

Download URL daslang-0.6.5-py3-none-manylinux_2_38_aarch64.whl
Size 85.1 MB
Tags Linux glibc 2.38+ ARM64 Python 3
SHA-256 checksum
How to use checksums
c25c8636c5d88c83d5e400f5612ec4733d730aac7d6a31a47e9dba7abd8474c9
BLAKE2b-256 checksum
How to use checksums
143d55d77bf193828764e5384944f70af6b786ce515e15d38e2d3955cd6ed0d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.

Transparency log

Release files / daslang-0.6.5-py3-none-macosx_26_0_arm64.whl

Download URL daslang-0.6.5-py3-none-macosx_26_0_arm64.whl
Size 71.6 MB
Tags Python 3 macOS 26.0+ ARM64
SHA-256 checksum
How to use checksums
af1e9ddf952a6cf9898603eae0c256ea48421199a0cbc98bc3f58908be88d8ec
BLAKE2b-256 checksum
How to use checksums
f4f57ed3b39cb9df299c90bb071ad1535c438b392a76c3208bd59a6988a0dbef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.

Transparency log

Security for daslang 0.6.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 4 files in this release have been uploaded with provenance metadata.

Select from 4 files

Attestation for daslang-0.6.5-py3-none-win_amd64.whl

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.6.5 This release

4 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page