Aftershoot1 open job

Senior Rust Developer

Systems, C++ and performancePosted 3 weeks agovia Himalayas, a remote job board

Work type
RemoteIn India
Experience
2–4 years
Pay
Not listed
Posted
3 weeks ago
Before you apply: make your resume fit this job

Skills it mentions

Nice to have

Add your skills to see which ones you have.

Interview questions for this job6 with answers below, on Rust, C++ and C

About the job

At Aftershoot, we’re building more than just AI tools; we’re building a global community of photographers who spend less time behind their screens and more time behind the lens. Every feature we create, every update we ship, is designed to make post-processing easier, faster, and smarter for photographers around the world. From culling to editing to retouching. Our AI tools do all the heavy lifting, so photographers can focus on what they do best: capturing moments, telling stories, and creating magic.

We’re a fast-growing, passionate team backed by over 30,000+ photographers and $10 M+ in ARR.

But we’re just getting started. Our mission is clear: solve the biggest pain points in photography, and keep evolving with photographers who use our tools daily.

If you care deeply about building meaningful products, working with curious and driven teammates, and being part of a team that genuinely loves what they do, we’d love to meet you.

Let’s create the future of AI in photography, together.

🚀Your Mission

We're looking for a SeniorSoftware Engineer (Rust/C++) to join our core engineering team at Aftershoot. The ideal candidate is proficient in Rust, C++, or both, with a strong grasp of systems programming and performance optimization. You'll work on building high-performance, scalable backend components that power our AI-driven photo workflows. From architecting low-level modules to collaborating with AI and product teams, your work will directly impact the speed, reliability, and innovation of our platform.

🎯What You Will Be Doing

  • Developing the core backend server in Rust that runs locally alongside the Electron app

  • Designing and implementing APIs for communication between the Electron frontend and Rust backend

  • Managing efficient IPC (Inter-Process Communication) between the two processes

  • Handling local data persistence and storage solutions

  • Optimizing performance for system resources (CPU, memory, disk I/O)

💪What We’re Looking For

  • 2-4 years of professional experience in software development with a focus on Rust, C++, or both.

  • Experience with low-level programming, system programming, or performance-critical applications.

  • Strong problem-solving skills, especially in memory management and performance optimization.

  • Good communication skills and the ability to collaborate effectively within a team.

  • Proactive approach to ownership and delivering projects successfully.

Bonus Skills (Nice to Have):

  • Experience with image processing.

  • Familiarity with Rust libraries like image, imageproc, or C/C++ bindings such as OpenCV.

What happens after you apply?

  1. Step 1: If your profile aligns with our vibe and requirements for the role, our people team will reach out to you for a brief phone call.

  2. Step 2: If everything aligns, your next chat will be with one of your future team members to better understand the role and your experience.

  3. Step 3: You will then be given a task - this helps us evaluate your thought process and help you showcase your expertise.

  4. Step 4: If everything goes well, you will meet the leadership for a quick bar-raiser round.

  5. Step 5: If you do manage to clear all rounds, this is the point we make an offer, shake hands, and welcome you to the team.

You will work with:

  1. Captain: Himanshu.

  2. Team Members: Sparsh,Uttarayan,Amit, and the rest of the Aftershoot team.

Originally posted on Himalayas

Interested?Senior Rust Developer at Aftershoot

Apply on Himalayas (opens in a new tab)

The job ad ends here

Interview questions for this job6 with answers, on Rust, C++ and C

Interview questions for this job

For the skills the ad mentions: Rust, C++ and C.

65 questions
  • What is the syntax for a multiline string literal?Rust

    All string literals can be broken across several lines; for example:

    let string = "line one
    line two";
    

    is a two line string, the same as "line one\nline two" (of course one can use the \n newline escape directly too). If you wish to just break a string across multiple lines for formatting reasons you can escape the newline and leading whitespace with a \; for example:

    let string = "one line \
        written over \
        several";
    

    is the same as "one line written over several".

    If you want linebreaks in the string you can add them before the \:

    let string = "multiple\n\
                  lines\n\
                  with\n\
                  indentation";
    

    It's the same as "multiple\nlines\nwith\nindentation";

    From Stack Overflow: asked by Dumbapples, answered by huon (CC BY-SA 4.0)

  • What is the copy-and-swap idiom?C++

    Overview

    Why do we need the copy-and-swap idiom?

    Any class that manages a resource (a wrapper, like a smart pointer) needs to implement The Big Three. While the goals and implementation of the copy-constructor and destructor are straightforward, the copy-assignment operator is arguably the most nuanced and difficult. How should it be done? What pitfalls need to be avoided?

    The copy-and-swap idiom is the solution, and elegantly assists the assignment operator in achieving two things: avoiding code duplication, and providing a strong exception guarantee.

    How does it work?

    Conceptually, it works by using the copy-constructor's functionality to create a local copy of the data, then takes the copied data with a swap function, swapping the old data with the new data. The temporary copy then destructs, taking the old data with it. We are left with a copy of the new data.

    In order to use the copy-and-swap idiom, we need three things: a working copy-constructor, a working destructor (both are the basis of any wrapper, so should be complete anyway), and a swap function.

    A swap function is a non-throwing function that swaps two objects of a class, member for member. We might be tempted to use std::swap instead of providing our own, but this would be impossible; std::swap uses the copy-constructor and copy-assignment operator within its implementation, and we'd ultimately be trying to define the assignment operator in terms of itself!

    (Not only that, but unqualified calls to swap will use our custom swap operator, skipping over the unnecessary construction and destruction of our class that std::swap would entail.)

    An in-depth explanation

    The goal

    Let's consider a concrete case. We want to manage, in an otherwise useless class, a dynamic array. We start with a working constructor, copy-constructor, and destructor:

    #include <algorithm> // std::copy
    #include <cstddef> // std::size_t
    class dumb_array
    {
    public:
        // (default) constructor
        dumb_array(std::size_t size = 0)
            : mSize(size),
              mArray(mSize ? new int[mSize]() : nullptr)
        {
        }
        // copy-constructor
        dumb_array(const dumb_array& other)
            : mSize(other.mSize),
              mArray(mSize ? new int[mSize] : nullptr)
        {
            // note that this is non-throwing, because of the data
            // types being used; more attention to detail with regards
            // to exceptions must be given in a more general case, however
            std::copy(other.mArray, other.mArray + mSize, mArray);
        }
        // destructor
        ~dumb_array()
        {
            delete [] mArray;
        }
    private:
        std::size_t mSize;
        int* mArray;
    };
    

    This class almost manages the array successfully, but it needs operator= to work correctly.

    A failed solution

    Here's how a naive implementation might look:

    // the hard part
    dumb_array& operator=(const dumb_array& other)
    {
        if (this != &other) // (1)
        {
            // get rid of the old data...
            delete [] mArray; // (2)
            mArray = nullptr; // (2) *(see footnote for rationale)
            // ...and put in the new
            mSize = other.mSize; // (3)
            mArray = mSize ? new int[mSize] : nullptr; // (3)
            std::copy(other.mArray, other.mArray + mSize, mArray); // (3)
        }
        return *this;
    }
    

    And we say we're finished; this now manages an array, without leaks. However, it suffers from three problems, marked sequentially in the code as (n).

    Read the rest at the sourceFrom Stack Overflow: asked by GManNickG, answered by GManNickG (CC BY-SA 4.0)

  • What is the strict aliasing rule?C

    A typical situation where you encounter strict aliasing problems is when overlaying a struct (like a device/network message) onto a buffer of the word size of your system (like a pointer to uint32_ts or uint16_ts). When you overlay a struct onto such a buffer, or a buffer onto such a struct through pointer casting you can easily violate strict aliasing rules.

    So in this kind of setup, if I want to send a message to something I'd have to have two incompatible pointers pointing to the same chunk of memory. I might then naively code something like this:

    #include <stdint.h>
    #include <stdlib.h>
    #include <stdio.h>
    typedef struct Msg {
        uint32_t a;
        uint32_t b;
    } Msg;
    // Sends a buffer over a 16-bit channel
    void SendWords(uint16_t *buf, size_t sz) {
        for(size_t i = 0; i < sz; ++i)
            printf("%.4x ", buf[i]);
        printf("\n");
    }
    int main(void) {
        Msg msg;
        // Send a bunch of messages
        for(int i = 0; i < 10; ++i) {
            msg.a = 0xDEADBEEF;
            msg.b = i;
            SendWords((uint16_t*)&msg, sizeof(msg)/sizeof(uint16_t));
        }
    }
    

    The strict aliasing rule makes this setup illegal: dereferencing a pointer that aliases an object that is not of a compatible type or one of the other types allowed by C 2011 6.5 paragraph 71 is undefined behavior. Unfortunately, you can still code this way, maybe get some warnings, have it compile fine, only to have weird unexpected behavior when you run the code. For example, when I compiled it with gcc -O2 it produced this very unexpected output:

    0000 0000 0000 0000
    0000 0000 0000 0000
    0000 0000 0000 0000
    ...
    

    See this snippet on Compiler Explorer for how GCC and Clang both produce different unintended outputs.

    To see why this behavior is undefined, we have to think about what the strict aliasing rule buys the compiler. Following this rule, the writes to msg cannot alias the reads of buf in SendWords. Consequently, an optimizing compiler can reorder the instructions, so that all assignments to msg happen before or after all the reads from buf in SendWords. In turn, it can then deduce that buf[0], ..., buf[3] can be loaded from memory before the loop is executed, or that only the msg values from the last iteration of the loop need to be calculated. Either way, removing the redundant stores and loads (under this rule) makes the generated code faster. Before strict aliasing was introduced, the compiler had to live in a state of paranoia that the contents of buf could change by any preceding memory stores. So to get an extra performance edge, and assuming most people don't type-pun pointers, the strict aliasing rule was introduced.

    So how do I get around this?

    Read the rest at the sourceFrom Stack Overflow: asked by Benoit, answered by Doug T. (CC BY-SA 4.0)

  • Why are Rust executables so huge?Rust

    Rust uses static linking to compile its programs, meaning that all libraries required by even the simplest Hello world! program will be compiled into your executable. This also includes the Rust runtime.

    To force Rust to dynamically link programs, use the command-line arguments -C prefer-dynamic; this will result in a much smaller file size but will also require the Rust libraries (including its runtime) to be available to your program at runtime. This essentially means you will need to provide them if the computer does not have them, taking up more space than your original statically linked program takes up.

    For portability I'd recommend you statically link the Rust libraries and runtime in the way you have been doing if you were to ever distribute your programs to others.

    From Stack Overflow: asked by BitTickler, answered by AStopher (CC BY-SA 3.0)

  • When should static_cast, dynamic_cast, const_cast, and reinterpret_cast be used?C++

    static_cast

    static_cast is the first cast you should attempt to use. It does things like implicit conversions between types (such as int to float, or pointer to void*), and it can also call explicit conversion functions (or implicit ones). In many cases, explicitly stating static_cast isn't necessary, but it's important to note that the T(something) syntax is equivalent to (T)something and should be avoided (more on that later). A T(something, something_else) is safe, however, and guaranteed to call the constructor.

    static_cast can also cast through inheritance hierarchies. It is unnecessary when casting upwards (towards a base class), but when casting downwards it can be used as long as it doesn't cast through virtual inheritance. It does not do checking, however, and it is undefined behavior to static_cast down a hierarchy to a type that isn't actually the type of the object.

    const_cast

    const_cast can be used to remove or add const to a variable; no other C++ cast is capable of removing it (not even reinterpret_cast). It is important to note that modifying a formerly const value is only undefined if the original variable is const; if you use it to take the const off a reference to something that wasn't declared with const, it is safe. This can be useful when overloading member functions based on const, for instance. It can also be used to add const to an object, such as to call a member function overload.

    const_cast also works similarly on volatile, though that's less common.

    dynamic_cast

    dynamic_cast is exclusively used for handling polymorphism. You can cast a pointer or reference to any polymorphic type to any other class type (a polymorphic type has at least one virtual function, declared or inherited). You can use it for more than just casting downwards – you can cast sideways or even up another chain. The dynamic_cast will seek out the desired object and return it if possible. If it can't, it will return nullptr in the case of a pointer, or throw std::bad_cast in the case of a reference.

    dynamic_cast has some limitations, though. It doesn't work if there are multiple objects of the same type in the inheritance hierarchy (the so-called 'dreaded diamond') and you aren't using virtual inheritance. It also can only go through public inheritance - it will always fail to travel through protected or private inheritance. This is rarely an issue, however, as such forms of inheritance are rare.

    reinterpret_cast

    reinterpret_cast is the most dangerous cast, and should be used very sparingly. It turns one type directly into another — such as casting the value from one pointer to another, or storing a pointer in an int, or all sorts of other nasty things. Largely, the only guarantee you get with reinterpret_cast is that normally if you cast the result back to the original type, you will get the exact same value (but not if the intermediate type is smaller than the original type). There are a number of conversions that reinterpret_cast cannot do, too. It's often abused for particularly weird conversions and bit manipulations, like turning a raw data stream into actual data, or storing data in the low bits of a pointer to aligned data. For those cases, see std::bit_cast.

    C-Style Cast and Function-Style Cast

    C-style cast and function-style cast are casts using (type)object or type(object), respectively, and are functionally equivalent. They are defined as the first of the following which succeeds:

    • const_cast
    • static_cast (though ignoring access restrictions)
    • static_cast (see above), then const_cast
    • reinterpret_cast
    • reinterpret_cast, then const_cast

    Read the rest at the sourceFrom Stack Overflow: asked by James Eichele, answered by coppro (CC BY-SA 4.0)

  • Why should we hire you?Behavioural

    The strengths employers look for will depend on the job role. They may ask you questions like:

    • what are your main strengths?
    • why should we hire you?

    You can use specific examples to highlight your strengths, such as:

    • communication - to show you get on with others
    • problem solving - to show that you can find solutions
    • enthusiasm - to show that you have a positive attitude to work
    • flexibility - to show that you can adapt to different ways of working

    Plan your answers around 2 or 3 examples that are relevant to the job. You can back these up with qualifications or training you've done.

    From National Careers Service: interview advice (Open Government Licence v3.0)

Similar jobs

More like this: C++ and systems jobs in India (161) and Remote C++ and systems jobs in India (39)