Latest Tech News

Stay updated with the latest in technology, AI, cybersecurity, and more

Filtered by: allocation Clear Filter

Indices, not Pointers

Indices, not Pointers There is a pattern I’ve learned while using Zig which I’ve never seen used in any other language. It’s an extremely simple trick which - when applied to a data structure - reduces memory usage, reduces memory allocations, speeds up accesses, makes freeing instantaneous, and generally makes everything much, much faster. The trick is to use indices, not pointers. This is something I learned from a talk by Andrew Kelley (Zig’s creator) on data-oriented design. It’s used in Z

Blog series on creating an OS in Rust

Writing an OS in Rust This blog series creates a small operating system in the Rust programming language. Each post is a small tutorial and includes all needed code, so you can follow along if you like. The source code is also available in the corresponding Github repository. Latest post: Async/Await Bare Bones Interrupts CPU Exceptions CPU exceptions occur in various erroneous situations, for example, when accessing an invalid memory address or when dividing by zero. To react to them, we ha

Show HN: Header-only GIF decoder in pure C – no malloc, easy to use

I built a lightweight GIF decoder in pure C, ideal for embedded or performance-critical environments. It’s header-only, zero dynamic memory allocations, and fully platform-independent. Supports both static and animated GIFs, with turbo and safe decoding modes. Works great on microcontrollers, IoT devices, and anything with a framebuffer. Would love feedback or ideas where this could be useful. Github: https://github.com/Ferki-git-creator/TurboStitchGIF-HeaderOn...

Btrfs Allocator Hints

[PATCH RFC 00/10] btrfs: new performance-based chunk allocation using device roles From: Anand Jain <anand.jain-AT-oracle.com> To: linux-btrfs-AT-vger.kernel.org Subject: [PATCH RFC 00/10] btrfs: new performance-based chunk allocation using device roles Date: Tue, 13 May 2025 02:07:06 +0800 Message-ID: <[email protected]> In host hardware, devices can have different speeds. Generally, faster devices come with lesser capacity while slower devices come with larger capaci