Rust is a systems language designed to prevent some of the pitfalls encountered in other languages. In this 2 day workshop, we will guide you through the fundamentals of the Rust language. Tailored for C++ developers.
Rust Series - 030 You Can't Index a String 🔤 #rust #rustlang #shorts
## Description
``` Verified against rustc 1.95.0 (59807616e 2026-04-14), edition 2024.
let word = String::from("héllo"); let first = word[0]; // error[E0277]: the type `str` cannot be indexed by `{integer}` // string indices are ranges of `usize`
A String is UTF-8 bytes. "héllo" is five letters and six bytes — [68, c3, a9, 6c, 6c, 6f] — because é takes two. Byte 0 isn't always a letter, so rustc won't let an integer index pretend it is.
Ask for letters instead, as rustc's own note suggests: word.chars().nth(1) gives Some('é'), and word.len() says 6, because len counts bytes. A byte range does compile — but &word[0..2] ends in the middle of é, and that check happens at run time: "end byte index 2 is not a char boundary".
Every diagnostic and every output line on screen was produced by running the code, not typed from memory.
What this video does not claim: that a char is a "letter" a human would see — chars() yields Unicode scalar values, and some on-screen characters are several of them (grapheme clusters, not covered). chars().nth() walks from the start, so it is O(n). Only edition 2024 was run.
Today, we're happy to announce axum version 0.6.0-rc.1. axum is an ergonomic and modular web framework built with tokio, tower, and hyper.
In 0.6 we've reworked some fundamental parts of axum to make things more type safe, less surprising, and easier to use. In this post I'd like to highlight a few of the most impactful changes and new features.
This also includes new major versions for axum-core, axum-extra, and axum-macros.
Rust is a systems language designed to prevent some of the pitfalls encountered in other languages. In this 2 day workshop, we will guide you through the fundamentals of the Rust language. Tailored for C++ developers.
Tauri is a new Rust-based framework that builds an x86_64 cross-platform application for Windows, macOS, and Linux. In this tutorial, we'll use Tauri and Next.js to build a desktop-based cross-platform application and publish it to the Snap store and AppImage.
RISC-V (and similiar architectures) have a feature of dynamic sized vector types. It has 32 vector registers with the same size upon design, but size of register varies between microarchitectures.Designs with different …...
The concurrency features that are included in the Rust standard library are quite similar to what was available in C++11: threads, atomics, mutexes, condition variables, and so on. In the past few years, however, C++ has gained quite a few new concurrency related features as part C++17 and C++20,...
This publication is an accumulation of possibilities to use the Rust programming language with different solutions in Big Data scenarios.Rust is a functional programming language that is gaining…...
To get content containing either thought or leadership enter:
To get content containing both thought and leadership enter:
To get content containing the expression thought leadership enter:
You can enter several keywords and you can refine them whenever you want. Our suggestion engine uses more signals but entering a few keywords here will rapidly give you great content to curate.