Vtome.ru - электронная библиотека

From JavaScript to Rust

  • Добавил: literator
  • Дата: 16-09-2023, 09:02
  • Комментариев: 0
Название: From jаvascript to Rust: Map common jаvascript and Node.js workflows to the Rust ecosystem
Автор: Jarrod Overson, Vino Technologies
Издательство: Independently published
Год: 2022
Страниц: 166
Язык: английский
Формат: pdf (true)
Размер: 10.9 MB

Each chapter will take concepts you know in jаvascript and Node.js and translate them to their Rust counterparts. The first chapters start with the basics, like getting set up with Rust via a tool similar to nvm (rustup), using the package manager (cargo), and setting up VS Code. Later chapters go over language gotchas, how to perform common jаvascript tasks in Rust, and we’ll finish up by touching on solid dependencies to start adding to your projects.

I love jаvascript. I’ve been coding jаvascript it since I first saw it in Netscape. I’ve written more lines of jаvascript than any other language. I’m a fan, but I know where the language falls short. It’s fast, but not that fast. It’s easy to write, but easy to screw up. Large projects become unwieldy fast. TypeScript helps scale jаvascript but it adds its own complexity and still doesn’t make anything faster. Server-side jаvascript relies on Node.js which is common but not ubiquitous. If you want to distribute something self-contained, there aren’t great answers. When you start stretching passed what jаvascript is best at, it’s helpful to have another language to turn to.

Why Rust? You could use C, C++, C#, Go, Java, Kotlin, Haskell or a hundred others. Rust is notoriously difficult even for system programmers to get into. Why bother with Rust? Think about your languages as tools in your toolbox. When you fill your toolbox, you don’t want 10 tools that solve similar problems. You want tools that complement each other and give you the ability to fix everything an anything. You already have jаvascript, a developer super-tool. It’s a high level language that’s good enough to run just about everything everywhere. If you’re picking up a new language, you might as well go to the extreme and pick a no-compromise, low-level powerhouse. Also, WebAssembly. Rust’s tooling and support for WebAssembly is better than everything else out there. You can rewrite CPU-heavy jаvascript logic into Rust and run it as WebAssembly. Which basically makes you a superhero. With jаvascript and Rust, there’s nothing you can’t handle.

This book is not a deep, comprehensive Rust tutorial. It’s meant to bootstrap experienced programmers into Rust. We’ll take common node.js workflows and idiomatic jаvascript and TypeScript and map them to their Rust counterparts. This book balances technical accuracy with readability. It errs on the side of "gets the point across" vs being 100% correct. When something is glossed over, we’ll add links for those looking to dive deeper.

Скачать From jаvascript to Rust



ОТСУТСТВУЕТ ССЫЛКА/ НЕ РАБОЧАЯ ССЫЛКА ЕСТЬ РЕШЕНИЕ, ПИШИМ СЮДА!










ПРАВООБЛАДАТЕЛЯМ


СООБЩИТЬ ОБ ОШИБКЕ ИЛИ НЕ РАБОЧЕЙ ССЫЛКЕ



Внимание
Уважаемый посетитель, Вы зашли на сайт как незарегистрированный пользователь.
Мы рекомендуем Вам зарегистрироваться либо войти на сайт под своим именем.
Информация
Посетители, находящиеся в группе Гости, не могут оставлять комментарии к данной публикации.