YoVDO

Just-in-Time Compiling Ruby Regexps on TruffleRuby

Offered By: Ruby Central via YouTube

Tags

RubyConf Courses Regular Expressions Courses Finite State Machine Courses

Course Description

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore the cutting-edge advancements in Ruby regular expression performance in this RubyConf 2021 talk by Benoit Daloze and Josef Haider. Dive into the world of TruffleRuby and Truffle Regex, discovering how these technologies can execute Ruby Regexps up to 40 times faster than CRuby. Learn about the just-in-time compilation of Ruby Regexps to machine code using Truffle Regex, a Truffle language specifically designed for regular expressions. Understand the power of finite-state machines as a faster alternative to traditional backtracking regexp engines. Gain insights into GraalVM's unique capability to inline across languages, enabling optimized compilation of Ruby code and Regexps for maximum performance. The talk covers various aspects including TruffleRuby background, regex engines, finite state machines, regular expressions, TRegex, infinite quantifiers, capture groups, supported and unsupported features, performance benchmarks, and regular expression denial of service. Enhance your understanding of Ruby's regex optimization techniques and their practical applications in this informative 24-minute presentation.

Syllabus

Introduction
TruffleRuby
Background on regex engines
Finite State Machines
Regular Expressions
TRegex
Infinite Quantifiers
Capture Groups
Supported Features
Unsupported Features
The Loop
The State Machine
Performance
Micro benchmarks
Large benchmarks
Regular expression denial of service
Atomic groups
Conclusion
Outro


Taught by

Ruby Central

Related Courses

Programming Languages
University of Virginia via Udacity
Digital System Design
Indian Institute of Technology, Ropar via Swayam
Embedded Systems - Shape The World: Microcontroller Input/Output
The University of Texas at Austin via edX
Model Checking
Chennai Mathematical Institute via Swayam
Digital Systems: From Logic Gates to Processors
Universitat Autònoma de Barcelona (Autonomous University of Barcelona) via Coursera