|
You are here |
blog.demofox.org | ||
| | | | |
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"). | |
| | | | |
educatedguesswork.org
|
|
| | | | | [AI summary] The text provides an in-depth exploration of memory management in C, covering topics such as pointer manipulation, memory allocation (malloc, free), use-after-free (UAF) bugs, and the challenges of manual memory management. It also touches on C++ as a language that offers better memory management features. The article explains how memory is allocated and deallocated, the role of the operating system in managing memory, and the potential issues like fragmentation and UAF vulnerabilities. It emphasizes the complexity of managing memory manually and hints at the benefits of higher-level languages. | |
| | | | |
riv.dev
|
|
| | | | | A journey through the implementation of malloc. | |
| | | | |
codecapsule.com
|
|
| | | This is Part 5 of the IKVS series, "Implementing a Key-Value Store". You can also check the Table of Contents for other parts. In this article, I will study the actual implementations of hash tables in C++ to understand where are the bottlenecks. Hash functions are CPU-intensive and should be optimized for that. However, most of the | ||