Skip to content

v1.9.0 - Interactive REPL with TUI Interface

Choose a tag to compare

@twilson63 twilson63 released this 26 Jul 20:17
· 22 commits to main since this release

πŸŽ‰ Hype v1.9.0 Release

✨ New Features

Interactive REPL (Read-Eval-Print Loop)

  • TUI-based REPL: Launch with ./hype repl for a beautiful interactive environment
  • Simple REPL: Use ./hype repl --simple for 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 :history or :h
  • Special REPL commands:
    • :help - Show available commands
    • :history or :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.html with 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