Chris Seaton @ VMSS16: JRuby+Truffle: Why it’s Important to Optimise the Tricky Parts

Channel:softdevteamuk · Length:1:02:43 · Published:2016-07-07 · Views:5059

Watch on YouTube

Summary

Chris Seaton talks about JRuby+Truffle, explaining how the Truffle and Graal combination optimises the tricky parts of Ruby and why it outperforms other Ruby implementations.

Why HN recommends it

HN recommends it for specifics on how Truffle and Graal achieve strong dynamic-language performance.

Chris Seaton gave this talk recently about JRuby+Truffle and some specifics about how it optimises so well compared to other Ruby implementations. — HN, 2016

Python, Ruby & scripting languages · Software performance & optimization · Compilers, interpreters & program analysis

Subtitles (excerpt)

[Music] thanks so this talk is about why it's important to optimize the tricky parts and some of the lessons we've learned from doing Ruby about where it's important to spend the time focusing on optimizations for a dynamic language I also work for oracles so the same Safe Harbor disclosure is just a research project it's not ready for people to actually use yet so I'm going to be talking about Ruby Ruby is an imperative of language 10 years ago it probably would have been called a scripting language that's probably a little bit unfair and outmoded these days Ruby poers Behemoth websites like GitHub it used to power uh Twitter so it's used for really large scale Enterprise applications so uh scripting language is playing it down a bit I think the scripting side of it comes from Pearl but people don't really use the pear isms anymore people use it more like a small talk language these days so it's object orientated everything's in objects in including primitive numbers and things like that um people write explicit classes in it um rather than prototypes as in JavaScript Ruby is very much a batteries included language you get quite a large standard library with it that's in contrast to languages like JavaScript and there more like

On Hacker News

I hear the Truffle+Graal combination is getting very good results about Ruby. Here is video about it (pointed to the missing-method example): [1] They're hitting 35x in some benchmarks [2]. Most benefits being in workloads where Ruby has to continuously talk to C; the result-passing part gets compiled away. It is available in Java 9, if I'm not mistaken. LLVM IR bytecode ingestion is in preparati… — BenoitP, 2016-12
Chris Seaton gave this talk recently about JRuby+Truffle and some specifics about how it optimises so well compared to other Ruby implementations. [VIDEO] Previous discussion [LINK] — matthewrudy, 2016-07
> I understand that a JIT engine cant do this, due to speed. Most serious JIT engines do! For example V8, LuaJIT, Graal, C2. > But would be surprised that a LLVM compiler with a custom-designed heuristic for specific optimizations cant manage this. Rubinius for example tried writing custom optimisations like you're describing and didn't get very far. LLVM is not designed for these kind of optimis… — chrisseaton, 2019-04

Related videos