/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

beeb.li
| | bayesianneuron.com

[AI summary] The user has shared a detailed exploration of optimizing the 0/1 Knapsack problem using dynamic programming with Python and NumPy. They discuss various optimization techniques, including reducing memory usage with a 2-row approach, vectorization using NumPy's `np.where` for faster computation, and the performance improvements achieved. The final implementation shows significant speedups, especially for large-scale problems, and the user highlights the importance of vectorization and efficient memory management in computational tasks.
4.5 parsecs

Travel
| |
| | andreabergia.com

This post is part of the Writing a JVM in Rust series. In this post, I will discuss how rjvm parses .class files. The code I will discuss today is contained in the reader crate. A warning before you read: this is the earliest part of the project and, since I have written this project to learn Rust, it is also the one that contains the least idiomatic code. Don't take this as an example of the best Rust ever written!
4.8 parsecs

Travel
| |
| | cprimozic.net

A detailed summary of the techniques I used to optimize my Advent of Code 2024 solution for Day 9 Part 2. Employs a variety of techniques including algorithmic shortcuts, bespoke data structures, and low-level optimizations + SIMD.
4.9 parsecs

Travel
| |
| | dygalo.dev

It is the first part of a 3-chapter series about my experience with embedding Rust into Python projects. This chapter covers the motivation for using Rust and possible use cases.
31.0 parsecs

Travel
|