/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

dlang.org
| | qsantos.fr

This article will quickly explain the Rust types [T; N], &[T; N], &[T], Vec, &Vec with C code, and what the str, &str, String, OsString and CString add. Arrays and Slices Rust C [T; N] (array)Example: [i32; 100]Allocated on the stack T[N]Example: int[100]Allocated on the stack &[T; N] (array reference)Example: &[i32; 100]N is tracked at ... Continue reading Rust Strings for C Programmers
4.2 parsecs

Travel
| |
| | zig.guide

Slices can be thought of many-item pointers ([*]T) with a length (usize).
5.1 parsecs

Travel
| |
| | ciesie.com

Today I've played around with Zig, the new, hip (is it hip?) programming language. I find it pretty neat. I'm going to walk you (and myself) through my first, very short, piece of code. Below you can see the entirety of it. It basically allocates a 2MB buffer and reads a file into it... Yep, not particularly impressive, but this is a judgment free, learning zone, ok?! 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 const std = @import("std"); const warn = @import("std").
3.0 parsecs

Travel
| |
| | www.diegofreijo.com

I made a Rust implementation of the Lox programming language introduced by the Crafting Interpreters book.
33.6 parsecs

Travel
|