r/cpp • • Oct 03 '26

C++ future at Adobe

So if anyone was still curious what happened to Hylo, or where Adobe stands in regards to the whole safety discussion,

David Sankel has done a talk at RustConf on the matter, Zngur: Simplified Rust/C++ Integration.

The way Adobe now sees C++ is described on slide 2, at 50 seconds mark.

80 Upvotes

109 comments sorted by

View all comments

151

u/inco100 Oct 03 '26 edited Oct 03 '26

To save time for the rest of the redditors:

We need C++ and Rust to play nice

  • Our flagship products are C++ based
  • Rust is playing a major role in future development

    • Rust is preferred language by developers
    • Rust is better suited for AI-assisted development
    • New file-format and other safety critical code must not use C++

114

u/kraytex Oct 03 '26

 Rust is preferred language by developers

I must be living in a cpp bubble.

0

u/[deleted] Oct 03 '26

[deleted] — view deleted comment

12

u/StaticCoder Oct 04 '26

I still don't understand why anyone would want to use Go. It manages to be even worse than older languages in practically every conceivable way. Like how about we have 2 layers of Hoare's billion dollar mistake?

2

u/tarranoth Oct 05 '26

It has very quick compile times, most of the tooling comes automatically with the toolchain like unittesting. Std lib is pretty exhaustive, consuming packages is straightforward to get started with, and there's reflection support.

There's definitely some (extremely) dubious choices in respect to error handling especially and still having issues with nil references. I guess it's moreso a case of golang being just simply "good enough" for the most part despite the core language design. I'd say really golang only got traction because of the tooling around the language being given thought from the get-go (whereas older languages have had to have package management and other features bolted on), rather than the design of the language itself being all that good.

18

u/Professional_Tank594 Oct 03 '26

How can you do aerospace in rust and go ? We are stuck on c++ due to processes , misra and so on .

0

u/[deleted] Oct 03 '26

[deleted] — view deleted comment

20

u/Professional_Tank594 Oct 03 '26

Ah I see. But really in embedded (on qnx / Linux App Level ) Rust doesn’t really solve any memory issues , since we don’t use much dynamic memory anyways due to memory fragmentation and so on. We almost never encounter any issues in that topic. Together with static analysis , misra and reviews almost all errors are on the logic level .

So the thing I really like about rust is the syntax like pattern matching and so on , but from a safety perspective it doesn’t add much.

39

u/Cross_22 Oct 03 '26

I met a Rust developer once..

4

u/jaaval Oct 04 '26

I’ve heard of them in the internet. 

37

u/strange-the-quark Oct 05 '26 edited Oct 05 '26

It is insane to me that C++ is considered a problem for "safety critical code", while at the same time AI-assisted development is not a safety concern.

7

u/NickSicilianu Oct 05 '26

Rust preference by who? I take Javascript before rust lol

10

u/[deleted] Oct 03 '26

What abt hylo?

→ More replies (14)

3

u/drbazza Oct 04 '26

Rust is better suited for AI-assisted development

Maybe the nuance here is 'assisted', rather than 'from scratch': there was a discussion over on Twitter where people were (brace yourselves) complaining about Rust due to its long compilation times (and binary downloads) as an anti-pattern for AI development.

0

u/[deleted] Oct 03 '26

[deleted] — view deleted comment

33

u/ts826848 Oct 03 '26 edited Oct 03 '26

arguably we are already there, see the Mythos security boom

Somewhat tangentially related, but Greg Kroah-Hartman recently gave a talk which (among other things) categorized the bugs Mythos found in the Linux kernel and his description of Mythos's results is... interesting. Quick summary (on phone, so hopefully no typos):

  • 79 reported vulnerabilities

    • 24 no detail at all "something crashed"
    • 14 not a bug at all
    • 3 totally made up data
    • 15 already fixed in the latest release

      • 11 by others
      • 4 by Anthropic
    • 26 actual bugs

      • 6 duplicates

(Note that this doesn't sum to 79; apparently GKH got a tarball and the contents didn't quite match the description)

Of the actual non-duplicate (?) bugs:

  • 7 "assume a malicious file system image" (i.e., if root mounts this bad things can happen; apparently well known to be not considered a security issue by Linux devs)
  • 2 "assume you can inject a malicious network packet in the middle of the stack" (needs root, not considered a security issue)
  • 2 NOMMU (1 io_uring, 1 regular, "not real issues")
  • 6 sctp networking issues for untrusted devices (SCTP used in enterprise networks, so "untrusted users" apparently don't exist in that context? "So minor, nobody really cares".
  • 2 ipv6 networking bugs, "nothing real"
  • 1 GPU driver for a local malicious user. "If you have a local malicious user with access to your GPU you could do a lot worse"

In total 10 "real" bugfixes, took ~1 hour of kernel development.

12

u/13steinj Oct 03 '26

Daniel [curl] had a similar experience.

It's 99.9999% marketing hype for their IPOs, every single time.

0

u/[deleted] Oct 03 '26

[deleted] — view deleted comment

12

u/no-sig-available Oct 03 '26

And even if it does some work, is this good use of trillions of dollars in resources?

14

u/_choam_ Oct 03 '26

I think proof based languages will be more important than any others in the future

10

u/tcbrindle Flux Oct 03 '26 edited Oct 03 '26

I don't see that being the case in the long run. Once AI gets good at safety, which will be in all kinds of safety not just limited to memory, and can generate safe code in any language -arguably we are already there, see the Mythos security boom- using a slow compiling language like rust would be a major useless bottle neck in the development pipeline.

Asking an LLM to generate a non-trivial amount of C++ "and please make sure there is no undefined behaviour" feels like it's approaching the halting problem.

But even if we assume that it's possible, it would almost certainly burn through a lot more of your token budget than writing the equivalent program in Rust, where it's trivially easy to identify any parts of the program that might admit UB.

(I think that actually Mojo might end up being the best bet in the long run, with its Pythonic syntax, memory safety and native performance -- but it's early days yet.)

5

u/Daemontatox Segfaulting Oct 03 '26

I think they are talking about suitability because of how helpful the compiler is , it gives very detailed errors and warnings and solutions aswell. So you dont have to keep prompting to fix this or fix that and thats great when you are vibe coding i guess.

6

u/_choam_ Oct 03 '26

Famously fast compiling c++

7

u/13steinj Oct 03 '26

C++ isn't exceptionally fast to compile, but they are not wrong there?

I can take the most complicated bit of C++ code I know, and a fair-comparison-amount-of-lines-of-rust that does close to the same thing, and Rust will compile slower.

There are two colleagues at work that really love Rust. They both openly admit the compile time is a serious problem and they don't understand how it's a thing. I haven't checked out Circle and tried to do any benchmarking (partially because it's not open source so knowing where and what to benchmark would be difficult), but it the borrow checker appears to incur enough of a cost to the frontend in Rust that if our Code was written in Rust today, I dread to think what would come out of our already 10-min+ TUs.

→ More replies (5)
→ More replies (10)