Skip to content
DevMeme
2270 of 7590
Languages Post #2526 · source on Telegram

Party meme reveals C++ secretly powering the web browsers critics use

Description

Black-and-white line drawing of the classic “They don’t know” party meme: one lone figure at the left wearing a cone birthday hat and holding a drink, while a small group on the right chats around a couch. Above the isolated figure the text reads, “They don't know almost all web browsers are written in C++.” Across the group in the foreground a caption says, “people laughing about C++ being unsuitable for web development.” The joke contrasts common front-end developer banter that C++ is irrelevant to the web with the technical reality that major browser engines (Chromium, Gecko, WebKit) are primarily implemented in C++. It highlights how low-level systems code underpins everyday web experiences, poking fun at language debates within the developer community

Comments

86
Anonymous ★ Top Pick Funny how the people tweeting “C++ is obsolete” from a 9 MB React bundle are really running it atop 10 million lines of C++ and silently praying today’s compositor-thread use-after-free stays below the crash-telemetry threshold
  1. Anonymous ★ Top Pick

    Funny how the people tweeting “C++ is obsolete” from a 9 MB React bundle are really running it atop 10 million lines of C++ and silently praying today’s compositor-thread use-after-free stays below the crash-telemetry threshold

  2. Anonymous

    The same developers who mock C++ while debugging their 'blazingly fast' JavaScript framework have no idea their entire runtime is just a thin abstraction layer over millions of lines of carefully optimized C++ that actually makes the web work

  3. Anonymous

    The real joke is that while developers debate whether C++ is 'suitable' for web development, billions of users are literally running C++ every time they open a browser tab. It's like arguing whether steel is appropriate for building bridges while standing on the Golden Gate Bridge - the infrastructure already made the decision decades ago, and the performance requirements haven't gotten any less demanding

  4. Anonymous

    “C++ isn’t for web” - says the SPA running on a C++ JIT (V8) inside a C++ engine (Blink/Gecko) on a C kernel; abstraction is a hell of a drug

  5. Anonymous

    JavaScript “everywhere” stops where libblink starts; your SPA is a tiny script steering millions of lines of C++

  6. Anonymous

    Web devs mock C++ for web dev, forgetting their React apps run atop V8's C++ sorcery optimizing sloppy async hell

  7. @Withouthatewithoutfear 5y

    C++ rocks

  8. @metal_Dash 5y

    Such idiots

  9. Deleted Account 5y

    Lmao

  10. @yeraassyl 5y

    Chromium on c++

  11. @yeraassyl 5y

    I meant exactly what you saying

  12. @chupasaurus 5y

    Mozilla: hippity hoppity Rust is my property

    1. @ynsgnr 5y

      More like this: Mozilla: I think rust is neat Community: Hippity hoppity rust is my property

  13. @feskow 5y

    What's written here?

  14. @feskow 5y

    Thanks a lot

  15. @cheburgenashka 5y

    So it's an eternal arm wrestling between blazingly fast C++ against whale heavy web standards. One trying to slow down another while other trying to handle all of it mess.

  16. @cheburgenashka 5y

    And no. Not all of browsers. There's rust in FF no?

    1. Deleted Account 5y

      and c++ too

      1. @cheburgenashka 5y

        So that's why it still so crappy...

        1. Deleted Account 5y

          just how much did c++ hurt you?

          1. Deleted Account 5y

            this is what happens when you don't put your maid outfit for systems programming

            1. @dugeru42 5y

              Socks is not enough?

              1. Deleted Account 5y

                turns out it isn't

          2. @cheburgenashka 5y

            It's not how much it did hurt in the past (loved it during that time very much) it's the realisation how much life can be truly easy and much more fun if you take your head up.

            1. Deleted Account 5y

              it's easier but it also has a price of performance, only rust can compete with c++ in that regard, but it lacks a standart and maturity

              1. @cheburgenashka 5y

                Performance of the developer much more expensive than the hardware nowdays. Optimization may be done later if the scale really matters.

                1. Deleted Account 5y

                  this statement, while true in some scenarios, results in slow and bloated code, and there are applications where performance actually matters

                  1. @cheburgenashka 5y

                    Prototyping and POC must be done fast. After you can achieve. And yeah electron based software is good example of useless and ruthless

              2. @cheburgenashka 5y

                C++ standards nowdays are a mess and horror.

                1. @bit69tream 5y

                  but you can code in c while using g++

                  1. Deleted Account 5y

                    *

                  2. @cheburgenashka 5y

                    Too low. No joy of higher abstraction. Still manual memory management he'll.

                    1. @bit69tream 5y

                      constructors and destructors can save you from that

                      1. @cheburgenashka 5y

                        Resources & memory leaks.

                        1. @bit69tream 5y

                          why?

                          1. @cheburgenashka 5y

                            You cannot simply cover all use cases with c/tors. Resources and shared state is one of the painful examples

                            1. @bit69tream 5y

                              ofc you can't cover all cases but it helps a lot

                            2. Deleted Account 5y

                              shared state is handled easily* with std::shared_ptr, even though you sould not have a lot of it in the first place; and i did not recall a single case when there was a resource leak because of a missing ctor

                              1. @cheburgenashka 5y

                                Shared state is not handled really in multithreaded solution. Not at all.

                                1. Deleted Account 5y

                                  First of all, i think shared state is bad by itself, so i try to keep it minimal, but when there's no other way you just put mutex locks (or bottlenecks) and you're fine. Or better yet, just put const there

                                  1. @bit69tream 5y

                                    why not pipe() ? so u can do it just like with channels in golang

                                    1. Deleted Account 5y

                                      Isn't that unix exclusive?

                                      1. @bit69tream 5y

                                        yea, but windows also has pipes as i know so u can just write wrapper class or something

                                        1. @cheburgenashka 5y

                                          I tried pipes in Windows it's a hell.

                                          1. Deleted Account 5y

                                            Is there a single thing in windows that's not hell?

                                            1. @cheburgenashka 5y

                                              BDSM?

                                              1. Deleted Account 5y

                                                Hmm, it's hell but it should be, bc it's bdsm

                                              2. @RiedleroD 5y

                                                BSOD BDSM

                                        2. Deleted Account 5y

                                          Yeah, but that's not standard, and does not scale well for many platforms

                                          1. @cheburgenashka 5y

                                            JVM solutions do. Especially stuff like Vert.x that scale from single thread into multiple clusters.

                                            1. Deleted Account 5y

                                              Well we have transactional memory tx, but it's not done yet, but i advise strongly for minimizing shared state in the first place

                                              1. Deleted Account 5y

                                                But transactional memory is just compiler putting all the locks in the right places

                        2. Deleted Account 5y

                          none

                2. Deleted Account 5y

                  but better than no standardization at all

    2. @bit69tream 5y

      just small part

      1. @cheburgenashka 5y

        So rust doesn't help much, huh?

        1. @bit69tream 5y

          kinda

          1. @cheburgenashka 5y

            I head a dream when I was kid and learned to load resources of the desktop app from the net, that instead of HTML it's better to do app that can load its UI from the net and you just ship the minimal executable. Everybody laughed at me. Now we're moving towards web asm so basically it gonna be the same just instead of tiny executable it will be bloated browser with a built in runtime very much JVM alike. JB even forced a GC into the standard.

            1. @bit69tream 5y

              time to make a new web with lisp

            2. Deleted Account 5y

              It's gonna be 100s of times faster than plain ol js

              1. @cheburgenashka 5y

                And pretty sure that Kotlin will dominate it

                1. Deleted Account 5y

                  Ofc, kotlin can use jvm optimisations

                  1. @cheburgenashka 5y

                    And transpule JVM libs to AsmJs

                    1. Deleted Account 5y

                      Oh god

                      1. @cheburgenashka 5y

                        Natively. That's why they needed GC into AJ

                        1. Deleted Account 5y

                          I think I'm misunderstanding

                          1. @cheburgenashka 5y

                            Basically Kotlin will erase border of back and front once webAsm will support GC it will transpule JVM based code into WebAsm bytecode

                        2. @bit69tream 5y

                          lmao i remembered an article then dude disliked c++ because it doesn't have GC

                          1. @bit69tream 5y

                            btw https://medium.com/better-programming/modern-languages-suck-ad21cbc8a57c

                            1. Deleted Account 5y

                              No kotlin

                            2. @cheburgenashka 5y

                              Kotlin would get solid 4 stars or 4/half. It's has pros of Sacala and some of its big cons are actually a big pros of the Kotlin. In other words Kotlin is Scala do e right except it Lacs of intersection types and is still highly developing Lang. But cool thing in rules JVM, start to shine on JS ecosystem and penetrating native intensely. Once native support will reach prod it will be the question why do you want BDSM yourself with C++ while Kotlin/native is here?

                              1. @bit69tream 5y

                                why would i bdsm myself with jvm when there is GNU/Guile scheme?

                                1. @cheburgenashka 5y

                                  K/JVM and K/JS ecos are done, native is on the way. Don’t like JVM/JS ecos wait for native. Oh… Yet another fan of lispian parantesis. Can I take it to the web-front? Can I haz actors? Reuse code in broswer and mobile devices? Can interact with existing JVM backends? I can do with Kotlin.

                                  1. @bit69tream 5y

                                    there is clojure btw, a lisp on jvm

                                    1. @bit69tream 5y

                                      and for web there is clojurescript

                                      1. @cheburgenashka 5y

                                        Yeah but its dynamic so no fun with type inferance but gradual typing is a good pain killer.

                                        1. @bit69tream 5y

                                          yea, that's why I mostly code in c

                2. Deleted Account 5y

                  Elaborate

  17. @cheburgenashka 5y

    I'm still nostalgic to Presto based Opera. Sigh...

  18. @cheburgenashka 5y

    JB can compile into Wasm but cannot yet bring the code from JVM land

  19. @cheburgenashka 5y

    I was fighting against GC but now in on the other side. Come to the dark side

    1. Deleted Account 5y

      welcome to messy frametime zone

      1. Deleted Account 5y

        only lag inside your application

      2. @cheburgenashka 5y

        There's nice quote about GC in C++, kek lol in that article

  20. @cheburgenashka 5y

    I’m a backendist that ocasinoally need to iteract with all of the intersaecting worlds. Having Kotlin at least foe back and android allows me share at least data classes and some business logic. React Kotlin wrappers is a bliss! iOS adopting Kotlin so having same lang across various ecos with ability to share code kinda outshadow alternatives (that in anyway I do not see any clear benifits even to consider) like what for in example?

  21. @bit69tream 5y

    i'm not telling that kotlin is bad. kotlin is cool for it's purposes

Use J and K for navigation