14 comments

  • londons_explore2 hours ago
    &gt; over 3 billion people to message securely each and every day.<p>Whatsapp is a chat application with 3 billion daily active users.<p>For those of you in the US (where Whatsapp is seldom used), this is a fact worth remembering.<p>If you want to build products for the rest of the world, you need to know how those users think and breathe - and for 3 billion of them, Whatsapp is how they talk.
    • jraph2 hours ago
      What one should do about this? I mean, beside working on lowering that number.<p>(Asking as a European who quite stubbornly refuses to install it - there are dozens of us. Dozens!)<p>Edit: please don&#x27;t participate in making WhatsApp even more inescapable as it is today.
      • mfashby2 minutes ago
        Force interoperability one way or another. WhatsApp is a closed system, if I want to use an alternative I&#x27;m stuck with adversarial interoperability, so stuff like Beeper (which is great, but...) which might get my account banned. Or waiting for some legislation to force WhatsApp to open it&#x27;s API and let me interact with my contacts there without being locked into their apps
      • tremon7 minutes ago
        Advocate protocols over platforms. Have your government take an active interest in opening up closed communication systems and mandating third-party client access.
      • harikb2 hours ago
        As a developer, I tried building an app that needs to use Whatsapp for communication. Unfortunately my phone number got blocked by the second test message. No Spam. Not marketing, just a test message to my own number. Along with it, they blocked my entire business, my LLC, and anything tied to it.<p>I have been trying to get hold of anyone or anything at Whatsapp. I&#x27;ve spent 6 months trying to navigate the bureaucracy. Facebook support claims they can&#x27;t touch WhatsApp; WhatsApp support ignores the Facebook side. If you&#x27;re building on WA, have a backup plan.<p>If any Whatsapp employee reading this can look into my WBA Account 1117362643780814
        • rvnx1 hour ago
          Telegram API is easier to handle as far as I know if that can somehow help (in case you want live ChatGPT or notifications for yourself in a mobile chat)
          • yandie43 minutes ago
            Yeah telegram is so easy to develop with - I was blown away. I was able to spin up a bot that checks for GE appointments with minimal effort.
          • harikb1 hour ago
            I will look into it. But my user base is either WhatsApp or plain SMS text messaging.
      • embedding-shape2 hours ago
        I guess if you want to lower that number, you&#x27;d need to build something better, in some way. Answered as another European who&#x27;ve had Whatsapp forever, as some stubborn people refuse to move away from it, and also bunch of businesses use it.
        • 01HNNWZ0MV43FF1 hour ago
          Network effect is killer. &quot;better&quot; would include having more than 3 billion people already on it.<p>Maybe the EU or China will crack down on it. A single company shouldn&#x27;t decide who gets to talk to half the world. If that company is American they will not tolerate it for long.<p>Personally DeltaChat is my new favorite Thing but it falls afoul of Zooko&#x27;s Triangle - A WhatsApp number or POTS number is short because it&#x27;s centrally controlled and you have to pay for each one. DeltaChat has public keys, so I have 20 of them, and nobody can control who gets one, but they&#x27;re incredibly long... the QR codes are nightmares.
          • embedding-shape1 hour ago
            &gt; Network effect is killer. &quot;better&quot; would include having more than 3 billion people already on it.<p>At one point people moved from something else to Whatsapp, and that happened before Whatsapp had 3 billion people on it. If it&#x27;s good, early adopters will adopt it and want others to adopt it too, then it snowballs from there.<p>It has happened before, and as long as new regulation doesn&#x27;t solidify Whatsapp&#x2F;FB in their position, it can happen again :)
            • riffraff39 minutes ago
              WhatsApp happened at a time when, in Europe, you paid for SMS.<p>WhatsApp allowed people to send SMS without paying, or rather, paying just once to buy the app, so it was instantly valuable if you just convinced your spouse or parents or a single friend to install it.<p>To overcome it now, you need a lot more effort (or rely on enshittification, which I&#x27;m sure will happen).
              • embedding-shape12 minutes ago
                No, before Whatsapp, people were mostly using Facebook messages, at least where I lived at the time.<p>And no one was paying per SMS at the time we were using SMS for communication, almost everyone I know were on monthly plans that gave you N text messages and N minutes of calls for static sum each month.<p>The first people I saw who started using whatsapp, was people who were communicating across the border, because even if you had a monthly plan, those didn&#x27;t include international messages. Eventually we all converged on whatsapp because that&#x27;s what outside family and relatives used anyways.
      • londons_explore2 hours ago
        Make your customer support on whatsapp. &quot;Drop us a message to change your order&quot;. Allow ordering&#x2F;enquiries over whatsapp.<p>Send 2 factor verification pins over whatsapp - it is more reliable than SMS and generally there is a better 1:1 mapping between whatsapp accounts and real humans than phone numbers, so it is a good anti-spam or good way to distribute &quot;first month free&quot; type deals whilst keeping abuse low.<p>Obviously make sure all URL&#x27;s have info cards properly rendered in Whatsapp for good share-ability.
        • jraph2 hours ago
          And now your customers are required to agree to Meta&#x27;s term of services and to run some black box software, and you are screwed if Meta decides your business or your customers need to be kicked out.
        • sieabahlpark1 hour ago
          [dead]
      • galangalalgol2 hours ago
        Can you describe your reasons? I haven&#x27;t developed an opinion as no one here uses it.
        • jraph2 hours ago
          I refuse to use proprietary software as much as I can, especially when it has a strong network effect where it encourages others to join.<p>Meta is also a despicable company, they don&#x27;t need my help to succeed.<p>(edit: and I haven&#x27;t abandoned the idea to switch back to a Linux mobile OS at some point, and WhatsApp would be a pain)
    • moomoo111 hour ago
      Sure, but like with most things, maybe like 200 million max of them in NA&#x2F;EU would actually bring in real money.
    • Capricorn24811 hour ago
      Doesn&#x27;t this description describe Facebook itself? Should we make apps more like that as well? Because they could not be more polar opposite each other.
  • erithax3 hours ago
    &gt; We believe that this is the largest rollout globally of any library written in Rust.<p>I think that crown currently goes to <a href="https:&#x2F;&#x2F;github.com&#x2F;googlefonts&#x2F;fontations" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;googlefonts&#x2F;fontations</a> which is included in Chromium, not sure if it&#x27;s on all platforms yet. Moreover, the translative dependencies of Fontations (click through <a href="https:&#x2F;&#x2F;crates.io&#x2F;crates&#x2F;fontations&#x2F;0.3.0&#x2F;dependencies" rel="nofollow">https:&#x2F;&#x2F;crates.io&#x2F;crates&#x2F;fontations&#x2F;0.3.0&#x2F;dependencies</a>) should have an even (slightly) larger install-base.<p>EDIT: from the quote you can also gather that they don&#x27;t use <a href="https:&#x2F;&#x2F;github.com&#x2F;signalapp&#x2F;libsignal" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;signalapp&#x2F;libsignal</a>
    • dcsommer1 hour ago
      Just for reference, Wamedia ships on the major Meta apps and on iOS, Android, Desktop, and Web platforms.
    • mdriley3 hours ago
      Just a few more Rust libraries we&#x27;ve shipped in Chromium:<p>- <a href="https:&#x2F;&#x2F;github.com&#x2F;image-rs&#x2F;image-png" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;image-rs&#x2F;image-png</a><p>- <a href="https:&#x2F;&#x2F;github.com&#x2F;webmproject&#x2F;CrabbyAvif" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;webmproject&#x2F;CrabbyAvif</a><p>- <a href="https:&#x2F;&#x2F;github.com&#x2F;RCasatta&#x2F;qr_code" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;RCasatta&#x2F;qr_code</a><p>- <a href="https:&#x2F;&#x2F;github.com&#x2F;unicode-org&#x2F;icu4x" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;unicode-org&#x2F;icu4x</a>
  • cong-or5 hours ago
    The 160k → 90k LOC reduction is nice, but the parallel rollout is the more interesting part. Running Rust alongside the C++ version and using differential fuzzing to check equivalence is a lot more realistic than “rewrite and pray.” You get incremental validation with the old system as a fallback. Curious how long they ran both before cutting over.<p>Binary size is a real concern on the client side. On servers the Rust stdlib overhead usually doesn’t matter, but when you’re shipping to billions of mobile devices, every KB counts. Good to see they invested in build tooling instead of just accepting the bloat.
    • galangalalgol5 hours ago
      Did they say anywhere what they did? Rebuilding the stdlib as part of your build can shrink it a lot depending on how much of it you use, but that is still nightly only. Maybe they went no_std or created their own?
      • surajrmal4 hours ago
        They didn&#x27;t but keep in mind that the app is currently 170MiB. The standard library shouldn&#x27;t have added more than a few hundred kilobytes. They already likely pay similar costs for c++, but it&#x27;s more worthwhile as they have a lot more c++ code total.<p>Also note that if you statically link to the rust std library, lto will excise the majority of it anyways, no need to rebuild it.
        • galangalalgol2 hours ago
          The default hello world stripped with one codegen unit and panic=abort was 342kB both nightly and stable. Adding lto dropped it 42kB in stable and 40kB in nightly. Adding build-std and only building core did not reduce it any further in size.
  • storystarling9 hours ago
    The hardest part of a rewrite like this is usually maintaining bug-for-bug compatibility with the legacy parser rather than the actual Rust implementation. Most real-world media files are malformed in some way that the C++ code implicitly handled, so if you write a strict parser you end up breaking valid user data. Differential fuzzing seems like the only practical way to map that behavior without manually reviewing millions of edge cases.
    • dwattttt8 hours ago
      It sounds like it&#x27;s a design goal of this &quot;wamedia&quot; to _not_ maintain bug compatibility with media players.
      • storystarling7 hours ago
        I suspect it is actually about maintaining permissiveness for malformed inputs rather than keeping security bugs. I ran into this building ingestion for a print-on-demand service where users upload technically broken PDFs that legacy viewers handle fine. If the new parser is stricter than the old one you end up rejecting files that used to work, which is a non-starter for the product.
    • rubymamis2 hours ago
      AI reply?
      • storystarling1 hour ago
        Not AI. Anyway, the real issue is permissiveness vs strict parsing—real-world files are messy.
  • nevi-me10 hours ago
    &gt; We believe that this is the largest rollout globally of any library written in Rust.<p>I suppose this is true because there&#x27;s more phones using WhatsApp than there are say Windows 11 PCs.<p>Given that WhatsApp uses libsignal, is it safe to assume that they haven&#x27;t been using the Rust library directly?
    • marisen9 hours ago
      WhatsApp doesn&#x27;t use libsignal, and Android is already pretty Rusty and deployed more than WhatsApp around the world (not just smartphone. Tons of &quot;embedded&quot; use cases also run on custom Android)
      • charcircuit2 hours ago
        &gt;deployed more than WhatsApp<p>If you count old Android versions before Rust was added.
      • pjmlp8 hours ago
        Like our gym devices that have a full tablet to run a basic application to control weights, talk about wasting money.
        • g947o8 hours ago
          It doesn&#x27;t make sense for that device alone, but the vendor probably supplies all the different equipment in the gym. Using a tablet simplifies their supply chain, deployment, debugging&#x2F;repair, app update process and simply supports more features. There are probably some connectivity features on the device, for example. When you look at all of that together, it&#x27;s hard to argue it&#x27;s wasting money.<p>It&#x27;s like complaining about Electron apps. For sure I love small native apps like everyone else. But, if Electron enables a company to ship cross-platform apps and iterate faster, who am I to say no?<p>(I happen to have seen some of those tablets in diagnostic mode and poked around a bit. These things are much more complicated than you think.)
          • jerf3 hours ago
            The major problem with sticking an Android tablet on to exercise equipment is the difference in life spans. Android tablets are generally going to last you 4-5 years. Weight equipment should be able to last decades. There is some simple &amp; cheap hardware that can last decades, but it is legitimately harder to program.<p>Even worse was an article some months back about Android tablets hooked to heating &amp; cooling systems expected to last 20 years. There&#x27;s no way those things are making it at scale.
            • g947o3 hours ago
              &gt; Weight equipment should be able to last decades.<p>&quot;should&quot; or &quot;actually can&quot;? Do you have references to show that&#x27;s the actual lifespan of the equipment, mechanically?
          • rswail6 hours ago
            Once you price in the cost of integration, plastics, ROHS, CE and other regulatory&#x2F;certifications, the extra cost of an Android tablet which already has a lot of that starts to make sense.<p>If you also add in the extra ease of things like device management across fleets etc, it becomes a no-brainer for the manufacturer.
          • pjmlp7 hours ago
            Well, doesn&#x27;t look like to me, and a plain ESP32 with a touch screen would do the job for displaying a weight bar with plus, minus and reset count buttons.
            • usrusr7 hours ago
              And then you get to a cardio unit where you want a completely different set of features and have to start over. Going lean on hardware only makes sense when you push out a very high number of units, when you have to deal with battery constraints or when you just have a lot of intertia, the combination of existing codebase and developer filter skillset.
              • pjmlp6 hours ago
                Except all the machines have the same feature set I mentioned.<p>Agree that wanting to hire cheap developers is why they did it that way, the current interface is so laggy that I would bet it is Web based, on top of running Android for nothing.
                • rswail6 hours ago
                  That&#x27;s not a problem of the platform, but is a problem of the developers.<p>The extra cost of an Android capable tablet (maybe $200 especially wholesale) is a minimal hardware cost considering the overall price of the equipment is in the thousands.<p>But finding good embedded developers is a very difficult problem to solve, much easier to find Android app developers and then you get the Android eco-system for free like device management, OTA updates etc.<p>Put all the sensors and controls on a USB bus and you need one or two actual embedded developers to deal with the drivers and the rest of the developers can build the UI that people see.<p>In the case of a gym, the person buying the equipment is the customer, not you.<p>They want features that will make you &quot;sticky&quot; to the gym, plus save costs on training you on how to use the equipment.
                • usrusr3 hours ago
                  Cardio units have neither a &quot;weight bar&quot; nor a repetition counter, but they have a whole universe of possible features in the realm of scripted sequences, reactions to HRM signals and even just &quot;making time pass&quot; features. With unbounded gimmickyness, the sky is the limit.<p>Personally, I&#x27;m a bit of an aficionado of close to the metal sports electronics. When I stare at gym screens I immediately notice updates that are supposed to come in once a second to get randomly delayed by what must be hundreds of millis. But I can totally see <i>why</i> they went that route. It&#x27;s a market where feature quantity is big as a success metric and using a maintenance-friendly platform is even bigger. Wether Android actually checks that box might be debatable, but a bad embedded implementation could easily be worse, no doubt about that.<p>In the old days, those screens would have randomly dropped into some Windows desktop failing to operate in some kiosk mode fantasy.
    • pjmlp8 hours ago
      If you watch <i>&quot;Microsoft is Getting Rusty: A Review of Successes and Challenges&quot;</i> it appears the whole effort is more on the Azure side, and besides some timid adoption like GDI regions, there is a lukewarm adoption of Rust on Windows side, still pretty much a C and C++ feud.<p><a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=1VgptLwP588" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=1VgptLwP588</a>
  • palata7 hours ago
    &gt; Two major hurdles were the initial binary size increase due to bringing in the Rust standard library [...].<p>They don&#x27;t say what they did about it, do they? Did they just accept it?
    • sluongng6 hours ago
      I suspect they just use no_std whenever its applicable<p><a href="https:&#x2F;&#x2F;github.com&#x2F;facebook&#x2F;buck2&#x2F;commit&#x2F;4a1ccdd36e0de0b69ee185fc9dae8c9d9dfdf3de" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;facebook&#x2F;buck2&#x2F;commit&#x2F;4a1ccdd36e0de0b69ee...</a><p><a href="https:&#x2F;&#x2F;github.com&#x2F;facebook&#x2F;buck2&#x2F;commit&#x2F;bee72b29bc9b67b59ba775ce65057f122c75aa70" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;facebook&#x2F;buck2&#x2F;commit&#x2F;bee72b29bc9b67b59ba...</a><p>Turn out if you have strong control over the compiler and linker instrumentations, there are a lot of ways to optimize binary size
    • pornel7 hours ago
      Probably yes. It&#x27;s ~300KB per binary, and it&#x27;s a one-time cost.<p>It can be avoided entirely by disabling the standard library, but that&#x27;s inconvenient, and usually done only when writing for embedded devices.<p>Usually the problem isn&#x27;t the size directly, but duplication of Rust dependencies in mixed C++&#x2F;Rust codebases.<p>If you end up with a sandwich of build systems (when you have library dependencies like C++ =&gt; Rust =&gt; C++ =&gt; Rust), each Rust&#x2F;Cargo build bundles its copy of libstd and crates. Then you need to either ensure that the linker can clean that up, or use something like Bazel instead of Cargo to make it see both Rust and C++ deps as part of a single dependency tree.
      • surajrmal5 hours ago
        The size is not fixed. It changes based on how much of the standard library you use. Dynamically linking the standard library is also a valid option in many cases.
        • galangalalgol2 hours ago
          Posted elsewhere but The default hello world stripped with one codegen unit and panic=abort was 342kB both nightly and stable. Adding lto dropped it 42kB in stable and 40kB in nightly. Adding build-std and only building core did not reduce it any further in size.
        • galangalalgol4 hours ago
          Can it do lto on stdlib even without the nightly build-std flag?
    • dcsommer1 hour ago
      We invested a lot into build system optimizations to bring this number down over time, although we did accept on the order of 200 KiB size overhead initially for the stdlib. We initially launched using a Gradle + CMake + Cargo with static linking of the stdlib and some basic linker optimizations. Transitioning WhatsApp Android to Buck2 has helped tremendously to bring the size down, for instance by improving LTO and getting the latest clang toolchain optimizations. Buck2 also hugely improved build times.
    • jsheard7 hours ago
      Who knows what they did, but there are things which can be done: <a href="https:&#x2F;&#x2F;github.com&#x2F;johnthagen&#x2F;min-sized-rust" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;johnthagen&#x2F;min-sized-rust</a>
    • menaerus7 hours ago
      The whole article a bit watery which is why I read it as a PR rather than technical presentation
  • kpcyrd10 hours ago
    Very cool! I&#x27;m wondering if Signal is doing something similar? libsignal is implemented in Rust, but I don&#x27;t know about the other parts.
  • I_am_tiberius4 hours ago
    &gt; &quot;WhatsApp provides default end-to-end encryption for over 3 billion people&quot;.<p>Wasn&#x27;t there news lately that they can still read your messages somehow?
    • wongarsu3 hours ago
      WhatsApp could exfiltrate messages at the ends. But I assume the trick lies in the word &quot;default&quot;. Didn&#x27;t Skype also default to end-to-end encryption, unless there was a server flag that disabled it for that specific user (I might be fuzzy on the details)
      • londons_explore2 hours ago
        I don&#x27;t trust un-auditable client applications...<p>If you want to assure me your e2e is secure, there must be at least two clients implemented by different people, with at least one of them opensource.<p>Whatsapp used to have this, but lately they have cracked down on third party clients.
        • rvnx1 hour ago
          Even if they have, this doesn&#x27;t prevent from turning on a feature flag, or push an experimental build to some users.
          • londons_explore3 minutes ago
            If there is a 2nd opensource client written by someone else, you would hope they would raise the alarm when asked to implement &quot;feature flag 437 means send all the crypto keys to the server&quot;.
    • 4gotunameagain4 hours ago
      Every encryption is end to end if you&#x27;re not picky about the ends, or metadata.<p>Do you trust facebook (excuse me, meta) to not snoop on your messages, and to not share them with the &quot;intelligence&quot; agencies ?
      • Fripplebubby4 hours ago
        This is not true. The IETF draft is explicit that E2EE means that the message cannot be read by any party other than the sender and the intended receiver. When companies like Meta claim they support E2EE, this is what they claim. There are no tricky semantics or legalese at play here.
        • rvnx2 hours ago
          &gt; When companies like Meta claim they support E2EE, this is what they claim.<p>Well, that statement can only resolve to true.<p>These requests of data collection are perfectly legal. FBI DITU gives an order: give me all chats from *@banana.com and they receive banana.com.<p>From there, two choices from the perspective of a tech provider:<p>a) You accept. You get paid.<p><pre><code> You can always claim you had been coerced &#x2F; are a victim, and that everything has been done by the law. </code></pre> b) You refuse. It&#x27;s a crime.<p><pre><code> You take the risk to lose over 250K per day (!) in fines, some other court scandals that will come to you, some shady private stuff (what if we learn about your secret jacuzzi ?), harassement of the team, be publicly shamed that you supported terrorists who caused actual death of Americans, etc. In addition, nobody will know that you are the privacy hero and you are not even sure that the data is not exfiltrated another way. </code></pre> To this day, Apple, Facebook, Google still deny participating in illegal requests. They claim these were lawful requests, that have been carefully looked one-by-one.<p>Yes, we looked carefully and decided we won&#x27;t enjoy losing 100M USD and go to jail.<p>The trick is that the identifier &#x2F; wildcard can be very vague and wide. Or there can be multiple of them, each of them are narrow, but put one of top of the other they are super wide.
        • monocasa3 hours ago
          To be fair zoom did claim E2EE, with one of the ends being their servers.
        • antonvs3 hours ago
          It&#x27;s not entirely accurate to say &quot;any party other than the sender and the intended receiver,&quot; since the messaging app running on the user&#x27;s device can read the messages. Something like &quot;any <i>third</i> party (other than the app vendor)&quot; would be more accurate. Without actually analyze app behavior, it comes down to trusting that the vendor doesn&#x27;t do anything nefarious.
          • londons_explore2 hours ago
            One could imagine a design where even the app vendor is untrusted... You would send an encrypted chunk direct to the GPU, which would then decrypt and render the message text in some secure environment onto the screen.<p>Neither the OS nor the application would know the contents of your message beyond &quot;it&#x27;s 500x700 pixels&quot;.<p>Similar things are done for DRM video, and widevine level 1 or 2 haven&#x27;t seen many breaches despite running on a wide array of hardware open to physical attack.
            • antonvs1 hour ago
              Oh it&#x27;s definitely possible. The (dis)incentives tend to be strongly against such secure systems, though.
          • Fripplebubby2 hours ago
            I think the draft covers this well: <a href="https:&#x2F;&#x2F;www.ietf.org&#x2F;archive&#x2F;id&#x2F;draft-knodel-e2ee-definition-04.html#name-end-to-end-principle-2" rel="nofollow">https:&#x2F;&#x2F;www.ietf.org&#x2F;archive&#x2F;id&#x2F;draft-knodel-e2ee-definition...</a>
          • rvnx2 hours ago
            As far as I remember, Google does the final signing of the APK, which is eventually the signature verified by the OS to verify if an update is valid or not.<p>So Google can, if ordered or willing to help, create a new release track (e.g. experimental-do-not-deleted) and add specific e-mails to that track with the &quot;improved&quot; version.<p>Nobody would be able to see that in real world, and you know what, if WhatsApp themselves are ordered, they can also create their own &quot;test&quot; track, it&#x27;s just less covert but it would technically be working.<p>In all cases, Google and Apple <i>have</i> to respect US laws, and the laws of earning money too.<p>If you do not cooperative with intelligence &#x2F; police services of your country, only bad things can happen.
            • mr_mitm13 minutes ago
              Yes, the app could be compromised, or the OS, or the compiler of the app, or of the OS, or the OS of the compiler, or the CPU any of these things run on, etc. etc. None of that is relevant to the definition of E2EE.
  • aero-glide27 hours ago
    Quite impressive, I did not know so many bugs were due to memory access.
    • IshKebab5 hours ago
      To be fair the increased reliability of Rust code over C++ isn&#x27;t just because of memory errors (out-of-bounds accesses, use-after-free, type confusion, etc). You <i>also</i> get:<p>* No undefined behaviour (outside `unsafe`, which is quite easy to avoid). In C++ there are <i>many many</i> sources of UB that aren&#x27;t really memory errors directly, e.g. signed integer overflow or forgetting to `return` from a function.<p>* A much stronger type system.<p>Those two things have a really significant impact on reliability.
      • tialaramex3 hours ago
        Rust&#x27;s &quot;A language empowering everyone...&quot; tagline also helps justify the heavy lifting needed to prevent you shooting yourself in the foot, because we&#x27;re all able to imagine a hypothetical less experienced programmer who might make a mistake even as we swear that we&#x27;d never make it ourselves.
  • blub5 hours ago
    Just like Google’s Rust-in-Android blogs this reads like a PR piece (and in the case of facebook also recruitment piece) with some technical words sprinkled in for effect. The overall communication quality is that of a random startup’s “look what we did” posts.<p>The interesting aspects, such as how they protect against supply-chain attacks from the dependency-happy rust toolchain or how they integrated the C++ code with the Rust code on so many platforms - a top challenge as they said - remain a mystery.<p>Would also be interesting to hear how much AI-driven development they used for this project. My hope’s that AI gets really good at Rust so one doesn’t have to directly interact with the unergonomic syntax.
    • surajrmal5 hours ago
      The point of articles like this is to help build credibility for rust adoption. Rust is still not very widely adopted industry wide, and a lot of smaller players only use established technologies that bigger firms have shown works well. Rust is not inevitable, and articles like this are necessary for its future industry adoption.
      • blub2 hours ago
        I had already said it’s a PR piece, you’re merely rephrasing that and making it sound like a good thing.<p>This and the Google blogs offer zero technical insights and I haven’t learned anything from any of them.
    • antonvs3 hours ago
      &gt; The interesting aspects, such as how they protect against supply-chain attacks<p>There are standard techniques to help manage this that apply across languages, there&#x27;s no reason to reinvent that wheel.<p>&gt; My hope’s that AI gets really good at Rust so one doesn’t have to directly interact with the unergonomic syntax.<p>&quot;Unergonomic syntax&quot; is the battle cry of many people resisting learning a new language. AIs have progressed far enough that they can help you in that learning process, though.
      • blub2 hours ago
        The dependency management and complexity&#x2F;poor ergonomics are the two major technical problems with Rust. Normally the first one’s ignored while the second is downplayed, so it would have been interesting to see what (if anything) Facebook have done about them.<p>Not only can AIs help, but they can write most if not all the code and spare the human from learning all the intricacies of individual programming languages. Problem is, reports are contradictory on compatibility with Rust. We know they work great with simpler&#x2F;friendlier languages like Go or Python.
  • wrtc_dev7 hours ago
    [flagged]
    • randomint645 hours ago
      That&#x27;s right, Signal (<a href="https:&#x2F;&#x2F;kerkour.com&#x2F;signal-app-rust" rel="nofollow">https:&#x2F;&#x2F;kerkour.com&#x2F;signal-app-rust</a>), Proton (<a href="https:&#x2F;&#x2F;kerkour.com&#x2F;proton-apps-rust" rel="nofollow">https:&#x2F;&#x2F;kerkour.com&#x2F;proton-apps-rust</a>), Matrix, Wire and many more are using a share, cross-platform Rust core and a platform-dependent UI layer.<p>But it&#x27;s not only the security-critical paths, but also most of the business logic (see the 2 posts above).
    • wongarsu6 hours ago
      I agree with everything you say. But wow, does that comment sound like AI. Probably Grok?<p>Not saying you are AI, you might just be a heavy user who picked up the same patterns
      • jsheard5 hours ago
        If it were an old account I might have given them the benefit of the doubt, but they literally <i>just</i> joined to make this comment. There&#x27;s so many green accounts popping up which reek of AI now, like I&#x27;ve seen ones where all of their comments are almost exactly the same length.
      • rob5 hours ago
        It&#x27;s a brand new account that reads 100% like a ChatGPT response where the author just swapped out the em dashes for hyphens when posting, knowing it&#x27;s a common &quot;indicator&quot; people look for.<p>It&#x27;s more surprising to me that it seems to have already fooled a bunch of people looking at their replies to you.
      • m00dy6 hours ago
        I like your AI slop detector, is it part of your consciousness ?
      • candiddevmike6 hours ago
        The &quot;is key - &quot;, is a key giveaway.<p>EDIT to expand the evidence: It&#x27;s placing unnecessary emphasis on a one off mention in the article (differential fuzzing) and then writes a bunch of bullshit around what it thinks it means (it&#x27;s wrong, differential fuzzing isn&#x27;t running them both in parallel during a transition, it&#x27;s a testing methodology based on inputs&#x2F;outputs).
        • braiamp5 hours ago
          Which many people use. Heck, go to Stack Overflow about 10 years back. You will see people using it. It&#x27;s a style.
        • seritools5 hours ago
          TIL I&#x27;m an AI
        • jdxcode5 hours ago
          I think it&#x27;s a giveaway that it&#x27;s human! A hyphen is incorrect punctuation.
          • wongarsu5 hours ago
            According to British style guides an en-dash would be correct in that usage, and the difference between an en-dash (–) and a hyphen (-) is pretty small. Seems perfectly defensible to me unless you are publishing a book or academic journal
          • dewey5 hours ago
            AI is trained on human output, so that&#x27;s not really a good differentiator.
  • mentalgear7 hours ago
    Cool - now we only need to get selling-you-out-for-profit-Zuckerberg out of WhatsApp to make it really trustworthy.
  • happyweasel4 hours ago
    Let&#x27;s see how this unwrap()s in production scnr
    • galangalalgol4 hours ago
      Oh come on, that was funny. It also highlights a problem with the way people write rust. If your app panics it has a bug. People throw panics in cases that can absolutely happen, a file isn&#x27;t there or fails to parse, some set of inputs is mutually inconsistent these are things for error checking. Even if the correct way to handle an error you detect is to stop the app, do that instead of panicking. Panics are for things that should be impossible. Ideally they even get optimized out.
  • justinlords3 hours ago
    The differential fuzzing approach is clever — way safer than a big-bang rewrite. Running both versions in parallel to catch edge cases before switching over is how you actually ship rewrites without breaking production. The 160k to 90k LOC drop is impressive, but the real engineering win is the validation strategy.<p>On binary size, static linking with LTO should handle most of the bloat without needing custom stdlib builds.
    • chinathrow2 hours ago
      We really need an AI filter here on HN.
      • stingraycharles2 hours ago
        A comment like this works as well, let the community do its thing.
        • rvnx1 hour ago
          There are a couple of bots here.<p>Quoting a user:<p><pre><code> keeping it simple: a flat $15,000 to get you on the front page of Hacker News. [...] contact e-mail below </code></pre> Expensive, but now with LLMs it&#x27;s super cheap to do.<p>Spend a week to do a bot, get 10&#x27;000 USD of ARR for your B2B tech SaaS, and applause from your investors.<p>And a week is probably exaggerated, 2 days max