Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
zig-slotmap
Arena allocator with generational indices and a secondary map for secondary associations, for Zig Lang
Read the rust book, and if/when you’re struggling consult any Python or Ruby tutorial.
The alloc library is available if a global allocator is available. Rust for Linux implements a global allocator (or, more accurately, hooks into the kernel's existing allocator, in rust/kernel/allocator.rs), and therefore you can use the alloc library in the Linux kernel.
I've tried out Zig and it was a fun experiment. Created a slotmap library for it, too. https://github.com/mmstick/zig-slotmap For what it is, the code is quite readable. At the end of the day, however, I wouldn't feel comfortable using it for a project that I want to be reliable or secure. Some of the concepts are really cool, but I can't justify the loss of type safety and borrow checks. I'll take it over C any day though. Memory management is much less prone to error.