Articles, Blog

C++ Memory (Chrome University 2019)

February 14, 2020


  • Reply Chaitanya Kukde February 8, 2020 at 10:25 am

    At 3:53 is variable name equal to null now?

  • Reply Sven s February 10, 2020 at 5:29 pm

    Nice talk. But i hate your Software Reporter…

  • Reply Yohann Petit February 10, 2020 at 7:30 pm

    By the way, in your first exemple, most of the C++ compilers since early 90s would have done a copy elision or Return Value Optimization, so no temporary created there :/

  • Reply 101x997 February 11, 2020 at 4:52 am

    This is a good example of why you should not use C++

  • Reply Patel Shubham February 11, 2020 at 5:31 am

    Chrome Needs an advanced garbage collector we need less memory usage. plzzzzzzzz 😂

  • Reply thegr8rambino February 11, 2020 at 9:55 am

    i hate C++

  • Reply Allen Bao February 11, 2020 at 12:22 pm

    Is it a bad habit to do “using namespace std;”? I’m tired of seeing all the std::, are there a reason for these standard tags?

  • Reply Zar Shardan February 11, 2020 at 7:27 pm

    it ended kind of abruptly…

  • Reply Chase Lee February 11, 2020 at 8:27 pm

    Are their any good presentations on L value and R values? I'm not familiar with the term.

  • Reply miha493 February 11, 2020 at 11:24 pm

    Talking about good memory and CPU usage from google chrome. They know about good self irony.

  • Reply Marco Masselli February 12, 2020 at 12:24 am

    "How much artificial complexity should we include in our language?"


  • Reply Abdisalan Mohamud February 12, 2020 at 5:11 am

    I'm not a C++ programmer and this was really interesting

  • Reply daniel arya February 12, 2020 at 5:52 am

    its funny chrome talks about memory, when they still eating my ram.

  • Reply tirius66 February 12, 2020 at 11:38 am

    My last encounter with c/c++ was in uni… feels nostalgic.

  • Reply Ansh Mittal February 12, 2020 at 12:52 pm

    whats chrome university ?

  • Reply Aham February 12, 2020 at 5:14 pm

    I always wished to make browser with Chromium library. Can anybody share a link on Chromium library? Thanks in advance.

  • Reply MaxPicAxe February 12, 2020 at 10:19 pm

    Oh my god imagine having to use C++. Thank god Rust sorted this stuff out.

  • Reply Code With Wasif February 12, 2020 at 10:52 pm

    Get the features of all the Programming languages out there and put them in one single language. BOOM! You get C++

  • Reply Mitch Buxano February 12, 2020 at 10:52 pm

    Padding memory also should consider allocation minimum size. Let say a c++common program cannot afford taking care of sub-atomic memory allocation like 8 or 12 bytes. The atomic size is nowadays conventionally put to 1k (1024)… How many class member can you ship in 1024 bytes? How to handle 1024-bytes padding in a smart environment?

  • Reply vikram fugro February 12, 2020 at 11:45 pm

    Thank god Rust exists! Will all due respect, Rust wins hands down and hopefully will blanket over C++ soon..

  • Reply drwisdom1 February 13, 2020 at 12:08 am

    I love pointers.

  • Reply Denys Shevchenko February 13, 2020 at 1:50 am

    I don't like an idea that for better programmers life, user needs to spend much more time on variable copying (in comparing human-hours). Maybe it should be kind of auto-generated code ;?

  • Reply Dirk Walker February 13, 2020 at 2:59 am

    I started out with c++ but I don't see why anyone would use it these days. Just use c#

  • Reply Namer Num February 13, 2020 at 3:12 am

    C++ mean memory leaks as normal behawiator

  • Reply Namer Num February 13, 2020 at 3:16 am

    Just use C and fire all C++ teachers for save time and money

  • Reply Shiva Stanford February 13, 2020 at 3:36 am

    I am not sure how much of a memory saving this gets you compared to something like a sequential loop calls that inefficiently uses cache lines such as 1 full cache line of 128 byte size for every call even though only 4 bytes (32-bit floats) are actually cached. The other thing they could have done is abstracted away the treatment of temp reference. That is when an on-the-fly RV creating function is passed in, perhaps they can make compiler do all the work – detect if the function's return value is a temporary storage and just reset the pointer to that in the stack. This way we dont have to even use std::move – all ops are done on the stack through intelligent detection and the whole thing becomes a compiler optimization rather than express programming. We could have a flag in the gcc compiler to turn on or turn off this temp memory saving method instead of having to programmatically write it. To me, this seems more like a compiler optimization trick rather than a programmable entity. Hmmm…I could be wrong as I have not tested this hypothesis though.

  • Reply Chris Smith February 13, 2020 at 5:58 am

    Youtube University > Chrome University

  • Reply Star Patrick February 13, 2020 at 6:38 am

    Most of people want to learn the computer language, but they dont know how to open the window to operate it.

  • Reply Kristian McColm February 13, 2020 at 9:02 am

    And we wonder why people say C++ is an abomination

  • Reply Nacalal February 13, 2020 at 9:59 am

    couldn't you just use "char array[]" and "sprintf"?

  • Reply Jim Xu February 13, 2020 at 10:55 am

    i feel that its silly for a programmer to learn this.

  • Reply PhunkBustA February 13, 2020 at 12:25 pm

    its not 2019 anymore???

  • Reply Dale Owens February 13, 2020 at 1:33 pm

    I'm switching to C. This is asinine.

  • Reply Alessandro Autiero February 13, 2020 at 2:44 pm

    Welcome to this brand new video on:

    How to turn C++ in Java

  • Reply Koushik Batgiri February 13, 2020 at 9:38 pm

    Which is good PYTHON or C++??
    C++:: COMMENT

  • Reply Julio Cezar Novais Raffaine February 14, 2020 at 3:53 am

    Very interesting subject and nicely presented. I appreciate Google and Chrome Devs sharing these videos. I only felt that it missed a deeper discussion on the memory management tools that C++ offers, it's a really hard to approach topic with memory barriers and order of accessing, atomics would also be a nice topic to bring since discussion passed through threads. The move semantics discussion also seemed too vague, why would anyone use that? I get the "not copying" is beneficial, but it doesn't come without costs and limitations, does it make sense to std::move a primitive type? which data types have to consider move semantics and which shouldn't care?

  • Reply Deyvid Franklin A. Souza February 14, 2020 at 8:20 am

    Portuguese subtitles would help a lot.

  • Leave a Reply