{"id":2554,"date":"2010-06-11T21:32:53","date_gmt":"2010-06-12T01:32:53","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=2554"},"modified":"2016-07-07T09:38:03","modified_gmt":"2016-07-07T13:38:03","slug":"c-vs-c-for-linux-kernel-development","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2010\/06\/11\/c-vs-c-for-linux-kernel-development\/","title":{"rendered":"C vs. C++ for Linux Kernel Development"},"content":{"rendered":"<p><a href=\"http:\/\/www.realworldtech.com\/forums\/index.cfm?action=detail&amp;id=110618&amp;threadid=110549&amp;roomid=2\">Linus Torvalds<\/a>:<\/p>\r\n<blockquote cite=\"http:\/\/www.realworldtech.com\/forums\/index.cfm?action=detail&amp;id=110618&amp;threadid=110549&amp;roomid=2\">\r\n<p>One of the\r\nabsolute <em>worst<\/em> features of C++ is how it makes a\r\nlot of things so context-dependent&mdash;which just means\r\nthat when you look at the code, a local view simply seldom\r\ngives enough context to know what is going on.\r\n<\/p><\/blockquote>\r\n<p><a href=\"http:\/\/www.realworldtech.com\/forums\/index.cfm?action=detail&amp;id=110690&amp;threadid=110549&amp;roomid=2\">And<\/a>:<\/p>\r\n<blockquote cite=\"http:\/\/www.realworldtech.com\/forums\/index.cfm?action=detail&amp;id=110690&amp;threadid=110549&amp;roomid=2\"><p>There&rsquo;s no &ldquo;debugger&rdquo; in communication. There is no IDE\r\nthat helps figure out what&rsquo;s going on. There is no syntax\r\nhighlighting etc.\r\n<\/p>\r\n<p>There are just e-mails with patches and suggestions flying\r\naround. There&rsquo;s no room for special tools&mdash;if you as a\r\nhuman cannot see what the code does from the change,\r\nit&rsquo;s a problem. And you usually see about three lines of\r\ncontext around the code.\r\n<\/p><\/blockquote>\r\n<p>In this situation with hundreds or thousands of developers, primitive tools, and a huge code base, it makes more sense to optimize for clarity than conciseness or abstraction power.<\/p>","protected":false},"excerpt":{"rendered":"<p>Linus Torvalds: One of the absolute worst features of C++ is how it makes a lot of things so context-dependent&mdash;which just means that when you look at the code, a local view simply seldom gives enough context to know what is going on. And: There&rsquo;s no &ldquo;debugger&rdquo; in communication. There is no IDE that helps [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"","apple_news_api_id":"","apple_news_api_modified_at":"","apple_news_api_revision":"","apple_news_api_share_url":"","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-2554","post","type-post","status-publish","format-standard","hentry","category-programming-category"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/2554","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=2554"}],"version-history":[{"count":2,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/2554\/revisions"}],"predecessor-version":[{"id":15079,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/2554\/revisions\/15079"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=2554"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=2554"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=2554"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}