==============================
== What I have learnt today ==
==============================

A list of C++ topics

In Jason Turner’s C++ Weekly Ep 348, he listed out an extensive C++ topics. Understanding these topics makes equips you with expert level C++ knowledge. BUT DOES NOT make you in C++ (programming). The entire video is about building a lambda function, from simple to complex, and different versions. Here is list of topics: lambdas (C++11) struct (C++98) constexpr (C++11) operator overloading (C++98) call operator (C++98) const member functions (C++98) braced initialization (C++11) auto return type deduction (C++14) “compiler magic” at 3:33 he says “because inside our the call operator overload we cannot see the *this pointer of the lambda” function parameters (C++98) pass-by-value (C++98) attributes on parameters (C++11) e. Read more...

Some interesting BGP information

After watching Petr’s video on deploying BGP in the data center, after some googling, I have summarized some interesting configuration and use case about BGP. BGP fast fallover That is, kill the BGP session immediately when the link is down. Suitable for peering over point to point links. Multipath relax It is about traffic load-balancing. This feature is required for ECMP (equal cost multipath). Allowas-in This feature accepts different eBGP updates with the same AS. Read more...

Building Scalable Data Centers: BGP is the Better IGP

In the video Building Scalable Data Centers: BGP is the Better IGP, Petr Lapukhov tells us why BGP is chosen. Firstly, he states the situation as the problem statement: many servers with 1G/10G NICs traffic is East-West as well as North-South The objective: simple physical topology simple routing protocol well supported by vendors The justification of choosing BGP is given: better vendor support simple enough per-hop traffic engineering. (In this context, he means the next hop route can be easily controlled. Read more...

The comma operator (almost made me have a coma to understand it.)

I tried to understand the comma operator. I have tried the following small program: #include <iostream> int main () { int j = 0; int k = 0; j = 4,5; k = (4,5); std::cout << "j: " << j << std::endl; std::cout << "k: " << k << std::endl; return 0; } The compiler does give some warnings, despite a little bit different: warning: expression result unused [-Wunused-value] 8 | j = 4,5; | ^ warning: left operand of comma operator has no effect [-Wunused-value] 9 | k = (4,5); | ^ and the result is: Read more...

What is folding expression?

I have got a very brief idea about what a fold expression is. Basically from this video and cpp referecences. I have not completely understand it. All I know so far is: it is related to templates it is deal with a list of parameters I will go back to here and update a bit more later, just like a JRPG.
Previous Page 2 of 2