Skip to content

Details

JOIN US ON ZOOM - We'll kick off at 18:30: https://esri.zoom.us/j/91259642983

********************
Welcome from Rust and Cpp Cardiff! More talks and chats about our favourite languages and all things tech!

This week we'll be joined by Andy Thomason, speaking to us about some of the awesome optimization capabilities in Rust, and Chris Light discussing some practical ways you can share memory across independent programs!
********************

Andy Thomason worked in Games and console development for many years, developing the Playstation 3 and Vita compiler back-ends, for example. After teaching computer science, he is now working at Genomics PLC in Oxford.

# Loop performance in Rust.

When writing simple loops in Rust, often LLVM will generate quite good code, but it often needs a bit of a helping hand. These days we want to avoid using intrinsics in our code. We can do this, and often will have to, but for everyday operations we want the code to be platform independent and easy to understand.

In numerical code, such as statistics or AI, we usually have two distinct operations, vector and reduction.

Vector operations, like summing two vectors, will often be quite fast, but we can improve this by using compiler flags to choose the optimal target.

Reduction operations read one or more vectors and generate a scalar result, such as the mean or variance of a set of numbers. We have to do a little more work with these loops to avoid the undefined behaviour and incorrect results in the naïve approach.

********************

Chris Light is a Software developer with Esri and fellow organiser of this meetup!

# Memory map files: How to share memory across independent programs: a rust and Cpp practical example of use

********************
Any Lightning Talks!? Drop us a message if you want to do a lightning talk!

Big thank you to Esri for sponsoring us!
********************

You may also like