{"id":133,"date":"2016-11-01T11:54:47","date_gmt":"2016-11-01T10:54:47","guid":{"rendered":"http:\/\/techa.nanosleep.org\/wp\/index.php\/2016\/11\/01\/gnome-and-rust\/"},"modified":"2019-07-26T02:54:27","modified_gmt":"2019-07-26T00:54:27","slug":"gnome-and-rust","status":"publish","type":"post","link":"https:\/\/hpjansson.org\/blag\/2016\/11\/01\/gnome-and-rust\/","title":{"rendered":"GNOME and Rust"},"content":{"rendered":"<p>I've been keeping an eye on <a href=\"https:\/\/www.rust-lang.org\/\">Rust<\/a> for a while now, so when I read <a href=\"https:\/\/siliconislandblog.wordpress.com\/2016\/10\/31\/thoughts-on-dx-gnome-and-rust\/\">Alberto's statement of support for more Rust use in GNOME<\/a>, I couldn't resist piling on&#8230;<\/p>\n<p>From the perspective of someone who's quite used to C, it does indeed seem to tick all the boxes. High performance, suitability for low-level tasks and C ABI compatibility tend to be sticking points with new languages &#8212; and Rust kills it in those departments. Anyone who needs further convincing should read up on <a href=\"https:\/\/medium.com\/@raphlinus\/inside-the-fastest-font-renderer-in-the-world-75ae5270c445\">Raph Levien's font renderer<\/a>. The usual caveat about details vis-a-vis the Devil applies, but the general idea looks exactly right. Rust's expressiveness and lack of baggage means it could even outperform C for non-trivial code, on top of all the other advantages.<\/p>\n<p>There are risks too, of course. I'd worry about adoption, growth and the availability of bindings\/libraries\/other features, like a good optional GC for high-level apps (there is at least <a href=\"https:\/\/github.com\/Manishearth\/rust-gc\">one<\/a> in the works, but it doesn't seem to be quite ready for prime-time yet). Rust is on an upwards trajectory, and there doesn't seem to be many tasks where it's eminently unsuitable, so in theory, it could have a wide reach: operating systems, platform libraries, both client- and server-side applications, games and so on. However, it doesn't appear to be the de facto language in many contexts yet. Consider the statement \"If I learn language X, I will then be able to work on Y.\" Substitute for X: Java, Javascript, Python, ObjC, C, C++, C# or even Visual Basic &#8212; and Y becomes obvious. How does Rust fare?<\/p>\n<p>That is, of course, a very conservative argument, while in my mind the GNOME project represents, for better or worse, and C use notwithstanding, a more radical F\/OSS philosophy. Its founding was essentially <a href=\"https:\/\/mail.gnome.org\/archives\/gtk-list\/1997-August\/msg00123.html\">formulated<\/a> as a revolt against the Qt license (and a limited choice of programming languages!), it was an early adopter of Git for version control, and it's a driver for Wayland and Flatpak now. For what it's worth, speaking as mostly a downstream integrator, I wouldn't mind it if GNOME embraced its DNA yet again and fully opened the door to Rust.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I've been keeping an eye on Rust for a while now, so when I read Alberto's statement of support for more Rust use in GNOME, I couldn't resist piling on&#8230; From the perspective of someone who's quite used to C, &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,3,6],"tags":[],"class_list":["post-133","post","type-post","status-publish","format-standard","hentry","category-computing","category-gnome","category-technical"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>GNOME and Rust - Et tu, Cthulhu<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/hpjansson.org\/blag\/2016\/11\/01\/gnome-and-rust\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"GNOME and Rust - Et tu, Cthulhu\" \/>\n<meta property=\"og:description\" content=\"I&#039;ve been keeping an eye on Rust for a while now, so when I read Alberto&#039;s statement of support for more Rust use in GNOME, I couldn&#039;t resist piling on&#8230; From the perspective of someone who&#039;s quite used to C, &hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/hpjansson.org\/blag\/2016\/11\/01\/gnome-and-rust\/\" \/>\n<meta property=\"og:site_name\" content=\"Et tu, Cthulhu\" \/>\n<meta property=\"article:published_time\" content=\"2016-11-01T10:54:47+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-07-26T00:54:27+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/hpjansson.org\/blag\/wp-content\/uploads\/2019\/01\/site-icon.png\" \/>\n\t<meta property=\"og:image:width\" content=\"512\" \/>\n\t<meta property=\"og:image:height\" content=\"512\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Hans Petter Jansson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@hpj\" \/>\n<meta name=\"twitter:site\" content=\"@hpj\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Hans Petter Jansson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/hpjansson.org\/blag\/2016\/11\/01\/gnome-and-rust\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/hpjansson.org\/blag\/2016\/11\/01\/gnome-and-rust\/\"},\"author\":{\"name\":\"Hans Petter Jansson\",\"@id\":\"https:\/\/hpjansson.org\/blag\/#\/schema\/person\/a86f9dc39a36a8184d6e6f9a759f235c\"},\"headline\":\"GNOME and Rust\",\"datePublished\":\"2016-11-01T10:54:47+00:00\",\"dateModified\":\"2019-07-26T00:54:27+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/hpjansson.org\/blag\/2016\/11\/01\/gnome-and-rust\/\"},\"wordCount\":365,\"publisher\":{\"@id\":\"https:\/\/hpjansson.org\/blag\/#\/schema\/person\/a86f9dc39a36a8184d6e6f9a759f235c\"},\"articleSection\":[\"Computing\",\"GNOME\",\"Technical\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/hpjansson.org\/blag\/2016\/11\/01\/gnome-and-rust\/\",\"url\":\"https:\/\/hpjansson.org\/blag\/2016\/11\/01\/gnome-and-rust\/\",\"name\":\"GNOME and Rust - Et tu, Cthulhu\",\"isPartOf\":{\"@id\":\"https:\/\/hpjansson.org\/blag\/#website\"},\"datePublished\":\"2016-11-01T10:54:47+00:00\",\"dateModified\":\"2019-07-26T00:54:27+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/hpjansson.org\/blag\/2016\/11\/01\/gnome-and-rust\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/hpjansson.org\/blag\/2016\/11\/01\/gnome-and-rust\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/hpjansson.org\/blag\/2016\/11\/01\/gnome-and-rust\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/hpjansson.org\/blag\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"GNOME and Rust\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/hpjansson.org\/blag\/#website\",\"url\":\"https:\/\/hpjansson.org\/blag\/\",\"name\":\"Et tu, Cthulhu\",\"description\":\"Personal blag of Hans Petter Jansson: Fun with computers edition\",\"publisher\":{\"@id\":\"https:\/\/hpjansson.org\/blag\/#\/schema\/person\/a86f9dc39a36a8184d6e6f9a759f235c\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/hpjansson.org\/blag\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/hpjansson.org\/blag\/#\/schema\/person\/a86f9dc39a36a8184d6e6f9a759f235c\",\"name\":\"Hans Petter Jansson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/hpjansson.org\/blag\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/33402e5005b34e5ee4ba4f9fd0c5d754f4505d5fb455736e5c585676cb7f2075?s=96&d=retro&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/33402e5005b34e5ee4ba4f9fd0c5d754f4505d5fb455736e5c585676cb7f2075?s=96&d=retro&r=g\",\"caption\":\"Hans Petter Jansson\"},\"logo\":{\"@id\":\"https:\/\/hpjansson.org\/blag\/#\/schema\/person\/image\/\"},\"sameAs\":[\"https:\/\/hpjansson.org\/\",\"https:\/\/x.com\/hpj\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"GNOME and Rust - Et tu, Cthulhu","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/hpjansson.org\/blag\/2016\/11\/01\/gnome-and-rust\/","og_locale":"en_US","og_type":"article","og_title":"GNOME and Rust - Et tu, Cthulhu","og_description":"I've been keeping an eye on Rust for a while now, so when I read Alberto's statement of support for more Rust use in GNOME, I couldn't resist piling on&#8230; From the perspective of someone who's quite used to C, &hellip;","og_url":"https:\/\/hpjansson.org\/blag\/2016\/11\/01\/gnome-and-rust\/","og_site_name":"Et tu, Cthulhu","article_published_time":"2016-11-01T10:54:47+00:00","article_modified_time":"2019-07-26T00:54:27+00:00","og_image":[{"width":512,"height":512,"url":"https:\/\/hpjansson.org\/blag\/wp-content\/uploads\/2019\/01\/site-icon.png","type":"image\/png"}],"author":"Hans Petter Jansson","twitter_card":"summary_large_image","twitter_creator":"@hpj","twitter_site":"@hpj","twitter_misc":{"Written by":"Hans Petter Jansson","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/hpjansson.org\/blag\/2016\/11\/01\/gnome-and-rust\/#article","isPartOf":{"@id":"https:\/\/hpjansson.org\/blag\/2016\/11\/01\/gnome-and-rust\/"},"author":{"name":"Hans Petter Jansson","@id":"https:\/\/hpjansson.org\/blag\/#\/schema\/person\/a86f9dc39a36a8184d6e6f9a759f235c"},"headline":"GNOME and Rust","datePublished":"2016-11-01T10:54:47+00:00","dateModified":"2019-07-26T00:54:27+00:00","mainEntityOfPage":{"@id":"https:\/\/hpjansson.org\/blag\/2016\/11\/01\/gnome-and-rust\/"},"wordCount":365,"publisher":{"@id":"https:\/\/hpjansson.org\/blag\/#\/schema\/person\/a86f9dc39a36a8184d6e6f9a759f235c"},"articleSection":["Computing","GNOME","Technical"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/hpjansson.org\/blag\/2016\/11\/01\/gnome-and-rust\/","url":"https:\/\/hpjansson.org\/blag\/2016\/11\/01\/gnome-and-rust\/","name":"GNOME and Rust - Et tu, Cthulhu","isPartOf":{"@id":"https:\/\/hpjansson.org\/blag\/#website"},"datePublished":"2016-11-01T10:54:47+00:00","dateModified":"2019-07-26T00:54:27+00:00","breadcrumb":{"@id":"https:\/\/hpjansson.org\/blag\/2016\/11\/01\/gnome-and-rust\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/hpjansson.org\/blag\/2016\/11\/01\/gnome-and-rust\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/hpjansson.org\/blag\/2016\/11\/01\/gnome-and-rust\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/hpjansson.org\/blag\/"},{"@type":"ListItem","position":2,"name":"GNOME and Rust"}]},{"@type":"WebSite","@id":"https:\/\/hpjansson.org\/blag\/#website","url":"https:\/\/hpjansson.org\/blag\/","name":"Et tu, Cthulhu","description":"Personal blag of Hans Petter Jansson: Fun with computers edition","publisher":{"@id":"https:\/\/hpjansson.org\/blag\/#\/schema\/person\/a86f9dc39a36a8184d6e6f9a759f235c"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/hpjansson.org\/blag\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/hpjansson.org\/blag\/#\/schema\/person\/a86f9dc39a36a8184d6e6f9a759f235c","name":"Hans Petter Jansson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hpjansson.org\/blag\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/33402e5005b34e5ee4ba4f9fd0c5d754f4505d5fb455736e5c585676cb7f2075?s=96&d=retro&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/33402e5005b34e5ee4ba4f9fd0c5d754f4505d5fb455736e5c585676cb7f2075?s=96&d=retro&r=g","caption":"Hans Petter Jansson"},"logo":{"@id":"https:\/\/hpjansson.org\/blag\/#\/schema\/person\/image\/"},"sameAs":["https:\/\/hpjansson.org\/","https:\/\/x.com\/hpj"]}]}},"_links":{"self":[{"href":"https:\/\/hpjansson.org\/blag\/wp-json\/wp\/v2\/posts\/133","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hpjansson.org\/blag\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hpjansson.org\/blag\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hpjansson.org\/blag\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hpjansson.org\/blag\/wp-json\/wp\/v2\/comments?post=133"}],"version-history":[{"count":1,"href":"https:\/\/hpjansson.org\/blag\/wp-json\/wp\/v2\/posts\/133\/revisions"}],"predecessor-version":[{"id":479,"href":"https:\/\/hpjansson.org\/blag\/wp-json\/wp\/v2\/posts\/133\/revisions\/479"}],"wp:attachment":[{"href":"https:\/\/hpjansson.org\/blag\/wp-json\/wp\/v2\/media?parent=133"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hpjansson.org\/blag\/wp-json\/wp\/v2\/categories?post=133"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hpjansson.org\/blag\/wp-json\/wp\/v2\/tags?post=133"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}