{"video_id":"HlUBE70h2C0","comment_count":400,"fetched_at":"2026-10-20T17:05:26+00:00","source":"innertube_next","comments":[{"id":"UgwWDMPXB5BR6755NG14AaABAg","text":"I very rarely watch tutorials but the arm segment made this video worth watching.","author":"@gmjammin4367","author_id":"UCuMuUF8JLkPDoN5fN8mMxig","like_count":431,"published_time":"2 years ago"},{"id":"Ugym0As3F9eUOsbiqTx4AaABAg","text":"Not only appreciating the low-level information in the tutorial, but also loving the SE: Lain production aesthetics!","author":"@StellarFireflyGaming","author_id":"UCghXVXJ-17DHzaBGf8JYWSQ","like_count":204,"published_time":"2 years ago"},{"id":"UgyK5-rknSuBTam8ulF4AaABAg","text":"Oh man, there are so many callouts to Serial Experiments: Lain in your staging/setting! Long time since I watched it, I love it!","author":"@PapaSMURFFS","author_id":"UCl_qiWNP_VBvMlgMc0V2bhA","like_count":72,"published_time":"2 years ago"},{"id":"UgzzxiU0a_vtFzJB9bt4AaABAg","text":"Great video! Especially the assembly section. \n\nIn my (albeit limited) experience, it often helps to allocate memory in terms of pages rather than individual bytes. The page size is definitely not a consistent or constant standard value that you can simply hardcode in your programs. Effects of page size (fragmentation or page faults) are super apparent when deploying anything large-ish scale (say PostgreSQL db) on your ARM device. If you insist on doing everything in assembly, make sure your program adjusts for this variability in page size when compiling and makes it so that certain variables are \"aligned\" well for faster access.\n\nYour C compiler will most likely already handle all of this better than you without you even realizing it which is why in my opinion, programming in C is a \"safer\" bet for performance, readability and your own sanity.","author":"@stacksmasherninja7266","author_id":"UC-POYfkkQA5M-reEKOpAaRw","like_count":15,"published_time":"2 years ago"},{"id":"Ugx3TXGtaH9U34Vo3X14AaABAg","text":"I like that you use the universal answer to everything for the content of the memory.","author":"@chutipascal","author_id":"UCAb5awaMm2Mdnr38Xzq-TIA","like_count":111,"published_time":"2 years ago"},{"id":"UgzF-MH4N1D_vvqf-3F4AaABAg","text":"This channel was one of my best discoveries","author":"@0xreip","author_id":"UC_QXCwWs7bAQwTctPUFtntg","like_count":10,"published_time":"2 years ago"},{"id":"UgxhY2WGxE14Nbo0fvd4AaABAg","text":"The effor to create the vfx for those videos are something to marvel on its own...\nWhat impresses me is that the content is even greater.\nI know my way around 6502 asm and seeing this made me want to do arm asm just because...","author":"@BrunoSXS","author_id":"UCq5QUHOrVA7r1HAe-HTEQvw","like_count":38,"published_time":"2 years ago"},{"id":"UgxSDS_qWlVIRXpuurx4AaABAg","text":"This channel is really impressive. You seem to have everything down somehow - you know a ton about the subject matter, your presenting is brilliant and you can distil your knowledge down, the video style and presentation is fantastic, and so is the cinematography. Really everything is brilliant, and it's clear you're still improving (e.g. I looked through the channel and your thumbnails have gotten way better over the past several months - I love this one and the recursion one).\n\nCan't believe I haven't seen your videos sooner. Looks like the algorithm has latched onto them though as I'm getting suggested a bunch recently.","author":"@lost4468yt","author_id":"UCaJErkdQZ4WCIW0nG0KWAZA","like_count":5,"published_time":"2 years ago"},{"id":"Ugxc8gQPDj0_X9eerRF4AaABAg","text":"I just discovered this channel, the visuals are super neat! The computers in the background, the Windows XP task bar and the window border around the web cam, wow!","author":"@horenso05","author_id":"UCzdVUSM3rCJEOxtjOHDWLkw","like_count":63,"published_time":"2 years ago"},{"id":"UgwovZjzHq6M5-KxjlZ4AaABAg","text":"Heads up for anyone working in C, you don't need to worry about casting the return value of malloc. Unlike in C++, void* will implicitly cast to other pointer types without throwing an invalid conversion error. This just maintains symmetry with casting to void* which is implicit in both C and C++. It's ultimately a stylistic decision whether to keep the explicit casts even though they're redundant, but my understanding of what idiomatic C looks like involves just letting the language cast void* for you in basically every situation.","author":"@TetrisMaster512","author_id":"UC3ARTLgZcFGx7bUvjtRCbcw","like_count":53,"published_time":"2 years ago"},{"id":"UgwJXNEpq_xABbhgSoF4AaABAg","text":"Never subscribed to a channel so fast! What a really cool style of video, with clear, helpful explanations. Good up the good work :D <3","author":"@chari6471","author_id":"UCchXsnHFUT67_e6ht3k-skQ","like_count":16,"published_time":"2 years ago"},{"id":"UgxxcKa1xvIJZIVHTTt4AaABAg","text":"very dank editing.","author":"@oszb","author_id":"UCG8aEN5wqbphKQ14-maHWbw","like_count":13,"published_time":"2 years ago"},{"id":"UgxVJp_gq-bJ2myJ3IZ4AaABAg","text":"Wonderful video. I love the comparisons between C & C++ and ASM. These are my types of video, contrast and comparison!","author":"@MichaelSmithzer","author_id":"UCHqLAW1IGgc3Wj6WtUSvIwg","like_count":4,"published_time":"2 years ago"},{"id":"UgyTX13WmxRe-XZ9slN4AaABAg","text":"It is a better practice to say foo *f = malloc(sizeof *f)) for what ever type foo is\ni think it would also be good if you explained on thre ASM version why you were invoking the C compiler, not everyone will understand the requirement to link your object files after compilation or why you would not just do that using ld itself.","author":"@markmanning2921","author_id":"UC9qYKo04XmWFQjh9UAIJe9A","like_count":7,"published_time":"2 years ago (edited)"},{"id":"UgzUtzUesRQrUdphEFd4AaABAg","text":"The amount of effort and dedication you put in editing these videos is commendable👏\nGreat tutorial as always!","author":"@sudhanshugorwadkar3839","author_id":"UCBiwI709LGJf2B6AiMgN9nQ","like_count":34,"published_time":"2 years ago"},{"id":"UgycfM3ZFow6jTSV7kp4AaABAg","text":"Objection: malloc and free are not keywords but functions. Which is a big difference compared to new/delete in C++. Especially for underhanded C programming, you can do some fun stuff with it.\n\nI was kinda hoping for more explanation of how it works under the hood but I'm probably not the target audience for this video since it is more beginner friendly","author":"@meneldal","author_id":"UCBOv5XsbZssd5Qh3GbGhV7w","like_count":3,"published_time":"1 year ago"},{"id":"UgxAN5Ng9Eq7b1Tsowp4AaABAg","text":"My God, I love this channel","author":"@13p14_","author_id":"UCkljAv2Y_1wnosT9gtbS7qw","like_count":3,"published_time":"2 years ago"},{"id":"UgyrJ8GrQ19yfY1vyfZ4AaABAg","text":"Just checking this older content and wow have you changed in the two years until now. Huge confidence upswing - super well done.","author":"@gke3800","author_id":"UCdCa6Evcby-Lhp9slVGS_gw","like_count":0,"published_time":"4 months ago"},{"id":"UgzhdTmKjWHaXmDJ0kZ4AaABAg","text":"You make this seem so easy, thanks!","author":"@johnjones216","author_id":"UCOn_RkTXh03JLNpyE7VX19g","like_count":0,"published_time":"2 months ago"},{"id":"UgwIh-xrBMnJiq9f7yV4AaABAg","text":"Thank you Laurie you have a rare talent - a thoroughly clear teaching approach. You provide just enough explanation of the reasoning, process and context without overloading the topic. Enjoying the low level assembly language perspective.","author":"@gustinian","author_id":"UC4MMXP9JpIpFhwPan4Xkm2A","like_count":4,"published_time":"2 years ago"},{"id":"UgwWDMPXB5BR6755NG14AaABAg","text":"I very rarely watch tutorials but the arm segment made this video worth watching.","author":"@gmjammin4367","author_id":"UCuMuUF8JLkPDoN5fN8mMxig","like_count":431,"published_time":"2 years ago"},{"id":"Ugym0As3F9eUOsbiqTx4AaABAg","text":"Not only appreciating the low-level information in the tutorial, but also loving the SE: Lain production aesthetics!","author":"@StellarFireflyGaming","author_id":"UCghXVXJ-17DHzaBGf8JYWSQ","like_count":204,"published_time":"2 years ago"},{"id":"UgwKYfMjrLZWECUvLN14AaABAg","text":"Memory allocation is easy, it's deallocation that's the problem 😅","author":"@slmille4","author_id":"UC6D0AxC34HkRIR0mCS8gk5A","like_count":221,"published_time":"2 years ago"},{"id":"Ugx3TXGtaH9U34Vo3X14AaABAg","text":"I like that you use the universal answer to everything for the content of the memory.","author":"@chutipascal","author_id":"UCAb5awaMm2Mdnr38Xzq-TIA","like_count":111,"published_time":"2 years ago"},{"id":"UgwovZjzHq6M5-KxjlZ4AaABAg","text":"Heads up for anyone working in C, you don't need to worry about casting the return value of malloc. Unlike in C++, void* will implicitly cast to other pointer types without throwing an invalid conversion error. This just maintains symmetry with casting to void* which is implicit in both C and C++. It's ultimately a stylistic decision whether to keep the explicit casts even though they're redundant, but my understanding of what idiomatic C looks like involves just letting the language cast void* for you in basically every situation.","author":"@TetrisMaster512","author_id":"UC3ARTLgZcFGx7bUvjtRCbcw","like_count":53,"published_time":"2 years ago"},{"id":"Ugzsn7fQE5NuGod53kd4AaABAg","text":"Current C++ core guidelines actually recommend against directly using new and delete in favor of smart pointers. std::make_unique and std::make_shared are the way to go. I also get that it's important to understand new and delete. Hats off to you for doing memory management in assembly!","author":"@jessedevore","author_id":"UCNTp3xwgm_Ly1mO-lbjzmvg","like_count":170,"published_time":"2 years ago"},{"id":"UgzzxiU0a_vtFzJB9bt4AaABAg","text":"Great video! Especially the assembly section. \n\nIn my (albeit limited) experience, it often helps to allocate memory in terms of pages rather than individual bytes. The page size is definitely not a consistent or constant standard value that you can simply hardcode in your programs. Effects of page size (fragmentation or page faults) are super apparent when deploying anything large-ish scale (say PostgreSQL db) on your ARM device. If you insist on doing everything in assembly, make sure your program adjusts for this variability in page size when compiling and makes it so that certain variables are \"aligned\" well for faster access.\n\nYour C compiler will most likely already handle all of this better than you without you even realizing it which is why in my opinion, programming in C is a \"safer\" bet for performance, readability and your own sanity.","author":"@stacksmasherninja7266","author_id":"UC-POYfkkQA5M-reEKOpAaRw","like_count":15,"published_time":"2 years ago"},{"id":"UgyK5-rknSuBTam8ulF4AaABAg","text":"Oh man, there are so many callouts to Serial Experiments: Lain in your staging/setting! Long time since I watched it, I love it!","author":"@PapaSMURFFS","author_id":"UCl_qiWNP_VBvMlgMc0V2bhA","like_count":72,"published_time":"2 years ago"},{"id":"UgySz_wrGCPmDDSvgQ94AaABAg","text":"Just as a best practice tip: always set your pointers to null after dealloc/free.","author":"@AlexTrexII","author_id":"UCO6S2ZkLi9x1g3_SpHp3Luw","like_count":47,"published_time":"2 years ago"},{"id":"UgzF-MH4N1D_vvqf-3F4AaABAg","text":"This channel was one of my best discoveries","author":"@0xreip","author_id":"UC_QXCwWs7bAQwTctPUFtntg","like_count":10,"published_time":"2 years ago"},{"id":"UgxhY2WGxE14Nbo0fvd4AaABAg","text":"The effor to create the vfx for those videos are something to marvel on its own...\nWhat impresses me is that the content is even greater.\nI know my way around 6502 asm and seeing this made me want to do arm asm just because...","author":"@BrunoSXS","author_id":"UCq5QUHOrVA7r1HAe-HTEQvw","like_count":38,"published_time":"2 years ago"},{"id":"UgycfM3ZFow6jTSV7kp4AaABAg","text":"Objection: malloc and free are not keywords but functions. Which is a big difference compared to new/delete in C++. Especially for underhanded C programming, you can do some fun stuff with it.\n\nI was kinda hoping for more explanation of how it works under the hood but I'm probably not the target audience for this video since it is more beginner friendly","author":"@meneldal","author_id":"UCBOv5XsbZssd5Qh3GbGhV7w","like_count":3,"published_time":"1 year ago"},{"id":"Ugxc8gQPDj0_X9eerRF4AaABAg","text":"I just discovered this channel, the visuals are super neat! The computers in the background, the Windows XP task bar and the window border around the web cam, wow!","author":"@horenso05","author_id":"UCzdVUSM3rCJEOxtjOHDWLkw","like_count":63,"published_time":"2 years ago"},{"id":"UgxSDS_qWlVIRXpuurx4AaABAg","text":"This channel is really impressive. You seem to have everything down somehow - you know a ton about the subject matter, your presenting is brilliant and you can distil your knowledge down, the video style and presentation is fantastic, and so is the cinematography. Really everything is brilliant, and it's clear you're still improving (e.g. I looked through the channel and your thumbnails have gotten way better over the past several months - I love this one and the recursion one).\n\nCan't believe I haven't seen your videos sooner. Looks like the algorithm has latched onto them though as I'm getting suggested a bunch recently.","author":"@lost4468yt","author_id":"UCaJErkdQZ4WCIW0nG0KWAZA","like_count":5,"published_time":"2 years ago"},{"id":"UgyTX13WmxRe-XZ9slN4AaABAg","text":"It is a better practice to say foo *f = malloc(sizeof *f)) for what ever type foo is\ni think it would also be good if you explained on thre ASM version why you were invoking the C compiler, not everyone will understand the requirement to link your object files after compilation or why you would not just do that using ld itself.","author":"@markmanning2921","author_id":"UC9qYKo04XmWFQjh9UAIJe9A","like_count":7,"published_time":"2 years ago (edited)"},{"id":"UgxxcKa1xvIJZIVHTTt4AaABAg","text":"very dank editing.","author":"@oszb","author_id":"UCG8aEN5wqbphKQ14-maHWbw","like_count":13,"published_time":"2 years ago"},{"id":"UgzUtzUesRQrUdphEFd4AaABAg","text":"The amount of effort and dedication you put in editing these videos is commendable👏\nGreat tutorial as always!","author":"@sudhanshugorwadkar3839","author_id":"UCBiwI709LGJf2B6AiMgN9nQ","like_count":34,"published_time":"2 years ago"},{"id":"UgxVJp_gq-bJ2myJ3IZ4AaABAg","text":"Wonderful video. I love the comparisons between C & C++ and ASM. These are my types of video, contrast and comparison!","author":"@MichaelSmithzer","author_id":"UCHqLAW1IGgc3Wj6WtUSvIwg","like_count":4,"published_time":"2 years ago"},{"id":"UgwJXNEpq_xABbhgSoF4AaABAg","text":"Never subscribed to a channel so fast! What a really cool style of video, with clear, helpful explanations. Good up the good work :D <3","author":"@chari6471","author_id":"UCchXsnHFUT67_e6ht3k-skQ","like_count":16,"published_time":"2 years ago"},{"id":"Ugzk_a4vtIzbCmVA_Kp4AaABAg","text":"Let's all love Lain!","author":"@Kaspean-sea-monster","author_id":"UCFJlJJ-JNJ_hZvwcjkBrsyQ","like_count":19,"published_time":"2 years ago (edited)"},{"id":"UgwWDMPXB5BR6755NG14AaABAg","text":"I very rarely watch tutorials but the arm segment made this video worth watching.","author":"@gmjammin4367","author_id":"UCuMuUF8JLkPDoN5fN8mMxig","like_count":431,"published_time":"2 years ago"},{"id":"Ugym0As3F9eUOsbiqTx4AaABAg","text":"Not only appreciating the low-level information in the tutorial, but also loving the SE: Lain production aesthetics!","author":"@StellarFireflyGaming","author_id":"UCghXVXJ-17DHzaBGf8JYWSQ","like_count":204,"published_time":"2 years ago"},{"id":"UgwKYfMjrLZWECUvLN14AaABAg","text":"Memory allocation is easy, it's deallocation that's the problem 😅","author":"@slmille4","author_id":"UC6D0AxC34HkRIR0mCS8gk5A","like_count":221,"published_time":"2 years ago"},{"id":"Ugx3TXGtaH9U34Vo3X14AaABAg","text":"I like that you use the universal answer to everything for the content of the memory.","author":"@chutipascal","author_id":"UCAb5awaMm2Mdnr38Xzq-TIA","like_count":111,"published_time":"2 years ago"},{"id":"UgwovZjzHq6M5-KxjlZ4AaABAg","text":"Heads up for anyone working in C, you don't need to worry about casting the return value of malloc. Unlike in C++, void* will implicitly cast to other pointer types without throwing an invalid conversion error. This just maintains symmetry with casting to void* which is implicit in both C and C++. It's ultimately a stylistic decision whether to keep the explicit casts even though they're redundant, but my understanding of what idiomatic C looks like involves just letting the language cast void* for you in basically every situation.","author":"@TetrisMaster512","author_id":"UC3ARTLgZcFGx7bUvjtRCbcw","like_count":53,"published_time":"2 years ago"},{"id":"Ugzsn7fQE5NuGod53kd4AaABAg","text":"Current C++ core guidelines actually recommend against directly using new and delete in favor of smart pointers. std::make_unique and std::make_shared are the way to go. I also get that it's important to understand new and delete. Hats off to you for doing memory management in assembly!","author":"@jessedevore","author_id":"UCNTp3xwgm_Ly1mO-lbjzmvg","like_count":170,"published_time":"2 years ago"},{"id":"UgzzxiU0a_vtFzJB9bt4AaABAg","text":"Great video! Especially the assembly section. \n\nIn my (albeit limited) experience, it often helps to allocate memory in terms of pages rather than individual bytes. The page size is definitely not a consistent or constant standard value that you can simply hardcode in your programs. Effects of page size (fragmentation or page faults) are super apparent when deploying anything large-ish scale (say PostgreSQL db) on your ARM device. If you insist on doing everything in assembly, make sure your program adjusts for this variability in page size when compiling and makes it so that certain variables are \"aligned\" well for faster access.\n\nYour C compiler will most likely already handle all of this better than you without you even realizing it which is why in my opinion, programming in C is a \"safer\" bet for performance, readability and your own sanity.","author":"@stacksmasherninja7266","author_id":"UC-POYfkkQA5M-reEKOpAaRw","like_count":15,"published_time":"2 years ago"},{"id":"UgyK5-rknSuBTam8ulF4AaABAg","text":"Oh man, there are so many callouts to Serial Experiments: Lain in your staging/setting! Long time since I watched it, I love it!","author":"@PapaSMURFFS","author_id":"UCl_qiWNP_VBvMlgMc0V2bhA","like_count":72,"published_time":"2 years ago"},{"id":"UgySz_wrGCPmDDSvgQ94AaABAg","text":"Just as a best practice tip: always set your pointers to null after dealloc/free.","author":"@AlexTrexII","author_id":"UCO6S2ZkLi9x1g3_SpHp3Luw","like_count":47,"published_time":"2 years ago"},{"id":"UgzF-MH4N1D_vvqf-3F4AaABAg","text":"This channel was one of my best discoveries","author":"@0xreip","author_id":"UC_QXCwWs7bAQwTctPUFtntg","like_count":10,"published_time":"2 years ago"},{"id":"UgxhY2WGxE14Nbo0fvd4AaABAg","text":"The effor to create the vfx for those videos are something to marvel on its own...\nWhat impresses me is that the content is even greater.\nI know my way around 6502 asm and seeing this made me want to do arm asm just because...","author":"@BrunoSXS","author_id":"UCq5QUHOrVA7r1HAe-HTEQvw","like_count":38,"published_time":"2 years ago"},{"id":"UgycfM3ZFow6jTSV7kp4AaABAg","text":"Objection: malloc and free are not keywords but functions. Which is a big difference compared to new/delete in C++. Especially for underhanded C programming, you can do some fun stuff with it.\n\nI was kinda hoping for more explanation of how it works under the hood but I'm probably not the target audience for this video since it is more beginner friendly","author":"@meneldal","author_id":"UCBOv5XsbZssd5Qh3GbGhV7w","like_count":3,"published_time":"1 year ago"},{"id":"Ugxc8gQPDj0_X9eerRF4AaABAg","text":"I just discovered this channel, the visuals are super neat! The computers in the background, the Windows XP task bar and the window border around the web cam, wow!","author":"@horenso05","author_id":"UCzdVUSM3rCJEOxtjOHDWLkw","like_count":63,"published_time":"2 years ago"},{"id":"UgxSDS_qWlVIRXpuurx4AaABAg","text":"This channel is really impressive. You seem to have everything down somehow - you know a ton about the subject matter, your presenting is brilliant and you can distil your knowledge down, the video style and presentation is fantastic, and so is the cinematography. Really everything is brilliant, and it's clear you're still improving (e.g. I looked through the channel and your thumbnails have gotten way better over the past several months - I love this one and the recursion one).\n\nCan't believe I haven't seen your videos sooner. Looks like the algorithm has latched onto them though as I'm getting suggested a bunch recently.","author":"@lost4468yt","author_id":"UCaJErkdQZ4WCIW0nG0KWAZA","like_count":5,"published_time":"2 years ago"},{"id":"UgyTX13WmxRe-XZ9slN4AaABAg","text":"It is a better practice to say foo *f = malloc(sizeof *f)) for what ever type foo is\ni think it would also be good if you explained on thre ASM version why you were invoking the C compiler, not everyone will understand the requirement to link your object files after compilation or why you would not just do that using ld itself.","author":"@markmanning2921","author_id":"UC9qYKo04XmWFQjh9UAIJe9A","like_count":7,"published_time":"2 years ago (edited)"},{"id":"UgxxcKa1xvIJZIVHTTt4AaABAg","text":"very dank editing.","author":"@oszb","author_id":"UCG8aEN5wqbphKQ14-maHWbw","like_count":13,"published_time":"2 years ago"},{"id":"UgzUtzUesRQrUdphEFd4AaABAg","text":"The amount of effort and dedication you put in editing these videos is commendable👏\nGreat tutorial as always!","author":"@sudhanshugorwadkar3839","author_id":"UCBiwI709LGJf2B6AiMgN9nQ","like_count":34,"published_time":"2 years ago"},{"id":"UgxVJp_gq-bJ2myJ3IZ4AaABAg","text":"Wonderful video. I love the comparisons between C & C++ and ASM. These are my types of video, contrast and comparison!","author":"@MichaelSmithzer","author_id":"UCHqLAW1IGgc3Wj6WtUSvIwg","like_count":4,"published_time":"2 years ago"},{"id":"UgwJXNEpq_xABbhgSoF4AaABAg","text":"Never subscribed to a channel so fast! What a really cool style of video, with clear, helpful explanations. Good up the good work :D <3","author":"@chari6471","author_id":"UCchXsnHFUT67_e6ht3k-skQ","like_count":16,"published_time":"2 years ago"},{"id":"Ugzk_a4vtIzbCmVA_Kp4AaABAg","text":"Let's all love Lain!","author":"@Kaspean-sea-monster","author_id":"UCFJlJJ-JNJ_hZvwcjkBrsyQ","like_count":19,"published_time":"2 years ago (edited)"},{"id":"UgwWDMPXB5BR6755NG14AaABAg","text":"I very rarely watch tutorials but the arm segment made this video worth watching.","author":"@gmjammin4367","author_id":"UCuMuUF8JLkPDoN5fN8mMxig","like_count":431,"published_time":"2 years ago"},{"id":"Ugym0As3F9eUOsbiqTx4AaABAg","text":"Not only appreciating the low-level information in the tutorial, but also loving the SE: Lain production aesthetics!","author":"@StellarFireflyGaming","author_id":"UCghXVXJ-17DHzaBGf8JYWSQ","like_count":204,"published_time":"2 years ago"},{"id":"UgwKYfMjrLZWECUvLN14AaABAg","text":"Memory allocation is easy, it's deallocation that's the problem 😅","author":"@slmille4","author_id":"UC6D0AxC34HkRIR0mCS8gk5A","like_count":221,"published_time":"2 years ago"},{"id":"Ugx3TXGtaH9U34Vo3X14AaABAg","text":"I like that you use the universal answer to everything for the content of the memory.","author":"@chutipascal","author_id":"UCAb5awaMm2Mdnr38Xzq-TIA","like_count":111,"published_time":"2 years ago"},{"id":"UgwovZjzHq6M5-KxjlZ4AaABAg","text":"Heads up for anyone working in C, you don't need to worry about casting the return value of malloc. Unlike in C++, void* will implicitly cast to other pointer types without throwing an invalid conversion error. This just maintains symmetry with casting to void* which is implicit in both C and C++. It's ultimately a stylistic decision whether to keep the explicit casts even though they're redundant, but my understanding of what idiomatic C looks like involves just letting the language cast void* for you in basically every situation.","author":"@TetrisMaster512","author_id":"UC3ARTLgZcFGx7bUvjtRCbcw","like_count":53,"published_time":"2 years ago"},{"id":"Ugzsn7fQE5NuGod53kd4AaABAg","text":"Current C++ core guidelines actually recommend against directly using new and delete in favor of smart pointers. std::make_unique and std::make_shared are the way to go. I also get that it's important to understand new and delete. Hats off to you for doing memory management in assembly!","author":"@jessedevore","author_id":"UCNTp3xwgm_Ly1mO-lbjzmvg","like_count":170,"published_time":"2 years ago"},{"id":"UgzzxiU0a_vtFzJB9bt4AaABAg","text":"Great video! Especially the assembly section. \n\nIn my (albeit limited) experience, it often helps to allocate memory in terms of pages rather than individual bytes. The page size is definitely not a consistent or constant standard value that you can simply hardcode in your programs. Effects of page size (fragmentation or page faults) are super apparent when deploying anything large-ish scale (say PostgreSQL db) on your ARM device. If you insist on doing everything in assembly, make sure your program adjusts for this variability in page size when compiling and makes it so that certain variables are \"aligned\" well for faster access.\n\nYour C compiler will most likely already handle all of this better than you without you even realizing it which is why in my opinion, programming in C is a \"safer\" bet for performance, readability and your own sanity.","author":"@stacksmasherninja7266","author_id":"UC-POYfkkQA5M-reEKOpAaRw","like_count":15,"published_time":"2 years ago"},{"id":"UgyK5-rknSuBTam8ulF4AaABAg","text":"Oh man, there are so many callouts to Serial Experiments: Lain in your staging/setting! Long time since I watched it, I love it!","author":"@PapaSMURFFS","author_id":"UCl_qiWNP_VBvMlgMc0V2bhA","like_count":72,"published_time":"2 years ago"},{"id":"UgySz_wrGCPmDDSvgQ94AaABAg","text":"Just as a best practice tip: always set your pointers to null after dealloc/free.","author":"@AlexTrexII","author_id":"UCO6S2ZkLi9x1g3_SpHp3Luw","like_count":47,"published_time":"2 years ago"},{"id":"UgzF-MH4N1D_vvqf-3F4AaABAg","text":"This channel was one of my best discoveries","author":"@0xreip","author_id":"UC_QXCwWs7bAQwTctPUFtntg","like_count":10,"published_time":"2 years ago"},{"id":"UgxhY2WGxE14Nbo0fvd4AaABAg","text":"The effor to create the vfx for those videos are something to marvel on its own...\nWhat impresses me is that the content is even greater.\nI know my way around 6502 asm and seeing this made me want to do arm asm just because...","author":"@BrunoSXS","author_id":"UCq5QUHOrVA7r1HAe-HTEQvw","like_count":38,"published_time":"2 years ago"},{"id":"UgycfM3ZFow6jTSV7kp4AaABAg","text":"Objection: malloc and free are not keywords but functions. Which is a big difference compared to new/delete in C++. Especially for underhanded C programming, you can do some fun stuff with it.\n\nI was kinda hoping for more explanation of how it works under the hood but I'm probably not the target audience for this video since it is more beginner friendly","author":"@meneldal","author_id":"UCBOv5XsbZssd5Qh3GbGhV7w","like_count":3,"published_time":"1 year ago"},{"id":"Ugxc8gQPDj0_X9eerRF4AaABAg","text":"I just discovered this channel, the visuals are super neat! The computers in the background, the Windows XP task bar and the window border around the web cam, wow!","author":"@horenso05","author_id":"UCzdVUSM3rCJEOxtjOHDWLkw","like_count":63,"published_time":"2 years ago"},{"id":"UgxSDS_qWlVIRXpuurx4AaABAg","text":"This channel is really impressive. You seem to have everything down somehow - you know a ton about the subject matter, your presenting is brilliant and you can distil your knowledge down, the video style and presentation is fantastic, and so is the cinematography. Really everything is brilliant, and it's clear you're still improving (e.g. I looked through the channel and your thumbnails have gotten way better over the past several months - I love this one and the recursion one).\n\nCan't believe I haven't seen your videos sooner. Looks like the algorithm has latched onto them though as I'm getting suggested a bunch recently.","author":"@lost4468yt","author_id":"UCaJErkdQZ4WCIW0nG0KWAZA","like_count":5,"published_time":"2 years ago"},{"id":"UgyTX13WmxRe-XZ9slN4AaABAg","text":"It is a better practice to say foo *f = malloc(sizeof *f)) for what ever type foo is\ni think it would also be good if you explained on thre ASM version why you were invoking the C compiler, not everyone will understand the requirement to link your object files after compilation or why you would not just do that using ld itself.","author":"@markmanning2921","author_id":"UC9qYKo04XmWFQjh9UAIJe9A","like_count":7,"published_time":"2 years ago (edited)"},{"id":"UgxxcKa1xvIJZIVHTTt4AaABAg","text":"very dank editing.","author":"@oszb","author_id":"UCG8aEN5wqbphKQ14-maHWbw","like_count":13,"published_time":"2 years ago"},{"id":"UgzUtzUesRQrUdphEFd4AaABAg","text":"The amount of effort and dedication you put in editing these videos is commendable👏\nGreat tutorial as always!","author":"@sudhanshugorwadkar3839","author_id":"UCBiwI709LGJf2B6AiMgN9nQ","like_count":34,"published_time":"2 years ago"},{"id":"UgxVJp_gq-bJ2myJ3IZ4AaABAg","text":"Wonderful video. I love the comparisons between C & C++ and ASM. These are my types of video, contrast and comparison!","author":"@MichaelSmithzer","author_id":"UCHqLAW1IGgc3Wj6WtUSvIwg","like_count":4,"published_time":"2 years ago"},{"id":"UgwJXNEpq_xABbhgSoF4AaABAg","text":"Never subscribed to a channel so fast! What a really cool style of video, with clear, helpful explanations. Good up the good work :D <3","author":"@chari6471","author_id":"UCchXsnHFUT67_e6ht3k-skQ","like_count":16,"published_time":"2 years ago"},{"id":"Ugzk_a4vtIzbCmVA_Kp4AaABAg","text":"Let's all love Lain!","author":"@Kaspean-sea-monster","author_id":"UCFJlJJ-JNJ_hZvwcjkBrsyQ","like_count":19,"published_time":"2 years ago (edited)"},{"id":"UgwWDMPXB5BR6755NG14AaABAg","text":"I very rarely watch tutorials but the arm segment made this video worth watching.","author":"@gmjammin4367","author_id":"UCuMuUF8JLkPDoN5fN8mMxig","like_count":431,"published_time":"2 years ago"},{"id":"Ugym0As3F9eUOsbiqTx4AaABAg","text":"Not only appreciating the low-level information in the tutorial, but also loving the SE: Lain production aesthetics!","author":"@StellarFireflyGaming","author_id":"UCghXVXJ-17DHzaBGf8JYWSQ","like_count":204,"published_time":"2 years ago"},{"id":"UgyK5-rknSuBTam8ulF4AaABAg","text":"Oh man, there are so many callouts to Serial Experiments: Lain in your staging/setting! Long time since I watched it, I love it!","author":"@PapaSMURFFS","author_id":"UCl_qiWNP_VBvMlgMc0V2bhA","like_count":72,"published_time":"2 years ago"},{"id":"UgzzxiU0a_vtFzJB9bt4AaABAg","text":"Great video! Especially the assembly section. \n\nIn my (albeit limited) experience, it often helps to allocate memory in terms of pages rather than individual bytes. The page size is definitely not a consistent or constant standard value that you can simply hardcode in your programs. Effects of page size (fragmentation or page faults) are super apparent when deploying anything large-ish scale (say PostgreSQL db) on your ARM device. If you insist on doing everything in assembly, make sure your program adjusts for this variability in page size when compiling and makes it so that certain variables are \"aligned\" well for faster access.\n\nYour C compiler will most likely already handle all of this better than you without you even realizing it which is why in my opinion, programming in C is a \"safer\" bet for performance, readability and your own sanity.","author":"@stacksmasherninja7266","author_id":"UC-POYfkkQA5M-reEKOpAaRw","like_count":15,"published_time":"2 years ago"},{"id":"Ugx3TXGtaH9U34Vo3X14AaABAg","text":"I like that you use the universal answer to everything for the content of the memory.","author":"@chutipascal","author_id":"UCAb5awaMm2Mdnr38Xzq-TIA","like_count":111,"published_time":"2 years ago"},{"id":"UgzF-MH4N1D_vvqf-3F4AaABAg","text":"This channel was one of my best discoveries","author":"@0xreip","author_id":"UC_QXCwWs7bAQwTctPUFtntg","like_count":10,"published_time":"2 years ago"},{"id":"UgxhY2WGxE14Nbo0fvd4AaABAg","text":"The effor to create the vfx for those videos are something to marvel on its own...\nWhat impresses me is that the content is even greater.\nI know my way around 6502 asm and seeing this made me want to do arm asm just because...","author":"@BrunoSXS","author_id":"UCq5QUHOrVA7r1HAe-HTEQvw","like_count":38,"published_time":"2 years ago"},{"id":"UgxSDS_qWlVIRXpuurx4AaABAg","text":"This channel is really impressive. You seem to have everything down somehow - you know a ton about the subject matter, your presenting is brilliant and you can distil your knowledge down, the video style and presentation is fantastic, and so is the cinematography. Really everything is brilliant, and it's clear you're still improving (e.g. I looked through the channel and your thumbnails have gotten way better over the past several months - I love this one and the recursion one).\n\nCan't believe I haven't seen your videos sooner. Looks like the algorithm has latched onto them though as I'm getting suggested a bunch recently.","author":"@lost4468yt","author_id":"UCaJErkdQZ4WCIW0nG0KWAZA","like_count":5,"published_time":"2 years ago"},{"id":"Ugxc8gQPDj0_X9eerRF4AaABAg","text":"I just discovered this channel, the visuals are super neat! The computers in the background, the Windows XP task bar and the window border around the web cam, wow!","author":"@horenso05","author_id":"UCzdVUSM3rCJEOxtjOHDWLkw","like_count":63,"published_time":"2 years ago"},{"id":"UgwovZjzHq6M5-KxjlZ4AaABAg","text":"Heads up for anyone working in C, you don't need to worry about casting the return value of malloc. Unlike in C++, void* will implicitly cast to other pointer types without throwing an invalid conversion error. This just maintains symmetry with casting to void* which is implicit in both C and C++. It's ultimately a stylistic decision whether to keep the explicit casts even though they're redundant, but my understanding of what idiomatic C looks like involves just letting the language cast void* for you in basically every situation.","author":"@TetrisMaster512","author_id":"UC3ARTLgZcFGx7bUvjtRCbcw","like_count":53,"published_time":"2 years ago"},{"id":"UgwJXNEpq_xABbhgSoF4AaABAg","text":"Never subscribed to a channel so fast! What a really cool style of video, with clear, helpful explanations. Good up the good work :D <3","author":"@chari6471","author_id":"UCchXsnHFUT67_e6ht3k-skQ","like_count":16,"published_time":"2 years ago"},{"id":"UgxxcKa1xvIJZIVHTTt4AaABAg","text":"very dank editing.","author":"@oszb","author_id":"UCG8aEN5wqbphKQ14-maHWbw","like_count":13,"published_time":"2 years ago"},{"id":"UgxVJp_gq-bJ2myJ3IZ4AaABAg","text":"Wonderful video. I love the comparisons between C & C++ and ASM. These are my types of video, contrast and comparison!","author":"@MichaelSmithzer","author_id":"UCHqLAW1IGgc3Wj6WtUSvIwg","like_count":4,"published_time":"2 years ago"},{"id":"UgyTX13WmxRe-XZ9slN4AaABAg","text":"It is a better practice to say foo *f = malloc(sizeof *f)) for what ever type foo is\ni think it would also be good if you explained on thre ASM version why you were invoking the C compiler, not everyone will understand the requirement to link your object files after compilation or why you would not just do that using ld itself.","author":"@markmanning2921","author_id":"UC9qYKo04XmWFQjh9UAIJe9A","like_count":7,"published_time":"2 years ago (edited)"},{"id":"UgzUtzUesRQrUdphEFd4AaABAg","text":"The amount of effort and dedication you put in editing these videos is commendable👏\nGreat tutorial as always!","author":"@sudhanshugorwadkar3839","author_id":"UCBiwI709LGJf2B6AiMgN9nQ","like_count":34,"published_time":"2 years ago"},{"id":"UgycfM3ZFow6jTSV7kp4AaABAg","text":"Objection: malloc and free are not keywords but functions. Which is a big difference compared to new/delete in C++. Especially for underhanded C programming, you can do some fun stuff with it.\n\nI was kinda hoping for more explanation of how it works under the hood but I'm probably not the target audience for this video since it is more beginner friendly","author":"@meneldal","author_id":"UCBOv5XsbZssd5Qh3GbGhV7w","like_count":3,"published_time":"1 year ago"},{"id":"UgxAN5Ng9Eq7b1Tsowp4AaABAg","text":"My God, I love this channel","author":"@13p14_","author_id":"UCkljAv2Y_1wnosT9gtbS7qw","like_count":3,"published_time":"2 years ago"},{"id":"UgyrJ8GrQ19yfY1vyfZ4AaABAg","text":"Just checking this older content and wow have you changed in the two years until now. Huge confidence upswing - super well done.","author":"@gke3800","author_id":"UCdCa6Evcby-Lhp9slVGS_gw","like_count":0,"published_time":"4 months ago"},{"id":"UgzhdTmKjWHaXmDJ0kZ4AaABAg","text":"You make this seem so easy, thanks!","author":"@johnjones216","author_id":"UCOn_RkTXh03JLNpyE7VX19g","like_count":0,"published_time":"2 months ago"},{"id":"UgwIh-xrBMnJiq9f7yV4AaABAg","text":"Thank you Laurie you have a rare talent - a thoroughly clear teaching approach. You provide just enough explanation of the reasoning, process and context without overloading the topic. Enjoying the low level assembly language perspective.","author":"@gustinian","author_id":"UC4MMXP9JpIpFhwPan4Xkm2A","like_count":4,"published_time":"2 years ago"},{"id":"UgwWDMPXB5BR6755NG14AaABAg","text":"I very rarely watch tutorials but the arm segment made this video worth watching.","author":"@gmjammin4367","author_id":"UCuMuUF8JLkPDoN5fN8mMxig","like_count":431,"published_time":"2 years ago"},{"id":"Ugym0As3F9eUOsbiqTx4AaABAg","text":"Not only appreciating the low-level information in the tutorial, but also loving the SE: Lain production aesthetics!","author":"@StellarFireflyGaming","author_id":"UCghXVXJ-17DHzaBGf8JYWSQ","like_count":204,"published_time":"2 years ago"},{"id":"UgwKYfMjrLZWECUvLN14AaABAg","text":"Memory allocation is easy, it's deallocation that's the problem 😅","author":"@slmille4","author_id":"UC6D0AxC34HkRIR0mCS8gk5A","like_count":221,"published_time":"2 years ago"},{"id":"Ugx3TXGtaH9U34Vo3X14AaABAg","text":"I like that you use the universal answer to everything for the content of the memory.","author":"@chutipascal","author_id":"UCAb5awaMm2Mdnr38Xzq-TIA","like_count":111,"published_time":"2 years ago"},{"id":"UgwovZjzHq6M5-KxjlZ4AaABAg","text":"Heads up for anyone working in C, you don't need to worry about casting the return value of malloc. Unlike in C++, void* will implicitly cast to other pointer types without throwing an invalid conversion error. This just maintains symmetry with casting to void* which is implicit in both C and C++. It's ultimately a stylistic decision whether to keep the explicit casts even though they're redundant, but my understanding of what idiomatic C looks like involves just letting the language cast void* for you in basically every situation.","author":"@TetrisMaster512","author_id":"UC3ARTLgZcFGx7bUvjtRCbcw","like_count":53,"published_time":"2 years ago"},{"id":"Ugzsn7fQE5NuGod53kd4AaABAg","text":"Current C++ core guidelines actually recommend against directly using new and delete in favor of smart pointers. std::make_unique and std::make_shared are the way to go. I also get that it's important to understand new and delete. Hats off to you for doing memory management in assembly!","author":"@jessedevore","author_id":"UCNTp3xwgm_Ly1mO-lbjzmvg","like_count":170,"published_time":"2 years ago"},{"id":"UgzzxiU0a_vtFzJB9bt4AaABAg","text":"Great video! Especially the assembly section. \n\nIn my (albeit limited) experience, it often helps to allocate memory in terms of pages rather than individual bytes. The page size is definitely not a consistent or constant standard value that you can simply hardcode in your programs. Effects of page size (fragmentation or page faults) are super apparent when deploying anything large-ish scale (say PostgreSQL db) on your ARM device. If you insist on doing everything in assembly, make sure your program adjusts for this variability in page size when compiling and makes it so that certain variables are \"aligned\" well for faster access.\n\nYour C compiler will most likely already handle all of this better than you without you even realizing it which is why in my opinion, programming in C is a \"safer\" bet for performance, readability and your own sanity.","author":"@stacksmasherninja7266","author_id":"UC-POYfkkQA5M-reEKOpAaRw","like_count":15,"published_time":"2 years ago"},{"id":"UgyK5-rknSuBTam8ulF4AaABAg","text":"Oh man, there are so many callouts to Serial Experiments: Lain in your staging/setting! Long time since I watched it, I love it!","author":"@PapaSMURFFS","author_id":"UCl_qiWNP_VBvMlgMc0V2bhA","like_count":72,"published_time":"2 years ago"},{"id":"UgySz_wrGCPmDDSvgQ94AaABAg","text":"Just as a best practice tip: always set your pointers to null after dealloc/free.","author":"@AlexTrexII","author_id":"UCO6S2ZkLi9x1g3_SpHp3Luw","like_count":47,"published_time":"2 years ago"},{"id":"UgzF-MH4N1D_vvqf-3F4AaABAg","text":"This channel was one of my best discoveries","author":"@0xreip","author_id":"UC_QXCwWs7bAQwTctPUFtntg","like_count":10,"published_time":"2 years ago"},{"id":"UgxhY2WGxE14Nbo0fvd4AaABAg","text":"The effor to create the vfx for those videos are something to marvel on its own...\nWhat impresses me is that the content is even greater.\nI know my way around 6502 asm and seeing this made me want to do arm asm just because...","author":"@BrunoSXS","author_id":"UCq5QUHOrVA7r1HAe-HTEQvw","like_count":38,"published_time":"2 years ago"},{"id":"UgycfM3ZFow6jTSV7kp4AaABAg","text":"Objection: malloc and free are not keywords but functions. Which is a big difference compared to new/delete in C++. Especially for underhanded C programming, you can do some fun stuff with it.\n\nI was kinda hoping for more explanation of how it works under the hood but I'm probably not the target audience for this video since it is more beginner friendly","author":"@meneldal","author_id":"UCBOv5XsbZssd5Qh3GbGhV7w","like_count":3,"published_time":"1 year ago"},{"id":"Ugxc8gQPDj0_X9eerRF4AaABAg","text":"I just discovered this channel, the visuals are super neat! The computers in the background, the Windows XP task bar and the window border around the web cam, wow!","author":"@horenso05","author_id":"UCzdVUSM3rCJEOxtjOHDWLkw","like_count":63,"published_time":"2 years ago"},{"id":"UgxSDS_qWlVIRXpuurx4AaABAg","text":"This channel is really impressive. You seem to have everything down somehow - you know a ton about the subject matter, your presenting is brilliant and you can distil your knowledge down, the video style and presentation is fantastic, and so is the cinematography. Really everything is brilliant, and it's clear you're still improving (e.g. I looked through the channel and your thumbnails have gotten way better over the past several months - I love this one and the recursion one).\n\nCan't believe I haven't seen your videos sooner. Looks like the algorithm has latched onto them though as I'm getting suggested a bunch recently.","author":"@lost4468yt","author_id":"UCaJErkdQZ4WCIW0nG0KWAZA","like_count":5,"published_time":"2 years ago"},{"id":"UgyTX13WmxRe-XZ9slN4AaABAg","text":"It is a better practice to say foo *f = malloc(sizeof *f)) for what ever type foo is\ni think it would also be good if you explained on thre ASM version why you were invoking the C compiler, not everyone will understand the requirement to link your object files after compilation or why you would not just do that using ld itself.","author":"@markmanning2921","author_id":"UC9qYKo04XmWFQjh9UAIJe9A","like_count":7,"published_time":"2 years ago (edited)"},{"id":"UgxxcKa1xvIJZIVHTTt4AaABAg","text":"very dank editing.","author":"@oszb","author_id":"UCG8aEN5wqbphKQ14-maHWbw","like_count":13,"published_time":"2 years ago"},{"id":"UgzUtzUesRQrUdphEFd4AaABAg","text":"The amount of effort and dedication you put in editing these videos is commendable👏\nGreat tutorial as always!","author":"@sudhanshugorwadkar3839","author_id":"UCBiwI709LGJf2B6AiMgN9nQ","like_count":34,"published_time":"2 years ago"},{"id":"UgxVJp_gq-bJ2myJ3IZ4AaABAg","text":"Wonderful video. I love the comparisons between C & C++ and ASM. These are my types of video, contrast and comparison!","author":"@MichaelSmithzer","author_id":"UCHqLAW1IGgc3Wj6WtUSvIwg","like_count":4,"published_time":"2 years ago"},{"id":"UgwJXNEpq_xABbhgSoF4AaABAg","text":"Never subscribed to a channel so fast! What a really cool style of video, with clear, helpful explanations. Good up the good work :D <3","author":"@chari6471","author_id":"UCchXsnHFUT67_e6ht3k-skQ","like_count":16,"published_time":"2 years ago"},{"id":"Ugzk_a4vtIzbCmVA_Kp4AaABAg","text":"Let's all love Lain!","author":"@Kaspean-sea-monster","author_id":"UCFJlJJ-JNJ_hZvwcjkBrsyQ","like_count":19,"published_time":"2 years ago (edited)"},{"id":"UgwWDMPXB5BR6755NG14AaABAg","text":"I very rarely watch tutorials but the arm segment made this video worth watching.","author":"@gmjammin4367","author_id":"UCuMuUF8JLkPDoN5fN8mMxig","like_count":431,"published_time":"2 years ago"},{"id":"Ugym0As3F9eUOsbiqTx4AaABAg","text":"Not only appreciating the low-level information in the tutorial, but also loving the SE: Lain production aesthetics!","author":"@StellarFireflyGaming","author_id":"UCghXVXJ-17DHzaBGf8JYWSQ","like_count":204,"published_time":"2 years ago"},{"id":"UgwKYfMjrLZWECUvLN14AaABAg","text":"Memory allocation is easy, it's deallocation that's the problem 😅","author":"@slmille4","author_id":"UC6D0AxC34HkRIR0mCS8gk5A","like_count":221,"published_time":"2 years ago"},{"id":"Ugx3TXGtaH9U34Vo3X14AaABAg","text":"I like that you use the universal answer to everything for the content of the memory.","author":"@chutipascal","author_id":"UCAb5awaMm2Mdnr38Xzq-TIA","like_count":111,"published_time":"2 years ago"},{"id":"UgzF-MH4N1D_vvqf-3F4AaABAg","text":"This channel was one of my best discoveries","author":"@0xreip","author_id":"UC_QXCwWs7bAQwTctPUFtntg","like_count":10,"published_time":"2 years ago"},{"id":"UgwovZjzHq6M5-KxjlZ4AaABAg","text":"Heads up for anyone working in C, you don't need to worry about casting the return value of malloc. Unlike in C++, void* will implicitly cast to other pointer types without throwing an invalid conversion error. This just maintains symmetry with casting to void* which is implicit in both C and C++. It's ultimately a stylistic decision whether to keep the explicit casts even though they're redundant, but my understanding of what idiomatic C looks like involves just letting the language cast void* for you in basically every situation.","author":"@TetrisMaster512","author_id":"UC3ARTLgZcFGx7bUvjtRCbcw","like_count":53,"published_time":"2 years ago"},{"id":"UgzzxiU0a_vtFzJB9bt4AaABAg","text":"Great video! Especially the assembly section. \n\nIn my (albeit limited) experience, it often helps to allocate memory in terms of pages rather than individual bytes. The page size is definitely not a consistent or constant standard value that you can simply hardcode in your programs. Effects of page size (fragmentation or page faults) are super apparent when deploying anything large-ish scale (say PostgreSQL db) on your ARM device. If you insist on doing everything in assembly, make sure your program adjusts for this variability in page size when compiling and makes it so that certain variables are \"aligned\" well for faster access.\n\nYour C compiler will most likely already handle all of this better than you without you even realizing it which is why in my opinion, programming in C is a \"safer\" bet for performance, readability and your own sanity.","author":"@stacksmasherninja7266","author_id":"UC-POYfkkQA5M-reEKOpAaRw","like_count":15,"published_time":"2 years ago"},{"id":"UgySz_wrGCPmDDSvgQ94AaABAg","text":"Just as a best practice tip: always set your pointers to null after dealloc/free.","author":"@AlexTrexII","author_id":"UCO6S2ZkLi9x1g3_SpHp3Luw","like_count":47,"published_time":"2 years ago"},{"id":"UgxhY2WGxE14Nbo0fvd4AaABAg","text":"The effor to create the vfx for those videos are something to marvel on its own...\nWhat impresses me is that the content is even greater.\nI know my way around 6502 asm and seeing this made me want to do arm asm just because...","author":"@BrunoSXS","author_id":"UCq5QUHOrVA7r1HAe-HTEQvw","like_count":38,"published_time":"2 years ago"},{"id":"UgyK5-rknSuBTam8ulF4AaABAg","text":"Oh man, there are so many callouts to Serial Experiments: Lain in your staging/setting! Long time since I watched it, I love it!","author":"@PapaSMURFFS","author_id":"UCl_qiWNP_VBvMlgMc0V2bhA","like_count":72,"published_time":"2 years ago"},{"id":"UgwSPWXO65wTux2WPKF4AaABAg","text":"42? The Hitchhiker's Guide to the Galaxy?","author":"@DolorSitAmet-y7r","author_id":"UCOQbArYY6V0vzoImyWUPphw","like_count":1,"published_time":"2 years ago"},{"id":"UgycfM3ZFow6jTSV7kp4AaABAg","text":"Objection: malloc and free are not keywords but functions. Which is a big difference compared to new/delete in C++. Especially for underhanded C programming, you can do some fun stuff with it.\n\nI was kinda hoping for more explanation of how it works under the hood but I'm probably not the target audience for this video since it is more beginner friendly","author":"@meneldal","author_id":"UCBOv5XsbZssd5Qh3GbGhV7w","like_count":3,"published_time":"1 year ago"},{"id":"Ugzsn7fQE5NuGod53kd4AaABAg","text":"Current C++ core guidelines actually recommend against directly using new and delete in favor of smart pointers. std::make_unique and std::make_shared are the way to go. I also get that it's important to understand new and delete. Hats off to you for doing memory management in assembly!","author":"@jessedevore","author_id":"UCNTp3xwgm_Ly1mO-lbjzmvg","like_count":170,"published_time":"2 years ago"},{"id":"UgzUtzUesRQrUdphEFd4AaABAg","text":"The amount of effort and dedication you put in editing these videos is commendable👏\nGreat tutorial as always!","author":"@sudhanshugorwadkar3839","author_id":"UCBiwI709LGJf2B6AiMgN9nQ","like_count":34,"published_time":"2 years ago"},{"id":"UgxSDS_qWlVIRXpuurx4AaABAg","text":"This channel is really impressive. You seem to have everything down somehow - you know a ton about the subject matter, your presenting is brilliant and you can distil your knowledge down, the video style and presentation is fantastic, and so is the cinematography. Really everything is brilliant, and it's clear you're still improving (e.g. I looked through the channel and your thumbnails have gotten way better over the past several months - I love this one and the recursion one).\n\nCan't believe I haven't seen your videos sooner. Looks like the algorithm has latched onto them though as I'm getting suggested a bunch recently.","author":"@lost4468yt","author_id":"UCaJErkdQZ4WCIW0nG0KWAZA","like_count":5,"published_time":"2 years ago"},{"id":"UgxxcKa1xvIJZIVHTTt4AaABAg","text":"very dank editing.","author":"@oszb","author_id":"UCG8aEN5wqbphKQ14-maHWbw","like_count":13,"published_time":"2 years ago"},{"id":"UgwJXNEpq_xABbhgSoF4AaABAg","text":"Never subscribed to a channel so fast! What a really cool style of video, with clear, helpful explanations. Good up the good work :D <3","author":"@chari6471","author_id":"UCchXsnHFUT67_e6ht3k-skQ","like_count":16,"published_time":"2 years ago"},{"id":"Ugzk_a4vtIzbCmVA_Kp4AaABAg","text":"Let's all love Lain!","author":"@Kaspean-sea-monster","author_id":"UCFJlJJ-JNJ_hZvwcjkBrsyQ","like_count":19,"published_time":"2 years ago (edited)"},{"id":"Ugz1KwO_sfTCOAn5G3V4AaABAg","text":"A brilliant woman of culture, one who isn't afraid to dive into the assembly! Now that's a Logical type of Person!","author":"@skilz8098","author_id":"UCjF11zbHaO1qaJ-nl1ndg6A","like_count":0,"published_time":"4 months ago"},{"id":"UgyrJ8GrQ19yfY1vyfZ4AaABAg","text":"Just checking this older content and wow have you changed in the two years until now. Huge confidence upswing - super well done.","author":"@gke3800","author_id":"UCdCa6Evcby-Lhp9slVGS_gw","like_count":0,"published_time":"4 months ago"},{"id":"UgwWDMPXB5BR6755NG14AaABAg","text":"I very rarely watch tutorials but the arm segment made this video worth watching.","author":"@gmjammin4367","author_id":"UCuMuUF8JLkPDoN5fN8mMxig","like_count":431,"published_time":"2 years ago"},{"id":"Ugym0As3F9eUOsbiqTx4AaABAg","text":"Not only appreciating the low-level information in the tutorial, but also loving the SE: Lain production aesthetics!","author":"@StellarFireflyGaming","author_id":"UCghXVXJ-17DHzaBGf8JYWSQ","like_count":204,"published_time":"2 years ago"},{"id":"UgwKYfMjrLZWECUvLN14AaABAg","text":"Memory allocation is easy, it's deallocation that's the problem 😅","author":"@slmille4","author_id":"UC6D0AxC34HkRIR0mCS8gk5A","like_count":221,"published_time":"2 years ago"},{"id":"Ugx3TXGtaH9U34Vo3X14AaABAg","text":"I like that you use the universal answer to everything for the content of the memory.","author":"@chutipascal","author_id":"UCAb5awaMm2Mdnr38Xzq-TIA","like_count":111,"published_time":"2 years ago"},{"id":"UgwovZjzHq6M5-KxjlZ4AaABAg","text":"Heads up for anyone working in C, you don't need to worry about casting the return value of malloc. Unlike in C++, void* will implicitly cast to other pointer types without throwing an invalid conversion error. This just maintains symmetry with casting to void* which is implicit in both C and C++. It's ultimately a stylistic decision whether to keep the explicit casts even though they're redundant, but my understanding of what idiomatic C looks like involves just letting the language cast void* for you in basically every situation.","author":"@TetrisMaster512","author_id":"UC3ARTLgZcFGx7bUvjtRCbcw","like_count":53,"published_time":"2 years ago"},{"id":"Ugzsn7fQE5NuGod53kd4AaABAg","text":"Current C++ core guidelines actually recommend against directly using new and delete in favor of smart pointers. std::make_unique and std::make_shared are the way to go. I also get that it's important to understand new and delete. Hats off to you for doing memory management in assembly!","author":"@jessedevore","author_id":"UCNTp3xwgm_Ly1mO-lbjzmvg","like_count":170,"published_time":"2 years ago"},{"id":"UgzzxiU0a_vtFzJB9bt4AaABAg","text":"Great video! Especially the assembly section. \n\nIn my (albeit limited) experience, it often helps to allocate memory in terms of pages rather than individual bytes. The page size is definitely not a consistent or constant standard value that you can simply hardcode in your programs. Effects of page size (fragmentation or page faults) are super apparent when deploying anything large-ish scale (say PostgreSQL db) on your ARM device. If you insist on doing everything in assembly, make sure your program adjusts for this variability in page size when compiling and makes it so that certain variables are \"aligned\" well for faster access.\n\nYour C compiler will most likely already handle all of this better than you without you even realizing it which is why in my opinion, programming in C is a \"safer\" bet for performance, readability and your own sanity.","author":"@stacksmasherninja7266","author_id":"UC-POYfkkQA5M-reEKOpAaRw","like_count":15,"published_time":"2 years ago"},{"id":"UgyK5-rknSuBTam8ulF4AaABAg","text":"Oh man, there are so many callouts to Serial Experiments: Lain in your staging/setting! Long time since I watched it, I love it!","author":"@PapaSMURFFS","author_id":"UCl_qiWNP_VBvMlgMc0V2bhA","like_count":72,"published_time":"2 years ago"},{"id":"UgySz_wrGCPmDDSvgQ94AaABAg","text":"Just as a best practice tip: always set your pointers to null after dealloc/free.","author":"@AlexTrexII","author_id":"UCO6S2ZkLi9x1g3_SpHp3Luw","like_count":47,"published_time":"2 years ago"},{"id":"UgzF-MH4N1D_vvqf-3F4AaABAg","text":"This channel was one of my best discoveries","author":"@0xreip","author_id":"UC_QXCwWs7bAQwTctPUFtntg","like_count":10,"published_time":"2 years ago"},{"id":"UgxhY2WGxE14Nbo0fvd4AaABAg","text":"The effor to create the vfx for those videos are something to marvel on its own...\nWhat impresses me is that the content is even greater.\nI know my way around 6502 asm and seeing this made me want to do arm asm just because...","author":"@BrunoSXS","author_id":"UCq5QUHOrVA7r1HAe-HTEQvw","like_count":38,"published_time":"2 years ago"},{"id":"UgycfM3ZFow6jTSV7kp4AaABAg","text":"Objection: malloc and free are not keywords but functions. Which is a big difference compared to new/delete in C++. Especially for underhanded C programming, you can do some fun stuff with it.\n\nI was kinda hoping for more explanation of how it works under the hood but I'm probably not the target audience for this video since it is more beginner friendly","author":"@meneldal","author_id":"UCBOv5XsbZssd5Qh3GbGhV7w","like_count":3,"published_time":"1 year ago"},{"id":"Ugxc8gQPDj0_X9eerRF4AaABAg","text":"I just discovered this channel, the visuals are super neat! The computers in the background, the Windows XP task bar and the window border around the web cam, wow!","author":"@horenso05","author_id":"UCzdVUSM3rCJEOxtjOHDWLkw","like_count":63,"published_time":"2 years ago"},{"id":"UgxSDS_qWlVIRXpuurx4AaABAg","text":"This channel is really impressive. You seem to have everything down somehow - you know a ton about the subject matter, your presenting is brilliant and you can distil your knowledge down, the video style and presentation is fantastic, and so is the cinematography. Really everything is brilliant, and it's clear you're still improving (e.g. I looked through the channel and your thumbnails have gotten way better over the past several months - I love this one and the recursion one).\n\nCan't believe I haven't seen your videos sooner. Looks like the algorithm has latched onto them though as I'm getting suggested a bunch recently.","author":"@lost4468yt","author_id":"UCaJErkdQZ4WCIW0nG0KWAZA","like_count":5,"published_time":"2 years ago"},{"id":"UgyTX13WmxRe-XZ9slN4AaABAg","text":"It is a better practice to say foo *f = malloc(sizeof *f)) for what ever type foo is\ni think it would also be good if you explained on thre ASM version why you were invoking the C compiler, not everyone will understand the requirement to link your object files after compilation or why you would not just do that using ld itself.","author":"@markmanning2921","author_id":"UC9qYKo04XmWFQjh9UAIJe9A","like_count":7,"published_time":"2 years ago (edited)"},{"id":"UgxxcKa1xvIJZIVHTTt4AaABAg","text":"very dank editing.","author":"@oszb","author_id":"UCG8aEN5wqbphKQ14-maHWbw","like_count":13,"published_time":"2 years ago"},{"id":"UgzUtzUesRQrUdphEFd4AaABAg","text":"The amount of effort and dedication you put in editing these videos is commendable👏\nGreat tutorial as always!","author":"@sudhanshugorwadkar3839","author_id":"UCBiwI709LGJf2B6AiMgN9nQ","like_count":34,"published_time":"2 years ago"},{"id":"UgxVJp_gq-bJ2myJ3IZ4AaABAg","text":"Wonderful video. I love the comparisons between C & C++ and ASM. These are my types of video, contrast and comparison!","author":"@MichaelSmithzer","author_id":"UCHqLAW1IGgc3Wj6WtUSvIwg","like_count":4,"published_time":"2 years ago"},{"id":"UgwJXNEpq_xABbhgSoF4AaABAg","text":"Never subscribed to a channel so fast! What a really cool style of video, with clear, helpful explanations. Good up the good work :D <3","author":"@chari6471","author_id":"UCchXsnHFUT67_e6ht3k-skQ","like_count":16,"published_time":"2 years ago"},{"id":"Ugzk_a4vtIzbCmVA_Kp4AaABAg","text":"Let's all love Lain!","author":"@Kaspean-sea-monster","author_id":"UCFJlJJ-JNJ_hZvwcjkBrsyQ","like_count":19,"published_time":"2 years ago (edited)"},{"id":"UgwWDMPXB5BR6755NG14AaABAg","text":"I very rarely watch tutorials but the arm segment made this video worth watching.","author":"@gmjammin4367","author_id":"UCuMuUF8JLkPDoN5fN8mMxig","like_count":431,"published_time":"2 years ago"},{"id":"Ugym0As3F9eUOsbiqTx4AaABAg","text":"Not only appreciating the low-level information in the tutorial, but also loving the SE: Lain production aesthetics!","author":"@StellarFireflyGaming","author_id":"UCghXVXJ-17DHzaBGf8JYWSQ","like_count":204,"published_time":"2 years ago"},{"id":"UgyK5-rknSuBTam8ulF4AaABAg","text":"Oh man, there are so many callouts to Serial Experiments: Lain in your staging/setting! Long time since I watched it, I love it!","author":"@PapaSMURFFS","author_id":"UCl_qiWNP_VBvMlgMc0V2bhA","like_count":72,"published_time":"2 years ago"},{"id":"UgzzxiU0a_vtFzJB9bt4AaABAg","text":"Great video! Especially the assembly section. \n\nIn my (albeit limited) experience, it often helps to allocate memory in terms of pages rather than individual bytes. The page size is definitely not a consistent or constant standard value that you can simply hardcode in your programs. Effects of page size (fragmentation or page faults) are super apparent when deploying anything large-ish scale (say PostgreSQL db) on your ARM device. If you insist on doing everything in assembly, make sure your program adjusts for this variability in page size when compiling and makes it so that certain variables are \"aligned\" well for faster access.\n\nYour C compiler will most likely already handle all of this better than you without you even realizing it which is why in my opinion, programming in C is a \"safer\" bet for performance, readability and your own sanity.","author":"@stacksmasherninja7266","author_id":"UC-POYfkkQA5M-reEKOpAaRw","like_count":15,"published_time":"2 years ago"},{"id":"Ugx3TXGtaH9U34Vo3X14AaABAg","text":"I like that you use the universal answer to everything for the content of the memory.","author":"@chutipascal","author_id":"UCAb5awaMm2Mdnr38Xzq-TIA","like_count":111,"published_time":"2 years ago"},{"id":"UgzF-MH4N1D_vvqf-3F4AaABAg","text":"This channel was one of my best discoveries","author":"@0xreip","author_id":"UC_QXCwWs7bAQwTctPUFtntg","like_count":10,"published_time":"2 years ago"},{"id":"UgxhY2WGxE14Nbo0fvd4AaABAg","text":"The effor to create the vfx for those videos are something to marvel on its own...\nWhat impresses me is that the content is even greater.\nI know my way around 6502 asm and seeing this made me want to do arm asm just because...","author":"@BrunoSXS","author_id":"UCq5QUHOrVA7r1HAe-HTEQvw","like_count":38,"published_time":"2 years ago"},{"id":"UgxSDS_qWlVIRXpuurx4AaABAg","text":"This channel is really impressive. You seem to have everything down somehow - you know a ton about the subject matter, your presenting is brilliant and you can distil your knowledge down, the video style and presentation is fantastic, and so is the cinematography. Really everything is brilliant, and it's clear you're still improving (e.g. I looked through the channel and your thumbnails have gotten way better over the past several months - I love this one and the recursion one).\n\nCan't believe I haven't seen your videos sooner. Looks like the algorithm has latched onto them though as I'm getting suggested a bunch recently.","author":"@lost4468yt","author_id":"UCaJErkdQZ4WCIW0nG0KWAZA","like_count":5,"published_time":"2 years ago"},{"id":"Ugxc8gQPDj0_X9eerRF4AaABAg","text":"I just discovered this channel, the visuals are super neat! The computers in the background, the Windows XP task bar and the window border around the web cam, wow!","author":"@horenso05","author_id":"UCzdVUSM3rCJEOxtjOHDWLkw","like_count":63,"published_time":"2 years ago"},{"id":"UgwovZjzHq6M5-KxjlZ4AaABAg","text":"Heads up for anyone working in C, you don't need to worry about casting the return value of malloc. Unlike in C++, void* will implicitly cast to other pointer types without throwing an invalid conversion error. This just maintains symmetry with casting to void* which is implicit in both C and C++. It's ultimately a stylistic decision whether to keep the explicit casts even though they're redundant, but my understanding of what idiomatic C looks like involves just letting the language cast void* for you in basically every situation.","author":"@TetrisMaster512","author_id":"UC3ARTLgZcFGx7bUvjtRCbcw","like_count":53,"published_time":"2 years ago"},{"id":"UgwJXNEpq_xABbhgSoF4AaABAg","text":"Never subscribed to a channel so fast! What a really cool style of video, with clear, helpful explanations. Good up the good work :D <3","author":"@chari6471","author_id":"UCchXsnHFUT67_e6ht3k-skQ","like_count":16,"published_time":"2 years ago"},{"id":"UgxxcKa1xvIJZIVHTTt4AaABAg","text":"very dank editing.","author":"@oszb","author_id":"UCG8aEN5wqbphKQ14-maHWbw","like_count":13,"published_time":"2 years ago"},{"id":"UgxVJp_gq-bJ2myJ3IZ4AaABAg","text":"Wonderful video. I love the comparisons between C & C++ and ASM. These are my types of video, contrast and comparison!","author":"@MichaelSmithzer","author_id":"UCHqLAW1IGgc3Wj6WtUSvIwg","like_count":4,"published_time":"2 years ago"},{"id":"UgyTX13WmxRe-XZ9slN4AaABAg","text":"It is a better practice to say foo *f = malloc(sizeof *f)) for what ever type foo is\ni think it would also be good if you explained on thre ASM version why you were invoking the C compiler, not everyone will understand the requirement to link your object files after compilation or why you would not just do that using ld itself.","author":"@markmanning2921","author_id":"UC9qYKo04XmWFQjh9UAIJe9A","like_count":7,"published_time":"2 years ago (edited)"},{"id":"UgzUtzUesRQrUdphEFd4AaABAg","text":"The amount of effort and dedication you put in editing these videos is commendable👏\nGreat tutorial as always!","author":"@sudhanshugorwadkar3839","author_id":"UCBiwI709LGJf2B6AiMgN9nQ","like_count":34,"published_time":"2 years ago"},{"id":"UgycfM3ZFow6jTSV7kp4AaABAg","text":"Objection: malloc and free are not keywords but functions. Which is a big difference compared to new/delete in C++. Especially for underhanded C programming, you can do some fun stuff with it.\n\nI was kinda hoping for more explanation of how it works under the hood but I'm probably not the target audience for this video since it is more beginner friendly","author":"@meneldal","author_id":"UCBOv5XsbZssd5Qh3GbGhV7w","like_count":3,"published_time":"1 year ago"},{"id":"UgxAN5Ng9Eq7b1Tsowp4AaABAg","text":"My God, I love this channel","author":"@13p14_","author_id":"UCkljAv2Y_1wnosT9gtbS7qw","like_count":3,"published_time":"2 years ago"},{"id":"UgyrJ8GrQ19yfY1vyfZ4AaABAg","text":"Just checking this older content and wow have you changed in the two years until now. Huge confidence upswing - super well done.","author":"@gke3800","author_id":"UCdCa6Evcby-Lhp9slVGS_gw","like_count":0,"published_time":"4 months ago"},{"id":"UgzhdTmKjWHaXmDJ0kZ4AaABAg","text":"You make this seem so easy, thanks!","author":"@johnjones216","author_id":"UCOn_RkTXh03JLNpyE7VX19g","like_count":0,"published_time":"2 months ago"},{"id":"UgwIh-xrBMnJiq9f7yV4AaABAg","text":"Thank you Laurie you have a rare talent - a thoroughly clear teaching approach. You provide just enough explanation of the reasoning, process and context without overloading the topic. Enjoying the low level assembly language perspective.","author":"@gustinian","author_id":"UC4MMXP9JpIpFhwPan4Xkm2A","like_count":4,"published_time":"2 years ago"},{"id":"UgwWDMPXB5BR6755NG14AaABAg","text":"I very rarely watch tutorials but the arm segment made this video worth watching.","author":"@gmjammin4367","author_id":"UCuMuUF8JLkPDoN5fN8mMxig","like_count":431,"published_time":"2 years ago"},{"id":"Ugym0As3F9eUOsbiqTx4AaABAg","text":"Not only appreciating the low-level information in the tutorial, but also loving the SE: Lain production aesthetics!","author":"@StellarFireflyGaming","author_id":"UCghXVXJ-17DHzaBGf8JYWSQ","like_count":204,"published_time":"2 years ago"},{"id":"UgwKYfMjrLZWECUvLN14AaABAg","text":"Memory allocation is easy, it's deallocation that's the problem 😅","author":"@slmille4","author_id":"UC6D0AxC34HkRIR0mCS8gk5A","like_count":221,"published_time":"2 years ago"},{"id":"Ugx3TXGtaH9U34Vo3X14AaABAg","text":"I like that you use the universal answer to everything for the content of the memory.","author":"@chutipascal","author_id":"UCAb5awaMm2Mdnr38Xzq-TIA","like_count":111,"published_time":"2 years ago"},{"id":"UgwovZjzHq6M5-KxjlZ4AaABAg","text":"Heads up for anyone working in C, you don't need to worry about casting the return value of malloc. Unlike in C++, void* will implicitly cast to other pointer types without throwing an invalid conversion error. This just maintains symmetry with casting to void* which is implicit in both C and C++. It's ultimately a stylistic decision whether to keep the explicit casts even though they're redundant, but my understanding of what idiomatic C looks like involves just letting the language cast void* for you in basically every situation.","author":"@TetrisMaster512","author_id":"UC3ARTLgZcFGx7bUvjtRCbcw","like_count":53,"published_time":"2 years ago"},{"id":"Ugzsn7fQE5NuGod53kd4AaABAg","text":"Current C++ core guidelines actually recommend against directly using new and delete in favor of smart pointers. std::make_unique and std::make_shared are the way to go. I also get that it's important to understand new and delete. Hats off to you for doing memory management in assembly!","author":"@jessedevore","author_id":"UCNTp3xwgm_Ly1mO-lbjzmvg","like_count":170,"published_time":"2 years ago"},{"id":"UgzzxiU0a_vtFzJB9bt4AaABAg","text":"Great video! Especially the assembly section. \n\nIn my (albeit limited) experience, it often helps to allocate memory in terms of pages rather than individual bytes. The page size is definitely not a consistent or constant standard value that you can simply hardcode in your programs. Effects of page size (fragmentation or page faults) are super apparent when deploying anything large-ish scale (say PostgreSQL db) on your ARM device. If you insist on doing everything in assembly, make sure your program adjusts for this variability in page size when compiling and makes it so that certain variables are \"aligned\" well for faster access.\n\nYour C compiler will most likely already handle all of this better than you without you even realizing it which is why in my opinion, programming in C is a \"safer\" bet for performance, readability and your own sanity.","author":"@stacksmasherninja7266","author_id":"UC-POYfkkQA5M-reEKOpAaRw","like_count":15,"published_time":"2 years ago"},{"id":"UgyK5-rknSuBTam8ulF4AaABAg","text":"Oh man, there are so many callouts to Serial Experiments: Lain in your staging/setting! Long time since I watched it, I love it!","author":"@PapaSMURFFS","author_id":"UCl_qiWNP_VBvMlgMc0V2bhA","like_count":72,"published_time":"2 years ago"},{"id":"UgySz_wrGCPmDDSvgQ94AaABAg","text":"Just as a best practice tip: always set your pointers to null after dealloc/free.","author":"@AlexTrexII","author_id":"UCO6S2ZkLi9x1g3_SpHp3Luw","like_count":47,"published_time":"2 years ago"},{"id":"UgzF-MH4N1D_vvqf-3F4AaABAg","text":"This channel was one of my best discoveries","author":"@0xreip","author_id":"UC_QXCwWs7bAQwTctPUFtntg","like_count":10,"published_time":"2 years ago"},{"id":"UgxhY2WGxE14Nbo0fvd4AaABAg","text":"The effor to create the vfx for those videos are something to marvel on its own...\nWhat impresses me is that the content is even greater.\nI know my way around 6502 asm and seeing this made me want to do arm asm just because...","author":"@BrunoSXS","author_id":"UCq5QUHOrVA7r1HAe-HTEQvw","like_count":38,"published_time":"2 years ago"},{"id":"UgycfM3ZFow6jTSV7kp4AaABAg","text":"Objection: malloc and free are not keywords but functions. Which is a big difference compared to new/delete in C++. Especially for underhanded C programming, you can do some fun stuff with it.\n\nI was kinda hoping for more explanation of how it works under the hood but I'm probably not the target audience for this video since it is more beginner friendly","author":"@meneldal","author_id":"UCBOv5XsbZssd5Qh3GbGhV7w","like_count":3,"published_time":"1 year ago"},{"id":"Ugxc8gQPDj0_X9eerRF4AaABAg","text":"I just discovered this channel, the visuals are super neat! The computers in the background, the Windows XP task bar and the window border around the web cam, wow!","author":"@horenso05","author_id":"UCzdVUSM3rCJEOxtjOHDWLkw","like_count":63,"published_time":"2 years ago"},{"id":"UgxSDS_qWlVIRXpuurx4AaABAg","text":"This channel is really impressive. You seem to have everything down somehow - you know a ton about the subject matter, your presenting is brilliant and you can distil your knowledge down, the video style and presentation is fantastic, and so is the cinematography. Really everything is brilliant, and it's clear you're still improving (e.g. I looked through the channel and your thumbnails have gotten way better over the past several months - I love this one and the recursion one).\n\nCan't believe I haven't seen your videos sooner. Looks like the algorithm has latched onto them though as I'm getting suggested a bunch recently.","author":"@lost4468yt","author_id":"UCaJErkdQZ4WCIW0nG0KWAZA","like_count":5,"published_time":"2 years ago"},{"id":"UgyTX13WmxRe-XZ9slN4AaABAg","text":"It is a better practice to say foo *f = malloc(sizeof *f)) for what ever type foo is\ni think it would also be good if you explained on thre ASM version why you were invoking the C compiler, not everyone will understand the requirement to link your object files after compilation or why you would not just do that using ld itself.","author":"@markmanning2921","author_id":"UC9qYKo04XmWFQjh9UAIJe9A","like_count":7,"published_time":"2 years ago (edited)"},{"id":"UgxxcKa1xvIJZIVHTTt4AaABAg","text":"very dank editing.","author":"@oszb","author_id":"UCG8aEN5wqbphKQ14-maHWbw","like_count":13,"published_time":"2 years ago"},{"id":"UgzUtzUesRQrUdphEFd4AaABAg","text":"The amount of effort and dedication you put in editing these videos is commendable👏\nGreat tutorial as always!","author":"@sudhanshugorwadkar3839","author_id":"UCBiwI709LGJf2B6AiMgN9nQ","like_count":34,"published_time":"2 years ago"},{"id":"UgxVJp_gq-bJ2myJ3IZ4AaABAg","text":"Wonderful video. I love the comparisons between C & C++ and ASM. These are my types of video, contrast and comparison!","author":"@MichaelSmithzer","author_id":"UCHqLAW1IGgc3Wj6WtUSvIwg","like_count":4,"published_time":"2 years ago"},{"id":"UgwJXNEpq_xABbhgSoF4AaABAg","text":"Never subscribed to a channel so fast! What a really cool style of video, with clear, helpful explanations. Good up the good work :D <3","author":"@chari6471","author_id":"UCchXsnHFUT67_e6ht3k-skQ","like_count":16,"published_time":"2 years ago"},{"id":"Ugzk_a4vtIzbCmVA_Kp4AaABAg","text":"Let's all love Lain!","author":"@Kaspean-sea-monster","author_id":"UCFJlJJ-JNJ_hZvwcjkBrsyQ","like_count":19,"published_time":"2 years ago (edited)"},{"id":"UgwWDMPXB5BR6755NG14AaABAg","text":"I very rarely watch tutorials but the arm segment made this video worth watching.","author":"@gmjammin4367","author_id":"UCuMuUF8JLkPDoN5fN8mMxig","like_count":431,"published_time":"2 years ago"},{"id":"Ugym0As3F9eUOsbiqTx4AaABAg","text":"Not only appreciating the low-level information in the tutorial, but also loving the SE: Lain production aesthetics!","author":"@StellarFireflyGaming","author_id":"UCghXVXJ-17DHzaBGf8JYWSQ","like_count":204,"published_time":"2 years ago"},{"id":"UgwKYfMjrLZWECUvLN14AaABAg","text":"Memory allocation is easy, it's deallocation that's the problem 😅","author":"@slmille4","author_id":"UC6D0AxC34HkRIR0mCS8gk5A","like_count":221,"published_time":"2 years ago"},{"id":"Ugx3TXGtaH9U34Vo3X14AaABAg","text":"I like that you use the universal answer to everything for the content of the memory.","author":"@chutipascal","author_id":"UCAb5awaMm2Mdnr38Xzq-TIA","like_count":111,"published_time":"2 years ago"},{"id":"UgwovZjzHq6M5-KxjlZ4AaABAg","text":"Heads up for anyone working in C, you don't need to worry about casting the return value of malloc. Unlike in C++, void* will implicitly cast to other pointer types without throwing an invalid conversion error. This just maintains symmetry with casting to void* which is implicit in both C and C++. It's ultimately a stylistic decision whether to keep the explicit casts even though they're redundant, but my understanding of what idiomatic C looks like involves just letting the language cast void* for you in basically every situation.","author":"@TetrisMaster512","author_id":"UC3ARTLgZcFGx7bUvjtRCbcw","like_count":53,"published_time":"2 years ago"},{"id":"Ugzsn7fQE5NuGod53kd4AaABAg","text":"Current C++ core guidelines actually recommend against directly using new and delete in favor of smart pointers. std::make_unique and std::make_shared are the way to go. I also get that it's important to understand new and delete. Hats off to you for doing memory management in assembly!","author":"@jessedevore","author_id":"UCNTp3xwgm_Ly1mO-lbjzmvg","like_count":170,"published_time":"2 years ago"},{"id":"UgzzxiU0a_vtFzJB9bt4AaABAg","text":"Great video! Especially the assembly section. \n\nIn my (albeit limited) experience, it often helps to allocate memory in terms of pages rather than individual bytes. The page size is definitely not a consistent or constant standard value that you can simply hardcode in your programs. Effects of page size (fragmentation or page faults) are super apparent when deploying anything large-ish scale (say PostgreSQL db) on your ARM device. If you insist on doing everything in assembly, make sure your program adjusts for this variability in page size when compiling and makes it so that certain variables are \"aligned\" well for faster access.\n\nYour C compiler will most likely already handle all of this better than you without you even realizing it which is why in my opinion, programming in C is a \"safer\" bet for performance, readability and your own sanity.","author":"@stacksmasherninja7266","author_id":"UC-POYfkkQA5M-reEKOpAaRw","like_count":15,"published_time":"2 years ago"},{"id":"UgyK5-rknSuBTam8ulF4AaABAg","text":"Oh man, there are so many callouts to Serial Experiments: Lain in your staging/setting! Long time since I watched it, I love it!","author":"@PapaSMURFFS","author_id":"UCl_qiWNP_VBvMlgMc0V2bhA","like_count":72,"published_time":"2 years ago"},{"id":"UgySz_wrGCPmDDSvgQ94AaABAg","text":"Just as a best practice tip: always set your pointers to null after dealloc/free.","author":"@AlexTrexII","author_id":"UCO6S2ZkLi9x1g3_SpHp3Luw","like_count":47,"published_time":"2 years ago"},{"id":"UgzF-MH4N1D_vvqf-3F4AaABAg","text":"This channel was one of my best discoveries","author":"@0xreip","author_id":"UC_QXCwWs7bAQwTctPUFtntg","like_count":10,"published_time":"2 years ago"},{"id":"UgxhY2WGxE14Nbo0fvd4AaABAg","text":"The effor to create the vfx for those videos are something to marvel on its own...\nWhat impresses me is that the content is even greater.\nI know my way around 6502 asm and seeing this made me want to do arm asm just because...","author":"@BrunoSXS","author_id":"UCq5QUHOrVA7r1HAe-HTEQvw","like_count":38,"published_time":"2 years ago"},{"id":"UgycfM3ZFow6jTSV7kp4AaABAg","text":"Objection: malloc and free are not keywords but functions. Which is a big difference compared to new/delete in C++. Especially for underhanded C programming, you can do some fun stuff with it.\n\nI was kinda hoping for more explanation of how it works under the hood but I'm probably not the target audience for this video since it is more beginner friendly","author":"@meneldal","author_id":"UCBOv5XsbZssd5Qh3GbGhV7w","like_count":3,"published_time":"1 year ago"},{"id":"Ugxc8gQPDj0_X9eerRF4AaABAg","text":"I just discovered this channel, the visuals are super neat! The computers in the background, the Windows XP task bar and the window border around the web cam, wow!","author":"@horenso05","author_id":"UCzdVUSM3rCJEOxtjOHDWLkw","like_count":63,"published_time":"2 years ago"},{"id":"UgxSDS_qWlVIRXpuurx4AaABAg","text":"This channel is really impressive. You seem to have everything down somehow - you know a ton about the subject matter, your presenting is brilliant and you can distil your knowledge down, the video style and presentation is fantastic, and so is the cinematography. Really everything is brilliant, and it's clear you're still improving (e.g. I looked through the channel and your thumbnails have gotten way better over the past several months - I love this one and the recursion one).\n\nCan't believe I haven't seen your videos sooner. Looks like the algorithm has latched onto them though as I'm getting suggested a bunch recently.","author":"@lost4468yt","author_id":"UCaJErkdQZ4WCIW0nG0KWAZA","like_count":5,"published_time":"2 years ago"},{"id":"UgyTX13WmxRe-XZ9slN4AaABAg","text":"It is a better practice to say foo *f = malloc(sizeof *f)) for what ever type foo is\ni think it would also be good if you explained on thre ASM version why you were invoking the C compiler, not everyone will understand the requirement to link your object files after compilation or why you would not just do that using ld itself.","author":"@markmanning2921","author_id":"UC9qYKo04XmWFQjh9UAIJe9A","like_count":7,"published_time":"2 years ago (edited)"},{"id":"UgxxcKa1xvIJZIVHTTt4AaABAg","text":"very dank editing.","author":"@oszb","author_id":"UCG8aEN5wqbphKQ14-maHWbw","like_count":13,"published_time":"2 years ago"},{"id":"UgzUtzUesRQrUdphEFd4AaABAg","text":"The amount of effort and dedication you put in editing these videos is commendable👏\nGreat tutorial as always!","author":"@sudhanshugorwadkar3839","author_id":"UCBiwI709LGJf2B6AiMgN9nQ","like_count":34,"published_time":"2 years ago"},{"id":"UgxVJp_gq-bJ2myJ3IZ4AaABAg","text":"Wonderful video. I love the comparisons between C & C++ and ASM. These are my types of video, contrast and comparison!","author":"@MichaelSmithzer","author_id":"UCHqLAW1IGgc3Wj6WtUSvIwg","like_count":4,"published_time":"2 years ago"},{"id":"UgwJXNEpq_xABbhgSoF4AaABAg","text":"Never subscribed to a channel so fast! What a really cool style of video, with clear, helpful explanations. Good up the good work :D <3","author":"@chari6471","author_id":"UCchXsnHFUT67_e6ht3k-skQ","like_count":16,"published_time":"2 years ago"},{"id":"Ugzk_a4vtIzbCmVA_Kp4AaABAg","text":"Let's all love Lain!","author":"@Kaspean-sea-monster","author_id":"UCFJlJJ-JNJ_hZvwcjkBrsyQ","like_count":19,"published_time":"2 years ago (edited)"},{"id":"UgwWDMPXB5BR6755NG14AaABAg","text":"I very rarely watch tutorials but the arm segment made this video worth watching.","author":"@gmjammin4367","author_id":"UCuMuUF8JLkPDoN5fN8mMxig","like_count":431,"published_time":"2 years ago"},{"id":"Ugym0As3F9eUOsbiqTx4AaABAg","text":"Not only appreciating the low-level information in the tutorial, but also loving the SE: Lain production aesthetics!","author":"@StellarFireflyGaming","author_id":"UCghXVXJ-17DHzaBGf8JYWSQ","like_count":204,"published_time":"2 years ago"},{"id":"UgwKYfMjrLZWECUvLN14AaABAg","text":"Memory allocation is easy, it's deallocation that's the problem 😅","author":"@slmille4","author_id":"UC6D0AxC34HkRIR0mCS8gk5A","like_count":221,"published_time":"2 years ago"},{"id":"Ugx3TXGtaH9U34Vo3X14AaABAg","text":"I like that you use the universal answer to everything for the content of the memory.","author":"@chutipascal","author_id":"UCAb5awaMm2Mdnr38Xzq-TIA","like_count":111,"published_time":"2 years ago"},{"id":"Ugzsn7fQE5NuGod53kd4AaABAg","text":"Current C++ core guidelines actually recommend against directly using new and delete in favor of smart pointers. std::make_unique and std::make_shared are the way to go. I also get that it's important to understand new and delete. Hats off to you for doing memory management in assembly!","author":"@jessedevore","author_id":"UCNTp3xwgm_Ly1mO-lbjzmvg","like_count":170,"published_time":"2 years ago"},{"id":"UgxhY2WGxE14Nbo0fvd4AaABAg","text":"The effor to create the vfx for those videos are something to marvel on its own...\nWhat impresses me is that the content is even greater.\nI know my way around 6502 asm and seeing this made me want to do arm asm just because...","author":"@BrunoSXS","author_id":"UCq5QUHOrVA7r1HAe-HTEQvw","like_count":38,"published_time":"2 years ago"},{"id":"UgyK5-rknSuBTam8ulF4AaABAg","text":"Oh man, there are so many callouts to Serial Experiments: Lain in your staging/setting! Long time since I watched it, I love it!","author":"@PapaSMURFFS","author_id":"UCl_qiWNP_VBvMlgMc0V2bhA","like_count":72,"published_time":"2 years ago"},{"id":"UgycfM3ZFow6jTSV7kp4AaABAg","text":"Objection: malloc and free are not keywords but functions. Which is a big difference compared to new/delete in C++. Especially for underhanded C programming, you can do some fun stuff with it.\n\nI was kinda hoping for more explanation of how it works under the hood but I'm probably not the target audience for this video since it is more beginner friendly","author":"@meneldal","author_id":"UCBOv5XsbZssd5Qh3GbGhV7w","like_count":3,"published_time":"1 year ago"},{"id":"UgzzxiU0a_vtFzJB9bt4AaABAg","text":"Great video! Especially the assembly section. \n\nIn my (albeit limited) experience, it often helps to allocate memory in terms of pages rather than individual bytes. The page size is definitely not a consistent or constant standard value that you can simply hardcode in your programs. Effects of page size (fragmentation or page faults) are super apparent when deploying anything large-ish scale (say PostgreSQL db) on your ARM device. If you insist on doing everything in assembly, make sure your program adjusts for this variability in page size when compiling and makes it so that certain variables are \"aligned\" well for faster access.\n\nYour C compiler will most likely already handle all of this better than you without you even realizing it which is why in my opinion, programming in C is a \"safer\" bet for performance, readability and your own sanity.","author":"@stacksmasherninja7266","author_id":"UC-POYfkkQA5M-reEKOpAaRw","like_count":15,"published_time":"2 years ago"},{"id":"UgyTX13WmxRe-XZ9slN4AaABAg","text":"It is a better practice to say foo *f = malloc(sizeof *f)) for what ever type foo is\ni think it would also be good if you explained on thre ASM version why you were invoking the C compiler, not everyone will understand the requirement to link your object files after compilation or why you would not just do that using ld itself.","author":"@markmanning2921","author_id":"UC9qYKo04XmWFQjh9UAIJe9A","like_count":7,"published_time":"2 years ago (edited)"},{"id":"UgzF-MH4N1D_vvqf-3F4AaABAg","text":"This channel was one of my best discoveries","author":"@0xreip","author_id":"UC_QXCwWs7bAQwTctPUFtntg","like_count":10,"published_time":"2 years ago"},{"id":"UgwJXNEpq_xABbhgSoF4AaABAg","text":"Never subscribed to a channel so fast! What a really cool style of video, with clear, helpful explanations. Good up the good work :D <3","author":"@chari6471","author_id":"UCchXsnHFUT67_e6ht3k-skQ","like_count":16,"published_time":"2 years ago"},{"id":"UgzUtzUesRQrUdphEFd4AaABAg","text":"The amount of effort and dedication you put in editing these videos is commendable👏\nGreat tutorial as always!","author":"@sudhanshugorwadkar3839","author_id":"UCBiwI709LGJf2B6AiMgN9nQ","like_count":34,"published_time":"2 years ago"},{"id":"UgxSDS_qWlVIRXpuurx4AaABAg","text":"This channel is really impressive. You seem to have everything down somehow - you know a ton about the subject matter, your presenting is brilliant and you can distil your knowledge down, the video style and presentation is fantastic, and so is the cinematography. Really everything is brilliant, and it's clear you're still improving (e.g. I looked through the channel and your thumbnails have gotten way better over the past several months - I love this one and the recursion one).\n\nCan't believe I haven't seen your videos sooner. Looks like the algorithm has latched onto them though as I'm getting suggested a bunch recently.","author":"@lost4468yt","author_id":"UCaJErkdQZ4WCIW0nG0KWAZA","like_count":5,"published_time":"2 years ago"},{"id":"UgwovZjzHq6M5-KxjlZ4AaABAg","text":"Heads up for anyone working in C, you don't need to worry about casting the return value of malloc. Unlike in C++, void* will implicitly cast to other pointer types without throwing an invalid conversion error. This just maintains symmetry with casting to void* which is implicit in both C and C++. It's ultimately a stylistic decision whether to keep the explicit casts even though they're redundant, but my understanding of what idiomatic C looks like involves just letting the language cast void* for you in basically every situation.","author":"@TetrisMaster512","author_id":"UC3ARTLgZcFGx7bUvjtRCbcw","like_count":53,"published_time":"2 years ago"},{"id":"Ugz9v8wsvV8U62IDlHl4AaABAg","text":"Wow, this was the most compact in depth video I have every seen, amazing. Thank you. \nWhat I don't get is why are you reassigning #-1 to r0 in alloc_failed, isn't it already #-1 in the first place?","author":"@wiebel7569","author_id":"UCrhaFwHWprdotOaAPGAaAQQ","like_count":4,"published_time":"2 years ago"},{"id":"Ugxc8gQPDj0_X9eerRF4AaABAg","text":"I just discovered this channel, the visuals are super neat! The computers in the background, the Windows XP task bar and the window border around the web cam, wow!","author":"@horenso05","author_id":"UCzdVUSM3rCJEOxtjOHDWLkw","like_count":63,"published_time":"2 years ago"},{"id":"UgxxcKa1xvIJZIVHTTt4AaABAg","text":"very dank editing.","author":"@oszb","author_id":"UCG8aEN5wqbphKQ14-maHWbw","like_count":13,"published_time":"2 years ago"},{"id":"UgxVJp_gq-bJ2myJ3IZ4AaABAg","text":"Wonderful video. I love the comparisons between C & C++ and ASM. These are my types of video, contrast and comparison!","author":"@MichaelSmithzer","author_id":"UCHqLAW1IGgc3Wj6WtUSvIwg","like_count":4,"published_time":"2 years ago"},{"id":"UgwIh-xrBMnJiq9f7yV4AaABAg","text":"Thank you Laurie you have a rare talent - a thoroughly clear teaching approach. You provide just enough explanation of the reasoning, process and context without overloading the topic. Enjoying the low level assembly language perspective.","author":"@gustinian","author_id":"UC4MMXP9JpIpFhwPan4Xkm2A","like_count":4,"published_time":"2 years ago"},{"id":"UgwWDMPXB5BR6755NG14AaABAg","text":"I very rarely watch tutorials but the arm segment made this video worth watching.","author":"@gmjammin4367","author_id":"UCuMuUF8JLkPDoN5fN8mMxig","like_count":431,"published_time":"2 years ago"},{"id":"Ugym0As3F9eUOsbiqTx4AaABAg","text":"Not only appreciating the low-level information in the tutorial, but also loving the SE: Lain production aesthetics!","author":"@StellarFireflyGaming","author_id":"UCghXVXJ-17DHzaBGf8JYWSQ","like_count":204,"published_time":"2 years ago"},{"id":"UgwKYfMjrLZWECUvLN14AaABAg","text":"Memory allocation is easy, it's deallocation that's the problem 😅","author":"@slmille4","author_id":"UC6D0AxC34HkRIR0mCS8gk5A","like_count":221,"published_time":"2 years ago"},{"id":"Ugx3TXGtaH9U34Vo3X14AaABAg","text":"I like that you use the universal answer to everything for the content of the memory.","author":"@chutipascal","author_id":"UCAb5awaMm2Mdnr38Xzq-TIA","like_count":111,"published_time":"2 years ago"},{"id":"UgzF-MH4N1D_vvqf-3F4AaABAg","text":"This channel was one of my best discoveries","author":"@0xreip","author_id":"UC_QXCwWs7bAQwTctPUFtntg","like_count":10,"published_time":"2 years ago"},{"id":"UgwovZjzHq6M5-KxjlZ4AaABAg","text":"Heads up for anyone working in C, you don't need to worry about casting the return value of malloc. Unlike in C++, void* will implicitly cast to other pointer types without throwing an invalid conversion error. This just maintains symmetry with casting to void* which is implicit in both C and C++. It's ultimately a stylistic decision whether to keep the explicit casts even though they're redundant, but my understanding of what idiomatic C looks like involves just letting the language cast void* for you in basically every situation.","author":"@TetrisMaster512","author_id":"UC3ARTLgZcFGx7bUvjtRCbcw","like_count":53,"published_time":"2 years ago"},{"id":"UgzzxiU0a_vtFzJB9bt4AaABAg","text":"Great video! Especially the assembly section. \n\nIn my (albeit limited) experience, it often helps to allocate memory in terms of pages rather than individual bytes. The page size is definitely not a consistent or constant standard value that you can simply hardcode in your programs. Effects of page size (fragmentation or page faults) are super apparent when deploying anything large-ish scale (say PostgreSQL db) on your ARM device. If you insist on doing everything in assembly, make sure your program adjusts for this variability in page size when compiling and makes it so that certain variables are \"aligned\" well for faster access.\n\nYour C compiler will most likely already handle all of this better than you without you even realizing it which is why in my opinion, programming in C is a \"safer\" bet for performance, readability and your own sanity.","author":"@stacksmasherninja7266","author_id":"UC-POYfkkQA5M-reEKOpAaRw","like_count":15,"published_time":"2 years ago"},{"id":"UgySz_wrGCPmDDSvgQ94AaABAg","text":"Just as a best practice tip: always set your pointers to null after dealloc/free.","author":"@AlexTrexII","author_id":"UCO6S2ZkLi9x1g3_SpHp3Luw","like_count":47,"published_time":"2 years ago"},{"id":"UgxhY2WGxE14Nbo0fvd4AaABAg","text":"The effor to create the vfx for those videos are something to marvel on its own...\nWhat impresses me is that the content is even greater.\nI know my way around 6502 asm and seeing this made me want to do arm asm just because...","author":"@BrunoSXS","author_id":"UCq5QUHOrVA7r1HAe-HTEQvw","like_count":38,"published_time":"2 years ago"},{"id":"UgyK5-rknSuBTam8ulF4AaABAg","text":"Oh man, there are so many callouts to Serial Experiments: Lain in your staging/setting! Long time since I watched it, I love it!","author":"@PapaSMURFFS","author_id":"UCl_qiWNP_VBvMlgMc0V2bhA","like_count":72,"published_time":"2 years ago"},{"id":"UgwSPWXO65wTux2WPKF4AaABAg","text":"42? The Hitchhiker's Guide to the Galaxy?","author":"@DolorSitAmet-y7r","author_id":"UCOQbArYY6V0vzoImyWUPphw","like_count":1,"published_time":"2 years ago"},{"id":"UgycfM3ZFow6jTSV7kp4AaABAg","text":"Objection: malloc and free are not keywords but functions. Which is a big difference compared to new/delete in C++. Especially for underhanded C programming, you can do some fun stuff with it.\n\nI was kinda hoping for more explanation of how it works under the hood but I'm probably not the target audience for this video since it is more beginner friendly","author":"@meneldal","author_id":"UCBOv5XsbZssd5Qh3GbGhV7w","like_count":3,"published_time":"1 year ago"},{"id":"Ugzsn7fQE5NuGod53kd4AaABAg","text":"Current C++ core guidelines actually recommend against directly using new and delete in favor of smart pointers. std::make_unique and std::make_shared are the way to go. I also get that it's important to understand new and delete. Hats off to you for doing memory management in assembly!","author":"@jessedevore","author_id":"UCNTp3xwgm_Ly1mO-lbjzmvg","like_count":170,"published_time":"2 years ago"},{"id":"UgzUtzUesRQrUdphEFd4AaABAg","text":"The amount of effort and dedication you put in editing these videos is commendable👏\nGreat tutorial as always!","author":"@sudhanshugorwadkar3839","author_id":"UCBiwI709LGJf2B6AiMgN9nQ","like_count":34,"published_time":"2 years ago"},{"id":"UgxSDS_qWlVIRXpuurx4AaABAg","text":"This channel is really impressive. You seem to have everything down somehow - you know a ton about the subject matter, your presenting is brilliant and you can distil your knowledge down, the video style and presentation is fantastic, and so is the cinematography. Really everything is brilliant, and it's clear you're still improving (e.g. I looked through the channel and your thumbnails have gotten way better over the past several months - I love this one and the recursion one).\n\nCan't believe I haven't seen your videos sooner. Looks like the algorithm has latched onto them though as I'm getting suggested a bunch recently.","author":"@lost4468yt","author_id":"UCaJErkdQZ4WCIW0nG0KWAZA","like_count":5,"published_time":"2 years ago"},{"id":"UgxxcKa1xvIJZIVHTTt4AaABAg","text":"very dank editing.","author":"@oszb","author_id":"UCG8aEN5wqbphKQ14-maHWbw","like_count":13,"published_time":"2 years ago"},{"id":"UgwJXNEpq_xABbhgSoF4AaABAg","text":"Never subscribed to a channel so fast! What a really cool style of video, with clear, helpful explanations. Good up the good work :D <3","author":"@chari6471","author_id":"UCchXsnHFUT67_e6ht3k-skQ","like_count":16,"published_time":"2 years ago"},{"id":"Ugzk_a4vtIzbCmVA_Kp4AaABAg","text":"Let's all love Lain!","author":"@Kaspean-sea-monster","author_id":"UCFJlJJ-JNJ_hZvwcjkBrsyQ","like_count":19,"published_time":"2 years ago (edited)"},{"id":"Ugz1KwO_sfTCOAn5G3V4AaABAg","text":"A brilliant woman of culture, one who isn't afraid to dive into the assembly! Now that's a Logical type of Person!","author":"@skilz8098","author_id":"UCjF11zbHaO1qaJ-nl1ndg6A","like_count":0,"published_time":"4 months ago"},{"id":"UgyrJ8GrQ19yfY1vyfZ4AaABAg","text":"Just checking this older content and wow have you changed in the two years until now. Huge confidence upswing - super well done.","author":"@gke3800","author_id":"UCdCa6Evcby-Lhp9slVGS_gw","like_count":0,"published_time":"4 months ago"},{"id":"UgwWDMPXB5BR6755NG14AaABAg","text":"I very rarely watch tutorials but the arm segment made this video worth watching.","author":"@gmjammin4367","author_id":"UCuMuUF8JLkPDoN5fN8mMxig","like_count":431,"published_time":"2 years ago"},{"id":"Ugym0As3F9eUOsbiqTx4AaABAg","text":"Not only appreciating the low-level information in the tutorial, but also loving the SE: Lain production aesthetics!","author":"@StellarFireflyGaming","author_id":"UCghXVXJ-17DHzaBGf8JYWSQ","like_count":204,"published_time":"2 years ago"},{"id":"UgwKYfMjrLZWECUvLN14AaABAg","text":"Memory allocation is easy, it's deallocation that's the problem 😅","author":"@slmille4","author_id":"UC6D0AxC34HkRIR0mCS8gk5A","like_count":221,"published_time":"2 years ago"},{"id":"Ugx3TXGtaH9U34Vo3X14AaABAg","text":"I like that you use the universal answer to everything for the content of the memory.","author":"@chutipascal","author_id":"UCAb5awaMm2Mdnr38Xzq-TIA","like_count":111,"published_time":"2 years ago"},{"id":"UgwovZjzHq6M5-KxjlZ4AaABAg","text":"Heads up for anyone working in C, you don't need to worry about casting the return value of malloc. Unlike in C++, void* will implicitly cast to other pointer types without throwing an invalid conversion error. This just maintains symmetry with casting to void* which is implicit in both C and C++. It's ultimately a stylistic decision whether to keep the explicit casts even though they're redundant, but my understanding of what idiomatic C looks like involves just letting the language cast void* for you in basically every situation.","author":"@TetrisMaster512","author_id":"UC3ARTLgZcFGx7bUvjtRCbcw","like_count":53,"published_time":"2 years ago"},{"id":"Ugzsn7fQE5NuGod53kd4AaABAg","text":"Current C++ core guidelines actually recommend against directly using new and delete in favor of smart pointers. std::make_unique and std::make_shared are the way to go. I also get that it's important to understand new and delete. Hats off to you for doing memory management in assembly!","author":"@jessedevore","author_id":"UCNTp3xwgm_Ly1mO-lbjzmvg","like_count":170,"published_time":"2 years ago"},{"id":"UgzzxiU0a_vtFzJB9bt4AaABAg","text":"Great video! Especially the assembly section. \n\nIn my (albeit limited) experience, it often helps to allocate memory in terms of pages rather than individual bytes. The page size is definitely not a consistent or constant standard value that you can simply hardcode in your programs. Effects of page size (fragmentation or page faults) are super apparent when deploying anything large-ish scale (say PostgreSQL db) on your ARM device. If you insist on doing everything in assembly, make sure your program adjusts for this variability in page size when compiling and makes it so that certain variables are \"aligned\" well for faster access.\n\nYour C compiler will most likely already handle all of this better than you without you even realizing it which is why in my opinion, programming in C is a \"safer\" bet for performance, readability and your own sanity.","author":"@stacksmasherninja7266","author_id":"UC-POYfkkQA5M-reEKOpAaRw","like_count":15,"published_time":"2 years ago"},{"id":"UgyK5-rknSuBTam8ulF4AaABAg","text":"Oh man, there are so many callouts to Serial Experiments: Lain in your staging/setting! Long time since I watched it, I love it!","author":"@PapaSMURFFS","author_id":"UCl_qiWNP_VBvMlgMc0V2bhA","like_count":72,"published_time":"2 years ago"},{"id":"UgySz_wrGCPmDDSvgQ94AaABAg","text":"Just as a best practice tip: always set your pointers to null after dealloc/free.","author":"@AlexTrexII","author_id":"UCO6S2ZkLi9x1g3_SpHp3Luw","like_count":47,"published_time":"2 years ago"},{"id":"UgzF-MH4N1D_vvqf-3F4AaABAg","text":"This channel was one of my best discoveries","author":"@0xreip","author_id":"UC_QXCwWs7bAQwTctPUFtntg","like_count":10,"published_time":"2 years ago"},{"id":"UgxhY2WGxE14Nbo0fvd4AaABAg","text":"The effor to create the vfx for those videos are something to marvel on its own...\nWhat impresses me is that the content is even greater.\nI know my way around 6502 asm and seeing this made me want to do arm asm just because...","author":"@BrunoSXS","author_id":"UCq5QUHOrVA7r1HAe-HTEQvw","like_count":38,"published_time":"2 years ago"},{"id":"UgycfM3ZFow6jTSV7kp4AaABAg","text":"Objection: malloc and free are not keywords but functions. Which is a big difference compared to new/delete in C++. Especially for underhanded C programming, you can do some fun stuff with it.\n\nI was kinda hoping for more explanation of how it works under the hood but I'm probably not the target audience for this video since it is more beginner friendly","author":"@meneldal","author_id":"UCBOv5XsbZssd5Qh3GbGhV7w","like_count":3,"published_time":"1 year ago"},{"id":"Ugxc8gQPDj0_X9eerRF4AaABAg","text":"I just discovered this channel, the visuals are super neat! The computers in the background, the Windows XP task bar and the window border around the web cam, wow!","author":"@horenso05","author_id":"UCzdVUSM3rCJEOxtjOHDWLkw","like_count":63,"published_time":"2 years ago"},{"id":"UgxSDS_qWlVIRXpuurx4AaABAg","text":"This channel is really impressive. You seem to have everything down somehow - you know a ton about the subject matter, your presenting is brilliant and you can distil your knowledge down, the video style and presentation is fantastic, and so is the cinematography. Really everything is brilliant, and it's clear you're still improving (e.g. I looked through the channel and your thumbnails have gotten way better over the past several months - I love this one and the recursion one).\n\nCan't believe I haven't seen your videos sooner. Looks like the algorithm has latched onto them though as I'm getting suggested a bunch recently.","author":"@lost4468yt","author_id":"UCaJErkdQZ4WCIW0nG0KWAZA","like_count":5,"published_time":"2 years ago"},{"id":"UgyTX13WmxRe-XZ9slN4AaABAg","text":"It is a better practice to say foo *f = malloc(sizeof *f)) for what ever type foo is\ni think it would also be good if you explained on thre ASM version why you were invoking the C compiler, not everyone will understand the requirement to link your object files after compilation or why you would not just do that using ld itself.","author":"@markmanning2921","author_id":"UC9qYKo04XmWFQjh9UAIJe9A","like_count":7,"published_time":"2 years ago (edited)"},{"id":"UgxxcKa1xvIJZIVHTTt4AaABAg","text":"very dank editing.","author":"@oszb","author_id":"UCG8aEN5wqbphKQ14-maHWbw","like_count":13,"published_time":"2 years ago"},{"id":"UgzUtzUesRQrUdphEFd4AaABAg","text":"The amount of effort and dedication you put in editing these videos is commendable👏\nGreat tutorial as always!","author":"@sudhanshugorwadkar3839","author_id":"UCBiwI709LGJf2B6AiMgN9nQ","like_count":34,"published_time":"2 years ago"},{"id":"UgxVJp_gq-bJ2myJ3IZ4AaABAg","text":"Wonderful video. I love the comparisons between C & C++ and ASM. These are my types of video, contrast and comparison!","author":"@MichaelSmithzer","author_id":"UCHqLAW1IGgc3Wj6WtUSvIwg","like_count":4,"published_time":"2 years ago"},{"id":"UgwJXNEpq_xABbhgSoF4AaABAg","text":"Never subscribed to a channel so fast! What a really cool style of video, with clear, helpful explanations. Good up the good work :D <3","author":"@chari6471","author_id":"UCchXsnHFUT67_e6ht3k-skQ","like_count":16,"published_time":"2 years ago"},{"id":"Ugzk_a4vtIzbCmVA_Kp4AaABAg","text":"Let's all love Lain!","author":"@Kaspean-sea-monster","author_id":"UCFJlJJ-JNJ_hZvwcjkBrsyQ","like_count":19,"published_time":"2 years ago (edited)"},{"id":"UgwWDMPXB5BR6755NG14AaABAg","text":"I very rarely watch tutorials but the arm segment made this video worth watching.","author":"@gmjammin4367","author_id":"UCuMuUF8JLkPDoN5fN8mMxig","like_count":431,"published_time":"2 years ago"},{"id":"Ugym0As3F9eUOsbiqTx4AaABAg","text":"Not only appreciating the low-level information in the tutorial, but also loving the SE: Lain production aesthetics!","author":"@StellarFireflyGaming","author_id":"UCghXVXJ-17DHzaBGf8JYWSQ","like_count":204,"published_time":"2 years ago"},{"id":"UgwKYfMjrLZWECUvLN14AaABAg","text":"Memory allocation is easy, it's deallocation that's the problem 😅","author":"@slmille4","author_id":"UC6D0AxC34HkRIR0mCS8gk5A","like_count":221,"published_time":"2 years ago"},{"id":"Ugx3TXGtaH9U34Vo3X14AaABAg","text":"I like that you use the universal answer to everything for the content of the memory.","author":"@chutipascal","author_id":"UCAb5awaMm2Mdnr38Xzq-TIA","like_count":111,"published_time":"2 years ago"},{"id":"UgwovZjzHq6M5-KxjlZ4AaABAg","text":"Heads up for anyone working in C, you don't need to worry about casting the return value of malloc. Unlike in C++, void* will implicitly cast to other pointer types without throwing an invalid conversion error. This just maintains symmetry with casting to void* which is implicit in both C and C++. It's ultimately a stylistic decision whether to keep the explicit casts even though they're redundant, but my understanding of what idiomatic C looks like involves just letting the language cast void* for you in basically every situation.","author":"@TetrisMaster512","author_id":"UC3ARTLgZcFGx7bUvjtRCbcw","like_count":53,"published_time":"2 years ago"},{"id":"Ugzsn7fQE5NuGod53kd4AaABAg","text":"Current C++ core guidelines actually recommend against directly using new and delete in favor of smart pointers. std::make_unique and std::make_shared are the way to go. I also get that it's important to understand new and delete. Hats off to you for doing memory management in assembly!","author":"@jessedevore","author_id":"UCNTp3xwgm_Ly1mO-lbjzmvg","like_count":170,"published_time":"2 years ago"},{"id":"UgzzxiU0a_vtFzJB9bt4AaABAg","text":"Great video! Especially the assembly section. \n\nIn my (albeit limited) experience, it often helps to allocate memory in terms of pages rather than individual bytes. The page size is definitely not a consistent or constant standard value that you can simply hardcode in your programs. Effects of page size (fragmentation or page faults) are super apparent when deploying anything large-ish scale (say PostgreSQL db) on your ARM device. If you insist on doing everything in assembly, make sure your program adjusts for this variability in page size when compiling and makes it so that certain variables are \"aligned\" well for faster access.\n\nYour C compiler will most likely already handle all of this better than you without you even realizing it which is why in my opinion, programming in C is a \"safer\" bet for performance, readability and your own sanity.","author":"@stacksmasherninja7266","author_id":"UC-POYfkkQA5M-reEKOpAaRw","like_count":15,"published_time":"2 years ago"},{"id":"UgyK5-rknSuBTam8ulF4AaABAg","text":"Oh man, there are so many callouts to Serial Experiments: Lain in your staging/setting! Long time since I watched it, I love it!","author":"@PapaSMURFFS","author_id":"UCl_qiWNP_VBvMlgMc0V2bhA","like_count":72,"published_time":"2 years ago"},{"id":"UgySz_wrGCPmDDSvgQ94AaABAg","text":"Just as a best practice tip: always set your pointers to null after dealloc/free.","author":"@AlexTrexII","author_id":"UCO6S2ZkLi9x1g3_SpHp3Luw","like_count":47,"published_time":"2 years ago"},{"id":"UgzF-MH4N1D_vvqf-3F4AaABAg","text":"This channel was one of my best discoveries","author":"@0xreip","author_id":"UC_QXCwWs7bAQwTctPUFtntg","like_count":10,"published_time":"2 years ago"},{"id":"UgxhY2WGxE14Nbo0fvd4AaABAg","text":"The effor to create the vfx for those videos are something to marvel on its own...\nWhat impresses me is that the content is even greater.\nI know my way around 6502 asm and seeing this made me want to do arm asm just because...","author":"@BrunoSXS","author_id":"UCq5QUHOrVA7r1HAe-HTEQvw","like_count":38,"published_time":"2 years ago"},{"id":"UgycfM3ZFow6jTSV7kp4AaABAg","text":"Objection: malloc and free are not keywords but functions. Which is a big difference compared to new/delete in C++. Especially for underhanded C programming, you can do some fun stuff with it.\n\nI was kinda hoping for more explanation of how it works under the hood but I'm probably not the target audience for this video since it is more beginner friendly","author":"@meneldal","author_id":"UCBOv5XsbZssd5Qh3GbGhV7w","like_count":3,"published_time":"1 year ago"},{"id":"Ugxc8gQPDj0_X9eerRF4AaABAg","text":"I just discovered this channel, the visuals are super neat! The computers in the background, the Windows XP task bar and the window border around the web cam, wow!","author":"@horenso05","author_id":"UCzdVUSM3rCJEOxtjOHDWLkw","like_count":63,"published_time":"2 years ago"},{"id":"UgxSDS_qWlVIRXpuurx4AaABAg","text":"This channel is really impressive. You seem to have everything down somehow - you know a ton about the subject matter, your presenting is brilliant and you can distil your knowledge down, the video style and presentation is fantastic, and so is the cinematography. Really everything is brilliant, and it's clear you're still improving (e.g. I looked through the channel and your thumbnails have gotten way better over the past several months - I love this one and the recursion one).\n\nCan't believe I haven't seen your videos sooner. Looks like the algorithm has latched onto them though as I'm getting suggested a bunch recently.","author":"@lost4468yt","author_id":"UCaJErkdQZ4WCIW0nG0KWAZA","like_count":5,"published_time":"2 years ago"},{"id":"UgyTX13WmxRe-XZ9slN4AaABAg","text":"It is a better practice to say foo *f = malloc(sizeof *f)) for what ever type foo is\ni think it would also be good if you explained on thre ASM version why you were invoking the C compiler, not everyone will understand the requirement to link your object files after compilation or why you would not just do that using ld itself.","author":"@markmanning2921","author_id":"UC9qYKo04XmWFQjh9UAIJe9A","like_count":7,"published_time":"2 years ago (edited)"},{"id":"UgxxcKa1xvIJZIVHTTt4AaABAg","text":"very dank editing.","author":"@oszb","author_id":"UCG8aEN5wqbphKQ14-maHWbw","like_count":13,"published_time":"2 years ago"},{"id":"UgzUtzUesRQrUdphEFd4AaABAg","text":"The amount of effort and dedication you put in editing these videos is commendable👏\nGreat tutorial as always!","author":"@sudhanshugorwadkar3839","author_id":"UCBiwI709LGJf2B6AiMgN9nQ","like_count":34,"published_time":"2 years ago"},{"id":"UgxVJp_gq-bJ2myJ3IZ4AaABAg","text":"Wonderful video. I love the comparisons between C & C++ and ASM. These are my types of video, contrast and comparison!","author":"@MichaelSmithzer","author_id":"UCHqLAW1IGgc3Wj6WtUSvIwg","like_count":4,"published_time":"2 years ago"},{"id":"UgwJXNEpq_xABbhgSoF4AaABAg","text":"Never subscribed to a channel so fast! What a really cool style of video, with clear, helpful explanations. Good up the good work :D <3","author":"@chari6471","author_id":"UCchXsnHFUT67_e6ht3k-skQ","like_count":16,"published_time":"2 years ago"},{"id":"Ugzk_a4vtIzbCmVA_Kp4AaABAg","text":"Let's all love Lain!","author":"@Kaspean-sea-monster","author_id":"UCFJlJJ-JNJ_hZvwcjkBrsyQ","like_count":19,"published_time":"2 years ago (edited)"},{"id":"UgwKYfMjrLZWECUvLN14AaABAg","text":"Memory allocation is easy, it's deallocation that's the problem 😅","author":"@slmille4","author_id":"UC6D0AxC34HkRIR0mCS8gk5A","like_count":221,"published_time":"2 years ago"},{"id":"UgwWDMPXB5BR6755NG14AaABAg","text":"I very rarely watch tutorials but the arm segment made this video worth watching.","author":"@gmjammin4367","author_id":"UCuMuUF8JLkPDoN5fN8mMxig","like_count":431,"published_time":"2 years ago"},{"id":"UgycfM3ZFow6jTSV7kp4AaABAg","text":"Objection: malloc and free are not keywords but functions. Which is a big difference compared to new/delete in C++. Especially for underhanded C programming, you can do some fun stuff with it.\n\nI was kinda hoping for more explanation of how it works under the hood but I'm probably not the target audience for this video since it is more beginner friendly","author":"@meneldal","author_id":"UCBOv5XsbZssd5Qh3GbGhV7w","like_count":3,"published_time":"1 year ago"},{"id":"Ugxg8SX9rx-6NwpZWiV4AaABAg","text":"Not a complaint, but g++ and gcc probably optimized the code to just load a register with a constant value. That's an advantage of not using assembly; effortless moderate optimization.\nAn example of that is how Switch statements can be a bunch of conditional branches, one after the other, or a jump table (branching to a runtime calculated address). Compilers will almost never use jump tables these days because integer data types have swelled in size. The smaller the switched data type, the less memory the jump table will potentially need and compilers factor that into their optimization decision. There also have to be enough cases declared, which is based on how many cases are possible versus used. The compiler also knows how close or sparse the cases are together and can group them into less memory with mathematical trickery (automagically making up an offset and limit applied to the case values). And sometimes modern cpus with big caches and deep pipelining can actually perform better with a gazillion conditional branches than with one polymorphic jump (somewhat tragically, because jump tables are what switch statements were meant to be and now they're often just an eyesore in code).\n\n\nModern computers and languages are incredible. It almost doesn't matter anymore if a program is written in Java, Python or other high level languages which used to be notoriously slow.\nIt was once possible to write C/C++ code that would outperform the standard library's strlen function. Today in gcc, strlen is pseudo-vectorized and absurdly fast. There's no way any beginner programmer can beat that without monumental effort (mostly).\n\nThere's maybe one trick to beat it: Creating a macro that calculates the length of a string constant at compile time in C or C++, effectively hardcoding the length, but without having to manually count characters by hand. That beats strlen, but it's silly and not really practical.","author":"@chrisbalfour466","author_id":"UCi24KUHySRoGwotZJT4SMIw","like_count":2,"published_time":"1 year ago (edited)"},{"id":"UgyHkinPKXEZOseV_Ud4AaABAg","text":"cpp example - lines 8,10,11 are under-indented, “delete” would be better inside of the “try” block","author":"@js1000avf","author_id":"UCASm1W0wYOEMrzHgNXKGKzg","like_count":1,"published_time":"2 years ago"},{"id":"UgxgyLt55KvWhga_k1R4AaABAg","text":"For people who don’t appreciate the level of abstraction of a high level language.   All the code that is needed in assembly just to allocate an integer in memory dynamically you have to deal with system calls and memory pages since you can not just request 4 consecutive bytes 😢","author":"@di380","author_id":"UCnY8bCEUaqX4zdqHP-SguEA","like_count":1,"published_time":"2 years ago"},{"id":"Ugx23f3FJsussLtBFk54AaABAg","text":"2:20 Use everything from the header <memory> instead of the 'new' and 'delete' .","author":"@DART2WADER","author_id":"UC9lndorToLteIr3aYwCmbVA","like_count":1,"published_time":"2 years ago (edited)"},{"id":"UgyWum7Y3pJuNckcuV94AaABAg","text":"Memory allocation is not only to handle variable length data at runtime but also because of the limitations and constraint of the stacks itself. Not only its fixed and short size, but also the ephemeral nature of the stacked variables which pop with the functions once it returns, and the variables passed as arguments are actually a copy of the value or variable you passed in, which can also increase the load on the stack. If the ram isn't enough for you you will need to write files on the disk and eventually make a memory map, meaning you map the memory of the disk into the ram through some kernel magic happening on ring 0.","author":"@trinit_x","author_id":"UCE3FNT6b9-RpEfKxbQ_zbjQ","like_count":0,"published_time":"1 year ago"},{"id":"Ugx-019d04Ilzt_jvDF4AaABAg","text":"the type cast is not necessary in C. It's generally considered bad practice. And brk might be a good match","author":"@arnaudparan1419","author_id":"UCG0vxuepcOKE27kiDYcUizg","like_count":2,"published_time":"2 years ago (edited)"},{"id":"UgxvPCxvA7Dhvji-KUV4AaABAg","text":"There is one important aspect of manual memory allocation in high-level languages, that is rarely mentioned in tutorials. Make sure you deallocate memory using the exactly same mechanism, that was used for its allocation.\n\nI worked on a piece of C++ code once, and it was running fine on both Windows and Linux. But when I tried to compile and run it on more exotic platform (DOS cross compile with DJGPP if anyone interested 😎 ), the program crashed because of corrupted memory. It happened because I allocated a chunk of memory using aligned version of operator new, but released it with the default delete.\n\nApparently on Windows/Linux both versions have compatible implementations, so everything worked perfectly. Unfortunately on a platform where they are not compatible everything crashed with a really unexpected and cryptic error message, so be careful.","author":"@v3dsoft","author_id":"UCY_j-ThWg4clogAIqKKmwdg","like_count":0,"published_time":"2 years ago (edited)"},{"id":"Ugz9v8wsvV8U62IDlHl4AaABAg","text":"Wow, this was the most compact in depth video I have every seen, amazing. Thank you. \nWhat I don't get is why are you reassigning #-1 to r0 in alloc_failed, isn't it already #-1 in the first place?","author":"@wiebel7569","author_id":"UCrhaFwHWprdotOaAPGAaAQQ","like_count":4,"published_time":"2 years ago"},{"id":"UgxpfMkqX50mPkxR6kx4AaABAg","text":"malloc and free are not keywords, they are functions. And I would have worked with the mentioned dynamic array example here, not a simple integer, because it's very rare you want to allocate an int on the heap. That way you can start the C++ section by explaining you already have the vector, but if you want to do it manually... then also mention you can put it in a unique_ptr. I never want to see delete in my code unless some very low level library for a larger application, and new should be also rare. We have abstraction for a reason.","author":"@ciCCapROSTi","author_id":"UC_fZk4CJ0SQhkHdqRYS7WAQ","like_count":2,"published_time":"2 years ago"},{"id":"UgzQ3KHF0QLi-ONjjj14AaABAg","text":"I get the point of this video, I just wanted to add something.  II you are doing serious C++ development, you probably want to use std::shared_ptr, and similar smart pointer allocators.  When the last reference goes out of scope, the memory will be released.  I am sure there's situations where this will cause problems, but for typical use cases, this might simplify the program.","author":"@michaelbauers8800","author_id":"UCLjw8oV8DvaYwCx7ZPvzf4g","like_count":7,"published_time":"2 years ago"},{"id":"UgzxzxSywAbgI0jIJJZ4AaABAg","text":"I wrote a deterministic memory allocator in C, for microcontrollers with tons of SRAM.  Unused blocks were all saved in a linked list.  Allocating memory popped blocks off the top of the list, but only if they were within the size requested.  I also updated a journal that could track who was using which blocks...\n\nSorta like the other side of the svc call.  I was imagining a tiny OS that ran little apps or could perhaps plugin to the kernel somehow.  Requesting memory needed an ID so a misbehaving app could be cleaned up.  I was also considering configuring the MPU (if available) so any access requests outside the requested allocation could be trapped.  I think you could get at least 8 different regions setup that way...","author":"@kayakMike1000","author_id":"UCyzzUChFTO7-wPxXvYCguyQ","like_count":0,"published_time":"1 year ago (edited)"},{"id":"UgxV97ze9gREQ1JknjB4AaABAg","text":"Low Level is a good Level, Sometimes its unbelieveable easy to write fast assembly counter counterparts for performance needing C Tasks in a Code. Then linking all .o files.","author":"@OneMilian","author_id":"UCo-CJrB7VWE4FPGQevkLHyg","like_count":1,"published_time":"2 years ago"},{"id":"Ugxf0kjJKa8cL-S2aZJ4AaABAg","text":"1:01 Okay, I don't know id that's my screen's fault, but that dark blue text is basically invisible on the black background. But maybe my non-glaring screen brightness coupled with night colours is the culprit here.","author":"@yalpotua","author_id":"UCO6YRllfXXIe2lPWenjmfPw","like_count":1,"published_time":"2 years ago"},{"id":"UgwBwQ9Msxyk2QlrgWt4AaABAg","text":"Hi. Malloc returns memory address so it would be enough for better readability: numPtr=malloc(sizeof(int));  if you first declared int * numPtr; alternatively if you want to declare a pointer  and assign memory address to it at one step your version is perfect. Cheers!","author":"@GoWithAndy-cp8tz","author_id":"UC74KZuCUV_N1tb2AYoXcPsw","like_count":0,"published_time":"2 years ago (edited)"},{"id":"Ugwy_hbX8ZBjzzJE1_J4AaABAg","text":"Since you have an uniz like OS you can use brk/sbrk . Alsom you can use malloc(,..,MAP_ ANOM,...) in C, too. (and probably in C++ as well, if you are a masochist)\nBut really : you don't need to cast the return value you get from malloc() in C. And you SHOULD NOT. the canonical idiom for using malloc() (DRY!) is:\nint * p;\np = malloc (sizeof *p);\n// if (!p) { ...}","author":"@JamesSjaalman","author_id":"UCvV2BvISj5Db_Lnof3aJUbg","like_count":0,"published_time":"7 months ago"},{"id":"UgySjuV3AH0hTf8tdU14AaABAg","text":"This is good when you have small code and it is easy to manage memory allocation manually but when you have 100,000 or 1 million codes, I think it is better to use smart pointer such as std::unique_ptr , std::shared_ptr, or std::weak_ptr.","author":"@tanama84","author_id":"UC0I4KcCj8ir0wpaHzVh8dcg","like_count":0,"published_time":"2 years ago"},{"id":"Ugym0As3F9eUOsbiqTx4AaABAg","text":"Not only appreciating the low-level information in the tutorial, but also loving the SE: Lain production aesthetics!","author":"@StellarFireflyGaming","author_id":"UCghXVXJ-17DHzaBGf8JYWSQ","like_count":204,"published_time":"2 years ago"},{"id":"UgwWDMPXB5BR6755NG14AaABAg","text":"I very rarely watch tutorials but the arm segment made this video worth watching.","author":"@gmjammin4367","author_id":"UCuMuUF8JLkPDoN5fN8mMxig","like_count":431,"published_time":"2 years ago"},{"id":"Ugym0As3F9eUOsbiqTx4AaABAg","text":"Not only appreciating the low-level information in the tutorial, but also loving the SE: Lain production aesthetics!","author":"@StellarFireflyGaming","author_id":"UCghXVXJ-17DHzaBGf8JYWSQ","like_count":204,"published_time":"2 years ago"},{"id":"UgwKYfMjrLZWECUvLN14AaABAg","text":"Memory allocation is easy, it's deallocation that's the problem 😅","author":"@slmille4","author_id":"UC6D0AxC34HkRIR0mCS8gk5A","like_count":221,"published_time":"2 years ago"},{"id":"Ugx3TXGtaH9U34Vo3X14AaABAg","text":"I like that you use the universal answer to everything for the content of the memory.","author":"@chutipascal","author_id":"UCAb5awaMm2Mdnr38Xzq-TIA","like_count":111,"published_time":"2 years ago"},{"id":"UgwovZjzHq6M5-KxjlZ4AaABAg","text":"Heads up for anyone working in C, you don't need to worry about casting the return value of malloc. Unlike in C++, void* will implicitly cast to other pointer types without throwing an invalid conversion error. This just maintains symmetry with casting to void* which is implicit in both C and C++. It's ultimately a stylistic decision whether to keep the explicit casts even though they're redundant, but my understanding of what idiomatic C looks like involves just letting the language cast void* for you in basically every situation.","author":"@TetrisMaster512","author_id":"UC3ARTLgZcFGx7bUvjtRCbcw","like_count":53,"published_time":"2 years ago"},{"id":"Ugzsn7fQE5NuGod53kd4AaABAg","text":"Current C++ core guidelines actually recommend against directly using new and delete in favor of smart pointers. std::make_unique and std::make_shared are the way to go. I also get that it's important to understand new and delete. Hats off to you for doing memory management in assembly!","author":"@jessedevore","author_id":"UCNTp3xwgm_Ly1mO-lbjzmvg","like_count":170,"published_time":"2 years ago"},{"id":"UgzzxiU0a_vtFzJB9bt4AaABAg","text":"Great video! Especially the assembly section. \n\nIn my (albeit limited) experience, it often helps to allocate memory in terms of pages rather than individual bytes. The page size is definitely not a consistent or constant standard value that you can simply hardcode in your programs. Effects of page size (fragmentation or page faults) are super apparent when deploying anything large-ish scale (say PostgreSQL db) on your ARM device. If you insist on doing everything in assembly, make sure your program adjusts for this variability in page size when compiling and makes it so that certain variables are \"aligned\" well for faster access.\n\nYour C compiler will most likely already handle all of this better than you without you even realizing it which is why in my opinion, programming in C is a \"safer\" bet for performance, readability and your own sanity.","author":"@stacksmasherninja7266","author_id":"UC-POYfkkQA5M-reEKOpAaRw","like_count":15,"published_time":"2 years ago"},{"id":"UgyK5-rknSuBTam8ulF4AaABAg","text":"Oh man, there are so many callouts to Serial Experiments: Lain in your staging/setting! Long time since I watched it, I love it!","author":"@PapaSMURFFS","author_id":"UCl_qiWNP_VBvMlgMc0V2bhA","like_count":72,"published_time":"2 years ago"},{"id":"UgySz_wrGCPmDDSvgQ94AaABAg","text":"Just as a best practice tip: always set your pointers to null after dealloc/free.","author":"@AlexTrexII","author_id":"UCO6S2ZkLi9x1g3_SpHp3Luw","like_count":47,"published_time":"2 years ago"},{"id":"UgzF-MH4N1D_vvqf-3F4AaABAg","text":"This channel was one of my best discoveries","author":"@0xreip","author_id":"UC_QXCwWs7bAQwTctPUFtntg","like_count":10,"published_time":"2 years ago"},{"id":"UgxhY2WGxE14Nbo0fvd4AaABAg","text":"The effor to create the vfx for those videos are something to marvel on its own...\nWhat impresses me is that the content is even greater.\nI know my way around 6502 asm and seeing this made me want to do arm asm just because...","author":"@BrunoSXS","author_id":"UCq5QUHOrVA7r1HAe-HTEQvw","like_count":38,"published_time":"2 years ago"},{"id":"UgycfM3ZFow6jTSV7kp4AaABAg","text":"Objection: malloc and free are not keywords but functions. Which is a big difference compared to new/delete in C++. Especially for underhanded C programming, you can do some fun stuff with it.\n\nI was kinda hoping for more explanation of how it works under the hood but I'm probably not the target audience for this video since it is more beginner friendly","author":"@meneldal","author_id":"UCBOv5XsbZssd5Qh3GbGhV7w","like_count":3,"published_time":"1 year ago"},{"id":"Ugxc8gQPDj0_X9eerRF4AaABAg","text":"I just discovered this channel, the visuals are super neat! The computers in the background, the Windows XP task bar and the window border around the web cam, wow!","author":"@horenso05","author_id":"UCzdVUSM3rCJEOxtjOHDWLkw","like_count":63,"published_time":"2 years ago"},{"id":"UgxSDS_qWlVIRXpuurx4AaABAg","text":"This channel is really impressive. You seem to have everything down somehow - you know a ton about the subject matter, your presenting is brilliant and you can distil your knowledge down, the video style and presentation is fantastic, and so is the cinematography. Really everything is brilliant, and it's clear you're still improving (e.g. I looked through the channel and your thumbnails have gotten way better over the past several months - I love this one and the recursion one).\n\nCan't believe I haven't seen your videos sooner. Looks like the algorithm has latched onto them though as I'm getting suggested a bunch recently.","author":"@lost4468yt","author_id":"UCaJErkdQZ4WCIW0nG0KWAZA","like_count":5,"published_time":"2 years ago"},{"id":"UgyTX13WmxRe-XZ9slN4AaABAg","text":"It is a better practice to say foo *f = malloc(sizeof *f)) for what ever type foo is\ni think it would also be good if you explained on thre ASM version why you were invoking the C compiler, not everyone will understand the requirement to link your object files after compilation or why you would not just do that using ld itself.","author":"@markmanning2921","author_id":"UC9qYKo04XmWFQjh9UAIJe9A","like_count":7,"published_time":"2 years ago (edited)"},{"id":"UgxxcKa1xvIJZIVHTTt4AaABAg","text":"very dank editing.","author":"@oszb","author_id":"UCG8aEN5wqbphKQ14-maHWbw","like_count":13,"published_time":"2 years ago"},{"id":"UgzUtzUesRQrUdphEFd4AaABAg","text":"The amount of effort and dedication you put in editing these videos is commendable👏\nGreat tutorial as always!","author":"@sudhanshugorwadkar3839","author_id":"UCBiwI709LGJf2B6AiMgN9nQ","like_count":34,"published_time":"2 years ago"},{"id":"UgxVJp_gq-bJ2myJ3IZ4AaABAg","text":"Wonderful video. I love the comparisons between C & C++ and ASM. These are my types of video, contrast and comparison!","author":"@MichaelSmithzer","author_id":"UCHqLAW1IGgc3Wj6WtUSvIwg","like_count":4,"published_time":"2 years ago"},{"id":"UgwJXNEpq_xABbhgSoF4AaABAg","text":"Never subscribed to a channel so fast! What a really cool style of video, with clear, helpful explanations. Good up the good work :D <3","author":"@chari6471","author_id":"UCchXsnHFUT67_e6ht3k-skQ","like_count":16,"published_time":"2 years ago"},{"id":"Ugzk_a4vtIzbCmVA_Kp4AaABAg","text":"Let's all love Lain!","author":"@Kaspean-sea-monster","author_id":"UCFJlJJ-JNJ_hZvwcjkBrsyQ","like_count":19,"published_time":"2 years ago (edited)"},{"id":"UgwWDMPXB5BR6755NG14AaABAg","text":"I very rarely watch tutorials but the arm segment made this video worth watching.","author":"@gmjammin4367","author_id":"UCuMuUF8JLkPDoN5fN8mMxig","like_count":431,"published_time":"2 years ago"},{"id":"Ugym0As3F9eUOsbiqTx4AaABAg","text":"Not only appreciating the low-level information in the tutorial, but also loving the SE: Lain production aesthetics!","author":"@StellarFireflyGaming","author_id":"UCghXVXJ-17DHzaBGf8JYWSQ","like_count":204,"published_time":"2 years ago"},{"id":"UgwKYfMjrLZWECUvLN14AaABAg","text":"Memory allocation is easy, it's deallocation that's the problem 😅","author":"@slmille4","author_id":"UC6D0AxC34HkRIR0mCS8gk5A","like_count":221,"published_time":"2 years ago"},{"id":"Ugx3TXGtaH9U34Vo3X14AaABAg","text":"I like that you use the universal answer to everything for the content of the memory.","author":"@chutipascal","author_id":"UCAb5awaMm2Mdnr38Xzq-TIA","like_count":111,"published_time":"2 years ago"},{"id":"UgwovZjzHq6M5-KxjlZ4AaABAg","text":"Heads up for anyone working in C, you don't need to worry about casting the return value of malloc. Unlike in C++, void* will implicitly cast to other pointer types without throwing an invalid conversion error. This just maintains symmetry with casting to void* which is implicit in both C and C++. It's ultimately a stylistic decision whether to keep the explicit casts even though they're redundant, but my understanding of what idiomatic C looks like involves just letting the language cast void* for you in basically every situation.","author":"@TetrisMaster512","author_id":"UC3ARTLgZcFGx7bUvjtRCbcw","like_count":53,"published_time":"2 years ago"},{"id":"Ugzsn7fQE5NuGod53kd4AaABAg","text":"Current C++ core guidelines actually recommend against directly using new and delete in favor of smart pointers. std::make_unique and std::make_shared are the way to go. I also get that it's important to understand new and delete. Hats off to you for doing memory management in assembly!","author":"@jessedevore","author_id":"UCNTp3xwgm_Ly1mO-lbjzmvg","like_count":170,"published_time":"2 years ago"},{"id":"UgzzxiU0a_vtFzJB9bt4AaABAg","text":"Great video! Especially the assembly section. \n\nIn my (albeit limited) experience, it often helps to allocate memory in terms of pages rather than individual bytes. The page size is definitely not a consistent or constant standard value that you can simply hardcode in your programs. Effects of page size (fragmentation or page faults) are super apparent when deploying anything large-ish scale (say PostgreSQL db) on your ARM device. If you insist on doing everything in assembly, make sure your program adjusts for this variability in page size when compiling and makes it so that certain variables are \"aligned\" well for faster access.\n\nYour C compiler will most likely already handle all of this better than you without you even realizing it which is why in my opinion, programming in C is a \"safer\" bet for performance, readability and your own sanity.","author":"@stacksmasherninja7266","author_id":"UC-POYfkkQA5M-reEKOpAaRw","like_count":15,"published_time":"2 years ago"},{"id":"UgyK5-rknSuBTam8ulF4AaABAg","text":"Oh man, there are so many callouts to Serial Experiments: Lain in your staging/setting! Long time since I watched it, I love it!","author":"@PapaSMURFFS","author_id":"UCl_qiWNP_VBvMlgMc0V2bhA","like_count":72,"published_time":"2 years ago"},{"id":"UgySz_wrGCPmDDSvgQ94AaABAg","text":"Just as a best practice tip: always set your pointers to null after dealloc/free.","author":"@AlexTrexII","author_id":"UCO6S2ZkLi9x1g3_SpHp3Luw","like_count":47,"published_time":"2 years ago"},{"id":"UgzF-MH4N1D_vvqf-3F4AaABAg","text":"This channel was one of my best discoveries","author":"@0xreip","author_id":"UC_QXCwWs7bAQwTctPUFtntg","like_count":10,"published_time":"2 years ago"},{"id":"UgxhY2WGxE14Nbo0fvd4AaABAg","text":"The effor to create the vfx for those videos are something to marvel on its own...\nWhat impresses me is that the content is even greater.\nI know my way around 6502 asm and seeing this made me want to do arm asm just because...","author":"@BrunoSXS","author_id":"UCq5QUHOrVA7r1HAe-HTEQvw","like_count":38,"published_time":"2 years ago"},{"id":"UgycfM3ZFow6jTSV7kp4AaABAg","text":"Objection: malloc and free are not keywords but functions. Which is a big difference compared to new/delete in C++. Especially for underhanded C programming, you can do some fun stuff with it.\n\nI was kinda hoping for more explanation of how it works under the hood but I'm probably not the target audience for this video since it is more beginner friendly","author":"@meneldal","author_id":"UCBOv5XsbZssd5Qh3GbGhV7w","like_count":3,"published_time":"1 year ago"},{"id":"Ugxc8gQPDj0_X9eerRF4AaABAg","text":"I just discovered this channel, the visuals are super neat! The computers in the background, the Windows XP task bar and the window border around the web cam, wow!","author":"@horenso05","author_id":"UCzdVUSM3rCJEOxtjOHDWLkw","like_count":63,"published_time":"2 years ago"},{"id":"UgxSDS_qWlVIRXpuurx4AaABAg","text":"This channel is really impressive. You seem to have everything down somehow - you know a ton about the subject matter, your presenting is brilliant and you can distil your knowledge down, the video style and presentation is fantastic, and so is the cinematography. Really everything is brilliant, and it's clear you're still improving (e.g. I looked through the channel and your thumbnails have gotten way better over the past several months - I love this one and the recursion one).\n\nCan't believe I haven't seen your videos sooner. Looks like the algorithm has latched onto them though as I'm getting suggested a bunch recently.","author":"@lost4468yt","author_id":"UCaJErkdQZ4WCIW0nG0KWAZA","like_count":5,"published_time":"2 years ago"},{"id":"UgyTX13WmxRe-XZ9slN4AaABAg","text":"It is a better practice to say foo *f = malloc(sizeof *f)) for what ever type foo is\ni think it would also be good if you explained on thre ASM version why you were invoking the C compiler, not everyone will understand the requirement to link your object files after compilation or why you would not just do that using ld itself.","author":"@markmanning2921","author_id":"UC9qYKo04XmWFQjh9UAIJe9A","like_count":7,"published_time":"2 years ago (edited)"},{"id":"UgxxcKa1xvIJZIVHTTt4AaABAg","text":"very dank editing.","author":"@oszb","author_id":"UCG8aEN5wqbphKQ14-maHWbw","like_count":13,"published_time":"2 years ago"},{"id":"UgzUtzUesRQrUdphEFd4AaABAg","text":"The amount of effort and dedication you put in editing these videos is commendable👏\nGreat tutorial as always!","author":"@sudhanshugorwadkar3839","author_id":"UCBiwI709LGJf2B6AiMgN9nQ","like_count":34,"published_time":"2 years ago"},{"id":"UgxVJp_gq-bJ2myJ3IZ4AaABAg","text":"Wonderful video. I love the comparisons between C & C++ and ASM. These are my types of video, contrast and comparison!","author":"@MichaelSmithzer","author_id":"UCHqLAW1IGgc3Wj6WtUSvIwg","like_count":4,"published_time":"2 years ago"},{"id":"UgwJXNEpq_xABbhgSoF4AaABAg","text":"Never subscribed to a channel so fast! What a really cool style of video, with clear, helpful explanations. Good up the good work :D <3","author":"@chari6471","author_id":"UCchXsnHFUT67_e6ht3k-skQ","like_count":16,"published_time":"2 years ago"},{"id":"Ugzk_a4vtIzbCmVA_Kp4AaABAg","text":"Let's all love Lain!","author":"@Kaspean-sea-monster","author_id":"UCFJlJJ-JNJ_hZvwcjkBrsyQ","like_count":19,"published_time":"2 years ago (edited)"},{"id":"UgwWDMPXB5BR6755NG14AaABAg","text":"I very rarely watch tutorials but the arm segment made this video worth watching.","author":"@gmjammin4367","author_id":"UCuMuUF8JLkPDoN5fN8mMxig","like_count":431,"published_time":"2 years ago"},{"id":"Ugym0As3F9eUOsbiqTx4AaABAg","text":"Not only appreciating the low-level information in the tutorial, but also loving the SE: Lain production aesthetics!","author":"@StellarFireflyGaming","author_id":"UCghXVXJ-17DHzaBGf8JYWSQ","like_count":204,"published_time":"2 years ago"},{"id":"UgwKYfMjrLZWECUvLN14AaABAg","text":"Memory allocation is easy, it's deallocation that's the problem 😅","author":"@slmille4","author_id":"UC6D0AxC34HkRIR0mCS8gk5A","like_count":221,"published_time":"2 years ago"},{"id":"Ugx3TXGtaH9U34Vo3X14AaABAg","text":"I like that you use the universal answer to everything for the content of the memory.","author":"@chutipascal","author_id":"UCAb5awaMm2Mdnr38Xzq-TIA","like_count":111,"published_time":"2 years ago"},{"id":"UgwovZjzHq6M5-KxjlZ4AaABAg","text":"Heads up for anyone working in C, you don't need to worry about casting the return value of malloc. Unlike in C++, void* will implicitly cast to other pointer types without throwing an invalid conversion error. This just maintains symmetry with casting to void* which is implicit in both C and C++. It's ultimately a stylistic decision whether to keep the explicit casts even though they're redundant, but my understanding of what idiomatic C looks like involves just letting the language cast void* for you in basically every situation.","author":"@TetrisMaster512","author_id":"UC3ARTLgZcFGx7bUvjtRCbcw","like_count":53,"published_time":"2 years ago"},{"id":"Ugzsn7fQE5NuGod53kd4AaABAg","text":"Current C++ core guidelines actually recommend against directly using new and delete in favor of smart pointers. std::make_unique and std::make_shared are the way to go. I also get that it's important to understand new and delete. Hats off to you for doing memory management in assembly!","author":"@jessedevore","author_id":"UCNTp3xwgm_Ly1mO-lbjzmvg","like_count":170,"published_time":"2 years ago"},{"id":"UgzzxiU0a_vtFzJB9bt4AaABAg","text":"Great video! Especially the assembly section. \n\nIn my (albeit limited) experience, it often helps to allocate memory in terms of pages rather than individual bytes. The page size is definitely not a consistent or constant standard value that you can simply hardcode in your programs. Effects of page size (fragmentation or page faults) are super apparent when deploying anything large-ish scale (say PostgreSQL db) on your ARM device. If you insist on doing everything in assembly, make sure your program adjusts for this variability in page size when compiling and makes it so that certain variables are \"aligned\" well for faster access.\n\nYour C compiler will most likely already handle all of this better than you without you even realizing it which is why in my opinion, programming in C is a \"safer\" bet for performance, readability and your own sanity.","author":"@stacksmasherninja7266","author_id":"UC-POYfkkQA5M-reEKOpAaRw","like_count":15,"published_time":"2 years ago"},{"id":"UgyK5-rknSuBTam8ulF4AaABAg","text":"Oh man, there are so many callouts to Serial Experiments: Lain in your staging/setting! Long time since I watched it, I love it!","author":"@PapaSMURFFS","author_id":"UCl_qiWNP_VBvMlgMc0V2bhA","like_count":72,"published_time":"2 years ago"},{"id":"UgySz_wrGCPmDDSvgQ94AaABAg","text":"Just as a best practice tip: always set your pointers to null after dealloc/free.","author":"@AlexTrexII","author_id":"UCO6S2ZkLi9x1g3_SpHp3Luw","like_count":47,"published_time":"2 years ago"},{"id":"UgzF-MH4N1D_vvqf-3F4AaABAg","text":"This channel was one of my best discoveries","author":"@0xreip","author_id":"UC_QXCwWs7bAQwTctPUFtntg","like_count":10,"published_time":"2 years ago"},{"id":"UgxhY2WGxE14Nbo0fvd4AaABAg","text":"The effor to create the vfx for those videos are something to marvel on its own...\nWhat impresses me is that the content is even greater.\nI know my way around 6502 asm and seeing this made me want to do arm asm just because...","author":"@BrunoSXS","author_id":"UCq5QUHOrVA7r1HAe-HTEQvw","like_count":38,"published_time":"2 years ago"},{"id":"UgycfM3ZFow6jTSV7kp4AaABAg","text":"Objection: malloc and free are not keywords but functions. Which is a big difference compared to new/delete in C++. Especially for underhanded C programming, you can do some fun stuff with it.\n\nI was kinda hoping for more explanation of how it works under the hood but I'm probably not the target audience for this video since it is more beginner friendly","author":"@meneldal","author_id":"UCBOv5XsbZssd5Qh3GbGhV7w","like_count":3,"published_time":"1 year ago"},{"id":"Ugxc8gQPDj0_X9eerRF4AaABAg","text":"I just discovered this channel, the visuals are super neat! The computers in the background, the Windows XP task bar and the window border around the web cam, wow!","author":"@horenso05","author_id":"UCzdVUSM3rCJEOxtjOHDWLkw","like_count":63,"published_time":"2 years ago"},{"id":"UgxSDS_qWlVIRXpuurx4AaABAg","text":"This channel is really impressive. You seem to have everything down somehow - you know a ton about the subject matter, your presenting is brilliant and you can distil your knowledge down, the video style and presentation is fantastic, and so is the cinematography. Really everything is brilliant, and it's clear you're still improving (e.g. I looked through the channel and your thumbnails have gotten way better over the past several months - I love this one and the recursion one).\n\nCan't believe I haven't seen your videos sooner. Looks like the algorithm has latched onto them though as I'm getting suggested a bunch recently.","author":"@lost4468yt","author_id":"UCaJErkdQZ4WCIW0nG0KWAZA","like_count":5,"published_time":"2 years ago"},{"id":"UgyTX13WmxRe-XZ9slN4AaABAg","text":"It is a better practice to say foo *f = malloc(sizeof *f)) for what ever type foo is\ni think it would also be good if you explained on thre ASM version why you were invoking the C compiler, not everyone will understand the requirement to link your object files after compilation or why you would not just do that using ld itself.","author":"@markmanning2921","author_id":"UC9qYKo04XmWFQjh9UAIJe9A","like_count":7,"published_time":"2 years ago (edited)"},{"id":"UgxxcKa1xvIJZIVHTTt4AaABAg","text":"very dank editing.","author":"@oszb","author_id":"UCG8aEN5wqbphKQ14-maHWbw","like_count":13,"published_time":"2 years ago"},{"id":"UgzUtzUesRQrUdphEFd4AaABAg","text":"The amount of effort and dedication you put in editing these videos is commendable👏\nGreat tutorial as always!","author":"@sudhanshugorwadkar3839","author_id":"UCBiwI709LGJf2B6AiMgN9nQ","like_count":34,"published_time":"2 years ago"},{"id":"UgxVJp_gq-bJ2myJ3IZ4AaABAg","text":"Wonderful video. I love the comparisons between C & C++ and ASM. These are my types of video, contrast and comparison!","author":"@MichaelSmithzer","author_id":"UCHqLAW1IGgc3Wj6WtUSvIwg","like_count":4,"published_time":"2 years ago"},{"id":"UgwJXNEpq_xABbhgSoF4AaABAg","text":"Never subscribed to a channel so fast! What a really cool style of video, with clear, helpful explanations. Good up the good work :D <3","author":"@chari6471","author_id":"UCchXsnHFUT67_e6ht3k-skQ","like_count":16,"published_time":"2 years ago"},{"id":"Ugzk_a4vtIzbCmVA_Kp4AaABAg","text":"Let's all love Lain!","author":"@Kaspean-sea-monster","author_id":"UCFJlJJ-JNJ_hZvwcjkBrsyQ","like_count":19,"published_time":"2 years ago (edited)"},{"id":"UgwWDMPXB5BR6755NG14AaABAg","text":"I very rarely watch tutorials but the arm segment made this video worth watching.","author":"@gmjammin4367","author_id":"UCuMuUF8JLkPDoN5fN8mMxig","like_count":431,"published_time":"2 years ago"},{"id":"Ugym0As3F9eUOsbiqTx4AaABAg","text":"Not only appreciating the low-level information in the tutorial, but also loving the SE: Lain production aesthetics!","author":"@StellarFireflyGaming","author_id":"UCghXVXJ-17DHzaBGf8JYWSQ","like_count":204,"published_time":"2 years ago"},{"id":"UgwKYfMjrLZWECUvLN14AaABAg","text":"Memory allocation is easy, it's deallocation that's the problem 😅","author":"@slmille4","author_id":"UC6D0AxC34HkRIR0mCS8gk5A","like_count":221,"published_time":"2 years ago"},{"id":"Ugx3TXGtaH9U34Vo3X14AaABAg","text":"I like that you use the universal answer to everything for the content of the memory.","author":"@chutipascal","author_id":"UCAb5awaMm2Mdnr38Xzq-TIA","like_count":111,"published_time":"2 years ago"},{"id":"UgwovZjzHq6M5-KxjlZ4AaABAg","text":"Heads up for anyone working in C, you don't need to worry about casting the return value of malloc. Unlike in C++, void* will implicitly cast to other pointer types without throwing an invalid conversion error. This just maintains symmetry with casting to void* which is implicit in both C and C++. It's ultimately a stylistic decision whether to keep the explicit casts even though they're redundant, but my understanding of what idiomatic C looks like involves just letting the language cast void* for you in basically every situation.","author":"@TetrisMaster512","author_id":"UC3ARTLgZcFGx7bUvjtRCbcw","like_count":53,"published_time":"2 years ago"},{"id":"Ugzsn7fQE5NuGod53kd4AaABAg","text":"Current C++ core guidelines actually recommend against directly using new and delete in favor of smart pointers. std::make_unique and std::make_shared are the way to go. I also get that it's important to understand new and delete. Hats off to you for doing memory management in assembly!","author":"@jessedevore","author_id":"UCNTp3xwgm_Ly1mO-lbjzmvg","like_count":170,"published_time":"2 years ago"},{"id":"UgzzxiU0a_vtFzJB9bt4AaABAg","text":"Great video! Especially the assembly section. \n\nIn my (albeit limited) experience, it often helps to allocate memory in terms of pages rather than individual bytes. The page size is definitely not a consistent or constant standard value that you can simply hardcode in your programs. Effects of page size (fragmentation or page faults) are super apparent when deploying anything large-ish scale (say PostgreSQL db) on your ARM device. If you insist on doing everything in assembly, make sure your program adjusts for this variability in page size when compiling and makes it so that certain variables are \"aligned\" well for faster access.\n\nYour C compiler will most likely already handle all of this better than you without you even realizing it which is why in my opinion, programming in C is a \"safer\" bet for performance, readability and your own sanity.","author":"@stacksmasherninja7266","author_id":"UC-POYfkkQA5M-reEKOpAaRw","like_count":15,"published_time":"2 years ago"},{"id":"UgyK5-rknSuBTam8ulF4AaABAg","text":"Oh man, there are so many callouts to Serial Experiments: Lain in your staging/setting! Long time since I watched it, I love it!","author":"@PapaSMURFFS","author_id":"UCl_qiWNP_VBvMlgMc0V2bhA","like_count":72,"published_time":"2 years ago"},{"id":"UgySz_wrGCPmDDSvgQ94AaABAg","text":"Just as a best practice tip: always set your pointers to null after dealloc/free.","author":"@AlexTrexII","author_id":"UCO6S2ZkLi9x1g3_SpHp3Luw","like_count":47,"published_time":"2 years ago"},{"id":"UgzF-MH4N1D_vvqf-3F4AaABAg","text":"This channel was one of my best discoveries","author":"@0xreip","author_id":"UC_QXCwWs7bAQwTctPUFtntg","like_count":10,"published_time":"2 years ago"},{"id":"UgxhY2WGxE14Nbo0fvd4AaABAg","text":"The effor to create the vfx for those videos are something to marvel on its own...\nWhat impresses me is that the content is even greater.\nI know my way around 6502 asm and seeing this made me want to do arm asm just because...","author":"@BrunoSXS","author_id":"UCq5QUHOrVA7r1HAe-HTEQvw","like_count":38,"published_time":"2 years ago"},{"id":"UgycfM3ZFow6jTSV7kp4AaABAg","text":"Objection: malloc and free are not keywords but functions. Which is a big difference compared to new/delete in C++. Especially for underhanded C programming, you can do some fun stuff with it.\n\nI was kinda hoping for more explanation of how it works under the hood but I'm probably not the target audience for this video since it is more beginner friendly","author":"@meneldal","author_id":"UCBOv5XsbZssd5Qh3GbGhV7w","like_count":3,"published_time":"1 year ago"},{"id":"Ugxc8gQPDj0_X9eerRF4AaABAg","text":"I just discovered this channel, the visuals are super neat! The computers in the background, the Windows XP task bar and the window border around the web cam, wow!","author":"@horenso05","author_id":"UCzdVUSM3rCJEOxtjOHDWLkw","like_count":63,"published_time":"2 years ago"},{"id":"UgxSDS_qWlVIRXpuurx4AaABAg","text":"This channel is really impressive. You seem to have everything down somehow - you know a ton about the subject matter, your presenting is brilliant and you can distil your knowledge down, the video style and presentation is fantastic, and so is the cinematography. Really everything is brilliant, and it's clear you're still improving (e.g. I looked through the channel and your thumbnails have gotten way better over the past several months - I love this one and the recursion one).\n\nCan't believe I haven't seen your videos sooner. Looks like the algorithm has latched onto them though as I'm getting suggested a bunch recently.","author":"@lost4468yt","author_id":"UCaJErkdQZ4WCIW0nG0KWAZA","like_count":5,"published_time":"2 years ago"},{"id":"UgyTX13WmxRe-XZ9slN4AaABAg","text":"It is a better practice to say foo *f = malloc(sizeof *f)) for what ever type foo is\ni think it would also be good if you explained on thre ASM version why you were invoking the C compiler, not everyone will understand the requirement to link your object files after compilation or why you would not just do that using ld itself.","author":"@markmanning2921","author_id":"UC9qYKo04XmWFQjh9UAIJe9A","like_count":7,"published_time":"2 years ago (edited)"},{"id":"UgxxcKa1xvIJZIVHTTt4AaABAg","text":"very dank editing.","author":"@oszb","author_id":"UCG8aEN5wqbphKQ14-maHWbw","like_count":13,"published_time":"2 years ago"},{"id":"UgzUtzUesRQrUdphEFd4AaABAg","text":"The amount of effort and dedication you put in editing these videos is commendable👏\nGreat tutorial as always!","author":"@sudhanshugorwadkar3839","author_id":"UCBiwI709LGJf2B6AiMgN9nQ","like_count":34,"published_time":"2 years ago"},{"id":"UgxVJp_gq-bJ2myJ3IZ4AaABAg","text":"Wonderful video. I love the comparisons between C & C++ and ASM. These are my types of video, contrast and comparison!","author":"@MichaelSmithzer","author_id":"UCHqLAW1IGgc3Wj6WtUSvIwg","like_count":4,"published_time":"2 years ago"},{"id":"UgwJXNEpq_xABbhgSoF4AaABAg","text":"Never subscribed to a channel so fast! What a really cool style of video, with clear, helpful explanations. Good up the good work :D <3","author":"@chari6471","author_id":"UCchXsnHFUT67_e6ht3k-skQ","like_count":16,"published_time":"2 years ago"},{"id":"Ugzk_a4vtIzbCmVA_Kp4AaABAg","text":"Let's all love Lain!","author":"@Kaspean-sea-monster","author_id":"UCFJlJJ-JNJ_hZvwcjkBrsyQ","like_count":19,"published_time":"2 years ago (edited)"}]}