26 Mar 2019
Ariel Hoh gives an overview of Rust procedural macros during a Rust Auckland meet up.
Slides Repository: https://github.com/azriel91/proc_macro_rules
Online presentation: https://gitpitch.com/azriel91/proc_macro_rules/master?grs=github&t=night#/
Slides Repository: https://github.com/azriel91/proc_macro_rules
Online presentation: https://gitpitch.com/azriel91/proc_macro_rules/master?grs=github&t=night#/
- 3 participants
- 54 minutes
5 Nov 2017
A whirlwind tour through a (macro_rules 1.0!) macro that interprets everyone’s favorite Turing tarpit, Brainfuck, completely at compile time. I’ll highlight various components such as number encoding, arithmetic, input/output and explain how they work.
This is not a macro tutorial. I’ll cover a few techniques that you might possibly be able to use in real code, such as how to set up a recursive macro with an accumulator, but I’ll be breezing through them to get to the fun stuff, like memory zippers and “Zermelo numbers” (a term I may have invented).
About Alex Burka:
Alex is a robotics graduate student at the University of Pennsylvania. He got into Rust by writing his research software (a hardware controller and web interface for a sensor suite), and continues to spend too much of his free time writing macros.
This is not a macro tutorial. I’ll cover a few techniques that you might possibly be able to use in real code, such as how to set up a recursive macro with an accumulator, but I’ll be breezing through them to get to the fun stuff, like memory zippers and “Zermelo numbers” (a term I may have invented).
About Alex Burka:
Alex is a robotics graduate student at the University of Pennsylvania. He got into Rust by writing his research software (a hardware controller and web interface for a sensor suite), and continues to spend too much of his free time writing macros.
- 1 participant
- 18 minutes
5 Nov 2017
Many times you must reuse code
And your generics aren’t commode
Can you deal in the macro dark arts
Recompose code of similar parts
Or would the compiler explode?
Rejoice! Follow now our ways
Unlock the compiler’s high praise
Listen here to this initiation
Each eldritch arcane incantation
Summons help ‘gainst the terrors we face.
About Geoffroy Couprie:
Geoffroy handles security and quality assurance at Clever Cloud, develops in Rust and researches on parser security at VideoLAN. He thinks a lot about cryptography, protocol design and data management.
And your generics aren’t commode
Can you deal in the macro dark arts
Recompose code of similar parts
Or would the compiler explode?
Rejoice! Follow now our ways
Unlock the compiler’s high praise
Listen here to this initiation
Each eldritch arcane incantation
Summons help ‘gainst the terrors we face.
About Geoffroy Couprie:
Geoffroy handles security and quality assurance at Clever Cloud, develops in Rust and researches on parser security at VideoLAN. He thinks a lot about cryptography, protocol design and data management.
- 1 participant
- 29 minutes
1 Sep 2017
Building Rocket by Sergio Benitez
Rocket is a web framework for Rust that delivers simplicity, reliability, and performance -- a rare combination. Rocket's ability to deliver in all three areas is largely enabled by Rust's code generation facilities. Based on developer input, Rocket generates code that eliminates boilerplate and leads to more robust, secure, and predictable web applications.
This talk dissects Rocket and its code generation by describing how Rocket is built. Special attention is placed on elucidating Rocket's use of present and future code generation facilities in Rust.
Rocket is a web framework for Rust that delivers simplicity, reliability, and performance -- a rare combination. Rocket's ability to deliver in all three areas is largely enabled by Rust's code generation facilities. Based on developer input, Rocket generates code that eliminates boilerplate and leads to more robust, secure, and predictable web applications.
This talk dissects Rocket and its code generation by describing how Rocket is built. Special attention is placed on elucidating Rocket's use of present and future code generation facilities in Rust.
- 1 participant
- 33 minutes
3 Jan 2017
Paul Stansifer from the Research team presents "Handsome Macros in Rust"
Joshua Cranmer from the Platform team presents "Exploring code coverage in Mozilla"
Marshall Moutenot from the Security team presents "Sandboxing Firefox"
Joseph Kelly from the Metrics team presents "Applied Statistics at Mozilla: Modeling ADIs to Performance Testing"
Help us caption & translate this video!
http://amara.org/v/2FhM/
Joshua Cranmer from the Platform team presents "Exploring code coverage in Mozilla"
Marshall Moutenot from the Security team presents "Sandboxing Firefox"
Joseph Kelly from the Metrics team presents "Applied Statistics at Mozilla: Modeling ADIs to Performance Testing"
Help us caption & translate this video!
http://amara.org/v/2FhM/
- 11 participants
- 1:25 hours
3 Jan 2017
Cameron Swords has not yet given us a description of this presentation, nor any keyword tags to make searching for this event easier.
Help us caption & translate this video!
http://amara.org/v/2FiC/
Help us caption & translate this video!
http://amara.org/v/2FiC/
- 1 participant
- 9 minutes