It’s stupid. It’s ugly. Its also measurable performance gain.
Performance and CMRES aliasing
From dascript.org “… is high-level, statically strong typed scripting language, designed to be fast …”
With an emphasis on fast. Performance first, last, and foremost.
It's not a script
Whats in a name? The sheer fact that I’m writing this post implies a problem.
“It’s not a script” is something we had to say on numerous occasions.
Boris ELI5 script?
- Script is a simple programming langue you write your game logic in. When it gets slow you rewrite it to C++.
daScript is none of the above.
Implementing instruments
During the last few days I took a small detour from the land of the JIT, to the land of the profiler.
There is something about JIT
In the early days of daScript development having robust JIT was never a priority.
In fact during the initial planning meetings JIT was postponed until the cows came home.
Better safe
Herb Sutter is right. Its the same thing year after year after year. Lifetime
, Initialization
, Type safety
, and Bounds safety
are the things which your language should do for you.
Lock and load
Consider the following example:
1 | [export] |
It causes daScript runtime panic.