5 links tagged with all of: programming + memory-management
Click any tag below to further narrow down your results
Links
This article discusses two methods for representing hierarchical structures like trees. It contrasts using an array of child pointers with a more memory-efficient approach that employs first-child and next-sibling pointers. Each method has its trade-offs in terms of memory management and access speed.
This article explores the similarities and differences between Swift and Rust, particularly in memory management and language design. It highlights how Rust offers low-level control while Swift prioritizes ease of use and higher-level abstractions. The author argues that both languages have distinct strengths depending on the use case.
The article discusses Swift's reference counting mechanism, explaining how it manages memory automatically through strong and weak references. It highlights the importance of understanding reference cycles and provides tips for avoiding memory leaks in Swift applications.
The article explores the performance differences between accessing array elements in sequential versus random order, particularly in relation to cache efficiency and memory usage. It discusses various experiments conducted to measure the impact of access patterns on computation time for floating-point numbers, including setups for both in-RAM and memory-mapped scenarios. The findings provide insights into optimizing program performance by leveraging data locality.
The article discusses the evolution of programming challenges from the 1980s to today, using the example of developing a spellchecker for a word processor. It highlights the complexity of handling limited memory and storage in the past compared to the simplicity of modern programming languages, which allow for quick and efficient implementations. Ultimately, it emphasizes the significant advancements in programming that have made complex tasks trivial.