Rust

Rust is a language designed for writing highly reliable and fast software in a simple way. It can be used from high-level code down to hardware-specific code, and from big irons to tiny devices.

Rust and WebAssembly from Scratch: Hello World with Strings

Like most successful duos, Rust and WebAssembly (Wasm) complement each other. This article takes a different approach with a simple Hello World with Strings written in Rust that compiles to WebAssembly using minimal tooling. Custom JavaScript executes the compiled Rust.

Compiling Rust to WebAssembly: A Simple Example

Rust and WebAssembly (Wasm) are often discussed together. The goal of this project is to compile to Wasm a Rust function. Create a vanilla Rust project template. Update the project's manifest file. Write a Rust function. Compile to optimized Wasm. Deploy the Wasm through a simple Web page.

Moving from TypeScript to Rust / WebAssembly

I recently decided to switch the engine of Boardgame Lab from TypeScript to Rust. The application itself is an SPA written in Svelte. I only switched the logic that updates the game state to Rust. Here is a summary of my experience with the transition:

Rust is Surprisingly Good as a Server Language

Rust's macro system has really impressed me so far. Once the Rust ecosystem matures, honestly I think Rust is a great language to write servers in. You get the speed, and the safety, and honestly you don't pay the same price you normally do fighting (or at least thinking of) the borrow checker.

Boost Deno with Rust

Boost Deno with Rust (Hebrew). Deno is a runtime for JavaScript and TypeScript that is based on the V8 JavaScript engine and the Rust programming language. It was created by Ryan Dahl, original creator of Node.js, and is focused on productivity.

Rust for JavaScript Developers - Pattern Matching and Enums

Introducing the Rust language to JavaScript Developers. If you have used destructuring in JavaScript, it is very similar in Rust. JavaScript doesn’t have Enums but if you’ve used TypeScript, you can think of Rust’s Enums as a combination of TypeScript’s Enums and TypeScript’s Discriminated Unions

Comparing Algorithm Performance Using Different Abstract Data Types

I recently came across the following programming exercise used by Microsoft for interviewing software developers and data engineers.

Debugging a Segfault in Rust

Take a look at how we use our error monitoring platform to help debug one of our native products responsible for processing native crash reports. Debugging a Segfault in Rust. In this Sentry programming session, we looked at using our error monitoring platform to help debug one of our own native products: Symbolicator. This service is responsible for processing native crash reports. Just like any other application, it might crash — and when that happens, we need to gain insights into why.

Building an API using Toki and Warp

A sample project that uses Warp and Tokio to build a simple asynchronous API. This tutorial introduces the Warp framework by building an asynchronous CRUD API. Learn how to build an API using Toki and Warp.

How to Build a REST API to Execute System Commands using Actix Rust 

This daemon can be used in the application server or in the database server to execute system commands using rest API calls. In this post, you'll see how to Build a REST API to Execute System Commands using Actix Rust

Concurrency Patterns in Embedded Rust

How should you do concurrency in an embedded no_std application? We'll look into a few commonly used embedded Rust concurrency patterns and then into some less common ones. We'll compare their runtime characteristics in practical terms so you get a better feel for which one is appropriate for your application.

LeetCode Problems with Rust: Two-Sum

Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have exactly one solution, and you may not use the same element twice. LeetCode Problems with Rust: Two-Sum

Rust for JavaScript Developers - Functions and Control Flow

Introducing the Rust language to JavaScript Developers. Rust’s function syntax is pretty much similar to the one in JavaScript. Arrow functions are a popular feature in modern JavaScript. Rust has something similar and they are called “Closures”. Rust’s closure syntax is very similar to JavaScript’s arrow functions. In JavaScript, we can use array methods like map/filter/reduce/etc instead of for loops to perform calculations or transformations on an array. In Rust, we can’t directly use map/filter/etc over vectors.

LeetCode Problems with Rust: Add Two Numbers

You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their…

Rust Breaks into TIOBE Top 20 Most Popular Programming Languages

Developers’ love for Rust has translated into real-world adoption. On 6/2/2020, TIOBE reported that Rust broke into TIOBE index top 20 for the first time.

Crust of Rust: Smart Pointers and Interior Mutability

In this fourth Crust of Rust video, we cover smart pointers and interior mutability, by re-implementing the Cell, RefCell, and Rc types from the standard lib...

Working with CSV Data in Rust

The CSV file format is a very common method for storing tabular data. This article covers the basics of reading and writing CSV files…

Rust Adventures: Rust projects management, understanding packages, Crates and modules

“Poorly designed code usually takes more code to do the same things, often because the code quite literally does the same thing in several…