![]() On the weak hardware of Google Code Build, it would run out of time, every time. Once your code is compiled, everything’s amazing! But in my case, this basic API - which wasn’t even feature-complete and was by no means a complex system - took more than ten minutes to compile. ![]() It’s much slower than the Go compiler and much, much slower than the startup time for interpreted languages like JavaScript, Ruby, and Python. And they certainly have made it faster!īut compared to other languages you build websites with, it’s slow. I’ve been reading Nicholas Nethercote’s excellent blog for years now, in which he describes how the Rust team has made the compiler faster. Rust’s compiler is faster than it was, but still slow The crates for building CLIs, managing concurrency, doing really impressive operations with binary data and low-level parsers - they’re spectacular. Rust’s ecosystem is rich in other domains. Some people will say well, X language is so good you can just write an SDK yourself in a weekend! To which I must reply, no. There are a few third-party libraries trying to fill in the blanks, which is great, but with the sheer velocity of those services, will they really be able to give a quality experience? ![]() The aws-sdk-js and Stripe libraries, for example, are incredibly well-designed and maintained. How about SDKs? In mainstream languages, you’ll be able to plug into Google Cloud services, AWS, or Stripe by bringing in an official library. Repeat for plenty of other web framework problem areas. There are libraries trying to fix this, like libreauth, but they’re nascent and niche. Where Node.js will give you passport and Rails has devise and Django gives you an auth model out of the box, in Rust you’re going to build this system by learning how to shuttle a shared vec into low-level crypto libraries. But building authentication? You have only very low-level parts. Rust has a fair number of web server frameworks, database connectors, and parsers. If I were writing a geocoder, a routing engine, a real-time messaging platform, a database, or a CLI tool, Rust would be at the top of the list.īut last year, I spent some time trying to make Rust work for a plain-vanilla API to power a normal website. Rust makes it possible to write really fast software that’s secure, tiny, and more concise than C++ or C. Companies like Cloudflare are using Rust for their own systems and encouraging people to write Rust to run microservices. It has enabled excellent CLI tools like ripgrep and exa.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |