{"id":191,"date":"2021-06-08T17:44:49","date_gmt":"2021-06-08T17:44:49","guid":{"rendered":"http:\/\/athenswonder.com\/?p=191"},"modified":"2021-06-08T17:44:51","modified_gmt":"2021-06-08T17:44:51","slug":"comparison-of-programming-languages","status":"publish","type":"post","link":"https:\/\/athenswonder.com\/?p=191","title":{"rendered":"Comparison of Programming Languages"},"content":{"rendered":"\n<p>D<br>+<br>Fast compilation<br>Modules<br>UFCS (Unified Function Call Syntax)<br>Good abstractions but not no cost abstractions<br>GC if needed but not as performant as Java and difficult to avoid GC<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">C like syntax<\/h2>\n\n\n\n<p>Bindings to C libs<br>Difficult to avoid GC<br>sdtd lib usage without GC is fragmented<br>sdtd lib not available in -betterC<\/p>\n\n\n\n<p>Go<br>+<br>Fast compilation<br>Easy Concurrency<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Different syntax like Rust<\/h2>\n\n\n\n<p>GC<br>Slow C FFI<\/p>\n\n\n\n<p>C<br>+<br>Fast compilation<br>Stable ABI<br>Straightforward code mapping to machine code<br>No GC<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Code can be arranged for faster compilation<\/h2>\n\n\n\n<p>Least safe<br>no abstractions<\/p>\n\n\n\n<p>C++<br>+<br>No GC, High Performance, easy to use stack, predictive allocation deallocation<br>C directly usable, No Bindings to C libs needed<br>Good GUI libs<br>Code can be arranged for faster compilation<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Modules since C++20<\/h2>\n\n\n\n<p>Too many features<br>No UFCS<\/p>\n\n\n\n<p>Rust<br>+<br>Most memory safety, fearless concurrency<br>Modules<br>UFCS<br>Different but better syntax than C++<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">No GC<\/h2>\n\n\n\n<p>Bindings to C libs<br>Need internet to compile mostly<br>libs dependencies can increase<br>higher link time<\/p>\n\n\n\n<p>Zig<br>+<br>Fast compilation<br>Cross compilation<br>Easy to use C libs<br>No GC<br>Modules<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Different syntax like Rust<\/h2>\n\n\n\n<p>Less abstractions<br>higher link time<\/p>\n","protected":false},"excerpt":{"rendered":"<p>D+Fast compilationModulesUFCS (Unified Function Call Syntax)Good abstractions but not no cost abstractionsGC if needed but not as performant<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"_links":{"self":[{"href":"https:\/\/athenswonder.com\/index.php?rest_route=\/wp\/v2\/posts\/191"}],"collection":[{"href":"https:\/\/athenswonder.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/athenswonder.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/athenswonder.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/athenswonder.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=191"}],"version-history":[{"count":1,"href":"https:\/\/athenswonder.com\/index.php?rest_route=\/wp\/v2\/posts\/191\/revisions"}],"predecessor-version":[{"id":192,"href":"https:\/\/athenswonder.com\/index.php?rest_route=\/wp\/v2\/posts\/191\/revisions\/192"}],"wp:attachment":[{"href":"https:\/\/athenswonder.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=191"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/athenswonder.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=191"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/athenswonder.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=191"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}