<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Tibo Delor on Medium]]></title>
        <description><![CDATA[Stories by Tibo Delor on Medium]]></description>
        <link>https://medium.com/@tibotz?source=rss-34eb4dd5c91c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*uXdXf0GPC_CZexKF.</url>
            <title>Stories by Tibo Delor on Medium</title>
            <link>https://medium.com/@tibotz?source=rss-34eb4dd5c91c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 04:17:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tibotz/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Embedding Rustup into Cargo and the Wrapper]]></title>
            <link>https://medium.com/@tibotz/embedding-rustup-into-cargo-and-the-wrapper-d5b447f381fc?source=rss-34eb4dd5c91c------2</link>
            <guid isPermaLink="false">https://medium.com/p/d5b447f381fc</guid>
            <category><![CDATA[rust]]></category>
            <category><![CDATA[rustlang]]></category>
            <dc:creator><![CDATA[Tibo Delor]]></dc:creator>
            <pubDate>Fri, 04 May 2018 05:53:28 GMT</pubDate>
            <atom:updated>2018-05-04T06:09:04.820Z</atom:updated>
            <content:encoded><![CDATA[<p>Part 2 of the <a href="https://medium.com/@tibotz/future-of-cargo-intro-a9154b3af66b"><em>Future of Cargo</em></a> series.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GpOnunR22upmIlEwzUuXqg.png" /></figure><h3>What are we trying to solve?</h3><p><em>TLDR; Less manual steps for building a Rust project and making sure everyone run the same way (same toolchain, same version of cargo, etc..).</em></p><p>One of my issue when building a project from scratch is the amount of manual steps required to be able to run a simple project. This is not so much a concern when you are a single developer but the larger the team, the most obvious it becomes.</p><p>So let’s say I have a new developer in my team with a brand new laptop. Here are the steps he will have to follow:</p><ol><li>Install git</li><li>git clone XXX &amp;&amp; cd XXX</li><li>Install rustup form here: <a href="https://rustup.rs/">https://rustup.rs/</a></li><li>rustup install stable</li><li>cargo build</li><li>Make sure to update your toolchain</li></ol><p>In an ideal world with only good and independent developer, it wouldn’t be much of a problem. After experiencing it on large team I can tell that at least step 3 and 6 will go wrong, frequently. It’s a manual process so the reliability of it depends on humans and if you are responsible for it, which I have been, you will want to automate as much as you can before you get mad.</p><h3>How do we solve it?</h3><p><em>The title should give you a hint…</em></p><p>The funny part of this problem is that I have never seen it as a problem until I got offered a solution. Back then I introduced <a href="https://gradle.org/releases/">Gradle v0.9</a> in my company and at the same time discovered the <a href="https://docs.gradle.org/0.9/userguide/gradle_wrapper.html">Gradle wrapper</a>. The idea is simple, only one developer needs gradle installed, this developer execute gradle wrapper which generates wrapper scripts for different platforms. All the other developers will execute gradle through those scripts (./gradlew) which will make sure that gradle is installed, at the right version etc. Simple! Nothing to install and you are always at the right version. You can even have two branches running on different versions, not a problem, you won’t even have to think about it… Since then wrapper scripts became popular and at least <a href="https://github.com/paulp/sbt-extras">sbt</a> and <a href="https://github.com/takari/maven-wrapper">maven</a> have a de-facto equivalent.</p><p>In fact, there’s a high chance that you have already used a wrapper script since that’s roughly how rustup installer works…</p><p>So… Here is what I am suggesting for my new team member :</p><ol><li>Install git</li><li>git clone XXX &amp;&amp; cd XXX</li><li>./cargow build</li></ol><p>What needs to be done is a Cargo subcommands cargo wrapper that generates this cargow script and potentially such a subcommand could be created right now (and it is actually on my TODO list…). That implies this tool, or Cargo, to do rustup&#39;s job.</p><h3>How is it Cargo’s problem?</h3><p><em>If it can be solved without changing Cargo, why should Cargo care?</em></p><p>Because I believe it should be in the core of Cargo.</p><p>First, I have now been using wrapper scripts for 8+ years now and I still can’t see the downside. Never had a problem with it and it definitely makes everyone’s life easier. Let’s promote it, lets make it the default, not just some random external and unsupported plugin.</p><p>Then I believe that Cargo should be aware of toolchains context (target architecture[s], rustc version, std lib version, …). Too many things can go wrong at the moment, the “It works on my machine”™ problem is hard to avoid.</p><p>That inevitably leads to Cargo embedding rustup. It doesn’t mean that rustup, the tool, will disappear, in some use case you actually want to mess with toolchains but you shouldn’t need to do it for the default use case. It also means that you will be able to specify toolchain-related information into Cargo.toml.</p><p>Turns out that the Rust team is already <a href="http://aturon.github.io/2018/04/06/rustup-xargo/#rustup-integration">thinking about rustup integration</a>. Stay tuned!</p><p><em>PS: I expect some comments around “why aren’t you using Docker (or something similiar)? ”. For many reasons… It doesn’t hurt to make Cargo dealing with that, installing Docker is a manual step, building image is expensive, IDE integration is usually harder when the compiler is running in a container, you can always have docker on top if you want, … Turns out I actually use docker for my CI build.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d5b447f381fc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Review of Cargo and Rustup]]></title>
            <link>https://medium.com/@tibotz/a-review-of-cargo-and-rustup-2aa355c591ab?source=rss-34eb4dd5c91c------2</link>
            <guid isPermaLink="false">https://medium.com/p/2aa355c591ab</guid>
            <category><![CDATA[rust]]></category>
            <dc:creator><![CDATA[Tibo Delor]]></dc:creator>
            <pubDate>Fri, 20 Apr 2018 07:13:51 GMT</pubDate>
            <atom:updated>2018-04-20T07:42:23.514Z</atom:updated>
            <content:encoded><![CDATA[<p>Part 1 of the <a href="https://medium.com/@tibotz/future-of-cargo-intro-a9154b3af66b"><em>Future of Cargo</em></a> series.</p><p>DISCLAIMER: Sounds like the Cargo team is on the same page as some of my concerns are addressed through the <a href="https://www.ncameron.org/blog/dev-tools-in-2018/">Roadmap</a>!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ebf7TsCDw5oMbYfjjgU3Sg.png" /></figure><p>I am familiar with quite a few build tools and dependency managers from different languages. I mainly work with JVM languages so I am very familiar with SBT, Maven, Gradle, Leiningen and Ant, but I have also contributed to projects in Node.js (npm, gulp, grunt, …), Haskell (Stack, Cabal) and C (cmake, make).</p><p>I have chosen to review Cargo and Rustup together because most developers will use rustup to install Cargo and also because having the right toolchain matters a lot when building a Rust projects.</p><h3>The Good Stuffs</h3><h4>One Tool To Rule Them All</h4><p>As a beginner, the choice is easy and clear. No competitors, everyone seems happy with Cargo and it is officially supported by the Rust team. This definitely helps adoption.</p><h4>Simple, easy and documented</h4><p>Fairly straight forward, the documentation is quick to browse and tells you everything you need to know, rustup has a nice man page, Cargo TOML format is easy to understand and so far it hasn’t done anything I wasn’t expected.</p><h4>Good Conventions / Nice To Have</h4><p>All those little things which you wish that any language would provide. The test in the doc, the RLS, integration with github, Cargo.lock, …</p><h3>The Not-So-Good Stuff</h3><h4>Built-in components</h4><p>While I believe it’s really nice that Rust ship with components (doc, rls, …), I don’t like the fact that the doc is required and has to be downloaded everytime I install a new toolchain. Also components seems to be used for multiple purpose, it can be a tool (e.g `rls-preview-x86_64-apple-darwin`), a resource (e.g `rust-docs-x86_64-apple-darwin`) or a target (e.g rust-std-aarch64-unknown-fuchsia`). I have also noticed some unexpected behaviour while upgrading toolchains where the component wouldn’t be installed for the new toolchain.</p><h3>The Bad Stuffs</h3><h4>Manual Toolchain management</h4><p>A rust project is not linked to a toolchain. The only way to know which toolchain it’s supposed to run on, is, if not specified in the project documentation, to try a random one and hope it will compile. A lot of project are meant to run on nightly but nightly is a moving target, as its name suggest, it changes every night. A project compiling on nightly a year ago is unlikely to compile on nightly today, you’ll have to figure out yourself what toolchain make it work…</p><p>This also mean so if you have one dependency working on nightly, then you have to work on nightly too. If you have two dependencies on nightly, hopefully they are both working with the same nightly… That can lead to what I would call the Toolchain dependency hell…</p><h4>Lack of extensibility / feature</h4><p>Simplicity came at the price of extensibility. I can’t customize how test are run to, for example, have the code coverage of all my tests (including the doc one). There’s not really a plugin mechanism. Since its very limited in feature, it means that you need an other tool on top of it in a CI environment, to enforce linting rules etc…</p><p>There is sub-commands but it’s nothing else than a random executable. It doesn’t have special input from cargo, can’t change Cargo’s behaviour, etc…</p><h4>Lots of Manual Steps</h4><p>As a technical leader, I want my projects to have the smother on boarding experience. One of the thing to enable it, is to minimize the number of steps and requirment to run / compile the project. Ideally it should be 1. Clone the project, 2. Run this command. For a Rust project, there many steps : Install rustup, install the right toolchain, install the required components, then run cargo. It can of course be scripted but there’s no out-of-the-box option (like for example Gradle wrapper).</p><h4>Dependency Requirements</h4><p>Some dependencies only work on some architecture or require some external tools (gcc, python, …) and as far as I am aware nothing in Cargo is helping in detecting / mitigating that. You can easily end up with the “it works on my machine” problem.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2aa355c591ab" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Future of Cargo : Intro]]></title>
            <link>https://medium.com/@tibotz/future-of-cargo-intro-a9154b3af66b?source=rss-34eb4dd5c91c------2</link>
            <guid isPermaLink="false">https://medium.com/p/a9154b3af66b</guid>
            <category><![CDATA[rust]]></category>
            <dc:creator><![CDATA[Tibo Delor]]></dc:creator>
            <pubDate>Fri, 20 Apr 2018 07:07:44 GMT</pubDate>
            <atom:updated>2018-05-04T05:54:55.276Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eq4gaNu_I_7kyIpnP-C9og.jpeg" /></figure><p>From the moment I have started programming in Rust, I started to have this love/hate relationship with the build tools. So far I could tell what I didn’t like but not really why it was this way or how i would make it better. When I refer to “the build tools”, I refer mostly to Cargo, Rustup, the toolchains, the component system and whatever tools you use have to interact to build your project.</p><p>This series of articles has three purposes:</p><p>1 — Organise my thoughts and come up with a clear vision of both the issues I am having and the potential solutions.</p><p>2 — Feedback! I am happy to get challenged, as long as it’s constructive, understand other angles, change my opinion and get corrected whenever I am wrong!</p><p>3 — Make that happen. Hopefully, through feedback, I will be able to determine whether I should start writing RFCs, submit PRs, fork everything, drop the whole idea because I was wrong...</p><p>Here is what I am planning to write about, which my change as I write…</p><ul><li><a href="https://medium.com/@tibotz/a-review-of-cargo-and-rustup-2aa355c591ab">A Review of Cargo and Rustup</a></li><li><a href="https://medium.com/@tibotz/embedding-rustup-into-cargo-and-the-wrapper-d5b447f381fc">Embedding Rustup into Cargo and the Wrapper</a></li><li>Rustup.io, the toolchains API</li><li>Cargo extensibility</li><li>Cargo as a task runner</li><li>Prebuilt dependencies (solving architecture dependency and compilation perf)</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a9154b3af66b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[#Rust2018 : Don’t be the new Haskell]]></title>
            <link>https://medium.com/hackernoon/rust-2018-dont-be-the-new-haskell-a383dbd74481?source=rss-34eb4dd5c91c------2</link>
            <guid isPermaLink="false">https://medium.com/p/a383dbd74481</guid>
            <category><![CDATA[new-haskell]]></category>
            <category><![CDATA[haskell]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[rust]]></category>
            <category><![CDATA[rust2018]]></category>
            <dc:creator><![CDATA[Tibo Delor]]></dc:creator>
            <pubDate>Tue, 09 Jan 2018 03:02:35 GMT</pubDate>
            <atom:updated>2018-01-10T19:42:28.030Z</atom:updated>
            <content:encoded><![CDATA[<h4>TLDR: Big companies adoption determine the success of the language, not the quality of the language. Let’s target big companies / projects by having official libraries, stable tooling and make cargo do the same as the gradle wrapper.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ywT4zwf0166PYikfnhLeng.png" /></figure><h3>About me</h3><p>My name is Tibo Delor, I am an independent contractor working in Australia. I have been part of relatively big projects in several industries (banking, gambling, ecommerce, …) on different languages (Scala, Java, Web, .Net, python, Haskell, Cobol, …) sometimes as a developer, sometimes as a tech leader. My comfort zone is web development with Scala and React.</p><p>I have been following Rust for two years now. Sadly, my life has been extremely busy the last 2 years and I have not dedicated as much time as I wished to Rust and I haven’t produced anything worth sharing. My plan is to go crazy with Rust in 2018, so hopefully you will start seeing my name popping a bit more in the future!</p><p>Please forgive me in advance for any approximation, outdated facts and misunderstandings that you could encounter in this article and please correct me if I am wrong!</p><h3>Rust #2017</h3><p>I remember reading through the roadmap and thinking “YES! That’s exactly it!!”. On top of that ,whatever was promised has been, or is about to be, delivered! Big big Kudos to the Rust team and all the contributors, truely awesome work.</p><p><strong>What I liked</strong>, most important to me at the top<strong>:</strong></p><ul><li>RLS and VS Code improving experience. Not yet stable but massive improvements.</li><li>Macro 1.1 in stable. This was huge to me. Not only because I could write macros but because Serde and Diesel could finally be used in stable.</li><li>Library stabilisation. Not the stabilisation itself but the fact that the rust “officials” come and put their stamp on some libraries. I think that could go even further (for more explanation, read further).</li><li>Incremental compilation and cargo check. Reducing the developer feedback loop is always very satisfying.</li><li>NLL.</li></ul><p><strong>What I didn’t like</strong>:</p><ul><li>The epoch RFC. My biggest frustration. I think putting an other versioning system on top of an other one doesn’t make sense and is just confusing people. Either you use epoch or you use rust version but please not both… I also believe backward compatibility is a problem that must be solved, but not this way (more on that later).</li></ul><h3>Rust #2018</h3><p>To me right now Rust has a lot of similarity with Haskell : Smart people behind it, a truely great concept solving real word problem, an opinionated community, a very powerful languages which is not easy to grasp, an immature eco-system, not ready for big projects with mixed-bag developers.</p><p>Why I wrote “immature eco-system”:</p><ul><li>Most of libraries are github projects backed by a couple of individuals rather than a whole community / company.</li><li>There’s not yet a big de-facto web framework which solves all your problems like Java/Spring, Ruby/Rails, Scala/Play.</li><li>No good Database Abstraction Layer. One of my big concern when writing a real world app is to be able to plug any database to it, not only because I want to be portable, but because my in-memory database for my tests will be different from my prod database and I want to avoid nasty surprises. Diesel beside being an awesome framework going in the right direction, is far from being ready for me. In my current company I can choose database from either Oracle, SQL Server or Teradata (probably because of vendor support), no way I can use Rust in prod just because of that.</li><li>Most of the basic tools are not yet considered stable. Rustfmt, rls, clippy, VS Code plugin, …</li><li>Some conceptual problems are yet to be solved: Backward compatibility, security of crates, …</li></ul><p>That said, that’s what I expect from a recent language like Rust, and contrary to Haskell, Rust is evolving really fast. I believe it has now reached a point where it’s already an awesome language, all it needs is to have big companies contributing to the eco-system to make it mature. All successful languages are successful because they managed to convince big companies, not because they had a community of smart individuals (Haskell, I am looking at you, …).</p><p>Hence, here is what I think should or should not be a priority in 2018.</p><p><strong>Priorities of 2018:</strong></p><ul><li>Official Crates : Big companies needs to rely on their dependencies. Crates.io seems to copy the very controversial NPM security model. On the other hand docker hub have the concept official repository were the most useful images are stamped and reviewed by an official entity. I believe that should be the direction taken, the next step from the lib blitz. Introduce a flag on crates.io (call it “official”, “reviewed”, “featured”, whatever…) for crates that have some criteria (reviewed by staff, no transitive dependencies to non-official crates, etc…). I am not implying that Mozilla’s staff should be responsible for that, it could be an elected board, hand picked member of the community, …</li><li>Improve developer tooling. Focus on a single developer configuration and make sure all the tools needed are there and stable. A developer should have a good editor with auto-completion and refactoring utility, a debugger, a formatter and a linter.</li><li>Improve project tooling. One of my main issue as a tech lead is to make sure everyone is running / building thing the same way, at the same version. To mitigate that, we should rely as less as possible on manual installation. Rust-up and cargo should be merged, we don’t need two tools. Cargo config should contain the version of everything (library, rustc, cargo, …) and be able to auto update itself. I believe that Gradle, and the gradle wrapper, should be what cargo looks like. With gradle wrapper, I don’t need anyone in my team installing gradle themselves and I can update everyone’s gradle and java versions just with a commit. <strong>Ideally we want nothing installed on a developer’s machine</strong> except the source code and executing something like ./cargow build would download the correct cargo version, rustc, the std library, all the libraries and build the whole thing.</li><li>Better libraries for basic things. Rust is meant to be good for concurrency and yet doesn’t have an official stable library for it. We need tokio and future-rs to be stable! Same thing for error management (<a href="https://crates.io/crates/failure">failure crate</a>?) logging (<a href="https://crates.io/crates/log">log crate</a>?). This is just the most obvious examples that made me go “Wait, what? there’s no default implementation for that?!?”.</li><li>Backward compatibility. That’s the most blurry for me, I am not sure how it works now and I am not sure how it should work in the future… I believe though that each library should be able to declare its rustc version and cargo should be able, somehow, to compile several modules together using different rustc/lib versions.</li><li>Keep the community contribution friendly. That’s my only point not directly related to “big companies adoption”. That has be mentioned several time and Rust is doing an amazing work at it. Make sure beginners are welcomed and contribution encouraged. That’s how you build a community of proud Rustaceans that will promote the language.</li></ul><p><strong>Not a priority in 2018</strong>(intentionally controversial)<strong>:</strong></p><ul><li>Wasm. I understand why people are happy about it but I don’t think that anyone will adopt Rust because of that. WASM doesn’t have threads yet while Rust is all about concurrency (Memory management is also about concurrency). Tools around Wasm are also evolving, let them mature. Wasm support will just make the Rust community more happy but won’t help the language getting traction.</li><li>Languages features. The language is good enough.</li><li>Non-essential libraries. Let the community work for you. If companies adopt Rust, they will contribute and fill the gaps. Focus on those libraries that 90% of the developers will need.</li><li>Desktop GUI. That will come from the community too. Nowadays 90% of GUI are web or mobile. Desktop GUI is now a niche with plenty of solutions.</li></ul><p>That’s it for me, thanks for reading and please leave some comments on Reddit!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a383dbd74481" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackernoon/rust-2018-dont-be-the-new-haskell-a383dbd74481">#Rust2018 : Don’t be the new Haskell</a> was originally published in <a href="https://medium.com/hackernoon">HackerNoon.com</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>