Giter Club home page Giter Club logo

rubinius-console's Introduction

The Rubinius Console

The Rubinius console is a command line interface to the Rubinius language platform. It combines common REPL features, like those found in IRB or Pry, with commands to inspect a running system typical of a debugger. It also supports interactive program development with edit-and-continue when exceptions occur.

Code of Conduct

Participation in this project is governed by the Rubinius Code of Conduct.

Installation

Rubinius console is pre-installed in Rubinius. It uses platform features specific to Rubinius.

Features

The Rubinius console uses a number of high-level concepts. We will describe these in detail before looking at individual commands.

  1. Process: An operating system instance of the Rubinius process. By default, the Rubinius console runs in the process you are interacting with. However, it can also attach to multiple external Rubinius processes running locally or on another computer.
  2. Command line editor: This enables entering a line of code or commands at the console and recalling them from history to edit or re-execute. This feature is generally provided by an interface to the systems Readline library.
  3. Source code: The program text that you edit and that the Rubinius process runs. Rather than just a collection of text that exists in the program file, this is an interface to the text that provides features like different representations of the text. For example, the text has a parsed representation as an abstract syntax tree (AST), or a compiled representation as bytecode instructions for the virtual machine, or pre-processed for the just-in-time (JIT) compiler as LLVM IR.
  4. Location: A location is a place to interact with the running process. It may be a location in the source code. For example, at Module#constants method. Or it may be at an event. For example, when the Array class is modified.
  5. Command: A command is the basic unit of instruction in the Rubinius console. It is the mechanism for interacting with the running process. Much like commands in a typical operating system shell, commands in the console take options and input. Commands may be repeatable and may set up a chain of commands where the system transitions from one command to the next during while interacting with you. For example, when stepping through a program using a typical debugger, you may want to repeat the 'next' command several times in succession. In the Rubinius console, the 'next' command sets itself as the following command. Pressing invokes the command. Entering a different command cancels the pending 'next' command.
  6. Mode:
  7. View:

Basic Usage

When invoked without command line arguments, the Rubinius process will start the Rubinius console after initializing the system.

The default mode is the read-eval-print-loop (REPL) that IRB provides. You enter a line of code, Rubinius runs it, then prints the results. However, all the features of the console are always available. You can specify an alternate default mode when starting up, when attaching to a process, or when an exception occurs by editing the .rbx-console-rc file in your HOME directory.

License

This project uses MPL-2.0. See the LICENSE file for details.

rubinius-console's People

Contributors

brixen avatar jc00ke avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

isabella232

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.