<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/generics-rtti-a-new-compiler-13fsphzmu" -->

---
title: Generics, RTTI, a new compiler | daily.dev
description: Quartex Pascal (QTX) has replaced DWScript with a new self-hosted compiler that reaches 'compiler singularity', running itself in the browser and Node.js. The...
canonical: https://daily.dev/posts/generics-rtti-a-new-compiler-13fsphzmu
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Generics, RTTI, a new compiler | daily.dev
og:description: Quartex Pascal (QTX) has replaced DWScript with a new self-hosted compiler that reaches 'compiler singularity', running itself in the browser and Node.js. The...
og:url: https://daily.dev/posts/generics-rtti-a-new-compiler-13fsphzmu
og:image: https://api.daily.dev/og/posts/13fspHzmu.png
og:image:alt: Generics, RTTI, a new compiler
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Generics, RTTI, a new compiler

**[Quartex Pascal](https://daily.dev/sources/quartex_pascal)** · 6 min read · 11 upvotes · 1 comments

## Summary

Quartex Pascal (QTX) has replaced DWScript with a new self-hosted compiler that reaches 'compiler singularity', running itself in the browser and Node.js. The new compiler adds full Delphi-style generics, Delphi-compatible RTTI, binary (packed) record support for low-level protocol work, variant/interface support for WebAssembly, and nearly twice as fast compilation. Generics are expected to shrink RTL code by up to 60%, RTTI enables automatic persistence for classes inheriting from TQTXPersistent, and packed records solve the problem of porting native protocol code (like the Reticulum mesh radio system) to JavaScript without hand-writing dozens of serialization functions. Native binary output via LLVM is mentioned as a possible future direction.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://quartexdeveloper.com/2026/09/13/generics-rtti-a-new-compiler>

## Questions this post answers

### What new features does the new Quartex Pascal (QTX) compiler add compared to DWScript?

The new QTX compiler, replacing DWScript, adds full Delphi-style generics, Delphi-compatible RTTI, binary packed records, variant and interface support for WebAssembly, and nearly twice as fast compilation. It has also reached compiler singularity, meaning it can compile itself and now runs in the browser and in Node.js.

_Track how Pascal tooling evolves with generics and RTTI support on daily.dev._

### How do packed records work in Quartex Pascal for binary data handling?

The 'packed' keyword marks a record type as binary, causing the compiler to automatically create a dedicated buffer object for each instance. Reads and writes to record fields are transparently resolved to the buffer's read and write methods matching each field's type, avoiding the need for manual factory, reader, and writer functions for each data structure.

_Developers porting low-level protocol code to the web can follow Pascal binary record handling on daily.dev._

### How much can generics reduce RTL code size in Quartex Pascal?

Generics are expected to reduce parts of the Quartex Pascal runtime library (RTL) code by as much as 60%, since a single generic class like TQTXDictionary<K,T> replaces multiple type-specific implementations that previously required full typing of both key and value via associative arrays.

_Anyone evaluating generics for maintainable code can follow this kind of language change on daily.dev._

## Community discussion

Top comments from developers on daily.dev.

**@agustinbarrientos** · 0 upvotes

> What happens with endianness when the same packed record runs in JavaScript and WebAssembly?

## Similar posts on daily.dev

- [Webassembly is here](https://daily.dev/posts/webassembly-is-here-5bakrrggx) · Quartex Pascal · 32 upvotes · 1 comments
- [WASM commandline compiler](https://daily.dev/posts/wasm-commandline-compiler-nqi4nd5sj) · Quartex Pascal · 21 upvotes · 3 comments
- [TQTXPlatform](https://daily.dev/posts/tqtxplatform-nop6ncgpj) · Quartex Pascal · 0 upvotes · 0 comments
- [Compile PHP to Native Binaries with TypePHP](https://daily.dev/posts/compile-php-to-native-binaries-with-typephp-erj9ukxpc) · Laravel News · 17 upvotes · 4 comments

---

Tags: [#webassembly](https://daily.dev/tags/webassembly)

[View this post on daily.dev](https://daily.dev/posts/generics-rtti-a-new-compiler-13fsphzmu)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Generics, RTTI, a new compiler","url":"https://daily.dev/posts/generics-rtti-a-new-compiler-13fsphzmu","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/generics-rtti-a-new-compiler-13fsphzmu"},"datePublished":"2026-09-13T15:05:08.040Z","dateModified":"2026-09-13T15:05:34.242Z","description":"Quartex Pascal (QTX) has replaced DWScript with a new self-hosted compiler that reaches 'compiler singularity', running itself in the browser and Node.js. The...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/f77622f95d61359fe3544ba80a93d09c?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/f77622f95d61359fe3544ba80a93d09c?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Quartex Pascal","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Quartex Pascal","logo":"https://media.daily.dev/image/upload/s--jCoso2M5--/f_auto/v1719499385/logos/quartex_pascal","url":"https://daily.dev/sources/quartex_pascal"},"commentCount":1,"discussionUrl":"https://daily.dev/posts/generics-rtti-a-new-compiler-13fsphzmu","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":11},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"keywords":"webassembly","timeRequired":"PT6M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Quartex Pascal","item":"https://daily.dev/sources/quartex_pascal"},{"@type":"ListItem","position":3,"name":"Generics, RTTI, a new compiler"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/generics-rtti-a-new-compiler-13fsphzmu","comment":[{"@type":"Comment","text":"What happens with endianness when the same packed record runs in JavaScript and WebAssembly?","datePublished":"2026-09-15T13:34:09.340Z","url":"https://daily.dev/posts/13fspHzmu#c-0EdxJVhzA","author":{"@type":"Person","name":"Agustin Barrientos","url":"https://daily.dev/agustinbarrientos","image":"https://media.daily.dev/image/upload/s--5ayxQnqn--/f_auto/v1788281802/avatars/avatar_wQYYVe5Tbj0NJ7C7qPoa8?_a=BAMAMicg0"}}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/generics-rtti-a-new-compiler-13fsphzmu#faq","mainEntity":[{"@type":"Question","name":"What new features does the new Quartex Pascal (QTX) compiler add compared to DWScript?","acceptedAnswer":{"@type":"Answer","text":"The new QTX compiler, replacing DWScript, adds full Delphi-style generics, Delphi-compatible RTTI, binary packed records, variant and interface support for WebAssembly, and nearly twice as fast compilation. It has also reached compiler singularity, meaning it can compile itself and now runs in the browser and in Node.js. Track how Pascal tooling evolves with generics and RTTI support on daily.dev."}},{"@type":"Question","name":"How do packed records work in Quartex Pascal for binary data handling?","acceptedAnswer":{"@type":"Answer","text":"The 'packed' keyword marks a record type as binary, causing the compiler to automatically create a dedicated buffer object for each instance. Reads and writes to record fields are transparently resolved to the buffer's read and write methods matching each field's type, avoiding the need for manual factory, reader, and writer functions for each data structure. Developers porting low-level protocol code to the web can follow Pascal binary record handling on daily.dev."}},{"@type":"Question","name":"How much can generics reduce RTL code size in Quartex Pascal?","acceptedAnswer":{"@type":"Answer","text":"Generics are expected to reduce parts of the Quartex Pascal runtime library (RTL) code by as much as 60%, since a single generic class like TQTXDictionary\u003cK,T\u003e replaces multiple type-specific implementations that previously required full typing of both key and value via associative arrays. Anyone evaluating generics for maintainable code can follow this kind of language change on daily.dev."}}]}
```

