Skip to content

Commit 5f0667d

Browse files
author
Tanmoy
committed
docs: explicit benchmark and python flaw outline
1 parent 7ebcff4 commit 5f0667d

2 files changed

Lines changed: 28 additions & 9 deletions

File tree

README.md

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,7 @@ Run any of these to see TechScript in action:
399399
| `examples/classes.txs` | Dogs and cats using OOP | `tech run examples/classes.txs` |
400400
| `examples/calculator.txs` | Simple calculator | `tech run examples/calculator.txs` |
401401
| `examples/guessing_game.txs` | Guess the number game | `tech run examples/guessing_game.txs` |
402+
| `examples/07_performance_test.txs` | **1-Million Iteration Native VM Benchmark** | `tech run examples/07_performance_test.txs` |
402403
| `examples/web_app_simple.txs` | Simple dark-theme website | `tech run examples/web_app_simple.txs` |
403404
| `examples/web_complete.txs` | Full showcase: counter, API, form | `tech run examples/web_complete.txs` |
404405

@@ -424,17 +425,26 @@ After installing, all your `.txs` files will have the dragon icon and coloured s
424425

425426
---
426427

427-
## ✨ v1.0.2 Changelog
428+
## ✨ v1.0.2 Changelog - Why We Rebuilt The Engine
428429

429-
| Feature | v1.0.1 | v1.0.2 |
430+
The `v1.0.1` version of TechScript was built on top of a Python wrapper. While this made development easy, it introduced massive flaws that had to be destroyed:
431+
1. **The Python Flaw**: It required users to install heavy Python environments just to run basic scripts.
432+
2. **The Speed Flaw**: Python's dynamic interpretation caused severe bottlenecks. A basic `while` loop running 1,000,000 times inside the old engine would choke natively.
433+
3. **The Crash Flaw**: Basic errors like dividing by zero (`10 / 0`) would completely crash the transpiler instantly without warning.
434+
435+
### 🦀 The v1.0.2 Native Solution
436+
We entirely deleted the Python runtime and **rewrote the entire core architecture natively in Rust**.
437+
438+
| Feature | 🐢 v1.0.1 (Old System) | 🚀 v1.0.2 (New System) |
430439
|---|---|---|
431-
| Runtime Engine | Python Interpreted |**Native Rust VM** |
432-
| Execution Speed | Standard |**Blazing Fast Bytecode** |
433-
| Try/Rescue Blocks ||**NEW Stack Unwinding** |
434-
| Division by Zero Errors | Immediate Crash |**Safely Trapped** |
435-
| VS Code extension || ✅ Updated |
436-
| Windows Executable | `tech.exe` |`techscriptv1.0.2.exe` |
437-
| Native `setup.exe` Bundle ||**NEW** |
440+
| **Underlying Engine** | Python Interpreted |**Native Rust Virtual Machine** |
441+
| **Execution Speed** | Sluggish (Python limits) |**Blazing Fast Bytecode (1 Million loops in 2.9s)** |
442+
| **Dependencies Needed** | Python 3.10+ |**NONE (Completely Standalone)** |
443+
| **Try/Rescue Blocks** | ❌ Did not exist |**NEW Stack Unwinding Implementation** |
444+
| **Math Crashing (Zero Div)** | Immediate Hard Crash |**Safely Trapped & Rescued** |
445+
| **Windows Executable** | `tech.exe` (Clunky wrapper) |`techscriptv1.0.2.exe` |
446+
| **VS Code extension** || ✅ Updated Icons & Syntax |
447+
| **Native `setup.exe` Bundle**||**NEW** |
438448

439449
---
440450

examples/07_performance_test.txs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
say "=== TechScript v1.0.2 Native VM Performance Benchmark ==="
2+
say "Running 1,000,000 iterations inside Rust Bytecode VM..."
3+
4+
make i = 0
5+
repeat i < 1000000 {
6+
i = i + 1
7+
}
8+
9+
say f"Completed 1 million iterations! Final loop count is: {i}"

0 commit comments

Comments
 (0)