Repository navigation
v1.9.0 - Interactive REPL with TUI Interface
π Hype v1.9.0 Release
β¨ New Features
Interactive REPL (Read-Eval-Print Loop)
- TUI-based REPL: Launch with
./hype replfor a beautiful interactive environment - Simple REPL: Use
./hype repl --simplefor a basic command-line REPL - Two-panel interface: Output panel (top) and input panel (bottom) for clear separation
- Beautiful table formatting: Lua tables are displayed with proper indentation and structure
- Command history: Access previous commands with
:historyor:h - Special REPL commands:
:help- Show available commands:historyor:h- Display command history:h=N- Recall command N from history:clear- Clear the output panel
- Full module access: All Hype modules (tui, http, kv, crypto, ws) are available in the REPL
π§ Improvements
- Updated all documentation to include REPL usage and examples
- Added comprehensive REPL documentation in
docs/REPL.md - Updated
docs/index.htmlwith link to REPL guide - Enhanced crypto API documentation (from v1.8.0)
π¦ Installation
macOS (Easy Install):
```bash
curl -sSL https://raw.githubusercontent.com/twilson63/hype/main/install-mac.sh | bash
```
Linux (Easy Install):
```bash
curl -sSL https://raw.githubusercontent.com/twilson63/hype/main/install-linux.sh | bash
```
Cross-Platform Installer:
```bash
curl -sSL https://raw.githubusercontent.com/twilson63/hype/main/install.sh | bash
```
π REPL Usage Examples
```lua
-- Launch TUI REPL
./hype repl
-- Test expressions
hype> 2 + 2
4
-- Explore tables with nice formatting
hype> {name="John", age=30, hobbies={"coding", "gaming"}}
{
["age"] = 30,
["hobbies"] = {
[1] = "coding",
[2] = "gaming"
},
["name"] = "John"
}
-- Access Hype modules
hype> crypto.sha256("test")
9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08
-- Use special commands
hype> :history
Command History:
1: 2 + 2
2: {name="John", age=30, hobbies={"coding", "gaming"}}
3: crypto.sha256("test")
hype> :h=2 -- Recall command 2
Recalled: {name="John", age=30, hobbies={"coding", "gaming"}}
```
π Documentation
π Thanks
Thanks to all contributors and users who provided feedback for this release!
Full Changelog: v1.8.0...v1.9.0