Talks
Speakers
Events
Topics
Sign in
Home
Talks
Speakers
Events
Topics
Leaderboard
Use
Analytics
Sign in
Suggest modification to this talk
Title
Description
@chancancode As much as we love Ruby, when you need to be really close to the metal, you have no choice but to use JavaScript. This is why I developed the javascript gem to help you harness the raw power of your machines. In this talk, we will examine the Ruby tricks and black magic hidden behind this ludicrous invention. Along the way, we will learn about how Ruby internally deal with variable lookups, method calls, scoping and bindings. Together, we will push the limits of the Ruby language, taking it to places Matz never ever envisioned! Talk given at GORUCO 2015: http://goruco.com
Date
Summarized using AI?
If this talk's summary was generated by AI, please check this box. A "Summarized using AI" badge will be displayed in the summary tab to indicate that the summary was generated using AI.
Show "Summarized using AI" badge on summary page
Summary
Markdown supported
In the talk titled "Dropping down to The Metal™", Godfrey Chan explores the intersection of Ruby and JavaScript, particularly emphasizing the performance advantages of using JavaScript when developers need to get closer to the hardware ('the metal'). Chan, a member of the Rails Core team, begins by introducing himself and humorously comparing Canadian culture to American perspectives. He humorously claims that thought leadership is 'dead', signaling his intention to challenge established ideas throughout his talk. **Key Points:** - **JavaScript Performance:** Chan highlights that JavaScript’s syntax allows for optimization, particularly through hints to the compiler which can enhance performance. He provides an illustration on how to compute the length of a triangle side efficiently using JavaScript, showing how simple adjustments yield measurable improvements in speed. - **Fusion of Ruby and JavaScript:** Chan proposes a conceptual blending of JavaScript’s efficient syntax with Ruby's powerful virtual machine. He introduces a gem he's developed, which enables Ruby to execute JavaScript code more effectively. Developers can install this gem using 'gem install javascript' to harness JavaScript's capabilities within Ruby applications. - **Interpretation of Code:** The mechanics behind how Ruby interprets code is discussed, including the distinction between syntax errors and runtime errors, which is crucial for error handling in any programming language. - **JavaScript Constructs in Ruby:** Chan shows how to correctly implement JavaScript constructs, such as functions and variables, within Ruby. He discusses the nuances of Ruby's interpretation of JavaScript code and how to handle errors like unhandled method calls through 'method_missing'. - **Encouragement to Explore:** Despite the technical depth, Chan emphasizes that the most important takeaway is the joy of programming. He urges developers to experiment with code and to continue finding pleasure in building projects, regardless of their seriousness or utility. Ultimately, Chan’s talk serves as both a technical exploration of Ruby and JavaScript's capabilities and a reminder to keep the joy of programming alive. He supports this journey with a playful attitude and encourages discussions around these topics in future coding endeavors.
Suggest modifications
Cancel