Braintrust28 open jobs

Software Engineer, Systems

Software engineeringPosted over 2 months agofrom Braintrust's own hiring page

Work type
On-siteNew York, San Francisco Bay Area, Seattle
Experience
Not stated
Pay
Not listedUsually $99k a yearSoftware engineering, median, all levels, in the US (Payscale)
Posted
Over 2 months agoOpen over 2 years
Before you apply: make your resume fit this job

Skills it mentions

Add your skills to see which ones you have.

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

About the job

About the company

Braintrust is the agent observability platform. By actively applying intelligence to agent traces and automatically surfacing the most critical patterns, Braintrust gives teams the visibility to understand how agents behave in production and the tools to improve them.

Teams at Notion, Stripe, Box, OpenAI, and Cloudflare use Braintrust to trace their agents, find the issues in their observability data, and run evals that tell them how to improve.

About the role

We're looking for a software engineer who loves to build high performance data processing systems. Our customers are scaled up companies who send complex, semi-structured data which they need to process and analyze in real-time. Our unique architecture allows them to store this data on-prem, while creating complex visualizations that load instantly. Check out our Brainstore blog post.

If you've worked on database systems, compilers, networks, or storage systems, and want to translate this knowledge to the AI field, this could be the role for you. You will play a significant role in the foundational system architecture, technology choices, and implementation. Our founding team has deep expertise in database and ML systems, and you'll be empowered to both collaborate closely with them and explore your own ideas.

What you'll do

As a systems engineer at Braintrust, you’ll help build the core systems powering Braintrust's ability to process and query massive volumes of unstructured data at enterprise scale. Areas of ownership include:

  • Contribute to the storage, indexing, and query execution performance of Brainstore.

  • Expanding Braintrust's btql query language.

  • Optimizing query patterns to improve performance across our platform.

Ideal candidate credentials

  • Expert-level understanding of systems programming (C++ or Rust, concurrency, databases, operating systems)

  • Previous experience founding or working at startups is a plus

  • Has written prompts / tinkered with GPT models and apps

Benefits include

  • Medical, dental, and vision insurance

  • Daily lunch, snacks, and beverages

  • Commuter benefits

  • Flexible time off

  • Competitive salary and equity

  • Wifi & cellphone stipend

Equal opportunity

Braintrust is an equal opportunity employer. All applicants will be considered for employment without attention to race, color, religion, sex, sexual orientation, gender identity, national origin, veteran or disability status.

Interested?Software Engineer, Systems at Braintrust

Apply on company site (opens in a new tab)

The job ad ends here

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

Interview questions for this job

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

242 questions
  • What is the normal equation?Machine learningIntermediate

    Normal equations are equations obtained by setting equal to zero the partial derivatives of the sum of squared errors (least squares); normal equations allow one to estimate the parameters of a multiple linear regression.

    From Data Science Interviews (CC BY 4.0)

  • What are the differences between a pointer variable and a reference variable?C++
    1. A pointer can be re-assigned:

      int x = 5;
      int y = 6;
      int *p;
      p = &x;
      p = &y;
      *p = 10;
      assert(x == 5);
      assert(y == 10);
      

      A reference cannot be re-bound, and must be bound at initialization:

      int x = 5;
      int y = 6;
      int &q; // error
      int &r = x;
      
    2. A pointer variable has its own identity: a distinct, visible memory address that can be taken with the unary & operator and a certain amount of space that can be measured with the sizeof operator. Using those operators on a reference returns a value corresponding to whatever the reference is bound to; the reference’s own address and size are invisible. Since the reference assumes the identity of the original variable in this way, it is convenient to think of a reference as another name for the same variable.

      int x = 0;
      int &r = x;
      int *p = &x;
      int *p2 = &r;
      assert(p == p2); // &x == &r
      assert(&p != &p2);
      
    3. It is possible to create a pointer to a pointer, but not a pointer to a reference.

       int **pp; // OK, pointer to pointer
       int &*pr; // ill-formed, pointer to reference
      
    4. It is possible to create an array of pointers, but not an array of references.

      int *ap[]; // OK, array of pointers
      int &ar[]; // ill-formed, array of references
      
    5. You can have arbitrarily nested pointers to pointers offering extra levels of indirection. References only offer one level of indirection because references to references collapse.

      int x = 0;
      int y = 0;
      int *p = &x;
      int *q = &y;
      int **pp = &p;
      **pp = 2;
      pp = &q; // *pp is now q
      **pp = 4;
      assert(y == 4);
      assert(x == 2);
      
    6. A pointer can be assigned nullptr, whereas a reference must be bound to an existing object. If you try hard enough, you can bind a reference to nullptr, but this is undefined and will not behave consistently.

      /* the code below is undefined; your compiler may optimise it
       * differently, emit warnings, or outright refuse to compile it */
      int &r = *static_cast<int *>(nullptr);
      // prints "null" under GCC 10
      std::cout
          << (&r != nullptr
              ? "not null" : "null")
          << std::endl;
      bool f(int &r) { return &r != nullptr; }
      // prints "not null" under GCC 10
      std::cout
          << (f(*static_cast<int *>(nullptr))
              ? "not null" : "null")
          << std::endl;
      

      You can, however, have a reference to a pointer whose value is nullptr.

    7. Pointers are ContiguousIterators (of an array). You can use ++ to go to the next item that a pointer is pointing to, and + 4 to go to the 5th element.

    8. A pointer needs to be dereferenced with * to access the object it points to, whereas a reference can be used directly. A pointer to a class/struct uses -> to access its members whereas a reference uses a ..

    9. Const references and rvalue references can be bound to temporaries (see temporary materialization). Pointers cannot (not without some indirection):

      const int &x = int(12); // legal C++
      int *y = &int(12); // illegal to take the address of a temporary.
      

      This makes const & more convenient to use in argument lists and so forth.

    From Stack Overflow: asked by prakash, answered by Brian R. Bondy (CC BY-SA 4.0)

  • Is there a command to update Cargo to the latest official release?Rust

    You should update rustc and cargo based on how you installed it. If you used rustup, a rustup update should suffice. If you used a package manager or a binary installer, check those sources for an update.

    rustc and cargo are shipped together, but that doesn't mean that their versions need to match. In fact, they do not match until Rust 1.26.0, when the Cargo binary was changed to print the Rust version.

    I have the same versions of rustc and cargo that you do; those are the ones that correspond to the Rust 1.9 release. There's nothing to worry about.

    If you really want to, you can download a nightly version of Cargo or compile your own. As long as your version exists in your PATH before the older one, it will be used.

    I used to do this with my local Rust builds in order to have a version of Cargo at all, although rustup now automatically uses the cargo from the most recent stable version when there isn't one available in the current toolchain, which is nice.

    From Stack Overflow: asked by Filip Allberg, answered by Shepmaster (CC BY-SA 4.0)

  • What is the PR (precision-recall) curve?Machine learningIntermediate

    A precision-recall curve (or PR Curve) is a plot of the precision (y-axis) and the recall (x-axis) for different probability thresholds. Precision-recall curves (PR curves) are recommended for highly skewed domains where ROC curves may provide an excessively optimistic view of the performance.

    From Data Science Interviews (CC BY 4.0)

  • Why is reading lines from stdin much slower in C++ than Python?C++

    tl;dr: Because of different default settings in C++ requiring more system calls.

    By default, cin is synchronized with stdio, which causes it to avoid any input buffering. If you add this to the top of your main, you should see much better performance:

    std::ios_base::sync_with_stdio(false);
    

    Normally, when an input stream is buffered, instead of reading one character at a time, the stream will be read in larger chunks. This reduces the number of system calls, which are typically relatively expensive. However, since the FILE* based stdio and iostreams often have separate implementations and therefore separate buffers, this could lead to a problem if both were used together. For example:

    int myvalue1;
    cin >> myvalue1;
    int myvalue2;
    scanf("%d",&myvalue2);
    

    If more input was read by cin than it actually needed, then the second integer value wouldn't be available for the scanf function, which has its own independent buffer. This would lead to unexpected results.

    To avoid this, by default, streams are synchronized with stdio. One common way to achieve this is to have cin read each character one at a time as needed using stdio functions. Unfortunately, this introduces a lot of overhead. For small amounts of input, this isn't a big problem, but when you are reading millions of lines, the performance penalty is significant.

    Fortunately, the library designers decided that you should also be able to disable this feature to get improved performance if you knew what you were doing, so they provided the sync_with_stdio method. From this link (emphasis added):

    If the synchronization is turned off, the C++ standard streams are allowed to buffer their I/O independently, which may be considerably faster in some cases.

    From Stack Overflow: asked by JJC, answered by Vaughn Cato (CC BY-SA 4.0)

  • Why do you think you're a good fit for our company?Behavioural

    Employers want to see that you have a genuine interest in working for them by asking questions like:

    • what do you know about our company?
    • why do you think you're a good fit for our company?
    • why do you want to work for us?

    To prepare for questions about the employer, you need to research the company. You should look at their website and 'about us' pages to find out more about their products, services and values.

    Show what you've learned about the company throughout the interview.

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

Similar jobs

More like this: Software engineer jobs in New York (301), Jobs in New York (6,234) and Software engineer jobs in the USA (1,765)