ruby

Ruby logo
Article

Register Transfer Language for CRuby

Vladimir Makarov

This post shows the advantages and disadvantages of using register transfer language (RTL) for CRuby, and it compares the performance of RTL CRuby with that of trunk CRuby.

SystemTap
Article

Making the Operation of Code More Transparent and Obvious with SystemTap

William Cohen

You can study source code and manually instrument functions as described in the “Use the dynamic tracing tools, Luke” blog article, but why not make it easier to find key points in the software by adding user-space markers to the application code? User-space markers have been available in Linux for quite some time (since 2009). The inactive user-space markers do not significantly slow down the code. Having them available allows you to get a more accurate picture of what the...

SystemTap
Article

"Use the dynamic tracing tools, Luke"

William Cohen

Reviewing source code can be helpful in understanding how code works, but the static view may not give you a complete picture. The paths taken through code are heavily data dependent. Learn how to use Systemtap and debuginfo to dig into the Ruby interpreter internals on Red Hat Enterprise Linux 7.

RHEL
Article

Announcing GA for latest Software Collections, Developer Toolset, Compilers

Mike Guerette

We are pleased to announce the general availability of: Red Hat Software Collections 3.1 (Ruby 2.5, Perl 2.26, PHP 7.0.27, PostgreSQL 10, MongoDB 3.6, Varnish 5, HAProxy 1.8, Apache 2.4 update) Red Hat Developer Toolset 7.1 (GCC 7.3) Clang/LLVM 5.0, Go 1.8.7, Rust 1.25.0

RHEL
Article

Red Hat scripting languages for beta: adds Ruby 2.5, Perl 5.26; updates PHP 7.1.8

Mike Guerette

Twice a year, Red Hat distributes new versions of compiler toolsets, scripting languages, open source databases, and/or web tools, etc., so that application developers will have access to the latest, stable versions. These Red Hat supported offerings are packaged as Red Hat Software Collections.

Ruby logo
Article

Towards The Ruby 3x3 Performance Goal

Vladimir Makarov

This blog post is about my work to improve CRuby performance by introducing new virtual machine instructions and a JIT. It is loosely based on my presentation at RubyKaigi 2017 in Hiroshima, Japan. Version 3 of Ruby should be 3 times faster than version 2.

Video Thumbnail
Video

Red Hat OpenShift express demo

Mike McGrath, a cloud architect at Red Hat, speaks about the OpenShift project, including express--a way to easily on-board PHP, Ruby, and Python applications via standard, open interfaces. McGrath demonstrates the process of uploading and updating the applications in the cloud using express, as well as ways to snapshot, clean up, and remove applications that are being migrated or eliminated. Learn more about Red Hat OpenShift: http://openshift.redhat.com/app/ Learn more about Red Hat cloud technology: http://www.redhat.com/cloud/build/

Ruby logo
Article

A Beginners Guide to DSL Writing in Ruby

Heiko Rupp

In this article, I want to describe how to write a DSL / parser in Ruby with a treetop parser. Writing the Grammar and Parser in Ruby first has the advantage of interactivity. Ruby is interpreted and has a very quick startup time. To get going I’ll start writing a JSON parser. This may sound strange as there are already JSON parsers out there, but I don’t try to replace them, but rather show the concepts along that line rather...

Ruby logo
Article

Towards Faster Ruby Hash Tables

Vladimir Makarov

Hash tables are an important part of dynamic programming languages. They are widely used because of their flexibility, and their performance is important for the overall performance of numerous programs. Ruby is not an exception. In brief, Ruby hash tables provide the following API: insert an element with given key if it is not yet on the table or update the element value if it is on the table delete an element with given key from the table get the...

Article Thumbnail
Article

Build your first application using native Ruby on RHEL 6 or RHEL 7

mguerett

Get started developing with Ruby on Red Hat Enterprise Linux in under 10 minutes. Introduction and Prerequisites In this tutorial, you will see how to get started with Ruby development on Red Hat Enterprise Linux by creating a simple Hello World application. The tutorial should take five to ten minutes to complete. Before you begin, you will need a current Red Hat Enterprise Linux 6 or 7 workstation or server subscription that allows you to download software and get updates...

Article Thumbnail
Article

Build your first application using Ruby 2.3 on RHEL 7 with containers and Red Hat Software Collections

mguerett

Get started building Ruby 2.3 applications in docker containers on Red Hat Enterprise Linux in under 15 minutes. Introduction and Prerequisites In this tutorial, you will learn how to start building Ruby 2.3 applications in docker containers on Red Hat Enterprise Linux. In order to build and run containers, you will first install docker on your Red Hat Enterprise Linux 7 system. You will use the Ruby 2.3 container image from Red Hat Software Collections (RHSCL) 2.2 as the basis...

Article Thumbnail
Article

Build your first application using Ruby with Red Hat Container Development Kit (CDK)

MGuerette

Get started building Ruby applications in docker formatted containers using the Red Hat Container Development CDK (CDK) 2. Introduction and Prerequisites In this tutorial, you will learn how to start building Ruby applications in docker formatted containers using the Red Hat Container Development Kit (CDK) 2 on Red Hat Enterprise Linux. You need to have CDK 2 installed and should have downloaded the Red Hat Enterprise Linux vagrant box for your system. See the CDK 2 Installation Guide for more...

RedHat Shadowman Logo
Article

Red Hat Software Collections 2.3 now beta

Mike Guerette

Today, Red Hat announced the beta availability of Red Hat Software Collections 2.3 , Red Hat’s newest installment of open source web development tools, dynamic languages, and databases. Delivered on a separate lifecycle from Red Hat Enterprise Linux with a more frequent release cadence, Red Hat Software Collections bridges developer agility and production stability by helping to accelerate the creation of modern applications that can then be more confidently deployed into production. New additions to Red Hat Software Collections 2.3...

Using API keys securely in your OpenShift microservices and applications
Article

Using API keys securely in your OpenShift microservices and applications

Shane Boulden

In the microservices landscape, the API provides an essential form of communication between components. To allow secure communication between microservices components, as well as third-party applications, it's important to be able to consume API keys and other sensitive data in a manner that doesn't place the data at risk. Secret objects are specifically designed to hold sensitive information, and OpenShift makes exposing this information to the applications that need it easy. In this post, I'll demonstrate securely consuming API keys...

Article Thumbnail
Article

Are "Web Components" in the future for PatternFly?

Dana Gutride

Web development has become increasingly complicated in recent years. The questions of which framework to use often can eat up much time at the start of a project.

A Practical Introduction to Docker Container Terminology
Article

Containerize your Ruby on Rails/PostgreSQL application with RHSCL Docker images

Josef Stříbný

New RHSCL-based Docker images that are now in beta let you easily build your own application containers even without writing any Dockerfiles. Here is an example of a Ruby on Rails application built with the Ruby 2.2 image using the PostgreSQL 9.4 image as a database backend. For building the application image we will use a tool called source-to-image (s2i, formally sti) which is a program that can build your application image on top of s2i images. For example the...

A Practical Introduction to Docker Container Terminology
Article

Red Hat Software Collections 2.0 Docker images, Beta release

Joe Orton

I'm very happy to announce that Docker images based on collections from Red Hat Software Collections (RHSCL) 2.0 are in beta testing. The images are available from the Red Hat Container Registry , and we've got the set of collections for language, databases and web servers covered - a complete list is below. If you've not tried out the Docker package from RHEL7 Extras, you need to enable the Extras channel, install the docker page, and start the docker service...

Software Collections logo
Article

Red Hat Software Collections 2 - now generally available

Mike Guerette

Excellent news - Red Hat has announced the general availability of Red Hat Software Collections 2. You'll see considerable additions to support multiple language versions. For example, it includes updates to "Python 2.7, continues to support Python 3.3 and also adds Python 3.4 – providing a fully-supported language library and blending developer agility with production stability." New Collections B uild ing upon an already robust selection of the latest, stable developer tools, Red Hat Software Collections 2 adds more than...

Article Thumbnail
Article

Asciidoctor on OpenShift

Samuel Mendenhall

Asciidoctor encompasses and builds an ecosystem around Asciidoc for writing documentation, and well, writing anything. If you want to host your own blog, documentation site, book, ect.., Asciidoctor would be an excellent choice. If you want to do that in OpenShift, that is what I'm going to help you with. Getting Started Create a Sinatra ruby gear or on the command line. rhc app create mydocs sinatra ruby-2.0 The current sinatra-example is geared for ruby 1.9 current, https://github.com/openshift/ . It...

Software Collections feature image
Article

Software Collections 2.0 now in BETA - new and shiny

Mike Guerette

It seems like just a few months ago when we introduced Red Hat Software Collections 1.0 (RHSCL), followed by 1.1 and 1.2 will lots of additions and updates. Today, Red Hat has announced Red Hat Software Collections 2.0 with a truck load of important languages, tools, databases and web servers - including the addition of a new component: Passenger. Here's the list: Python 3.4 – the latest stable, major release of Python 3 and includes a number of additional utilities...