How to become an author
.NET Knowledge Base
  • All streams
  • Development
  • Administrating
  • Design
  • Management
  • Marketing
  • PopSci
Log in Sign up
108.49
Rating

C++

General-purpose programming language. It has imperative, object-oriented and generic programming features, while also providing facilities for low-level memory manipulation

All posts

Top

Authors

Companies

  • Week
  • Month
  • Year
  • All the time
  • VlK July 28, 2020 at 01:51 PM

    C2x: the future C standard

    • Badoo corporate blog,
    • Programming,
    • C++,
    • System Programming,
    • C

      image


      I strain to make the far-off echo yield
      A cue to the events that may come in my day.
      (‘Doctor Zhivago’, Boris Pasternak)

      I’ll be honest: I don’t write in pure C that often anymore and I haven’t been following the language’s development for a long time. However, two unexpected things happened recently: С won back the title of the most popular programming language according to TIOBE, and the first truly interesting book in years on this language was published. So, I decided to spend a few evenings studying material on C2x, the future version of C.


      Here I will share with you what I consider to be its most interesting new features.

      Read more →
      • +20
      • 8.4k
      • 3
    • basiliscos October 8, 2020 at 02:31 PM

      What's new in rotor v0.09

      • Crazy Panda corporate blog,
      • Open source,
      • Programming,
      • C++
      • From sandbox

      actor system


      rotor is a non-intrusive event loop friendly C++ actor micro framework, similar to its elder brothers like caf and sobjectizer. The new release came out under the flag of pluginization, which affects the entire lifetime of an actor.

      Read more →
      • +12
      • 1.4k
      • 11
    • Andrey2008 October 16, 2020 at 10:29 AM

      Part 2: Upsetting Opinions about Static Analyzers

      • PVS-Studio corporate blog,
      • Perfect code,
      • C++,
      • C
        Единорог грустит

        By writing the article "Upsetting Opinions about Static Analyzers" we were supposed to get it off our chest and peacefully let it all go. However, the article unexpectedly triggered robust feedback. Unfortunately, the discussion went in the wrong direction, and now we will make a second attempt to explain our view of this situation.
        Read more →
        • +5
        • 788
        • Comment
      • vkhanieva April 10, 2020 at 10:19 AM

        DeepCode: Outside Perspective

        • PVS-Studio corporate blog,
        • C++,
        • Machine learning
          Picture 1

          Recently DeepCode, which is a static analyzer based on machine learning, began to support checking of C and C++ projects. And now we can find out the differences between the results of the classic and the machine-learning static analysis.
          Read more →
          • +5
          • 469
          • Comment
        • Please pay attention

        • MrROBUST March 5, 2020 at 05:38 PM

          PVS-Studio Integration in PlatformIO

          • PVS-Studio corporate blog,
          • C++,
          • C,
          • Programming microcontrollers,
          • Developing for Arduino
            Picture 5

            Recently, the PlatformIO development environment of embedded systems has supported PVS-Studio. In this article, you'll find out how to check your code with the static analyzer on the example of an open project.
            Read more →
            • +5
            • 1.2k
            • Comment
          • SvyatoslavMC July 13, 2020 at 09:30 AM

            The Code of the Command & Conquer Game: Bugs from the 90's. Volume two

            • PVS-Studio corporate blog,
            • Open source,
            • C++,
            • Game development,
            • C
              image1.png

              The American company Electronic Arts Inc (EA) has opened the source code of the games Command & Conquer: Tiberian Dawn and Command & Conquer: Red Alert publicly available. Several dozen errors were detected in the source code using the PVS-Studio analyzer, so, please, welcome the continuation of found defects review.
              Read more →
              • +4
              • 3k
              • 1
            • Dmitriy_Volkov May 11, 2020 at 02:21 PM

              Diamond inheritance problem is not a problem, that's a tricky feature

              • C++
              • From sandbox

              General


              Before discussing the topic I’d like to start with a general suggestion not to use multiple inheritance and especially diamond unless you are strongly forced to. You may use e.g. composition or aggregation instead.


              Well, “Diamond inheritance problem” is some kind of steady expression which formed many years ago. You can easily find a lot of articles suggesting usage of “virtual public” to avoid the ambiguity and so on. For instance, https://en.wikipedia.org/wiki/Multiple_inheritance


              image


               That is not wrong as for the problem stated but anyway it is quite one-side statement.
               Below you can find:


              • difference in memory allocation and initialization order between public and public virtual inheritance (examples 1, 2),
              • examples of practical usage of both public and public virtual inheritance (examples 3, 4).
              Read more →
              • +4
              • 1.2k
              • Comment
            • Ads
              AdBlock has stolen the banner, but banners are not teeth — they will be back

              More
            • msgeek February 3, 2020 at 10:00 AM

              What’s New in Visual Studio 2019 version 16.5 Preview 2 for C++, Xamarin, and Azure Tooling Experiences

              • Microsoft corporate blog,
              • C++,
              • Visual Studio,
              • Microsoft Azure,
              • Xamarin
                Last week, Visual Studio 2019 version 16.5 Preview 2 was released, bringing many new features and improvements for developers in Visual Studio to help you build better software faster. Please read some highlights of new features and improved developer experiences in this page.



                Install this preview side-by-side with your Visual Studio release and try these highlighted features without replacing your current development environment.

                Read more →
                • +3
                • 568
                • Comment
              • vkhanieva March 26, 2020 at 02:44 PM

                OpenToonz: inside and out

                • PVS-Studio corporate blog,
                • Open source,
                • C++,
                • Computer Animation
                  Picture 1

                  Almost four years have passed since the PVS-Studio team checked the OpenToonz source code. This project is a very powerful tool for creating two-dimensional animation. Since the last check, with its help, such animated works as Mary and the Witch Flower, Batman-Ninja, Promare and others were created. As large studios continue using Toonz, why not check the quality of the source code again?
                  Read more →
                  • +3
                  • 367
                  • Comment
                • MrROBUST July 27, 2020 at 05:20 PM

                  PVS-Studio: analyzing pull requests in Azure DevOps using self-hosted agents

                  • PVS-Studio corporate blog,
                  • C++,
                  • Microsoft Azure,
                  • Build automation,
                  • DevOps


                    Static code analysis is most effective when changing a project, as errors are always more difficult to fix in the future than at an early stage. We continue expanding the options for using PVS-Studio in continuous development systems. This time, we'll show you how to configure pull request analysis using self-hosted agents in Microsoft Azure DevOps, using the example of the Minetest game.
                    Read more →
                    • +3
                    • 316
                    • Comment
                  • eugeneovsyannikov September 4, 2020 at 09:47 AM

                    Checking QEMU using PVS-Studio

                    • PVS-Studio corporate blog,
                    • Open source,
                    • Programming,
                    • C++,
                    • C
                      image1.png

                      QEMU is a rather well-known application for emulation. Static analysis can help developers of complex projects such as QEMU catch errors at early stages and generally improve quality and reliability of a project. In this article, we will check the source code of the QEMU application for potential vulnerabilities and errors using the PVS-Studio static analysis tool.
                      Read more →
                      • +3
                      • 464
                      • Comment
                    • Andrey2008 October 12, 2020 at 04:26 PM

                      Upsetting Opinions about Static Analyzers

                      • PVS-Studio corporate blog,
                      • C++,
                      • C
                        Static analysis tools have advanced far over the time they've been around. They no longer resemble the "linters" that were in active use 20 years ago. But some programmers still view them as extremely primitive tools. And that's very sad. It hurts to see the static analysis methodology in general and our PVS-Studio analyzer in particular treated that way.

                        Read more →
                        • +3
                        • 1k
                        • Comment
                      • Alex_Goldberg January 6, 2021 at 10:36 PM

                        Android interop with SWIG (a guide). From simple to weird. Part 1 — simple

                        • Java,
                        • C++,
                        • Development for Android
                        • From sandbox
                        • Tutorial

                        SWIG is a tool for generating cross-language interfaces - it provides interoperability of C++ and other languages (C++ and Java in our case). SWIG just simplifies and automizes cross-language interaction; otherwise, you may end up with thousands of lines of handwritten JNI code - but SWIG covers this for you.

                        This guide is for newbies (Part 1) and for those who experienced in SWIG (part 2). I'm starting from basic setup and usage and ending with complex & weird cases encountered in development. The latter cases are not so complex, rather usual for modern languages, which SWIG doesn't support yet (as lambdas).

                        This guide is practical. In opposition to overcomplicated huge-volume SWIG documentation, this guide is showing the cases practically. The bits developed by myself while working on the different projects or taken from StackOverflow. This guide allows you to quick-start an Android Studio project and giving practical examples of using SWIG. The link to the Android Studio project is here.

                        This guide is Android-first. The goal was to make it simple to onboard for Android developers. There are many articles about SWIG, but they are mainly for desktop Java applications, and it is quite an overhead to just try them on Android to check if the solution for the particular problem is working. While this guide includes an Android Studio project, with which you can play around instantly. Of course, all the information given here applies to any Java application.

                        Warning! I should warn you, that nowadays cross-platform development offers powerful tools. If you are developing a new application it is much more cost-efficient in practice to use ReactNative, Flutter of Kotlin-Native than the SWIG. While SWIG is more suitable to connect the C++ library or existing C++ application core.

                        Read more
                        • +3
                        • 209
                        • Comment
                      • Stolyarrr December 18, 2020 at 10:09 AM

                        Top 10 Bugs Found in C++ Projects in 2020

                        • PVS-Studio corporate blog,
                        • C++
                          image1.png

                          It's winter outside, the year is coming to an end, which means it's time to review the most notable errors the PVS-Studio analyzer detected in 2020.
                          Read more →
                          • +2
                          • 1.1k
                          • 1
                        • Andrey2008 August 19, 2020 at 11:31 AM

                          Static code analysis of the PMDK library collection by Intel and errors that are not actual errors

                          • PVS-Studio corporate blog,
                          • Information Security,
                          • Open source,
                          • C++,
                          • C
                            PVS-Studio, PMDK

                            We were asked to check a collection of open source PMDK libraries for developing and debugging applications with NVRAM support by PVS-Studio. Well, why not? Moreover, this is a small project in C and C++ with a total code base size of about 170 KLOC without comments. Which means, the results review won't take much energy and time. Let's go.
                            Read more →
                            • +2
                            • 418
                            • 1
                          • SvyatoslavMC June 18, 2020 at 09:26 AM

                            The Code of the Command & Conquer Game: Bugs From the 90's. Volume one

                            • PVS-Studio corporate blog,
                            • Open source,
                            • C++,
                            • Game development,
                            • C
                              image1.png

                              The American company Electronic Arts Inc (EA) has made the source code of the games Command & Conquer: Tibetan Dawn and Command & Conquer: Red Alert publicly available. This code should help the game community to develop mods and maps, create custom units, and customize the gameplay logic. We all now have a unique opportunity to plunge into the history of development, which is very different from the modern one. Back then, there was no StackOverflow site, convenient code editors, or powerful compilers. Moreover, at that time, there were no static analyzers, and the first thing the community will face is hundreds of errors in the code. This is what the PVS-Studio team will help you with by pointing out the erroneous places.
                              Read more →
                              • +2
                              • 1.6k
                              • 1
                            • Andrey2008 April 16, 2020 at 10:41 PM

                              Checking the GCC 10 Compiler with PVS-Studio

                              • PVS-Studio corporate blog,
                              • Open source,
                              • C++,
                              • Compilers,
                              • C

                                PVS-Studo vs GCC 10

                                The GCC compiler is written with copious use of macros. Another check of the GCC code using PVS-Studio once again confirms the opinion of our team that macros are evil in the flesh. Not only does the static analyzer struggle with reviewing such code, but also a developer. GCC developers are certainly used to the project and are well versed in it. Nonetheless, it is very difficult to understand something on the third hand. Actually, due to macros, it was not possible to fully perform code checking. However, the PVS-Studio analyzer, as always, showed that it can find errors even in compilers.
                                Read more →
                                • +2
                                • 1.2k
                                • 1
                              • Andrey2008 April 2, 2020 at 12:17 PM

                                Checking the Code of Zephyr Operating System

                                • PVS-Studio corporate blog,
                                • Open source,
                                • C++,
                                • C,
                                • Programming microcontrollers

                                  PVS-Studio and Zephyr

                                  Some time ago we announced PVS-Studio's new feature that enabled it to integrate into PlatformIO. Naturally, our team kept in touch with the PlatformIO team while working on that feature, and they suggested that we check the real-time operating system Zephyr to see if we could find any interesting bugs in its code. We thought it was a good idea, and so here's this article about the check results.
                                  Read more →
                                  • +2
                                  • 1.2k
                                  • Comment
                                • MrDvorak March 19, 2020 at 12:50 PM

                                  The Little Scrollbar That Could Not

                                  • PVS-Studio corporate blog,
                                  • Open source,
                                  • C++,
                                  • Debugging,
                                  • Development for Windows

                                    The new Windows Terminal version has been recently released. Everything would be fine, but performance of its scrollbar leaves a great deal to be desired. Time has come to poke it and have some mumbo jumbo dances with it.
                                    Read more →
                                    • +2
                                    • 533
                                    • Comment
                                  • msgeek March 18, 2020 at 10:00 AM

                                    Analyze your builds programmatically with the C++ Build Insights SDK

                                    • Microsoft corporate blog,
                                    • Programming,
                                    • C++,
                                    • Visual Studio,
                                    • API
                                      We’re happy to announce today the release of the C++ Build Insights SDK, a framework that gives you access to MSVC build time information via C and C++ APIs. To accompany this release, we are making vcperf open source on GitHub. Because vcperf itself is built with the SDK, you can use it as a reference when developing your own tools. We’re excited to see what sort of applications you’ll be building with the SDK, and we’re looking forward to receiving your feedback!

                                      Read more →
                                      • +2
                                      • 510
                                      • Comment
                                    • ← here
                                    • there →
                                    • 1
                                    • 2
                                    Ads
                                    AdBlock has stolen the banner, but banners are not teeth — they will be back

                                    More

                                    Community sponsors

                                    • VTB
                                      Develops and makes financial services accessible online.
                                    • Huawei
                                      ICT expert. Supplies smart devices and builds intelligent infrastructure
                                    • Avito
                                      Master of ads in Russia. Handles high loads.
                                    How to become a sponsor

                                    Authors' contribution

                                    • Andrey2008 6,303.2
                                    • tangro 3,007.0
                                    • SvyatoslavMC 2,364.0
                                    • haqreu 1,310.0
                                    • antoshkka 1,257.0
                                    • olegchir 1,009.4
                                    • khizmax 989.8
                                    • eao197 813.0
                                    • 0xd34df00d 726.0
                                    • anastasiak2512 705.0
                                    Top 100 authors
                                    No reasons for downvotes yet
                                    Reasons for downvotes

                                    Top posts

                                    • Day
                                    • Week
                                    • Month
                                    • Audio over Bluetooth: most detailed information about profiles, codecs, and devices
                                      +22 153k 14 9
                                    • Ant Design Component Customization and Bundle Optimization
                                      +12 228 5 0
                                    • How to grow as a programmer and software architect
                                      +3 2k 3 0
                                    • Java vs .Net: Who will Reign in the Future?
                                      +3 21k 5 3
                                    • CLIP from OpenAI: what is it and how you can try it out yourself
                                      +3 503 0 4
                                    • Passcode Data Protection by Using FPGA and Verilog
                                      +1 346 0 0
                                    • 10(+) years in the Labs
                                      +25 286 7 1
                                    • Ant Design Component Customization and Bundle Optimization
                                      +12 228 5 0
                                    • Visualizing Network Topologies: Zero to Hero in Two Days
                                      +2 5.3k 4 0
                                    • How to grow as a programmer and software architect
                                      +3 2k 3 0
                                    • Did It Have to Take So Long to Find a Bug?
                                      +1 1.2k 0 0
                                    • React Native: The First Choice of Mobile App Developers and Businesses
                                      +1 883 1 5

                                    Please pay attention

                                    Your account

                                    • Log in
                                    • Sign up

                                    Sections

                                    • Posts
                                    • Hubs
                                    • Companies
                                    • Users
                                    • Sandbox

                                    Info

                                    • How it works
                                    • For Authors
                                    • For Companies
                                    • Documents
                                    • Agreement
                                    • Terms of service

                                    Services

                                    • Ads
                                    • Subscription plans
                                    • Content
                                    • Seminars
                                    • Megaprojects
                                    © 2006 – 2021 «Habr»
                                    Language settings
                                    About
                                    Support
                                    Mobile version
                                    Language settings
                                    Interface
                                    Content