🤔 What is TechScript? (Explain Like I'm 10)Imagine you want to tell a computer to do something. Normally, computers only understand confusing code like this:
TechScript makes that feel like writing a sentence:
That's it. No semicolons. No brackets. No confusing symbols. Just simple words that make sense. TechScript is:
✨ What's New in v1.0.5 — Cinema EditionThis is a milestone release that transitions TechScript to a fully native Rust ecosystem.
🚀 What Can TechScript Do?
📦 Installation🏁 Quick Platform Reference
🪟 Install on Windows (Easy — No Terminal Needed!)Option 1: Setup Wizard (Recommended)
You should see: What the installer does automatically:
Option 2: Using pip (Cross-Platform Wrapper)
🐧 Install on Linux (Ubuntu, Kali, Debian, Arch)
One-line installer:
Using APT (Debian/Ubuntu):
🍎 Install on macOS
📱 Install on Android (Termux)
Update:
🌍 Platform Support
✏️ Your First TechScript ProgramCreate a new file called
Run it:
Output:
📖 Language Guide — From 0 to 100 🚀🟢 Level 1: Core Basics📦 Variables — Storing InformationA variable is like a box where you put something to use later.
🖨️ Output — Talking to the User
💬 Input — Asking the User a Question
🟡 Level 2: Logic & Control Flow🔀 Conditions — Making Decisions
🔁 Loops — Doing Things Repeatedly
🔍 New Operators —
|
| Command | What it does | Example |
|---|---|---|
tech run file.txs |
Run a TechScript file | tech run hello.txs |
tech run file.txs --debug |
Run with debug info | tech run calc.txs --debug |
tech check file.txs |
Check for errors without running | tech check myapp.txs |
tech eval "code" |
⚡ Run inline code instantly | tech eval "say 42" |
tech "[[[code]]]" |
⚡ Shorthand inline execution | tech "[[[say 'hi']]]" |
tech repl |
Open interactive mode (type and run live) | tech repl |
tech transpile file.txs |
Convert your code to Python | tech transpile hello.txs |
tech fmt |
🆕 Auto-format your code | tech fmt myapp.txs |
tech lint |
🆕 Find errors before running | tech lint myapp.txs |
tech build |
🆕 Compile to fast bytecode (.txc) |
tech build myapp.txs |
tech test |
🆕 Run built-in unit tests | tech test |
tech version or tech -V |
Show installed version | tech -V |
📋 All Example Programs
| File | What it does | Run it |
|---|---|---|
examples/hello.txs |
Prints Hello World | tech run examples/hello.txs |
examples/fibonacci.txs |
Calculates Fibonacci numbers | tech run examples/fibonacci.txs |
examples/fizzbuzz.txs |
The classic FizzBuzz challenge | tech run examples/fizzbuzz.txs |
examples/classes.txs |
Dogs and cats using OOP | tech run examples/classes.txs |
examples/calculator.txs |
Simple calculator | tech run examples/calculator.txs |
examples/guessing_game.txs |
Guess the number game | tech run examples/guessing_game.txs |
examples/07_performance_test.txs |
⚡ 1-Million Iteration Native VM Benchmark | tech run examples/07_performance_test.txs |
examples/web_app_simple.txs |
Simple dark-theme website | tech run examples/web_app_simple.txs |
examples/web_complete.txs |
Full showcase: counter, API, form | tech run examples/web_complete.txs |
⚡ examples/08_math_module.txs |
NEW — Math: trig, roots, factorial, stats | tech run examples/08_math_module.txs |
⚡ examples/09_string_ops.txs |
NEW — String operations: upper/lower/split/join | tech run examples/09_string_ops.txs |
⚡ examples/10_json_module.txs |
NEW — JSON encode/decode/pretty-print | tech run examples/10_json_module.txs |
⚡ examples/11_crypto_module.txs |
NEW — SHA-256, Base64, MD5 | tech run examples/11_crypto_module.txs |
⚡ examples/12_date_module.txs |
NEW — Date/time/unix timestamps | tech run examples/12_date_module.txs |
⚡ examples/13_fs_module.txs |
NEW — File read/write/delete/list | tech run examples/13_fs_module.txs |
⚡ examples/14_os_module.txs |
NEW — OS info, env vars, system commands | tech run examples/14_os_module.txs |
⚡ examples/15_random_module.txs |
NEW — Random numbers, UUID, choice | tech run examples/15_random_module.txs |
⚡ examples/16_control_flow_fix.txs |
NEW — stop/skip/in/typeof demos | tech run examples/16_control_flow_fix.txs |
⚡ examples/17_inline_eval.txs |
NEW — Inline code execution howto | tech run examples/17_inline_eval.txs |
🎨 VS Code / Cursor Editor Extension
Get syntax highlighting, code snippets, and the 🐉 dragon file icon for .txs files:
Method 1 — Command line (fastest):
code --install-extension vscode-extension/techscript-1.0.5.vsix
Method 2 — Using the GUI:
- Open VS Code
- Press
Ctrl+Shift+Xto open Extensions - Click the
···menu (top right of the Extensions panel) - Select "Install from VSIX..."
- Choose
vscode-extension/techscript-1.0.5.vsix
After installing, all your
.txsfiles will have the dragon icon and coloured syntax! 🎨
📂 Folder Structure
techscript/
├── bin/ # Executables and installers (TechScript_TX.exe)
├── docs/ # Full Language Spec & Reference
├── examples/ # Ready-to-run sample projects (17+ files)
├── assets/ # Official icons and logos
├── scripts/ # install.sh for Linux/macOS
└── vscode-extension/ # techscript-1.0.5.vsix
🔄 The Evolution of TechScript: v1.0.1 → v1.0.2 → v1.0.3 → v1.0.5
| Feature / Category | v1.0.1 | v1.0.2 | v1.0.3 | v1.0.5 (Latest) |
|---|---|---|---|---|
| Engine | 🐍 Python Interpreter | 🦀 First Rust VM | ⚡ Optimized Rust VM | 🚀 Full Native Rust Ecosystem |
| Speed | 🐌 Slow | 🚀 Fast | ⚡ Ultra-Fast (+20%) | 🔥 Cinema Performance |
| StdLib Functions | < 10 basics | ~10 basics | 150+ Full StdLib | 150+ + 3D |
| Math | Basic Op | Basic Op | math.* (38+ functions) | ✅ |
| Cryptography | None | None | crypto.* (SHA256, MD5, Base64) | ✅ |
| Data/JSON | None | None | json.* | ✅ |
| File System | None | None | fs.* (20+ functions) | ✅ |
| OS Integration | None | None | os.* | ✅ |
| Random/UUID | None | Basic random | random.* | ✅ |
| Dates/Unix | None | None | date.* | ✅ |
| 3D Graphics | None | None | None | 🎮 use three_d |
| Web Builder | ❌ | ✅ NEW | ✅ | ✅ |
| Control Flow | Basic | ❌ Broken | ✅ Fixed stop/skip | ✅ |
| Operators | Basic | Basic | in & typeof |
✅ |
| Inline Mode | File-only | File-only | tech eval |
✅ |
| Developer Toolchain | None | None | None | fmt, lint, build, test |
| Binary | N/A (Python) | ~2.5 MB | ~2.8 MB | TechScript_TX.exe |
| VM Safety | Python | ❌ Unsafe Transmute | ✅ 100% Type-Safe | ✅ |
| VS Code Extension | v1.0.1 | v1.0.2 | v1.0.3 | v1.0.5 Glowing Icons |
✨ v1.0.5 Changelog — Cinema Edition
🚀 New Features
use three_dmodule — Build real-time 3D scenes in 5 lines.scene.box(),scene.render(), and more- Standalone Binary —
TechScript_TX.exe, zero-dependency, no installer needed - Pro CLI — New ASCII "TX" banner on startup, refined REPL experience
- Developer Toolchain:
tech fmt— Auto-prettify your codetech lint— Find errors before you runtech build— Compile to fast bytecode (.txc)tech test— Run built-in unit tests
- Visual Overhaul — Glowing neon logo, enhanced VS Code file icons
✨ v1.0.3 Changelog — Security & Power Overhaul
🔐 Critical Safety Fixes
- Eliminated
unsafeUB — The VM's bytecode decoder now uses safeTryFrom<u8>instead ofunsafe { mem::transmute }. Corrupt bytecode produces a clean error, not a crash. - Fixed Windows installer —
setup.batno longer destroys your PATH if it's over 1,024 characters. Now uses PowerShell's.NETAPI with no size limit.
✅ Language Features Fixed
stopandskipnow actually work — Previouslybreakcompiled to areturnstatement (completely wrong). Now emits a proper forward jump patched at loop end.inoperator —x in list,x in map,"sub" in str,x in rangenow all work correctly.typeof x— Returns the actual type name string ("int","str","list", etc.)
⚡ New Features
- Inline Execution —
tech eval "say 42"ortech "[[[say 42]]]"runs code instantly without a file - 150+ Built-in Functions — Expanded stdlib:
math.*,fs.*,os.*,json.*,crypto.*,date.*,random.* - Android/Termux Guide — See
docs/TERMUX.md
| Feature | 🐢 v1.0.2 | 🚀 v1.0.3 |
|---|---|---|
| VM Safety | ❌ unsafe transmute |
✅ Safe TryFrom |
break / continue |
❌ Broken | ✅ Fixed (stop / skip) |
in operator |
❌ Wrong result | ✅ Real containment check |
typeof |
❌ Always "unknown" | ✅ Returns real type |
| Inline execution | ❌ Not possible | ✅ tech eval "..." |
| Built-in functions | ~40 | ✅ 150+ in 7 modules |
| Windows PATH safety | ❌ Could truncate | ✅ Fixed |
✨ v1.0.2 Changelog — The Rust Rebuild
The v1.0.1 version was built on top of a Python wrapper. While this made development easy, it introduced massive flaws:
- The Python Flaw — Required users to install heavy Python environments just to run basic scripts.
- The Speed Flaw — Python's dynamic interpretation caused severe bottlenecks. A 1,000,000-loop would choke natively.
- The Crash Flaw — Basic errors like dividing by zero (
10 / 0) would completely crash the transpiler instantly without warning.
The v1.0.2 Solution: We entirely deleted the Python runtime and rewrote the entire core architecture natively in Rust.
| Feature | 🐢 v1.0.1 (Old System) | 🚀 v1.0.2 (New System) |
|---|---|---|
| Underlying Engine | Python Interpreted | ✅ Native Rust Virtual Machine |
| Execution Speed | Sluggish (Python limits) | ✅ Blazing Fast Bytecode (1M loops in 2.9s) |
| Dependencies Needed | Python 3.10+ | ✅ NONE (Completely Standalone) |
| Try/Rescue Blocks | ❌ Did not exist | ✅ NEW Stack Unwinding Implementation |
| Math Crashing (Zero Div) | Immediate Hard Crash | ✅ Safely Trapped & Rescued |
| Windows Executable | tech.exe (Clunky wrapper) |
✅ techscriptv1.0.2.exe |
| VS Code extension | ✅ Basic | ✅ Updated Icons & Syntax |
Native setup.exe Bundle |
❌ | ✅ NEW |
✨ v1.0.1 Changelog — What's New vs v1.0.0
| Feature | v1.0.0 | v1.0.1 |
|---|---|---|
| Basic scripting (say, make, loops) | ✅ | ✅ |
| Functions, classes, error handling | ✅ | ✅ |
| 80+ built-in functions | ✅ | ✅ |
| VS Code extension (syntax + icons) | ✅ | ✅ Updated to v2.0.0 |
use web — Build websites |
❌ | ✅ NEW |
| No HTML/CSS/JS needed | ❌ | ✅ NEW |
| Browser opens automatically | ❌ | ✅ NEW |
| Auto port selection (no conflicts) | ❌ | ✅ NEW |
| Windows one-click Setup.exe | ❌ | ✅ NEW |
| Mac/Linux one-line install script | ❌ | ✅ NEW |
| Auto PATH setup | ❌ | ✅ NEW |
| Reactive counter demo | ❌ | ✅ NEW |
| Live API fetch example | ❌ | ✅ NEW |
| Contact form example | ❌ | ✅ NEW |
📚 Documentation
| Document | Description |
|---|---|
| Quick Start Guide | Simple step-by-step install for all platforms |
| Language Cheat Sheet | All keywords, functions, and syntax at a glance |
| Standard Library Reference | ⚡ All 150+ built-in functions by module |
| Web Module Guide | How to build websites with TechScript |
| Termux Guide | ⚡ Install and run on Android via Termux |
👨💻 Made by Tcode-Motion
Tanmoy — Tcode-Motion
Building languages, AI systems, and the future — one project at a time.
| 🔥 Project | 📖 Description |
|---|---|
| 🐉 TechScript | A modern scripting language — Native Rust VM + web builder + 3D engine |
| 🧠 Project JARVIS | Personal AI assistant built in Python |
| 💻 Stark OS | Sci-Fi UI for web environments |
| 🎨 3D Visuals | WebGL particle systems + Three.js experiences |
| 🤖 AR Keyboard | Hand-gesture virtual keyboard with OpenCV + MediaPipe |
"Predict the future by coding it." ⚡
📄 License
MIT License — free to use, share, and modify. See LICENSE.
Crafted with 🐉 and 🦀 by Tcode-Motion