History of DWScript

The project began as Delphi Web Script (DWS), originally created by Matthias Ackermann and Hannes Hernler (DWS2) in the late 1990s. Its initial purpose was specific: to provide a way to embed Pascal scripts directly within HTML pages, similar to how PHP operates. This allowed Delphi developers to build dynamic websites using the language they already knew.

In 2010, Eric Grange took over as the primary maintainer and lead developer. While the original name "Delphi Web Script" remains, the "Web" part became less central to its identity, the engine was refocused as a general-purpose scripting solution.

Over the last decade, DWScript has introduced features that rival compiled languages:

  • JIT Compilation: Leveraging LLVM for native code generation in some targets.
  • Modern Language Features: Introducing syntax features often ahead of or parallel to Delphi, such as type inference, specialized array operators, and modern OOP constructs.
  • Performance: A relentless focus on execution speed and memory efficiency, making it one of the fastest Object Pascal scripting engines available.
  • JavaScript Transpilation: The ability to compile Object Pascal code into JavaScript, a core feature that enabled the creation of Smart Mobile Studio.

Today, DWScript is used not just for web backends, but for game logic, rule engines, and application extensibility, keeping the Pascal spirit alive in modern scripting environments.

On this page