Skip to content

EnderScript 1.2.0

Choose a tag to compare

@iRELDevz iRELDevz released this 11 Nov 20:42
· 8 commits to main since this release

First release of EnderScript 1.2.0, the next major version. This release covers Windows x86 (32-bit) and x64 only. ARM64 is coming later: it hasn't been tested on real ARM hardware yet, so it's not included here. Linux is coming later too.

The syntax hasn't changed at all, so existing programs still run as before.

Download

File For
enderscript-1.2.0-windows-x86.zip Windows 32-bit
enderscript-1.2.0-windows-x64.zip Windows 64-bit

Extract it and run ender.exe <file.es>. Nothing to install. Use SHA256SUMS.txt to check that your download isn't corrupted.

What's new

  • All Windows platforms now live in one repository: windows/x86, windows/x64, windows/arm64. It contains only assembly plus build.ps1.
  • x86 was optimized until it beat C, C++, and Zig on every benchmark:
    • sieve: array fill uses rep stosd, the index bounds check runs once up front, and the counting loop uses SSE
    • modchain: the compiler can now prove a variable is never negative, so division and modulo use cheaper code
    • lcg: an x = x*a + b loop with an if inside now runs 4 iterations at a time without branches
    • print/pipe: numbers are printed with a two-digit table, and the output and input buffers were enlarged to 256 KB
  • Fix: input lines longer than 64 KB could be read incorrectly. There is now a line-length check.

Benchmarks

Windows 32-bit (ms):

Benchmark EnderScript C C++ Zig
hello 4.4 5.4 5.7 4.6
lcg 112.3 143.7 143.1 224.8
fizz 201.6 313.4 314.6 308.2
modchain 280.2 368.8 367.6 364.6
sieve 53.4 54.0 55.2 58.0
print 23.1 100.0 107.1 24.3
pipe 33.2 252.5 1505.1 35.0

Windows x64 (ms):

Benchmark EnderScript C C++ Rust Zig Python
hello 3.3 3.9 4.2 4.7 3.6 17.4
lcg 155.6 691.7 680.3 178.2 173.6 30928.6
fizz 186.1 577.9 579.3 264.2 278.1 16668.5
modchain 237.1 371.9 369.0 390.2 413.4 11783.2
sieve 50.1 53.1 53.2 51.2 52.8 2551.9
print 11.2 66.7 33.6 21.6 12.0 577.4
pipe 15.9 167.3 94.7 33.8 21.5 363.1

Each number is the fastest run. Every language produces exactly the same output.

Tests

  • Test suite: 149/149 passed on x86 and x64
  • All fuzzers passed, and input fuzzing gave identical output on x86 and x64 in 400/400 cases