A lightweight REPL for the Gleam Programming Language.
Project details
GSH is an interactive REPL designed specifically for the Gleam Programming Language. Built on the BEAM VM, it offers features like expression evaluation, persistent runtime bindings, and multiline support to enhance the interactive shell experience. Ideal for developers looking to streamline their Gleam development workflow.
GSH: Interactive Gleam Shell
GSH is an interactive Read-Eval-Print Loop (REPL) designed for the Gleam Programming Language, built on the powerful BEAM virtual machine. It provides a seamless and efficient environment for developers to write, debug, and execute Gleam code interactively.
Interactive Environment: Utilize GSH as a standalone REPL or as a live-app bootloader to execute and manage Gleam code efficiently.
Dynamic Evaluation: Evaluate expressions on-the-fly with rapid feedback, significantly reducing latency for real-time application development.
Robust Command Set: With built-in commands such as :h for help, :v for version checking, and :cc to recompile the host Gleam project without leaving the shell, GSH enhances the interactive coding experience.
Smart Suggestions & Autocompletion: Experience advanced capabilities like tab-completion and context-aware suggestions while writing code.
Resilient Memory Management: GSH uses a single persistent Erlang VM node that optimizes variable binding and executes commands without reintroducing side effects.
To start using GSH:
gleam run -m gsh
Once inside the shell, interact with your Gleam code, for instance:
import your_app/config
ok
config.load()
GSH is particularly useful for:
GSH boasts a rapid in-memory compilation pipeline that drastically reduces execution latency from approximately 375 milliseconds to under 18 milliseconds, allowing for efficient coding and debugging sessions.
GSH transforms the Gleam programming experience by offering developers a powerful tool for quick iterations, debugging, and interaction with the BEAM ecosystem. With its focus on performance and usability, GSH serves as an invaluable resource for programmers working with Gleam.
Comments
0Start the conversation
Share the first comment.