916 links
  • Links Lounge
  • Home
  • Login
  • RSS Feed
  • Tag cloud
  • Picture wall
  • Daily
Links per page: 20 50 100
◄Older
page 2 / 4
Newer►
75 results tagged C++ x
  • c - gcov out of memory / mismatched version? - Stack Overflow
    Wed 30 May 2018 10:39:31 AM CEST - permalink -
    - - - https://stackoverflow.com/questions/12454175/gcov-out-of-memory-mismatched-version
    C++ gcov
  • La déclaration anticipée en C++

    Voilà longtemps que je n'avais rien publié sur mon blog "30 minutes par jour". Je pourrai le renommer "30 minutes par an" ;-)

    Wed 30 May 2018 09:29:16 AM CEST - permalink -
    - - - http://30minparjour.la-bnbox.fr/blog/2018/05/30/la-declaration-anticipee-en-cpp/
    30minparjour C++
  • Ranking Programming Languages by GitHub Users
    Mon 19 Feb 2018 09:48:46 AM CET - permalink -
    - - - http://www.benfrederickson.com/ranking-programming-languages-by-github-users/
    C++ JS Langage
  • Two C++ tricks used in Verdigris implementation
    Fri 16 Feb 2018 01:57:05 PM CET - permalink -
    - - - https://woboq.com/blog/verdigris-implementation-tricks.html
    C++ Qt
  • c++ - how to check QT_VERSION to include different header? - Stack Overflow

    if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)

    Fri 17 Nov 2017 05:51:12 AM CET - permalink -
    - - - https://stackoverflow.com/questions/24899558/how-to-check-qt-version-to-include-different-header
    C++ Qt Version
  • Clang-Tidy, part 1: Modernize your source code using C++11/C++14 - KDAB
    Mon 15 May 2017 11:01:08 AM CEST - permalink -
    - - - https://www.kdab.com/clang-tidy-part-1-modernize-source-code-using-c11c14/
    C++ Clang CommandLine
  • C++ Policies/Binary Compatibility Examples - KDE Community Wiki
    Mon 15 May 2017 10:57:41 AM CEST - permalink -
    - - - https://community.kde.org/Policies/Binary_Compatibility_Examples
    C++ Library
  • SEI CERT C++ Coding Standard - SEI CERT C++ Coding Standard - CERT Secure Coding Standards
    Fri 14 Apr 2017 03:22:24 PM CEST - permalink -
    - - - https://www.securecoding.cert.org/confluence/pages/viewpage.action?pageId=637
    C++
  • DevOps and Continuous Integration challenges in C/C++ projects

    Super article !

    Wed 15 Mar 2017 09:32:08 AM CET - permalink -
    - - - http://blog.conan.io/2017/03/14/Devops-and-Continouous-Integration-Challenges-in-C-C++-Projects.html
    C C++ Conan ContinuousIntegration Qompoter Qt
  • Leak-freedom C++ | Sutter’s Mill
    Mon 30 Jan 2017 03:51:30 PM CET - permalink -
    - - - https://herbsutter.com/2016/09/27/my-cppcon-talk-video-is-online/
    C++ Leak
  • How do you stop qmake from trying to strip all installed files? | MythTV | Dev

    When adding some files to INSTALLS, they are stripped if they are excecutables.

    To avoid using strip, you can update "QMAKE_STRIP" variable and force stripping executables one by one using ".extra":

    target.extra = strip $${DESTDIR}/$(TARGET)
    QMAKE_STRIP = echo # Avoid striping unwanted files (which will not work)
    applibs.files = $${DESTDIR}/*.so*
    applibs.path = $$EXPORT_LIBPATH
    INSTALLS += applibs
    Thu 01 Dec 2016 03:40:55 PM CET - permalink -
    - - - http://www.gossamer-threads.com/lists/mythtv/dev/141885
    C++ make qmake Qt
  • "How to use QThread in the right way (Part 1)" — 1+1=10

    Un autre post sur les QThread.

    Thu 06 Oct 2016 09:27:42 AM CEST - permalink -
    - - - http://blog.debao.me/2013/08/how-to-use-qthread-in-the-right-way-part-1/
    C++ Qt Thread
  • GitHub - Fylhan/qompoter: Dependency manager for Qt / C++.

    Hier, j'ai releasé la v0.2.6 de Qompoter, a C++/Qt dependency manager. Outre les améliorations apportées au truc (recherche récursive des paquets, numéros de versions flous du genre v1.*, recherche des paquets dans Inqlude), cela m'a aussi permis de découvrir les scripts d'auto-complémetion Bash ! Et je surkiffe taper qompoter tab tab et voir la liste des actions possibles apparaître "install export inqlude jsong". C'est beau Linux.

    Qompoter a atteint un niveau de maturité suffisant pour les petits projets, alors n'hésitez pas ! Vos retours sont les bienvenues.

    Wed 05 Oct 2016 09:35:22 AM CEST - permalink -
    - - - https://github.com/Fylhan/qompoter
    C++ Qompoter Qt
  • QMake-top-level-srcdir-and-builddir - Qt Wiki

    Très pratique le fichier .qmake.conf.

    Tue 30 Aug 2016 10:35:55 AM CEST - permalink -
    - - - https://wiki.qt.io/QMake-top-level-srcdir-and-builddir
    C++ qmake Qt
  • Four Habit-Forming Tips to Faster C++ - KDAB

    Pour me rappeler, je m'essai aux résumés.

    Prefer NRVO to RVO

    * RVO = return-value optimization

    MyData myFunction() {
        return MyData(); // Create and return unnamed obj
    }
    MyData abc = myFunction();

    With RVO, the C++ standard allows the compiler to skip the creation of the temporary, treating both object instances—the one inside the function and the one assigned to the variable outside the function—as the same. This usually goes under the name of copy elision. But what is elided here is the temporary and the copy.

    • NRVO = named return-value optimization
    MyData myFunction() {
      MyData result;           // Declare return val in ONE place
      if (doing_something) {
        return result;       // Return same val everywhere
      }
      // Doing something else
      return result;           // Return same val everywhere
    } 
    MyData abc = myFunction();

    Named Return Value Optimization is similar but it allows the compiler to eliminate not just rvalues (temporaries), but lvalues (local variables), too, under certain conditions.

    But many compilers are actualy failing to apply NRVO with the following code:

     MyData myFunction() {
        if (doing_something)
            return MyData();     // RVO expected
    
        MyData result;
    
        // ...
        return result;           // NRVO expected
    } 
    MyData abc = myFunction();

    So previous example has to be preferred.

    Return parameters by value whenever possible

    Surprisingly, don’t use "out-parameters" but prefer "return-by-value", even if it implies creating a small struct in order to return multiple values. I will check that, because it seems strange to me.

    “out” parameter pointers force a modern compiler to avoid certain optimisations when calling non-inlined functions.

    Prefer:

    struct fractional_parts {
        int numerator;
        int denominator;
    };
    
    fractional_parts convertToFraction(double val) {
        int numerator = /*calculation */ ;
        int denominator = /*calculation */ ;
        return {numerator, denominator}; // C++11 braced initialisation -> RVO
    }
    auto parts = convertToFraction(val);
    use(parts.nominator);
    use(parts.denominator);

    than:

    void convertToFraction(double val, int &numerator, int &denominator) {
        numerator = /*calculation */ ;
        denominator = /*calculation */ ;
    }
    
    int numerator, denominator;
    convertToFraction(val, numerator, denominator); // or was it "denominator, nominator"?
    use(numerator);
    use(denominator);    

    Cache member-variables and reference parameters

    Prefer:

    template <class T> 
    complex<T> &complex<T>;::operator*=(const complex<T> &a) {
       T a_real = a.real, a_imag = a.imag;
       T t_real =   real, t_imag =   imag; // t == this
       real = t_real * a_real – t_imag * a_imag;
       imag = t_real * a_imag + t_imag * a_real;
       return *this;
    }

    than:

    template <class T> 
    complex<T> &complex<T>;::operator*=(const complex<T> &a) {
       real = real * a.real – imag * a.imag;
       imag = real * a.imag + imag * a.real;
       return *this;
    }

    It seems the example is too simple to really understand the benefits. I do not want to make my code more complex for such a simple case... I do not like this advice.

    Organise intelligently member variables

    Due to the CPU caches mechanisms (blocks of 64-byte), it is propose to organise member variables in a class as follow:

    • Move the most-frequently-used member-variables first
    • Move the least-frequently-used member-variables last
    • If variables are often used together, group them near each other
    • Try to reference variables in your functions in the order they’re declared

    Why not...

    Mon 22 Aug 2016 09:58:09 AM CEST - permalink -
    - - - https://www.kdab.com/four-habit-forming-tips-faster-c/
    C++ C++11
  • Cutelyst - The Qt Web Framewok

    Oui, un framework Web en Qt.

    Thu 24 Mar 2016 09:09:41 AM CET - permalink -
    - - - http://cutelyst.org/2016/03/23/cutelyst-0-11-0-released
    C++ Framework Qt Web
  • Advice_Concepts | Boost Library Incubator

    For our purposes, we will define "C++ Type Constraint" in the following way:

    A C++ Template will have one or more type arguments. The template may require that each argument fullfill more or more conditions in order for the template to compile without error. These requirements are called Type Constraints or Type Requirements.

    C++ literature and documentation use the word Concept for this purpose. In fact, this usage of the word Concept is one of the reasons that the subject has been so confusing. Another reason is that it is really only necessary to understand Concepts when writing a templated library. Since very few programmers actually write such code, very few people actually use this idea and hence are unfamilar with it. Our term Type Constraint is exactly equivalent to the C++ term Concept. Either one can be substituted for the other without loss of meaning.

    Un des trucs qui me fascine en C++, c'est que sa communauté contient beaucoup de personnes qui semblent fichtrement intelligentes et qui se posent des problèmes et des questions invraisemblable.
    On retrouve ça ailleurs, comme une partie de la communauté Javascript par exemple (dingue), mais pas partout.

    Wed 23 Mar 2016 01:53:04 PM CET - permalink -
    - - - http://rrsd.com/blincubator.com/advice_concepts/
    C++
  • [Wandbox]三へ( へ՞ਊ ՞)へ ハッハッ

    Un autre compilateur C++ online.

    Wed 23 Mar 2016 01:51:15 PM CET - permalink -
    - - - http://melpon.org/wandbox
    C++ Compilation
  • C++: RAII without exceptions - Eli Bendersky's website

    Pour le coup, cet article n'ayant pas pour but d'expliquer RAII l'explique beaucoup mieux que d'autres.

    Tue 23 Feb 2016 12:35:16 PM CET - permalink -
    - - - http://eli.thegreenplace.net/2016/c-raii-without-exceptions/
    C++ C++11 RAII SmartPointer
  • Qt on Android: How to run C++ code on Android UI thread - KDAB
    Thu 18 Feb 2016 01:20:52 PM CET - permalink -
    - - - https://www.kdab.com/qt-android-run-c-code-android-ui-thread/
    Android C++ Qt
Links per page: 20 50 100
◄Older
page 2 / 4
Newer►
Shaarli - The personal, minimalist, super-fast, no-database delicious clone by the Shaarli community - Help/documentation